Bah! Missed PR no again!
[official-gcc.git] / libstdc++-v3 / configure
blobbfa0fa593b396e447d94a14c9500727f6d18f818
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for package-unused version-unused.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='package-unused'
268 PACKAGE_TARNAME='libstdc++'
269 PACKAGE_VERSION='version-unused'
270 PACKAGE_STRING='package-unused version-unused'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="src/ios.cc"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE LIBUNWIND_FLAG GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
771 cat <<_ACEOF
772 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
781 Configuration:
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792 _ACEOF
794 cat <<_ACEOF
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
797 [$ac_default_prefix]
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 [PREFIX]
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
821 _ACEOF
823 cat <<\_ACEOF
825 Program names:
826 --program-prefix=PREFIX prepend PREFIX to installed program names
827 --program-suffix=SUFFIX append SUFFIX to installed program names
828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830 System types:
831 --build=BUILD configure for building on BUILD [guessed]
832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
833 --target=TARGET configure for building compilers for TARGET [HOST]
834 _ACEOF
837 if test -n "$ac_init_help"; then
838 case $ac_init_help in
839 short | recursive ) echo "Configuration of package-unused version-unused:";;
840 esac
841 cat <<\_ACEOF
843 Optional Features:
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-multilib build many library versions (default)
847 --enable-maintainer-mode enable make rules and dependencies not useful
848 (and sometimes confusing) to the casual installer
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
853 --disable-hosted-libstdcxx
854 only build freestanding C++ runtime support
855 --enable-sjlj-exceptions
856 force use of builtin_setjmp for exceptions
857 [default=auto]
858 --enable-libunwind-exceptions
859 force use of libunwind for exceptions
860 [default=no]
861 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
862 [default=$is_hosted]
863 --enable-cstdio=PACKAGE use target-specific I/O package
864 [default=stdio]
865 --enable-clocale[=MODEL]
866 use MODEL for target locale package
867 [default=auto]
868 --enable-nls use Native Language Support (default)
869 --enable-cheaders=KIND construct "C" headers for g++
870 [default=$c_model]
871 --enable-c-mbchar enable multibyte (wide) characters
872 [default=yes]
873 --enable-c99 turns on ISO/IEC 9899:1999 support
874 [default=yes]
875 --enable-long-long enables I/O support for 'long long'
876 [default=yes]
877 --enable-concept-checks use Boost-derived template checks [default=no]
878 --enable-libstdcxx-debug-flags=FLAGS
879 pass compiler FLAGS when building debug library
880 [default="-g3 -O0"]
881 --enable-libstdcxx-debug
882 build extra debug library [default=no]
883 --enable-cxx-flags=FLAGS
884 pass compiler FLAGS when building library
885 [default=]
886 --enable-symvers=STYLE enables symbol versioning of the shared library
887 [default=yes]
888 --enable-version-specific-runtime-libs
889 Specify that runtime libraries should be installed
890 in a compiler-specific directory
892 Optional Packages:
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-target-subdir=SUBDIR
896 configuring in a subdirectory
897 --with-cross-host=HOST configuring with a cross compiler
898 --with-newlib assume newlib as a system C library
899 --with-gnu-ld assume the C compiler uses GNU ld default=no
900 --with-pic try to use only PIC/non-PIC objects default=use both
901 --with-gxx-include-dir=DIR
902 installation directory for include files
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CXX C++ compiler command
912 CXXFLAGS C++ compiler flags
913 CXXCPP C++ preprocessor
914 CPP C preprocessor
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 _ACEOF
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 # absolute.
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd $ac_popdir
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 package-unused configure version-unused
982 generated by GNU Autoconf 2.57
984 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
985 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by package-unused $as_me version-unused, which was
997 generated by GNU Autoconf 2.57. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core core.* *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers config.h"
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported. Only used at the end of this file.
1340 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1342 # For libtool versioning info, format is CURRENT:REVISION:AGE
1343 libtool_VERSION=6:0:0
1346 # Find the rest of the source tree framework.
1348 # Sets up multi_basedir, which is srcdir/.. plus the usual
1349 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1350 # Default to --enable-multilib
1351 # Check whether --enable-multilib or --disable-multilib was given.
1352 if test "${enable_multilib+set}" = set; then
1353 enableval="$enable_multilib"
1354 case "$enableval" in
1355 yes) multilib=yes ;;
1356 no) multilib=no ;;
1357 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1358 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1359 { (exit 1); exit 1; }; } ;;
1360 esac
1361 else
1362 multilib=yes
1365 # We may get other options which we leave undocumented:
1366 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1367 # See config-ml.in if you want the gory details.
1369 if test "$srcdir" = "."; then
1370 if test "$with_target_subdir" != "."; then
1371 multi_basedir="$srcdir/$with_multisrctop../.."
1372 else
1373 multi_basedir="$srcdir/$with_multisrctop.."
1375 else
1376 multi_basedir="$srcdir/.."
1380 ac_config_commands="$ac_config_commands default-1"
1383 # The generated code is exactly the same, except that automake's looks in
1384 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1385 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1386 # know what they are or what the other differences might be (and they keep
1387 # changing anyhow).
1389 # Looking in multi_basedir seems smarter, so actually execute that branch.
1390 if false; then
1391 # this is for automake
1392 ac_aux_dir=
1393 for ac_dir in .. $srcdir/..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 else
1418 # this is for autoconf
1419 ac_aux_dir=
1420 for ac_dir in ${multi_basedir}; do
1421 if test -f $ac_dir/install-sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1424 break
1425 elif test -f $ac_dir/install.sh; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1428 break
1429 elif test -f $ac_dir/shtool; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 break
1434 done
1435 if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1438 { (exit 1); exit 1; }; }
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1448 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1450 # You will slowly go insane if you do not grok the following fact: when
1451 # building v3 as part of the compiler, the top-level /target/ becomes the
1452 # library's /host/. configure then causes --target to default to --host,
1453 # exactly like any other package using autoconf. Therefore, 'target' and
1454 # 'host' will always be the same. This makes sense both for native and
1455 # cross compilers, just think about it for a little while. :-)
1457 # Also, if v3 is being configured as part of a cross compiler, the top-level
1458 # configure script will pass the "real" host as $with_cross_host.
1460 # Do not delete or change the following two lines. For why, see
1461 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1462 # Make sure we can run config.sub.
1463 $ac_config_sub sun4 >/dev/null 2>&1 ||
1464 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1465 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1466 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: checking build system type" >&5
1469 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1470 if test "${ac_cv_build+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 ac_cv_build_alias=$build_alias
1474 test -z "$ac_cv_build_alias" &&
1475 ac_cv_build_alias=`$ac_config_guess`
1476 test -z "$ac_cv_build_alias" &&
1477 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1478 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1479 { (exit 1); exit 1; }; }
1480 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1487 echo "${ECHO_T}$ac_cv_build" >&6
1488 build=$ac_cv_build
1489 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 echo "$as_me:$LINENO: checking host system type" >&5
1495 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1496 if test "${ac_cv_host+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 ac_cv_host_alias=$host_alias
1500 test -z "$ac_cv_host_alias" &&
1501 ac_cv_host_alias=$ac_cv_build_alias
1502 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1509 echo "${ECHO_T}$ac_cv_host" >&6
1510 host=$ac_cv_host
1511 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 echo "$as_me:$LINENO: checking target system type" >&5
1517 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1518 if test "${ac_cv_target+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 ac_cv_target_alias=$target_alias
1522 test "x$ac_cv_target_alias" = "x" &&
1523 ac_cv_target_alias=$ac_cv_host_alias
1524 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1531 echo "${ECHO_T}$ac_cv_target" >&6
1532 target=$ac_cv_target
1533 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538 # The aliases save the names the user supplied, while $host etc.
1539 # will get canonicalized.
1540 test -n "$target_alias" &&
1541 test "$program_prefix$program_suffix$program_transform_name" = \
1542 NONENONEs,x,x, &&
1543 program_prefix=${target_alias}-
1544 target_alias=${target_alias-$host_alias}
1546 # Handy for debugging:
1547 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1549 if test "$build" != "$host"; then
1550 # We are being configured with some form of cross compiler.
1551 GLIBCXX_IS_NATIVE=false
1553 else
1554 GLIBCXX_IS_NATIVE=true
1557 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1558 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1559 # 1.x: minimum required version
1560 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1561 # of other PACKAGE_* variables will, however, and there's nothing
1562 # we can do about that; they come from AC_INIT).
1563 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1564 # file in the top srcdir, etc, etc), so stop complaining.
1565 # no-dependencies: turns off auto dependency generation (just for now)
1566 # -Wall: turns on all automake warnings
1567 am__api_version="1.7"
1568 # Find a good install program. We prefer a C program (faster),
1569 # so one script is as good as another. But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 /usr/ucb/* ) ;;
1597 # OSF1 and SCO ODT 3.0 have their own names for install.
1598 # Don't use installbsd from OSF since it installs stuff as root
1599 # by default.
1600 for ac_prog in ginstall scoinst install; do
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603 if test $ac_prog = install &&
1604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # AIX install. It has an incompatible calling convention.
1607 elif test $ac_prog = install &&
1608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # program-specific install script used by HP pwplus--don't use.
1611 else
1612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613 break 3
1616 done
1617 done
1619 esac
1620 done
1624 if test "${ac_cv_path_install+set}" = set; then
1625 INSTALL=$ac_cv_path_install
1626 else
1627 # As a last resort, use the slow shell script. We don't cache a
1628 # path for INSTALL within a source directory, because that will
1629 # break other packages using the cache if that directory is
1630 # removed, or if the path is relative.
1631 INSTALL=$ac_install_sh
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments. Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657 if test "$*" = "X"; then
1658 # -L didn't work.
1659 set X `ls -t $srcdir/configure conftest.file`
1661 rm -f conftest.file
1662 if test "$*" != "X $srcdir/configure conftest.file" \
1663 && test "$*" != "X conftest.file $srcdir/configure"; then
1665 # If neither matched, then we have a broken ls. This can happen
1666 # if, for instance, CONFIG_SHELL is bash and it inherits a
1667 # broken ls alias from the environment. This has actually
1668 # happened. Such a system could not be considered "sane".
1669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1672 alias in your environment" >&2;}
1673 { (exit 1); exit 1; }; }
1676 test "$2" = conftest.file
1678 then
1679 # Ok.
1681 else
1682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686 { (exit 1); exit 1; }; }
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $. echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717 for ac_prog in gawk mawk nawk awk
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$AWK"; then
1727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_AWK="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747 echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 test -n "$AWK" && break
1755 done
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 cat >conftest.make <<\_ACEOF
1764 all:
1765 @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770 eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772 eval ac_cv_prog_make_${ac_make}_set=no
1774 rm -f conftest.make
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779 SET_MAKE=
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 SET_MAKE="MAKE=${MAKE-make}"
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789 am__leading_dot=.
1790 else
1791 am__leading_dot=_
1793 rmdir .tst 2>/dev/null
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797 test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805 if (cygpath --version) >/dev/null 2>/dev/null; then
1806 CYGPATH_W='cygpath -w'
1807 else
1808 CYGPATH_W=echo
1813 # Define the identity of the package.
1814 PACKAGE='libstdc++'
1815 VERSION='version-unused'
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 ac_ct_STRIP=$STRIP
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 STRIP=$ac_ct_STRIP
1920 else
1921 STRIP="$ac_cv_prog_STRIP"
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927 # We need awk for the "check" target. The system "awk" is bad on
1928 # some platforms.
1933 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1934 # up critical shell variables.
1936 # Keep these sync'd with the list in Makefile.am. The first provides an
1937 # expandable list at autoconf time; the second provides an expandable list
1938 # (i.e., shell variable) at configure time.
1940 SUBDIRS='include libmath libsupc++ src po testsuite'
1942 # These need to be absolute paths, yet at the same time need to
1943 # canonicalize only relative paths, because then amd will not unmount
1944 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1945 glibcxx_builddir=`${PWDCMD-pwd}`
1946 case $srcdir in
1947 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1948 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1949 esac
1950 toplevel_srcdir=${glibcxx_srcdir}/..
1955 # We use these options to decide which functions to include. They are
1956 # set from the top level.
1958 # Check whether --with-target-subdir or --without-target-subdir was given.
1959 if test "${with_target_subdir+set}" = set; then
1960 withval="$with_target_subdir"
1965 # Check whether --with-cross-host or --without-cross-host was given.
1966 if test "${with_cross_host+set}" = set; then
1967 withval="$with_cross_host"
1972 # Check whether --with-newlib or --without-newlib was given.
1973 if test "${with_newlib+set}" = set; then
1974 withval="$with_newlib"
1978 # We're almost certainly being configured before anything else which uses
1979 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1980 # we not cache the value of CXX that we "discover" here, because it's set
1981 # to something unique for us and libjava. Other target libraries need to
1982 # find CXX for themselves. We yank the rug out from under the normal AC_*
1983 # process by sneakily renaming the cache variable. This also lets us debug
1984 # the value of "our" CXX in postmortems.
1986 # We must also force CXX to /not/ be a precious variable, otherwise the
1987 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1988 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1989 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1990 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1992 # -fno-builtin must be present here so that a non-conflicting form of
1993 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1998 save_CXXFLAGS="$CXXFLAGS"
1999 CXXFLAGS="$CXXFLAGS -fno-builtin"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 CC=$ac_ct_CC
2080 else
2081 CC="$ac_cv_prog_CC"
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2159 CC=$ac_ct_CC
2160 else
2161 CC="$ac_cv_prog_CC"
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2258 test -n "$CC" && break
2259 done
2261 if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 test -n "$ac_ct_CC" && break
2301 done
2303 CC=$ac_ct_CC
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 main ()
2348 return 0;
2350 _ACEOF
2351 # FIXME: Cleanup?
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 gcc_no_link=no
2358 else
2359 gcc_no_link=yes
2362 if test x$gcc_no_link = xyes; then
2363 # Setting cross_compile will disable run tests; it will
2364 # also disable AC_CHECK_FILE but that's generally
2365 # correct if we can't link.
2366 cross_compiling=yes
2367 EXEEXT=
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2382 return 0;
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2391 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2394 (eval $ac_link_default) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Find the output, starting from the most likely. This scheme is
2399 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400 # resort.
2402 # Be careful to initialize this variable, since it used to be cached.
2403 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2404 ac_cv_exeext=
2405 # b.out is created by i960 compilers.
2406 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412 conftest.$ac_ext )
2413 # This is the source file.
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # FIXME: I believe we export ac_cv_exeext for Libtool,
2422 # but it would be cool to find out if it's true. Does anybody
2423 # maintain Libtool? --akim.
2424 export ac_cv_exeext
2425 break;;
2427 break;;
2428 esac
2429 done
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
2441 ac_exeext=$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2450 # If not cross compiling, check that we can run a simple program.
2451 if test "$cross_compiling" != yes; then
2452 if { ac_try='./$ac_file'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2482 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6
2485 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2488 (eval $ac_link) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 # `rm'.
2496 for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
2498 case $ac_file in
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 export ac_cv_exeext
2502 break;;
2503 * ) break;;
2504 esac
2505 done
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2514 rm -f conftest$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2520 ac_exeext=$EXEEXT
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2587 main ()
2589 #ifndef __GNUC__
2590 choke me
2591 #endif
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 ac_compiler_gnu=no
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cc_g=yes
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 ac_cv_prog_cc_g=no
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2674 CFLAGS="-g -O2"
2675 else
2676 CFLAGS="-g"
2678 else
2679 if test "$GCC" = yes; then
2680 CFLAGS="-O2"
2681 else
2682 CFLAGS=
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 ac_cv_prog_cc_stdc=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707 char **p;
2708 int i;
2710 return p[i];
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2728 main ()
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 return 0;
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2771 case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787 choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2804 '#include <stdlib.h>' \
2805 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806 'extern "C" void std::exit (int); using std::exit;' \
2807 'extern "C" void exit (int) throw ();' \
2808 'extern "C" void exit (int);' \
2809 'void exit (int);'
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <stdlib.h>
2819 $ac_declaration
2821 main ()
2823 exit (42);
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 continue
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 $ac_declaration
2857 main ()
2859 exit (42);
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 break
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2882 rm -f conftest.$ac_objext conftest.$ac_ext
2883 done
2884 rm -f conftest*
2885 if test -n "$ac_declaration"; then
2886 echo '#ifdef __cplusplus' >>confdefs.h
2887 echo $ac_declaration >>confdefs.h
2888 echo '#endif' >>confdefs.h
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.$ac_objext conftest.$ac_ext
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 ac_ext=cc
2904 ac_cpp='$CXXCPP $CPPFLAGS'
2905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CXX"; then
2919 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2937 CXX=$glibcxx_cv_prog_CXX
2938 if test -n "$CXX"; then
2939 echo "$as_me:$LINENO: result: $CXX" >&5
2940 echo "${ECHO_T}$CXX" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$CXX" && break
2947 done
2949 if test -z "$CXX"; then
2950 ac_ct_CXX=$CXX
2951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CXX"; then
2961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CXX="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2980 if test -n "$ac_ct_CXX"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2982 echo "${ECHO_T}$ac_ct_CXX" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$ac_ct_CXX" && break
2989 done
2990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2992 CXX=$ac_ct_CXX
2996 # Provide some information about the compiler.
2997 echo "$as_me:$LINENO:" \
2998 "checking for C++ compiler version" >&5
2999 ac_compiler=`set X $ac_compile; echo $2`
3000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3001 (eval $ac_compiler --version </dev/null >&5) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3006 (eval $ac_compiler -v </dev/null >&5) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3011 (eval $ac_compiler -V </dev/null >&5) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3016 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3032 #ifndef __GNUC__
3033 choke me
3034 #endif
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_compiler_gnu=yes
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_compiler_gnu=no
3059 rm -f conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3063 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3065 GXX=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CXXFLAGS=${CXXFLAGS+set}
3067 ac_save_CXXFLAGS=$CXXFLAGS
3068 CXXFLAGS="-g"
3069 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3071 if test "${ac_cv_prog_cxx_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3083 main ()
3087 return 0;
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_prog_cxx_g=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cv_prog_cxx_g=no
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3111 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3112 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3113 if test "$ac_test_CXXFLAGS" = set; then
3114 CXXFLAGS=$ac_save_CXXFLAGS
3115 elif test $ac_cv_prog_cxx_g = yes; then
3116 if test "$GXX" = yes; then
3117 CXXFLAGS="-g -O2"
3118 else
3119 CXXFLAGS="-g"
3121 else
3122 if test "$GXX" = yes; then
3123 CXXFLAGS="-O2"
3124 else
3125 CXXFLAGS=
3128 for ac_declaration in \
3130 '#include <stdlib.h>' \
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3135 'void exit (int);'
3137 cat >conftest.$ac_ext <<_ACEOF
3138 #line $LINENO "configure"
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <stdlib.h>
3145 $ac_declaration
3147 main ()
3149 exit (42);
3151 return 0;
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 continue
3173 rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 $ac_declaration
3183 main ()
3185 exit (42);
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 break
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 done
3210 rm -f conftest*
3211 if test -n "$ac_declaration"; then
3212 echo '#ifdef __cplusplus' >>confdefs.h
3213 echo $ac_declaration >>confdefs.h
3214 echo '#endif' >>confdefs.h
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 CXXFLAGS="$save_CXXFLAGS"
3228 # For directory versioning (e.g., headers) and other variables.
3229 echo "$as_me:$LINENO: checking for GCC version number" >&5
3230 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3231 gcc_version=`$CXX -dumpversion`
3232 echo "$as_me:$LINENO: result: $gcc_version" >&5
3233 echo "${ECHO_T}$gcc_version" >&6
3235 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3236 # available). Uncomment the next line to force a particular method.
3237 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3239 LN_S=$as_ln_s
3240 if test "$LN_S" = "ln -s"; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3245 echo "${ECHO_T}no, using $LN_S" >&6
3248 #LN_S='cp -p'
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}as; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_AS+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$AS"; then
3259 ac_cv_prog_AS="$AS" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_AS="${ac_tool_prefix}as"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3277 AS=$ac_cv_prog_AS
3278 if test -n "$AS"; then
3279 echo "$as_me:$LINENO: result: $AS" >&5
3280 echo "${ECHO_T}$AS" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_AS"; then
3288 ac_ct_AS=$AS
3289 # Extract the first word of "as", so it can be a program name with args.
3290 set dummy as; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_AS"; then
3297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_AS="as"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3315 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3316 if test -n "$ac_ct_AS"; then
3317 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3318 echo "${ECHO_T}$ac_ct_AS" >&6
3319 else
3320 echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3324 AS=$ac_ct_AS
3325 else
3326 AS="$ac_cv_prog_AS"
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ar; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_AR+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 if test -n "$AR"; then
3338 ac_cv_prog_AR="$AR" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_AR="${ac_tool_prefix}ar"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3356 AR=$ac_cv_prog_AR
3357 if test -n "$AR"; then
3358 echo "$as_me:$LINENO: result: $AR" >&5
3359 echo "${ECHO_T}$AR" >&6
3360 else
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_AR"; then
3367 ac_ct_AR=$AR
3368 # Extract the first word of "ar", so it can be a program name with args.
3369 set dummy ar; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 if test -n "$ac_ct_AR"; then
3376 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_AR="ar"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3394 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3395 if test -n "$ac_ct_AR"; then
3396 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3397 echo "${ECHO_T}$ac_ct_AR" >&6
3398 else
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 AR=$ac_ct_AR
3404 else
3405 AR="$ac_cv_prog_AR"
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_RANLIB+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$RANLIB"; then
3417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3435 RANLIB=$ac_cv_prog_RANLIB
3436 if test -n "$RANLIB"; then
3437 echo "$as_me:$LINENO: result: $RANLIB" >&5
3438 echo "${ECHO_T}$RANLIB" >&6
3439 else
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3445 if test -z "$ac_cv_prog_RANLIB"; then
3446 ac_ct_RANLIB=$RANLIB
3447 # Extract the first word of "ranlib", so it can be a program name with args.
3448 set dummy ranlib; ac_word=$2
3449 echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$ac_ct_RANLIB"; then
3455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_RANLIB="ranlib"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3471 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3475 if test -n "$ac_ct_RANLIB"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3477 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 RANLIB=$ac_ct_RANLIB
3484 else
3485 RANLIB="$ac_cv_prog_RANLIB"
3489 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3490 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3491 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3492 if test "${enable_maintainer_mode+set}" = set; then
3493 enableval="$enable_maintainer_mode"
3494 USE_MAINTAINER_MODE=$enableval
3495 else
3496 USE_MAINTAINER_MODE=no
3498 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3499 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3502 if test $USE_MAINTAINER_MODE = yes; then
3503 MAINTAINER_MODE_TRUE=
3504 MAINTAINER_MODE_FALSE='#'
3505 else
3506 MAINTAINER_MODE_TRUE='#'
3507 MAINTAINER_MODE_FALSE=
3510 MAINT=$MAINTAINER_MODE_TRUE
3514 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3515 # which are themselves conditionally expanded.
3516 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3517 ## other macros from doing the same. This should be automated.) -pme
3518 need_libmath=no
3519 enable_wchar_t=no
3520 #enable_libstdcxx_debug=no
3521 #enable_libstdcxx_pch=no
3522 #enable_cheaders=c
3523 #c_compatibility=no
3524 #enable_abi_check=no
3525 #enable_symvers=no
3526 #enable_hosted_libstdcxx=yes
3528 # Find platform-specific directories containing configuration info.
3529 # Also possibly modify flags used elsewhere, as needed by the platform.
3531 . $glibcxx_srcdir/configure.host
3532 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3533 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3534 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3535 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3539 #AC_MSG_NOTICE([====== Starting libtool configuration])
3541 # Check whether --enable-shared or --disable-shared was given.
3542 if test "${enable_shared+set}" = set; then
3543 enableval="$enable_shared"
3544 p=${PACKAGE-default}
3545 case $enableval in
3546 yes) enable_shared=yes ;;
3547 no) enable_shared=no ;;
3549 enable_shared=no
3550 # Look at the argument we got. We use all the common list separators.
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3552 for pkg in $enableval; do
3553 if test "X$pkg" = "X$p"; then
3554 enable_shared=yes
3556 done
3557 IFS="$ac_save_ifs"
3559 esac
3560 else
3561 enable_shared=yes
3563 # Check whether --enable-static or --disable-static was given.
3564 if test "${enable_static+set}" = set; then
3565 enableval="$enable_static"
3566 p=${PACKAGE-default}
3567 case $enableval in
3568 yes) enable_static=yes ;;
3569 no) enable_static=no ;;
3571 enable_static=no
3572 # Look at the argument we got. We use all the common list separators.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3574 for pkg in $enableval; do
3575 if test "X$pkg" = "X$p"; then
3576 enable_static=yes
3578 done
3579 IFS="$ac_save_ifs"
3581 esac
3582 else
3583 enable_static=yes
3585 # Check whether --enable-fast-install or --disable-fast-install was given.
3586 if test "${enable_fast_install+set}" = set; then
3587 enableval="$enable_fast_install"
3588 p=${PACKAGE-default}
3589 case $enableval in
3590 yes) enable_fast_install=yes ;;
3591 no) enable_fast_install=no ;;
3593 enable_fast_install=no
3594 # Look at the argument we got. We use all the common list separators.
3595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3596 for pkg in $enableval; do
3597 if test "X$pkg" = "X$p"; then
3598 enable_fast_install=yes
3600 done
3601 IFS="$ac_save_ifs"
3603 esac
3604 else
3605 enable_fast_install=yes
3608 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3609 if test "${with_gnu_ld+set}" = set; then
3610 withval="$with_gnu_ld"
3611 test "$withval" = no || with_gnu_ld=yes
3612 else
3613 with_gnu_ld=no
3615 ac_prog=ld
3616 if test "$GCC" = yes; then
3617 # Check if gcc -print-prog-name=ld gives a path.
3618 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3619 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3620 case $host in
3621 *-*-mingw*)
3622 # gcc leaves a trailing carriage return which upsets mingw
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3626 esac
3627 case $ac_prog in
3628 # Accept absolute paths.
3629 [\\/]* | [A-Za-z]:[\\/]*)
3630 re_direlt='/[^/][^/]*/\.\./'
3631 # Canonicalize the path of ld
3632 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3635 done
3636 test -z "$LD" && LD="$ac_prog"
3639 # If it fails, then pretend we aren't using GCC.
3640 ac_prog=ld
3643 # If it is relative, then search for the first ld in PATH.
3644 with_gnu_ld=unknown
3646 esac
3647 elif test "$with_gnu_ld" = yes; then
3648 echo "$as_me:$LINENO: checking for GNU ld" >&5
3649 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3650 else
3651 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3652 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3654 if test "${lt_cv_path_LD+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -z "$LD"; then
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3659 for ac_dir in $PATH; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3662 lt_cv_path_LD="$ac_dir/$ac_prog"
3663 # Check to see if the program is GNU ld. I'd rather use --version,
3664 # but apparently some GNU ld's only accept -v.
3665 # Break only if it was the GNU/non-GNU ld that we prefer.
3666 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3667 test "$with_gnu_ld" != no && break
3668 else
3669 test "$with_gnu_ld" != yes && break
3672 done
3673 IFS="$ac_save_ifs"
3674 else
3675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3679 LD="$lt_cv_path_LD"
3680 if test -n "$LD"; then
3681 echo "$as_me:$LINENO: result: $LD" >&5
3682 echo "${ECHO_T}$LD" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3687 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3688 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3691 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3696 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3697 lt_cv_prog_gnu_ld=yes
3698 else
3699 lt_cv_prog_gnu_ld=no
3702 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3703 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3704 with_gnu_ld=$lt_cv_prog_gnu_ld
3707 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3708 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3709 if test "${lt_cv_ld_reload_flag+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 lt_cv_ld_reload_flag='-r'
3714 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3715 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3716 reload_flag=$lt_cv_ld_reload_flag
3717 test -n "$reload_flag" && reload_flag=" $reload_flag"
3719 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3720 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3721 if test "${lt_cv_path_NM+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 if test -n "$NM"; then
3725 # Let the user override the test.
3726 lt_cv_path_NM="$NM"
3727 else
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3729 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3730 test -z "$ac_dir" && ac_dir=.
3731 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3732 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3733 # Check to see if the nm accepts a BSD-compat flag.
3734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3735 # nm: unknown option "B" ignored
3736 # Tru64's nm complains that /dev/null is an invalid object file
3737 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3738 lt_cv_path_NM="$tmp_nm -B"
3739 break
3740 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3741 lt_cv_path_NM="$tmp_nm -p"
3742 break
3743 else
3744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3745 continue # so that we can try to find one that supports BSD flags
3748 done
3749 IFS="$ac_save_ifs"
3750 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3754 NM="$lt_cv_path_NM"
3755 echo "$as_me:$LINENO: result: $NM" >&5
3756 echo "${ECHO_T}$NM" >&6
3758 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3759 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3760 if test "${lt_cv_deplibs_check_method+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 lt_cv_file_magic_cmd='$MAGIC_CMD'
3764 lt_cv_file_magic_test_file=
3765 lt_cv_deplibs_check_method='unknown'
3766 # Need to set the preceding variable on all platforms that support
3767 # interlibrary dependencies.
3768 # 'none' -- dependencies not supported.
3769 # `unknown' -- same as none, but documents that we really don't know.
3770 # 'pass_all' -- all dependencies passed with no checks.
3771 # 'test_compile' -- check by making test program.
3772 # 'file_magic [regex]' -- check by looking for files in library path
3773 # which responds to the $file_magic_cmd with a given egrep regex.
3774 # If you have `file' or equivalent on your system and you're not sure
3775 # whether `pass_all' will *always* work, you probably want this one.
3777 case $host_os in
3778 aix*)
3779 lt_cv_deplibs_check_method=pass_all
3782 beos*)
3783 lt_cv_deplibs_check_method=pass_all
3786 bsdi4*)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3788 lt_cv_file_magic_cmd='/usr/bin/file -L'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3792 cygwin* | mingw* |pw32*)
3793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3794 lt_cv_file_magic_cmd='$OBJDUMP -f'
3797 darwin* | rhapsody*)
3798 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3799 lt_cv_file_magic_cmd='/usr/bin/file -L'
3800 case "$host_os" in
3801 rhapsody* | darwin1.012)
3802 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3804 *) # Darwin 1.3 on
3805 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3807 esac
3810 freebsd* )
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 case $host_cpu in
3813 i*86 )
3814 # Not sure whether the presence of OpenBSD here was a mistake.
3815 # Let's accept both of them until this is cleared up.
3816 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3817 lt_cv_file_magic_cmd=/usr/bin/file
3818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3820 esac
3821 else
3822 lt_cv_deplibs_check_method=pass_all
3826 gnu*)
3827 lt_cv_deplibs_check_method=pass_all
3830 hpux10.20*|hpux11*)
3831 case $host_cpu in
3832 hppa*)
3833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3834 lt_cv_file_magic_cmd=/usr/bin/file
3835 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3837 ia64*)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_cmd=/usr/bin/file
3840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842 esac
3845 irix5* | irix6*)
3846 case $host_os in
3847 irix5*)
3848 # this will be overridden with pass_all, but let us keep it just in case
3849 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3852 case $LD in
3853 *-32|*"-32 ") libmagic=32-bit;;
3854 *-n32|*"-n32 ") libmagic=N32;;
3855 *-64|*"-64 ") libmagic=64-bit;;
3856 *) libmagic=never-match;;
3857 esac
3858 # this will be overridden with pass_all, but let us keep it just in case
3859 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3861 esac
3862 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3866 # This must be Linux ELF.
3867 linux-gnu*)
3868 case $host_cpu in
3869 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3870 lt_cv_deplibs_check_method=pass_all ;;
3872 # glibc up to 2.1.1 does not perform some relocations on ARM
3873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3874 esac
3875 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3878 netbsd*)
3879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3881 else
3882 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3886 newsos6)
3887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3892 osf3* | osf4* | osf5*)
3893 # this will be overridden with pass_all, but let us keep it just in case
3894 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3895 lt_cv_file_magic_test_file=/shlib/libc.so
3896 lt_cv_deplibs_check_method=pass_all
3899 sco3.2v5*)
3900 lt_cv_deplibs_check_method=pass_all
3903 solaris*)
3904 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_file_magic_test_file=/lib/libc.so
3908 sysv5uw[78]* | sysv4*uw2*)
3909 lt_cv_deplibs_check_method=pass_all
3912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3913 case $host_vendor in
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3917 motorola)
3918 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]'
3919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3921 esac
3923 esac
3926 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3927 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3928 file_magic_cmd=$lt_cv_file_magic_cmd
3929 deplibs_check_method=$lt_cv_deplibs_check_method
3935 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3937 # Only perform the check for file, if the check method requires it
3938 case $deplibs_check_method in
3939 file_magic*)
3940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 case $MAGIC_CMD in
3948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3950 ?:/*)
3951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3954 ac_save_MAGIC_CMD="$MAGIC_CMD"
3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3956 ac_dummy="/usr/bin:$PATH"
3957 for ac_dir in $ac_dummy; do
3958 test -z "$ac_dir" && ac_dir=.
3959 if test -f $ac_dir/${ac_tool_prefix}file; then
3960 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3961 if test -n "$file_magic_test_file"; then
3962 case $deplibs_check_method in
3963 "file_magic "*)
3964 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3967 egrep "$file_magic_regex" > /dev/null; then
3969 else
3970 cat <<EOF 1>&2
3972 *** Warning: the command libtool uses to detect shared libraries,
3973 *** $file_magic_cmd, produces output that libtool cannot recognize.
3974 *** The result is that libtool may fail to recognize shared libraries
3975 *** as such. This will affect the creation of libtool libraries that
3976 *** depend on shared libraries, but programs linked with such libtool
3977 *** libraries will work regardless of this problem. Nevertheless, you
3978 *** may want to report the problem to your system manager and/or to
3979 *** bug-libtool@gnu.org
3982 fi ;;
3983 esac
3985 break
3987 done
3988 IFS="$ac_save_ifs"
3989 MAGIC_CMD="$ac_save_MAGIC_CMD"
3991 esac
3994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3995 if test -n "$MAGIC_CMD"; then
3996 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3997 echo "${ECHO_T}$MAGIC_CMD" >&6
3998 else
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 if test -z "$lt_cv_path_MAGIC_CMD"; then
4004 if test -n "$ac_tool_prefix"; then
4005 echo "$as_me:$LINENO: checking for file" >&5
4006 echo $ECHO_N "checking for file... $ECHO_C" >&6
4007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 case $MAGIC_CMD in
4012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4014 ?:/*)
4015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4018 ac_save_MAGIC_CMD="$MAGIC_CMD"
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4020 ac_dummy="/usr/bin:$PATH"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/file; then
4024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4025 if test -n "$file_magic_test_file"; then
4026 case $deplibs_check_method in
4027 "file_magic "*)
4028 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4031 egrep "$file_magic_regex" > /dev/null; then
4033 else
4034 cat <<EOF 1>&2
4036 *** Warning: the command libtool uses to detect shared libraries,
4037 *** $file_magic_cmd, produces output that libtool cannot recognize.
4038 *** The result is that libtool may fail to recognize shared libraries
4039 *** as such. This will affect the creation of libtool libraries that
4040 *** depend on shared libraries, but programs linked with such libtool
4041 *** libraries will work regardless of this problem. Nevertheless, you
4042 *** may want to report the problem to your system manager and/or to
4043 *** bug-libtool@gnu.org
4046 fi ;;
4047 esac
4049 break
4051 done
4052 IFS="$ac_save_ifs"
4053 MAGIC_CMD="$ac_save_MAGIC_CMD"
4055 esac
4058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4059 if test -n "$MAGIC_CMD"; then
4060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4061 echo "${ECHO_T}$MAGIC_CMD" >&6
4062 else
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4067 else
4068 MAGIC_CMD=:
4074 esac
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_RANLIB+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$RANLIB"; then
4085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4103 RANLIB=$ac_cv_prog_RANLIB
4104 if test -n "$RANLIB"; then
4105 echo "$as_me:$LINENO: result: $RANLIB" >&5
4106 echo "${ECHO_T}$RANLIB" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4113 if test -z "$ac_cv_prog_RANLIB"; then
4114 ac_ct_RANLIB=$RANLIB
4115 # Extract the first word of "ranlib", so it can be a program name with args.
4116 set dummy ranlib; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 if test -n "$ac_ct_RANLIB"; then
4123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_RANLIB="ranlib"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4143 if test -n "$ac_ct_RANLIB"; then
4144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4145 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4151 RANLIB=$ac_ct_RANLIB
4152 else
4153 RANLIB="$ac_cv_prog_RANLIB"
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4158 set dummy ${ac_tool_prefix}strip; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_STRIP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 if test -n "$STRIP"; then
4165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4183 STRIP=$ac_cv_prog_STRIP
4184 if test -n "$STRIP"; then
4185 echo "$as_me:$LINENO: result: $STRIP" >&5
4186 echo "${ECHO_T}$STRIP" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4193 if test -z "$ac_cv_prog_STRIP"; then
4194 ac_ct_STRIP=$STRIP
4195 # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP="strip"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4225 echo "${ECHO_T}$ac_ct_STRIP" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4231 STRIP=$ac_ct_STRIP
4232 else
4233 STRIP="$ac_cv_prog_STRIP"
4237 # Check for any special flags to pass to ltconfig.
4238 libtool_flags="--cache-file=$cache_file"
4239 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4240 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4241 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4242 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4243 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4247 if test "${enable_libtool_lock+set}" = set; then
4248 enableval="$enable_libtool_lock"
4251 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4252 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4255 # Check whether --with-pic or --without-pic was given.
4256 if test "${with_pic+set}" = set; then
4257 withval="$with_pic"
4258 pic_mode="$withval"
4259 else
4260 pic_mode=default
4262 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4263 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4265 # Some flags need to be propagated to the compiler or linker for good
4266 # libtool support.
4267 case $host in
4268 *-*-irix6*)
4269 # Find out which ABI we are using.
4270 echo '#line 4270 "configure"' > conftest.$ac_ext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; then
4276 if test "$lt_cv_prog_gnu_ld" = yes; then
4277 case `/usr/bin/file conftest.$ac_objext` in
4278 *32-bit*)
4279 LD="${LD-ld} -melf32bsmip"
4281 *N32*)
4282 LD="${LD-ld} -melf32bmipn32"
4284 *64-bit*)
4285 LD="${LD-ld} -melf64bmip"
4287 esac
4288 else
4289 case `/usr/bin/file conftest.$ac_objext` in
4290 *32-bit*)
4291 LD="${LD-ld} -32"
4293 *N32*)
4294 LD="${LD-ld} -n32"
4296 *64-bit*)
4297 LD="${LD-ld} -64"
4299 esac
4302 rm -rf conftest*
4305 ia64-*-hpux*)
4306 # Find out which ABI we are using.
4307 echo 'int i;' > conftest.$ac_ext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; then
4313 case "`/usr/bin/file conftest.o`" in
4314 *ELF-32*)
4315 HPUX_IA64_MODE="32"
4317 *ELF-64*)
4318 HPUX_IA64_MODE="64"
4320 esac
4322 rm -rf conftest*
4325 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4326 # Find out which ABI we are using.
4327 echo 'int i;' > conftest.$ac_ext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; then
4333 case "`/usr/bin/file conftest.o`" in
4334 *32-bit*)
4335 case $host in
4336 x86_64-*linux*)
4337 LD="${LD-ld} -m elf_i386"
4339 ppc64-*linux*|powerpc64-*linux*)
4340 LD="${LD-ld} -m elf32ppclinux"
4342 s390x-*linux*)
4343 LD="${LD-ld} -m elf_s390"
4345 sparc64-*linux*)
4346 LD="${LD-ld} -m elf32_sparc"
4348 esac
4350 *64-bit*)
4351 case $host in
4352 x86_64-*linux*)
4353 LD="${LD-ld} -m elf_x86_64"
4355 ppc*-*linux*|powerpc*-*linux*)
4356 LD="${LD-ld} -m elf64ppc"
4358 s390*-*linux*)
4359 LD="${LD-ld} -m elf64_s390"
4361 sparc*-*linux*)
4362 LD="${LD-ld} -m elf64_sparc"
4364 esac
4366 esac
4368 rm -rf conftest*
4371 *-*-sco3.2v5*)
4372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4373 SAVE_CFLAGS="$CFLAGS"
4374 CFLAGS="$CFLAGS -belf"
4375 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4376 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4377 if test "${lt_cv_cc_needs_belf+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 if test x$gcc_no_link = xyes; then
4389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4391 { (exit 1); exit 1; }; }
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4402 main ()
4406 return 0;
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 lt_cv_cc_needs_belf=yes
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 lt_cv_cc_needs_belf=no
4428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4437 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4440 CFLAGS="$SAVE_CFLAGS"
4445 esac
4448 # Save cache, so that ltconfig can load it
4449 cat >confcache <<\_ACEOF
4450 # This file is a shell script that caches the results of configure
4451 # tests run on this system so they can be shared between configure
4452 # scripts and configure runs, see configure's option --config-cache.
4453 # It is not useful on other systems. If it contains results you don't
4454 # want to keep, you may remove or edit it.
4456 # config.status only pays attention to the cache file if you give it
4457 # the --recheck option to rerun configure.
4459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4461 # following values.
4463 _ACEOF
4465 # The following way of writing the cache mishandles newlines in values,
4466 # but we know of no workaround that is simple, portable, and efficient.
4467 # So, don't put newlines in cache variables' values.
4468 # Ultrix sh set writes to stderr and can't be redirected directly,
4469 # and sets the high bit in the cache file unless we assign to the vars.
4471 (set) 2>&1 |
4472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473 *ac_space=\ *)
4474 # `set' does not quote correctly, so add quotes (double-quote
4475 # substitution turns \\\\ into \\, and sed turns \\ into \).
4476 sed -n \
4477 "s/'/'\\\\''/g;
4478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4481 # `set' quotes correctly as required by POSIX, so do not add quotes.
4482 sed -n \
4483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4485 esac;
4487 sed '
4488 t clear
4489 : clear
4490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4491 t end
4492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4493 : end' >>confcache
4494 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4495 if test -w $cache_file; then
4496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4497 cat confcache >$cache_file
4498 else
4499 echo "not updating unwritable cache $cache_file"
4502 rm -f confcache
4504 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4505 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4506 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4507 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4508 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4509 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4510 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4511 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4512 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4513 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4514 echo "$as_me: error: libtool configure failed" >&2;}
4515 { (exit 1); exit 1; }; }
4517 # Reload cache, that may have been modified by ltconfig
4518 if test -r "$cache_file"; then
4519 # Some versions of bash will fail to source /dev/null (special
4520 # files actually), so we avoid doing that.
4521 if test -f "$cache_file"; then
4522 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4523 echo "$as_me: loading cache $cache_file" >&6;}
4524 case $cache_file in
4525 [\\/]* | ?:[\\/]* ) . $cache_file;;
4526 *) . ./$cache_file;;
4527 esac
4529 else
4530 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4531 echo "$as_me: creating cache $cache_file" >&6;}
4532 >$cache_file
4536 # This can be used to rebuild libtool when needed
4537 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4539 # Always use our own libtool.
4540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4542 # Redirect the config.log output again, so that the ltconfig log is not
4543 # clobbered by the next message.
4544 exec 5>>./config.log
4546 ac_ext=cc
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4552 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4553 if test -z "$CXXCPP"; then
4554 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 # Double quotes because CXXCPP needs to be expanded
4558 for CXXCPP in "$CXX -E" "/lib/cpp"
4560 ac_preproc_ok=false
4561 for ac_cxx_preproc_warn_flag in '' yes
4563 # Use a header file that comes with gcc, so configuring glibc
4564 # with a fresh cross-compiler works.
4565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4566 # <limits.h> exists even on freestanding compilers.
4567 # On the NeXT, cc -E runs the code through the compiler's parser,
4568 # not just through cpp. "Syntax error" is here to catch this case.
4569 cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 #ifdef __STDC__
4577 # include <limits.h>
4578 #else
4579 # include <assert.h>
4580 #endif
4581 Syntax error
4582 _ACEOF
4583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } >/dev/null; then
4591 if test -s conftest.err; then
4592 ac_cpp_err=$ac_cxx_preproc_warn_flag
4593 else
4594 ac_cpp_err=
4596 else
4597 ac_cpp_err=yes
4599 if test -z "$ac_cpp_err"; then
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Broken: fails on valid input.
4606 continue
4608 rm -f conftest.err conftest.$ac_ext
4610 # OK, works on sane cases. Now check whether non-existent headers
4611 # can be detected and how.
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } >/dev/null; then
4629 if test -s conftest.err; then
4630 ac_cpp_err=$ac_cxx_preproc_warn_flag
4631 else
4632 ac_cpp_err=
4634 else
4635 ac_cpp_err=yes
4637 if test -z "$ac_cpp_err"; then
4638 # Broken: success on invalid input.
4639 continue
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 # Passes both tests.
4645 ac_preproc_ok=:
4646 break
4648 rm -f conftest.err conftest.$ac_ext
4650 done
4651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652 rm -f conftest.err conftest.$ac_ext
4653 if $ac_preproc_ok; then
4654 break
4657 done
4658 ac_cv_prog_CXXCPP=$CXXCPP
4661 CXXCPP=$ac_cv_prog_CXXCPP
4662 else
4663 ac_cv_prog_CXXCPP=$CXXCPP
4665 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4666 echo "${ECHO_T}$CXXCPP" >&6
4667 ac_preproc_ok=false
4668 for ac_cxx_preproc_warn_flag in '' yes
4670 # Use a header file that comes with gcc, so configuring glibc
4671 # with a fresh cross-compiler works.
4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 # <limits.h> exists even on freestanding compilers.
4674 # On the NeXT, cc -E runs the code through the compiler's parser,
4675 # not just through cpp. "Syntax error" is here to catch this case.
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688 Syntax error
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_cxx_preproc_warn_flag
4700 else
4701 ac_cpp_err=
4703 else
4704 ac_cpp_err=yes
4706 if test -z "$ac_cpp_err"; then
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 # Broken: fails on valid input.
4713 continue
4715 rm -f conftest.err conftest.$ac_ext
4717 # OK, works on sane cases. Now check whether non-existent headers
4718 # can be detected and how.
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null; then
4736 if test -s conftest.err; then
4737 ac_cpp_err=$ac_cxx_preproc_warn_flag
4738 else
4739 ac_cpp_err=
4741 else
4742 ac_cpp_err=yes
4744 if test -z "$ac_cpp_err"; then
4745 # Broken: success on invalid input.
4746 continue
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 # Passes both tests.
4752 ac_preproc_ok=:
4753 break
4755 rm -f conftest.err conftest.$ac_ext
4757 done
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then
4762 else
4763 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&5
4765 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4766 See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; }
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4779 lt_save_CC="$CC"
4780 lt_save_CFLAGS="$CFLAGS"
4781 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4782 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4783 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4784 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4785 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4786 deplibs_check_method="$deplibs_check_method" \
4787 file_magic_cmd="$file_magic_cmd" \
4788 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4789 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4790 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4791 echo "$as_me: error: libtool tag configuration failed" >&2;}
4792 { (exit 1); exit 1; }; }
4793 CC="$lt_save_CC"
4794 CFLAGS="$lt_save_CFLAGS"
4796 # Redirect the config.log output again, so that the ltconfig log is not
4797 # clobbered by the next message.
4798 exec 5>>./config.log
4807 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4809 # Possibly disable most of the library.
4810 ## XXX Consider skipping unncessary tests altogether in this case, rather
4811 ## than just ignoring the results. Faster /and/ more correct, win win.
4813 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4814 if test "${enable_hosted_libstdcxx+set}" = set; then
4815 enableval="$enable_hosted_libstdcxx"
4817 else
4818 enable_hosted_libstdcxx=yes
4820 if test "$enable_hosted_libstdcxx" = no; then
4821 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4822 echo "$as_me: Only freestanding libraries will be built" >&6;}
4823 is_hosted=no
4824 hosted_define=0
4825 enable_abi_check=no
4826 enable_libstdcxx_pch=no
4827 else
4828 is_hosted=yes
4829 hosted_define=1
4833 cat >>confdefs.h <<_ACEOF
4834 #define _GLIBCXX_HOSTED $hosted_define
4835 _ACEOF
4839 # Check for support bits and g++ features that don't require linking.
4841 echo "$as_me:$LINENO: checking for exception model to use" >&5
4842 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4845 ac_ext=cc
4846 ac_cpp='$CXXCPP $CPPFLAGS'
4847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4851 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4852 if test "${enable_sjlj_exceptions+set}" = set; then
4853 enableval="$enable_sjlj_exceptions"
4855 case "$enableval" in
4856 yes|no|auto) ;;
4857 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4858 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4860 esac
4862 else
4863 enable_sjlj_exceptions=auto
4867 if test $enable_sjlj_exceptions = auto; then
4868 # Botheration. Now we've got to detect the exception model. Link tests
4869 # against libgcc.a are problematic since we've not been given proper -L
4870 # bits for single-tree newlib and libgloss.
4872 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4873 cat > conftest.$ac_ext << EOF
4874 #line 4874 "configure"
4875 struct S { ~S(); };
4876 void bar();
4877 void foo()
4879 S s;
4880 bar();
4883 old_CXXFLAGS="$CXXFLAGS"
4884 CXXFLAGS=-S
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; then
4890 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4891 enable_sjlj_exceptions=yes
4892 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4893 enable_sjlj_exceptions=no
4896 CXXFLAGS="$old_CXXFLAGS"
4897 rm -f conftest*
4900 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4901 # to two different models.
4902 case $enable_sjlj_exceptions in
4903 yes)
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4907 _ACEOF
4909 ac_exception_model_name=sjlj
4912 ac_exception_model_name="call frame"
4915 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4916 echo "$as_me: error: unable to detect exception model" >&2;}
4917 { (exit 1); exit 1; }; }
4919 esac
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4927 echo "${ECHO_T}$ac_exception_model_name" >&6
4930 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4931 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4932 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4933 if test "${enable_libunwind_exceptions+set}" = set; then
4934 enableval="$enable_libunwind_exceptions"
4936 case "$enableval" in
4937 yes|no) ;;
4938 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4939 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941 esac
4943 else
4944 enable_libunwind_exceptions=no
4947 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4948 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4949 if test $enable_libunwind_exceptions = yes; then
4950 LIBUNWIND_FLAG="-lunwind"
4951 else
4952 LIBUNWIND_FLAG=""
4957 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4958 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4959 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4960 if test "${enable_libstdcxx_pch+set}" = set; then
4961 enableval="$enable_libstdcxx_pch"
4963 case "$enableval" in
4964 yes|no) ;;
4965 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4966 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4968 esac
4970 else
4971 enable_libstdcxx_pch=$is_hosted
4974 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4975 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4977 if test $enable_libstdcxx_pch = yes; then
4978 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4979 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4980 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 ac_save_CXXFLAGS="$CXXFLAGS"
4984 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4987 ac_ext=cc
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993 echo '#include <math.h>' > conftest.h
4994 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4995 -o conftest.h.gch 1>&5 2>&1 &&
4996 echo '#error "pch failed"' > conftest.h &&
4997 echo '#include "conftest.h"' > conftest.cc &&
4998 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4999 then
5000 glibcxx_cv_prog_CXX_pch=yes
5001 else
5002 glibcxx_cv_prog_CXX_pch=no
5004 rm -f conftest*
5005 CXXFLAGS=$ac_save_CXXFLAGS
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5015 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5016 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5020 if test $enable_libstdcxx_pch = yes; then
5021 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5022 else
5023 glibcxx_PCHFLAGS=""
5028 # Enable all the variable C++ runtime options.
5029 # NB: C_MBCHAR must come early.
5031 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5032 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5033 # Check whether --enable-cstdio or --disable-cstdio was given.
5034 if test "${enable_cstdio+set}" = set; then
5035 enableval="$enable_cstdio"
5037 case "$enableval" in
5038 stdio) ;;
5039 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5040 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac
5044 else
5045 enable_cstdio=stdio
5049 # Now that libio has been removed, you can have any color you want as long
5050 # as it's black. This is one big no-op until other packages are added, but
5051 # showing the framework never hurts.
5052 case ${enable_cstdio} in
5053 stdio)
5054 CSTDIO_H=config/io/c_io_stdio.h
5055 BASIC_FILE_H=config/io/basic_file_stdio.h
5056 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5057 echo "$as_me:$LINENO: result: stdio" >&5
5058 echo "${ECHO_T}stdio" >&6
5060 esac
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5073 # On Suns, sometimes $CPP names a directory.
5074 if test -n "$CPP" && test -d "$CPP"; then
5075 CPP=
5077 if test -z "$CPP"; then
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 ac_preproc_ok=false
5085 for ac_c_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #ifdef __STDC__
5101 # include <limits.h>
5102 #else
5103 # include <assert.h>
5104 #endif
5105 Syntax error
5106 _ACEOF
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_c_preproc_warn_flag
5117 else
5118 ac_cpp_err=
5120 else
5121 ac_cpp_err=yes
5123 if test -z "$ac_cpp_err"; then
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Broken: fails on valid input.
5130 continue
5132 rm -f conftest.err conftest.$ac_ext
5134 # OK, works on sane cases. Now check whether non-existent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <ac_nonexistent.h>
5144 _ACEOF
5145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_c_preproc_warn_flag
5155 else
5156 ac_cpp_err=
5158 else
5159 ac_cpp_err=yes
5161 if test -z "$ac_cpp_err"; then
5162 # Broken: success on invalid input.
5163 continue
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Passes both tests.
5169 ac_preproc_ok=:
5170 break
5172 rm -f conftest.err conftest.$ac_ext
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5178 break
5181 done
5182 ac_cv_prog_CPP=$CPP
5185 CPP=$ac_cv_prog_CPP
5186 else
5187 ac_cv_prog_CPP=$CPP
5189 echo "$as_me:$LINENO: result: $CPP" >&5
5190 echo "${ECHO_T}$CPP" >&6
5191 ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #ifdef __STDC__
5208 # include <limits.h>
5209 #else
5210 # include <assert.h>
5211 #endif
5212 Syntax error
5213 _ACEOF
5214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 else
5225 ac_cpp_err=
5227 else
5228 ac_cpp_err=yes
5230 if test -z "$ac_cpp_err"; then
5232 else
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 # Broken: fails on valid input.
5237 continue
5239 rm -f conftest.err conftest.$ac_ext
5241 # OK, works on sane cases. Now check whether non-existent headers
5242 # can be detected and how.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <ac_nonexistent.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 else
5263 ac_cpp_err=
5265 else
5266 ac_cpp_err=yes
5268 if test -z "$ac_cpp_err"; then
5269 # Broken: success on invalid input.
5270 continue
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 # Passes both tests.
5276 ac_preproc_ok=:
5277 break
5279 rm -f conftest.err conftest.$ac_ext
5281 done
5282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5283 rm -f conftest.err conftest.$ac_ext
5284 if $ac_preproc_ok; then
5286 else
5287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5288 See \`config.log' for more details." >&5
5289 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5290 See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5294 ac_ext=c
5295 ac_cpp='$CPP $CPPFLAGS'
5296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 echo "$as_me:$LINENO: checking for egrep" >&5
5302 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5303 if test "${ac_cv_prog_egrep+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5307 then ac_cv_prog_egrep='grep -E'
5308 else ac_cv_prog_egrep='egrep'
5311 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5312 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5313 EGREP=$ac_cv_prog_egrep
5316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5318 if test "${ac_cv_header_stdc+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <stdlib.h>
5329 #include <stdarg.h>
5330 #include <string.h>
5331 #include <float.h>
5334 main ()
5338 return 0;
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_header_stdc=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_header_stdc=no
5360 rm -f conftest.$ac_objext conftest.$ac_ext
5362 if test $ac_cv_header_stdc = yes; then
5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364 cat >conftest.$ac_ext <<_ACEOF
5365 #line $LINENO "configure"
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <string.h>
5373 _ACEOF
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "memchr" >/dev/null 2>&1; then
5377 else
5378 ac_cv_header_stdc=no
5380 rm -f conftest*
5384 if test $ac_cv_header_stdc = yes; then
5385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5386 cat >conftest.$ac_ext <<_ACEOF
5387 #line $LINENO "configure"
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <stdlib.h>
5395 _ACEOF
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "free" >/dev/null 2>&1; then
5399 else
5400 ac_cv_header_stdc=no
5402 rm -f conftest*
5406 if test $ac_cv_header_stdc = yes; then
5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5408 if test "$cross_compiling" = yes; then
5410 else
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <ctype.h>
5419 #if ((' ' & 0x0FF) == 0x020)
5420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5422 #else
5423 # define ISLOWER(c) \
5424 (('a' <= (c) && (c) <= 'i') \
5425 || ('j' <= (c) && (c) <= 'r') \
5426 || ('s' <= (c) && (c) <= 'z'))
5427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #endif
5430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 main ()
5434 int i;
5435 for (i = 0; i < 256; i++)
5436 if (XOR (islower (i), ISLOWER (i))
5437 || toupper (i) != TOUPPER (i))
5438 exit(2);
5439 exit (0);
5441 _ACEOF
5442 rm -f conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5454 else
5455 echo "$as_me: program exited with status $ac_status" >&5
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 ( exit $ac_status )
5460 ac_cv_header_stdc=no
5462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5467 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5468 if test $ac_cv_header_stdc = yes; then
5470 cat >>confdefs.h <<\_ACEOF
5471 #define STDC_HEADERS 1
5472 _ACEOF
5476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5487 inttypes.h stdint.h unistd.h
5489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 $ac_includes_default
5504 #include <$ac_header>
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 eval "$as_ac_Header=yes"
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 eval "$as_ac_Header=no"
5525 rm -f conftest.$ac_objext conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5530 cat >>confdefs.h <<_ACEOF
5531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532 _ACEOF
5536 done
5540 echo "$as_me:$LINENO: checking for C locale to use" >&5
5541 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5542 # Check whether --enable-clocale or --disable-clocale was given.
5543 if test "${enable_clocale+set}" = set; then
5544 enableval="$enable_clocale"
5546 case "$enableval" in
5547 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5548 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5549 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5551 esac
5553 else
5554 enable_clocale=auto
5558 # If they didn't use this option switch, or if they specified --enable
5559 # with no specific model, we'll have to look for one. If they
5560 # specified --disable (???), do likewise.
5561 if test $enable_clocale = no || test $enable_clocale = yes; then
5562 enable_clocale=auto
5565 # Either a known package, or "auto"
5566 enable_clocale_flag=$enable_clocale
5568 # Probe for locale support if no specific model is specified.
5569 # Default to "generic".
5570 if test $enable_clocale_flag = auto; then
5571 case x${target_os} in
5572 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5573 cat >conftest.$ac_ext <<_ACEOF
5574 #line $LINENO "configure"
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 #include <features.h>
5582 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5583 _GLIBCXX_ok
5584 #endif
5586 _ACEOF
5587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5589 enable_clocale_flag=gnu
5590 else
5591 enable_clocale_flag=generic
5593 rm -f conftest*
5596 # Test for bugs early in glibc-2.2.x series
5597 if test x$enable_clocale_flag = xgnu; then
5598 if test "$cross_compiling" = yes; then
5599 enable_clocale_flag=generic
5600 else
5601 cat >conftest.$ac_ext <<_ACEOF
5602 #line $LINENO "configure"
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 #define _GNU_SOURCE 1
5610 #include <locale.h>
5611 #include <string.h>
5612 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5613 extern __typeof(newlocale) __newlocale;
5614 extern __typeof(duplocale) __duplocale;
5615 extern __typeof(strcoll_l) __strcoll_l;
5616 #endif
5617 int main()
5619 const char __one[] = "Äuglein Augmen";
5620 const char __two[] = "Äuglein";
5621 int i;
5622 int j;
5623 __locale_t loc;
5624 __locale_t loc_dup;
5625 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5626 loc_dup = __duplocale(loc);
5627 i = __strcoll_l(__one, __two, loc);
5628 j = __strcoll_l(__one, __two, loc_dup);
5629 return 0;
5632 _ACEOF
5633 rm -f conftest$ac_exeext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 enable_clocale_flag=gnu
5645 else
5646 echo "$as_me: program exited with status $ac_status" >&5
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ( exit $ac_status )
5651 enable_clocale_flag=generic
5653 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5657 # ... at some point put __strxfrm_l tests in as well.
5660 enable_clocale_flag=generic
5662 esac
5665 # Deal with gettext issues. Default to not using it (=no) until we detect
5666 # support for it later. Let the user turn it off via --e/d, but let that
5667 # default to on for easier handling.
5668 USE_NLS=no
5669 # Check whether --enable-nls or --disable-nls was given.
5670 if test "${enable_nls+set}" = set; then
5671 enableval="$enable_nls"
5673 else
5674 enable_nls=yes
5677 # Set configure bits for specified locale package
5678 case ${enable_clocale_flag} in
5679 generic)
5680 echo "$as_me:$LINENO: result: generic" >&5
5681 echo "${ECHO_T}generic" >&6
5683 CLOCALE_H=config/locale/generic/c_locale.h
5684 CLOCALE_CC=config/locale/generic/c_locale.cc
5685 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5686 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5687 CCOLLATE_CC=config/locale/generic/collate_members.cc
5688 CCTYPE_CC=config/locale/generic/ctype_members.cc
5689 CMESSAGES_H=config/locale/generic/messages_members.h
5690 CMESSAGES_CC=config/locale/generic/messages_members.cc
5691 CMONEY_CC=config/locale/generic/monetary_members.cc
5692 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5693 CTIME_H=config/locale/generic/time_members.h
5694 CTIME_CC=config/locale/generic/time_members.cc
5695 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5697 gnu)
5698 echo "$as_me:$LINENO: result: gnu" >&5
5699 echo "${ECHO_T}gnu" >&6
5701 # Declare intention to use gettext, and add support for specific
5702 # languages.
5703 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5704 ALL_LINGUAS="de fr"
5706 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5707 # Extract the first word of "msgfmt", so it can be a program name with args.
5708 set dummy msgfmt; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714 if test -n "$check_msgfmt"; then
5715 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_check_msgfmt="yes"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5728 done
5729 done
5731 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5734 check_msgfmt=$ac_cv_prog_check_msgfmt
5735 if test -n "$check_msgfmt"; then
5736 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5737 echo "${ECHO_T}$check_msgfmt" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6
5743 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5744 USE_NLS=yes
5746 # Export the build objects.
5747 for ling in $ALL_LINGUAS; do \
5748 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5749 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5750 done
5754 CLOCALE_H=config/locale/gnu/c_locale.h
5755 CLOCALE_CC=config/locale/gnu/c_locale.cc
5756 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5757 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5758 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5759 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5760 CMESSAGES_H=config/locale/gnu/messages_members.h
5761 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5762 CMONEY_CC=config/locale/gnu/monetary_members.cc
5763 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5764 CTIME_H=config/locale/gnu/time_members.h
5765 CTIME_CC=config/locale/gnu/time_members.cc
5766 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5768 ieee_1003.1-2001)
5769 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5770 echo "${ECHO_T}IEEE 1003.1" >&6
5772 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5773 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5774 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5775 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5776 CCOLLATE_CC=config/locale/generic/collate_members.cc
5777 CCTYPE_CC=config/locale/generic/ctype_members.cc
5778 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5779 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5780 CMONEY_CC=config/locale/generic/monetary_members.cc
5781 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5782 CTIME_H=config/locale/generic/time_members.h
5783 CTIME_CC=config/locale/generic/time_members.cc
5784 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5786 esac
5788 # This is where the testsuite looks for locale catalogs, using the
5789 # -DLOCALEDIR define during testsuite compilation.
5790 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5793 # A standalone libintl (e.g., GNU libintl) may be in use.
5794 if test $USE_NLS = yes; then
5796 for ac_header in libintl.h
5798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807 else
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 #line $LINENO "configure"
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 $ac_includes_default
5819 #include <$ac_header>
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_header_compiler=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_header_compiler=no
5840 rm -f conftest.$ac_objext conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5842 echo "${ECHO_T}$ac_header_compiler" >&6
5844 # Is the header present?
5845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <$ac_header>
5855 _ACEOF
5856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } >/dev/null; then
5864 if test -s conftest.err; then
5865 ac_cpp_err=$ac_c_preproc_warn_flag
5866 else
5867 ac_cpp_err=
5869 else
5870 ac_cpp_err=yes
5872 if test -z "$ac_cpp_err"; then
5873 ac_header_preproc=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_header_preproc=no
5880 rm -f conftest.err conftest.$ac_ext
5881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5882 echo "${ECHO_T}$ac_header_preproc" >&6
5884 # So? What about this header?
5885 case $ac_header_compiler:$ac_header_preproc in
5886 yes:no )
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5892 cat <<\_ASBOX
5893 ## ------------------------------------ ##
5894 ## Report this to bug-autoconf@gnu.org. ##
5895 ## ------------------------------------ ##
5896 _ASBOX
5898 sed "s/^/$as_me: WARNING: /" >&2
5900 no:yes )
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5908 cat <<\_ASBOX
5909 ## ------------------------------------ ##
5910 ## Report this to bug-autoconf@gnu.org. ##
5911 ## ------------------------------------ ##
5912 _ASBOX
5914 sed "s/^/$as_me: WARNING: /" >&2
5916 esac
5917 echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 eval "$as_ac_Header=$ac_header_preproc"
5924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5929 cat >>confdefs.h <<_ACEOF
5930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5931 _ACEOF
5933 else
5934 USE_NLS=no
5937 done
5939 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5940 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5941 if test "${ac_cv_search_gettext+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 ac_func_search_save_LIBS=$LIBS
5945 ac_cv_search_gettext=no
5946 if test x$gcc_no_link = xyes; then
5947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5949 { (exit 1); exit 1; }; }
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5959 /* Override any gcc2 internal prototype to avoid an error. */
5960 #ifdef __cplusplus
5961 extern "C"
5962 #endif
5963 /* We use char because int might match the return type of a gcc2
5964 builtin and then its argument prototype would still apply. */
5965 char gettext ();
5967 main ()
5969 gettext ();
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976 (eval $ac_link) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest$ac_exeext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_search_gettext="none required"
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5993 if test "$ac_cv_search_gettext" = no; then
5994 for ac_lib in intl; do
5995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5996 if test x$gcc_no_link = xyes; then
5997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5999 { (exit 1); exit 1; }; }
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6015 char gettext ();
6017 main ()
6019 gettext ();
6021 return 0;
6023 _ACEOF
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -s conftest$ac_exeext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 ac_cv_search_gettext="-l$ac_lib"
6037 break
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6044 done
6046 LIBS=$ac_func_search_save_LIBS
6048 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6049 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6050 if test "$ac_cv_search_gettext" != no; then
6051 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6053 else
6054 USE_NLS=no
6058 if test $USE_NLS = yes; then
6059 cat >>confdefs.h <<\_ACEOF
6060 #define _GLIBCXX_USE_NLS 1
6061 _ACEOF
6081 # Check whether --enable-cheaders or --disable-cheaders was given.
6082 if test "${enable_cheaders+set}" = set; then
6083 enableval="$enable_cheaders"
6085 case "$enableval" in
6086 c|c_std) ;;
6087 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6088 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6089 { (exit 1); exit 1; }; } ;;
6090 esac
6092 else
6093 enable_cheaders=$c_model
6096 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6097 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6099 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6106 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6107 if test "${enable_c_mbchar+set}" = set; then
6108 enableval="$enable_c_mbchar"
6110 case "$enableval" in
6111 yes|no) ;;
6112 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6113 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6114 { (exit 1); exit 1; }; } ;;
6115 esac
6117 else
6118 enable_c_mbchar=yes
6121 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6125 # Check whether --enable-c99 or --disable-c99 was given.
6126 if test "${enable_c99+set}" = set; then
6127 enableval="$enable_c99"
6129 case "$enableval" in
6130 yes|no) ;;
6131 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6132 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6133 { (exit 1); exit 1; }; } ;;
6134 esac
6136 else
6137 enable_c99=yes
6143 ac_ext=cc
6144 ac_cpp='$CXXCPP $CPPFLAGS'
6145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150 # Check for the existence of <math.h> functions used if C99 is enabled.
6151 ac_c99_math=yes;
6152 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6153 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <math.h>
6163 main ()
6165 fpclassify(0.0);
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_c99_math=no
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6190 cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <math.h>
6199 main ()
6201 isfinite(0.0);
6203 return 0;
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_c99_math=no
6225 rm -f conftest.$ac_objext conftest.$ac_ext
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 #include <math.h>
6235 main ()
6237 isinf(0.0);
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_c99_math=no
6261 rm -f conftest.$ac_objext conftest.$ac_ext
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 #include <math.h>
6271 main ()
6273 isnan(0.0);
6275 return 0;
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_c99_math=no
6297 rm -f conftest.$ac_objext conftest.$ac_ext
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line $LINENO "configure"
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <math.h>
6307 main ()
6309 isnormal(0.0);
6311 return 0;
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_c99_math=no
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <math.h>
6343 main ()
6345 signbit(0.0);
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_c99_math=no
6369 rm -f conftest.$ac_objext conftest.$ac_ext
6370 cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <math.h>
6379 main ()
6381 isgreater(0.0,0.0);
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_c99_math=no
6405 rm -f conftest.$ac_objext conftest.$ac_ext
6406 cat >conftest.$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <math.h>
6415 main ()
6417 isgreaterequal(0.0,0.0);
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_c99_math=no
6441 rm -f conftest.$ac_objext conftest.$ac_ext
6442 cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <math.h>
6451 main ()
6453 isless(0.0,0.0);
6455 return 0;
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_c99_math=no
6477 rm -f conftest.$ac_objext conftest.$ac_ext
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 #include <math.h>
6487 main ()
6489 islessequal(0.0,0.0);
6491 return 0;
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 ac_c99_math=no
6513 rm -f conftest.$ac_objext conftest.$ac_ext
6514 cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <math.h>
6523 main ()
6525 islessgreater(0.0,0.0);
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_c99_math=no
6549 rm -f conftest.$ac_objext conftest.$ac_ext
6550 cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <math.h>
6559 main ()
6561 isunordered(0.0,0.0);
6563 return 0;
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -s conftest.$ac_objext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_c99_math=no
6585 rm -f conftest.$ac_objext conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6587 echo "${ECHO_T}$ac_c99_math" >&6
6589 # Check for the existence in <stdio.h> of vscanf, et. al.
6590 ac_c99_stdio=yes;
6591 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6592 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6593 cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <stdio.h>
6602 main ()
6604 snprintf("12", 0, "%i");
6606 return 0;
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 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_stdio=no
6628 rm -f conftest.$ac_objext conftest.$ac_ext
6629 cat >conftest.$ac_ext <<_ACEOF
6630 #line $LINENO "configure"
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 #include <stdio.h>
6637 #include <stdarg.h>
6638 void foo(char* fmt, ...)
6639 {va_list args; va_start(args, fmt);
6640 vfscanf(stderr, "%i", args);}
6642 main ()
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 ac_c99_stdio=no
6668 rm -f conftest.$ac_objext conftest.$ac_ext
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <stdio.h>
6677 #include <stdarg.h>
6678 void foo(char* fmt, ...)
6679 {va_list args; va_start(args, fmt);
6680 vscanf("%i", args);}
6682 main ()
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>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_c99_stdio=no
6708 rm -f conftest.$ac_objext conftest.$ac_ext
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <stdio.h>
6717 #include <stdarg.h>
6718 void foo(char* fmt, ...)
6719 {va_list args; va_start(args, fmt);
6720 vsnprintf(fmt, 0, "%i", args);}
6722 main ()
6726 return 0;
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -s conftest.$ac_objext'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6742 else
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 ac_c99_stdio=no
6748 rm -f conftest.$ac_objext conftest.$ac_ext
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <stdio.h>
6757 #include <stdarg.h>
6758 void foo(char* fmt, ...)
6759 {va_list args; va_start(args, fmt);
6760 vsscanf(fmt, "%i", args);}
6762 main ()
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_c99_stdio=no
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6790 echo "${ECHO_T}$ac_c99_stdio" >&6
6792 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6793 ac_c99_stdlib=yes;
6794 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6795 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6796 if test "${ac_c99_lldiv_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <stdlib.h>
6809 main ()
6811 lldiv_t mydivt;
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_c99_lldiv_t=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_c99_lldiv_t=no
6835 rm -f conftest.$ac_objext conftest.$ac_ext
6839 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6840 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6842 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6843 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <stdlib.h>
6853 main ()
6855 char* tmp; strtof("gnu", &tmp);
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_c99_stdlib=no
6879 rm -f conftest.$ac_objext conftest.$ac_ext
6880 cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <stdlib.h>
6889 main ()
6891 char* tmp; strtold("gnu", &tmp);
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_c99_stdlib=no
6915 rm -f conftest.$ac_objext conftest.$ac_ext
6916 cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #include <stdlib.h>
6925 main ()
6927 llabs(10);
6929 return 0;
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_c99_stdlib=no
6951 rm -f conftest.$ac_objext conftest.$ac_ext
6952 cat >conftest.$ac_ext <<_ACEOF
6953 #line $LINENO "configure"
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 #include <stdlib.h>
6961 main ()
6963 lldiv(10,1);
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_c99_stdlib=no
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <stdlib.h>
6997 main ()
6999 atoll("10");
7001 return 0;
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_c99_stdlib=no
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 #include <stdlib.h>
7033 main ()
7035 _Exit(0);
7037 return 0;
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7053 else
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7057 ac_c99_stdlib=no
7059 rm -f conftest.$ac_objext conftest.$ac_ext
7060 if test x"$ac_c99_lldiv_t" = x"no"; then
7061 ac_c99_stdlib=no;
7063 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7064 echo "${ECHO_T}$ac_c99_stdlib" >&6
7066 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7067 # XXX the wchar.h checks should be rolled into the general C99 bits.
7068 ac_c99_wchar=yes;
7069 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7070 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7071 cat >conftest.$ac_ext <<_ACEOF
7072 #line $LINENO "configure"
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <wchar.h>
7080 main ()
7082 wcstold(L"10.0", NULL);
7084 return 0;
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_c99_wchar=no
7106 rm -f conftest.$ac_objext conftest.$ac_ext
7107 cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <wchar.h>
7116 main ()
7118 wcstoll(L"10", NULL, 10);
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_c99_wchar=no
7142 rm -f conftest.$ac_objext conftest.$ac_ext
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #include <wchar.h>
7152 main ()
7154 wcstoull(L"10", NULL, 10);
7156 return 0;
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest.$ac_objext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_c99_wchar=no
7178 rm -f conftest.$ac_objext conftest.$ac_ext
7179 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7180 echo "${ECHO_T}$ac_c99_wchar" >&6
7182 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7183 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7184 if test x"$ac_c99_math" = x"no" ||
7185 test x"$ac_c99_stdio" = x"no" ||
7186 test x"$ac_c99_stdlib" = x"no" ||
7187 test x"$ac_c99_wchar" = x"no"; then
7188 enable_c99=no;
7190 echo "$as_me:$LINENO: result: $enable_c99" >&5
7191 echo "${ECHO_T}$enable_c99" >&6
7193 # Option parsed, now set things appropriately
7194 if test x"$enable_c99" = x"yes"; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define _GLIBCXX_USE_C99 1
7197 _ACEOF
7201 ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209 # Check whether --enable-long-long or --disable-long-long was given.
7210 if test "${enable_long_long+set}" = set; then
7211 enableval="$enable_long_long"
7213 case "$enableval" in
7214 yes|no) ;;
7215 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7216 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7217 { (exit 1); exit 1; }; } ;;
7218 esac
7220 else
7221 enable_long_long=yes
7227 ac_ext=cc
7228 ac_cpp='$CXXCPP $CPPFLAGS'
7229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7234 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7235 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7236 # iostreams require strtoll, strtoull to compile
7237 cat >conftest.$ac_ext <<_ACEOF
7238 #line $LINENO "configure"
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <stdlib.h>
7246 main ()
7248 char* tmp; strtoll("gnu", &tmp, 10);
7250 return 0;
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 enable_long_long=no
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <stdlib.h>
7282 main ()
7284 char* tmp; strtoull("gnu", &tmp, 10);
7286 return 0;
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 enable_long_long=no
7308 rm -f conftest.$ac_objext conftest.$ac_ext
7310 # Option parsed, now set things appropriately
7311 if test $enable_long_long = yes; then
7312 cat >>confdefs.h <<\_ACEOF
7313 #define _GLIBCXX_USE_LONG_LONG 1
7314 _ACEOF
7317 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7318 echo "${ECHO_T}$enable_long_long" >&6
7320 ac_ext=c
7321 ac_cpp='$CPP $CPPFLAGS'
7322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7329 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7330 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7331 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7332 echo "${ECHO_T}$target_thread_file" >&6
7334 if test $target_thread_file != single; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define HAVE_GTHR_DEFAULT 1
7337 _ACEOF
7339 cat >>confdefs.h <<\_ACEOF
7340 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7341 _ACEOF
7345 glibcxx_thread_h=gthr-$target_thread_file.h
7349 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7350 if test "${enable_concept_checks+set}" = set; then
7351 enableval="$enable_concept_checks"
7353 case "$enableval" in
7354 yes|no) ;;
7355 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7356 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7357 { (exit 1); exit 1; }; } ;;
7358 esac
7360 else
7361 enable_concept_checks=no
7364 if test $enable_concept_checks = yes; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define _GLIBCXX_CONCEPT_CHECKS 1
7367 _ACEOF
7372 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7373 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7374 enableval="$enable_libstdcxx_debug_flags"
7375 case "x$enable_libstdcxx_debug_flags" in
7376 xno | x) enable_libstdcxx_debug_flags= ;;
7377 x-*) ;;
7378 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7379 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7380 { (exit 1); exit 1; }; } ;;
7381 esac
7382 else
7383 enable_libstdcxx_debug_flags="-g3 -O0"
7387 # Option parsed, now set things appropriately
7388 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7391 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7392 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7395 echo "$as_me:$LINENO: checking for additional debug build" >&5
7396 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7397 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7398 if test "${enable_libstdcxx_debug+set}" = set; then
7399 enableval="$enable_libstdcxx_debug"
7401 case "$enableval" in
7402 yes|no) ;;
7403 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7404 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7405 { (exit 1); exit 1; }; } ;;
7406 esac
7408 else
7409 enable_libstdcxx_debug=no
7412 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7413 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7416 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7417 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7418 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7419 if test "${enable_cxx_flags+set}" = set; then
7420 enableval="$enable_cxx_flags"
7421 case "x$enable_cxx_flags" in
7422 xno | x) enable_cxx_flags= ;;
7423 x-*) ;;
7424 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7425 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7426 { (exit 1); exit 1; }; } ;;
7427 esac
7428 else
7429 enable_cxx_flags=
7433 # Run through flags (either default or command-line) and set anything
7434 # extra (e.g., #defines) that must accompany particular g++ options.
7435 if test -n "$enable_cxx_flags"; then
7436 for f in $enable_cxx_flags; do
7437 case "$f" in
7438 -fhonor-std) ;;
7439 -*) ;;
7440 *) # and we're trying to pass /what/ exactly?
7441 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7442 echo "$as_me: error: compiler flags start with a -" >&2;}
7443 { (exit 1); exit 1; }; } ;;
7444 esac
7445 done
7448 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7449 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7450 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7454 # No surprises, no surprises...
7455 if test $atomicity_include_dir = cpu/generic ; then
7456 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7457 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7458 if test $target_thread_file = single; then
7459 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7460 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7461 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7462 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7463 else
7464 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7465 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7466 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7467 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7472 if $GLIBCXX_IS_NATIVE; then
7474 # We can do more elaborate tests that assume a working linker.
7475 CANADIAN=no
7477 # Check for available headers.
7491 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7492 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7493 sys/types.h
7495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497 echo "$as_me:$LINENO: checking for $ac_header" >&5
7498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7504 else
7505 # Is the header compilable?
7506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 /* confdefs.h. */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 $ac_includes_default
7516 #include <$ac_header>
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7520 (eval $ac_compile) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_header_compiler=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_header_compiler=no
7537 rm -f conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539 echo "${ECHO_T}$ac_header_compiler" >&6
7541 # Is the header present?
7542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 #include <$ac_header>
7552 _ACEOF
7553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } >/dev/null; then
7561 if test -s conftest.err; then
7562 ac_cpp_err=$ac_c_preproc_warn_flag
7563 else
7564 ac_cpp_err=
7566 else
7567 ac_cpp_err=yes
7569 if test -z "$ac_cpp_err"; then
7570 ac_header_preproc=yes
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_header_preproc=no
7577 rm -f conftest.err conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7579 echo "${ECHO_T}$ac_header_preproc" >&6
7581 # So? What about this header?
7582 case $ac_header_compiler:$ac_header_preproc in
7583 yes:no )
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7589 cat <<\_ASBOX
7590 ## ------------------------------------ ##
7591 ## Report this to bug-autoconf@gnu.org. ##
7592 ## ------------------------------------ ##
7593 _ASBOX
7595 sed "s/^/$as_me: WARNING: /" >&2
7597 no:yes )
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7605 cat <<\_ASBOX
7606 ## ------------------------------------ ##
7607 ## Report this to bug-autoconf@gnu.org. ##
7608 ## ------------------------------------ ##
7609 _ASBOX
7611 sed "s/^/$as_me: WARNING: /" >&2
7613 esac
7614 echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 eval "$as_ac_Header=$ac_header_preproc"
7621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7626 cat >>confdefs.h <<_ACEOF
7627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7628 _ACEOF
7632 done
7636 # All these tests are for C++; save the language and the compiler flags.
7637 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7638 # found in GLIBCXX_CONFIGURE.
7641 ac_ext=cc
7642 ac_cpp='$CXXCPP $CPPFLAGS'
7643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7647 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7648 ac_save_CXXFLAGS="$CXXFLAGS"
7650 # Check for maintainer-mode bits.
7651 if test x"$USE_MAINTAINER_MODE" = xno; then
7652 WERROR=''
7653 else
7654 WERROR='-Werror'
7657 # Check for -ffunction-sections -fdata-sections
7658 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7659 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7660 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7661 cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7670 main ()
7672 int foo;
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_fdsections=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_fdsections=no
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7697 if test "$ac_test_CXXFLAGS" = set; then
7698 CXXFLAGS="$ac_save_CXXFLAGS"
7699 else
7700 # this is the suspicious part
7701 CXXFLAGS=''
7703 if test x"$ac_fdsections" = x"yes"; then
7704 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7706 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7707 echo "${ECHO_T}$ac_fdsections" >&6
7709 ac_ext=c
7710 ac_cpp='$CPP $CPPFLAGS'
7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719 # If we're not using GNU ld, then there's no point in even trying these
7720 # tests. Check for that first. We should have already tested for gld
7721 # by now (in libtool), but require it now just to be safe...
7722 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7723 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7727 # The name set by libtool depends on the version of libtool. Shame on us
7728 # for depending on an impl detail, but c'est la vie. Older versions used
7729 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7730 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7731 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7732 # set (hence we're using an older libtool), then set it.
7733 if test x${with_gnu_ld+set} != xset; then
7734 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7735 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7736 with_gnu_ld=no
7737 else
7738 with_gnu_ld=$ac_cv_prog_gnu_ld
7742 # Start by getting the version number. I think the libtool test already
7743 # does some of this, but throws away the result.
7745 ldver=`$LD --version 2>/dev/null | head -1 | \
7746 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7748 glibcxx_gnu_ld_version=`echo $ldver | \
7749 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7751 # Set --gc-sections.
7752 if test "$with_gnu_ld" = "notbroken"; then
7753 # GNU ld it is! Joy and bunny rabbits!
7755 # All these tests are for C++; save the language and the compiler flags.
7756 # Need to do this so that g++ won't try to link in libstdc++
7757 ac_test_CFLAGS="${CFLAGS+set}"
7758 ac_save_CFLAGS="$CFLAGS"
7759 CFLAGS='-x c++ -Wl,--gc-sections'
7761 # Check for -Wl,--gc-sections
7762 # XXX This test is broken at the moment, as symbols required for linking
7763 # are now in libsupc++ (not built yet). In addition, this test has
7764 # cored on solaris in the past. In addition, --gc-sections doesn't
7765 # really work at the moment (keeps on discarding used sections, first
7766 # .eh_frame and now some of the glibc sections for iconv).
7767 # Bzzzzt. Thanks for playing, maybe next time.
7768 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7769 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7770 if test "$cross_compiling" = yes; then
7771 ac_sectionLDflags=yes
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 int main(void)
7783 try { throw 1; }
7784 catch (...) { };
7785 return 0;
7788 _ACEOF
7789 rm -f conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_sectionLDflags=yes
7801 else
7802 echo "$as_me: program exited with status $ac_status" >&5
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ( exit $ac_status )
7807 ac_sectionLDflags=no
7809 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7811 if test "$ac_test_CFLAGS" = set; then
7812 CFLAGS="$ac_save_CFLAGS"
7813 else
7814 # this is the suspicious part
7815 CFLAGS=''
7817 if test "$ac_sectionLDflags" = "yes"; then
7818 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7820 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7821 echo "${ECHO_T}$ac_sectionLDflags" >&6
7824 # Set linker optimization flags.
7825 if test x"$with_gnu_ld" = x"yes"; then
7826 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7833 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7834 ac_save_CXXFLAGS="$CXXFLAGS"
7835 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7837 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7838 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7839 if test "${ac_cv_lib_m_sin+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-lm $LIBS"
7844 if test x$gcc_no_link = xyes; then
7845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7847 { (exit 1); exit 1; }; }
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line $LINENO "configure"
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char sin ();
7865 main ()
7867 sin ();
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_lib_m_sin=yes
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_lib_m_sin=no
7891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892 LIBS=$ac_check_lib_save_LIBS
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7895 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7896 if test $ac_cv_lib_m_sin = yes; then
7897 libm="-lm"
7900 ac_save_LIBS="$LIBS"
7901 LIBS="$LIBS $libm"
7905 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7906 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7907 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7908 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7914 ac_ext=cc
7915 ac_cpp='$CXXCPP $CPPFLAGS'
7916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <math.h>
7928 #ifdef HAVE_IEEEFP_H
7929 #include <ieeefp.h>
7930 #endif
7933 main ()
7935 isinf(0);
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest.$ac_objext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 glibcxx_cv_func_isinf_use=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 glibcxx_cv_func_isinf_use=no
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7971 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7973 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7975 for ac_func in isinf
7977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7978 echo "$as_me:$LINENO: checking for $ac_func" >&5
7979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7980 if eval "test \"\${$as_ac_var+set}\" = set"; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 if test x$gcc_no_link = xyes; then
7984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7986 { (exit 1); exit 1; }; }
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 /* System header to define __stub macros and hopefully few prototypes,
7996 which can conflict with char $ac_func (); below.
7997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998 <limits.h> exists even on freestanding compilers. */
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 #ifdef __cplusplus
8006 extern "C"
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011 char $ac_func ();
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8016 choke me
8017 #else
8018 char (*f) () = $ac_func;
8019 #endif
8020 #ifdef __cplusplus
8022 #endif
8025 main ()
8027 return f != $ac_func;
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034 (eval $ac_link) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 eval "$as_ac_var=yes"
8045 else
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 eval "$as_ac_var=no"
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8055 if test `eval echo '${'$as_ac_var'}'` = yes; then
8056 cat >>confdefs.h <<_ACEOF
8057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8058 _ACEOF
8061 done
8063 else
8065 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8066 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8067 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8068 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8074 ac_ext=cc
8075 ac_cpp='$CXXCPP $CPPFLAGS'
8076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <math.h>
8088 #ifdef HAVE_IEEEFP_H
8089 #include <ieeefp.h>
8090 #endif
8093 main ()
8095 _isinf(0);
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 glibcxx_cv_func__isinf_use=yes
8113 else
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 glibcxx_cv_func__isinf_use=no
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120 ac_ext=c
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8130 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8131 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8133 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8135 for ac_func in _isinf
8137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8138 echo "$as_me:$LINENO: checking for $ac_func" >&5
8139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8140 if eval "test \"\${$as_ac_var+set}\" = set"; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 if test x$gcc_no_link = xyes; then
8144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8146 { (exit 1); exit 1; }; }
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 /* System header to define __stub macros and hopefully few prototypes,
8156 which can conflict with char $ac_func (); below.
8157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8158 <limits.h> exists even on freestanding compilers. */
8159 #ifdef __STDC__
8160 # include <limits.h>
8161 #else
8162 # include <assert.h>
8163 #endif
8164 /* Override any gcc2 internal prototype to avoid an error. */
8165 #ifdef __cplusplus
8166 extern "C"
8168 #endif
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171 char $ac_func ();
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8176 choke me
8177 #else
8178 char (*f) () = $ac_func;
8179 #endif
8180 #ifdef __cplusplus
8182 #endif
8185 main ()
8187 return f != $ac_func;
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 eval "$as_ac_var=yes"
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 eval "$as_ac_var=no"
8211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8215 if test `eval echo '${'$as_ac_var'}'` = yes; then
8216 cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8218 _ACEOF
8221 done
8228 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8229 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8230 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8231 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8237 ac_ext=cc
8238 ac_cpp='$CXXCPP $CPPFLAGS'
8239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 #include <math.h>
8251 #ifdef HAVE_IEEEFP_H
8252 #include <ieeefp.h>
8253 #endif
8256 main ()
8258 isnan(0);
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265 (eval $ac_compile) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 glibcxx_cv_func_isnan_use=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 glibcxx_cv_func_isnan_use=no
8282 rm -f conftest.$ac_objext conftest.$ac_ext
8283 ac_ext=c
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8294 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8296 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8298 for ac_func in isnan
8300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301 echo "$as_me:$LINENO: checking for $ac_func" >&5
8302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8303 if eval "test \"\${$as_ac_var+set}\" = set"; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 if test x$gcc_no_link = xyes; then
8307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8309 { (exit 1); exit 1; }; }
8311 cat >conftest.$ac_ext <<_ACEOF
8312 #line $LINENO "configure"
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 /* System header to define __stub macros and hopefully few prototypes,
8319 which can conflict with char $ac_func (); below.
8320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8321 <limits.h> exists even on freestanding compilers. */
8322 #ifdef __STDC__
8323 # include <limits.h>
8324 #else
8325 # include <assert.h>
8326 #endif
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 #ifdef __cplusplus
8329 extern "C"
8331 #endif
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334 char $ac_func ();
8335 /* The GNU C library defines this for functions which it implements
8336 to always fail with ENOSYS. Some functions are actually named
8337 something starting with __ and the normal name is an alias. */
8338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339 choke me
8340 #else
8341 char (*f) () = $ac_func;
8342 #endif
8343 #ifdef __cplusplus
8345 #endif
8348 main ()
8350 return f != $ac_func;
8352 return 0;
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -s conftest$ac_exeext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 eval "$as_ac_var=yes"
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 eval "$as_ac_var=no"
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8378 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8381 _ACEOF
8384 done
8386 else
8388 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8389 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8390 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8391 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8397 ac_ext=cc
8398 ac_cpp='$CXXCPP $CPPFLAGS'
8399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #include <math.h>
8411 #ifdef HAVE_IEEEFP_H
8412 #include <ieeefp.h>
8413 #endif
8416 main ()
8418 _isnan(0);
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest.$ac_objext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 (eval $ac_try) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 glibcxx_cv_func__isnan_use=yes
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 glibcxx_cv_func__isnan_use=no
8442 rm -f conftest.$ac_objext conftest.$ac_ext
8443 ac_ext=c
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8454 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8456 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8458 for ac_func in _isnan
8460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 echo "$as_me:$LINENO: checking for $ac_func" >&5
8462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_var+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 if test x$gcc_no_link = xyes; then
8467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8469 { (exit 1); exit 1; }; }
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char $ac_func (); below.
8480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8481 <limits.h> exists even on freestanding compilers. */
8482 #ifdef __STDC__
8483 # include <limits.h>
8484 #else
8485 # include <assert.h>
8486 #endif
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 #ifdef __cplusplus
8489 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char $ac_func ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 choke me
8500 #else
8501 char (*f) () = $ac_func;
8502 #endif
8503 #ifdef __cplusplus
8505 #endif
8508 main ()
8510 return f != $ac_func;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 (eval $ac_try) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 eval "$as_ac_var=yes"
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 eval "$as_ac_var=no"
8534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8538 if test `eval echo '${'$as_ac_var'}'` = yes; then
8539 cat >>confdefs.h <<_ACEOF
8540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8541 _ACEOF
8544 done
8551 echo "$as_me:$LINENO: checking for finite declaration" >&5
8552 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8553 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8554 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8560 ac_ext=cc
8561 ac_cpp='$CXXCPP $CPPFLAGS'
8562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8566 cat >conftest.$ac_ext <<_ACEOF
8567 #line $LINENO "configure"
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <math.h>
8574 #ifdef HAVE_IEEEFP_H
8575 #include <ieeefp.h>
8576 #endif
8579 main ()
8581 finite(0);
8583 return 0;
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 glibcxx_cv_func_finite_use=yes
8599 else
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 glibcxx_cv_func_finite_use=no
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 ac_ext=c
8607 ac_cpp='$CPP $CPPFLAGS'
8608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8617 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8619 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8621 for ac_func in finite
8623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624 echo "$as_me:$LINENO: checking for $ac_func" >&5
8625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8626 if eval "test \"\${$as_ac_var+set}\" = set"; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 if test x$gcc_no_link = xyes; then
8630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8632 { (exit 1); exit 1; }; }
8634 cat >conftest.$ac_ext <<_ACEOF
8635 #line $LINENO "configure"
8636 /* confdefs.h. */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 /* System header to define __stub macros and hopefully few prototypes,
8642 which can conflict with char $ac_func (); below.
8643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8644 <limits.h> exists even on freestanding compilers. */
8645 #ifdef __STDC__
8646 # include <limits.h>
8647 #else
8648 # include <assert.h>
8649 #endif
8650 /* Override any gcc2 internal prototype to avoid an error. */
8651 #ifdef __cplusplus
8652 extern "C"
8654 #endif
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8657 char $ac_func ();
8658 /* The GNU C library defines this for functions which it implements
8659 to always fail with ENOSYS. Some functions are actually named
8660 something starting with __ and the normal name is an alias. */
8661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8662 choke me
8663 #else
8664 char (*f) () = $ac_func;
8665 #endif
8666 #ifdef __cplusplus
8668 #endif
8671 main ()
8673 return f != $ac_func;
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 eval "$as_ac_var=yes"
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 eval "$as_ac_var=no"
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8704 _ACEOF
8707 done
8709 else
8711 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8712 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8713 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8714 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8720 ac_ext=cc
8721 ac_cpp='$CXXCPP $CPPFLAGS'
8722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 #include <math.h>
8734 #ifdef HAVE_IEEEFP_H
8735 #include <ieeefp.h>
8736 #endif
8739 main ()
8741 _finite(0);
8743 return 0;
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748 (eval $ac_compile) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -s conftest.$ac_objext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 glibcxx_cv_func__finite_use=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 glibcxx_cv_func__finite_use=no
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 ac_ext=c
8767 ac_cpp='$CPP $CPPFLAGS'
8768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8776 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8777 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8779 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8781 for ac_func in _finite
8783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8784 echo "$as_me:$LINENO: checking for $ac_func" >&5
8785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_var+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 if test x$gcc_no_link = xyes; then
8790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8792 { (exit 1); exit 1; }; }
8794 cat >conftest.$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 /* System header to define __stub macros and hopefully few prototypes,
8802 which can conflict with char $ac_func (); below.
8803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804 <limits.h> exists even on freestanding compilers. */
8805 #ifdef __STDC__
8806 # include <limits.h>
8807 #else
8808 # include <assert.h>
8809 #endif
8810 /* Override any gcc2 internal prototype to avoid an error. */
8811 #ifdef __cplusplus
8812 extern "C"
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8817 char $ac_func ();
8818 /* The GNU C library defines this for functions which it implements
8819 to always fail with ENOSYS. Some functions are actually named
8820 something starting with __ and the normal name is an alias. */
8821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8822 choke me
8823 #else
8824 char (*f) () = $ac_func;
8825 #endif
8826 #ifdef __cplusplus
8828 #endif
8831 main ()
8833 return f != $ac_func;
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 eval "$as_ac_var=yes"
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 eval "$as_ac_var=no"
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8861 if test `eval echo '${'$as_ac_var'}'` = yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8864 _ACEOF
8867 done
8874 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8875 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8876 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8877 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8883 ac_ext=cc
8884 ac_cpp='$CXXCPP $CPPFLAGS'
8885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8889 cat >conftest.$ac_ext <<_ACEOF
8890 #line $LINENO "configure"
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 #include <math.h>
8898 main ()
8900 copysign(0, 0);
8902 return 0;
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 glibcxx_cv_func_copysign_use=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 glibcxx_cv_func_copysign_use=no
8924 rm -f conftest.$ac_objext conftest.$ac_ext
8925 ac_ext=c
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8935 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8936 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8938 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8940 for ac_func in copysign
8942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 if test x$gcc_no_link = xyes; then
8949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8951 { (exit 1); exit 1; }; }
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 /* System header to define __stub macros and hopefully few prototypes,
8961 which can conflict with char $ac_func (); below.
8962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8963 <limits.h> exists even on freestanding compilers. */
8964 #ifdef __STDC__
8965 # include <limits.h>
8966 #else
8967 # include <assert.h>
8968 #endif
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 #ifdef __cplusplus
8971 extern "C"
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8976 char $ac_func ();
8977 /* The GNU C library defines this for functions which it implements
8978 to always fail with ENOSYS. Some functions are actually named
8979 something starting with __ and the normal name is an alias. */
8980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 choke me
8982 #else
8983 char (*f) () = $ac_func;
8984 #endif
8985 #ifdef __cplusplus
8987 #endif
8990 main ()
8992 return f != $ac_func;
8994 return 0;
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 eval "$as_ac_var=yes"
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 eval "$as_ac_var=no"
9016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9020 if test `eval echo '${'$as_ac_var'}'` = yes; then
9021 cat >>confdefs.h <<_ACEOF
9022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9023 _ACEOF
9026 done
9028 else
9030 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9031 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9032 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9033 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9039 ac_ext=cc
9040 ac_cpp='$CXXCPP $CPPFLAGS'
9041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9045 cat >conftest.$ac_ext <<_ACEOF
9046 #line $LINENO "configure"
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <math.h>
9054 main ()
9056 _copysign(0, 0);
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9063 (eval $ac_compile) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -s conftest.$ac_objext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 glibcxx_cv_func__copysign_use=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 glibcxx_cv_func__copysign_use=no
9080 rm -f conftest.$ac_objext conftest.$ac_ext
9081 ac_ext=c
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9091 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9092 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9094 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9096 for ac_func in _copysign
9098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099 echo "$as_me:$LINENO: checking for $ac_func" >&5
9100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_var+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 if test x$gcc_no_link = xyes; then
9105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9107 { (exit 1); exit 1; }; }
9109 cat >conftest.$ac_ext <<_ACEOF
9110 #line $LINENO "configure"
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 /* System header to define __stub macros and hopefully few prototypes,
9117 which can conflict with char $ac_func (); below.
9118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9119 <limits.h> exists even on freestanding compilers. */
9120 #ifdef __STDC__
9121 # include <limits.h>
9122 #else
9123 # include <assert.h>
9124 #endif
9125 /* Override any gcc2 internal prototype to avoid an error. */
9126 #ifdef __cplusplus
9127 extern "C"
9129 #endif
9130 /* We use char because int might match the return type of a gcc2
9131 builtin and then its argument prototype would still apply. */
9132 char $ac_func ();
9133 /* The GNU C library defines this for functions which it implements
9134 to always fail with ENOSYS. Some functions are actually named
9135 something starting with __ and the normal name is an alias. */
9136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9137 choke me
9138 #else
9139 char (*f) () = $ac_func;
9140 #endif
9141 #ifdef __cplusplus
9143 #endif
9146 main ()
9148 return f != $ac_func;
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 eval "$as_ac_var=yes"
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 eval "$as_ac_var=no"
9172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9176 if test `eval echo '${'$as_ac_var'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9179 _ACEOF
9182 done
9189 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9190 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9191 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9192 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9198 ac_ext=cc
9199 ac_cpp='$CXXCPP $CPPFLAGS'
9200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 #include <math.h>
9213 main ()
9215 sincos(0, 0, 0);
9217 return 0;
9219 _ACEOF
9220 rm -f conftest.$ac_objext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 glibcxx_cv_func_sincos_use=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 glibcxx_cv_func_sincos_use=no
9239 rm -f conftest.$ac_objext conftest.$ac_ext
9240 ac_ext=c
9241 ac_cpp='$CPP $CPPFLAGS'
9242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9251 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9253 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9255 for ac_func in sincos
9257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9258 echo "$as_me:$LINENO: checking for $ac_func" >&5
9259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9260 if eval "test \"\${$as_ac_var+set}\" = set"; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263 if test x$gcc_no_link = xyes; then
9264 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9266 { (exit 1); exit 1; }; }
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 /* System header to define __stub macros and hopefully few prototypes,
9276 which can conflict with char $ac_func (); below.
9277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9278 <limits.h> exists even on freestanding compilers. */
9279 #ifdef __STDC__
9280 # include <limits.h>
9281 #else
9282 # include <assert.h>
9283 #endif
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 #ifdef __cplusplus
9286 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9291 char $ac_func ();
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9296 choke me
9297 #else
9298 char (*f) () = $ac_func;
9299 #endif
9300 #ifdef __cplusplus
9302 #endif
9305 main ()
9307 return f != $ac_func;
9309 return 0;
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 eval "$as_ac_var=yes"
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 eval "$as_ac_var=no"
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9335 if test `eval echo '${'$as_ac_var'}'` = yes; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9338 _ACEOF
9341 done
9343 else
9345 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9346 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9347 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9348 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9354 ac_ext=cc
9355 ac_cpp='$CXXCPP $CPPFLAGS'
9356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <math.h>
9369 main ()
9371 _sincos(0, 0, 0);
9373 return 0;
9375 _ACEOF
9376 rm -f conftest.$ac_objext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9378 (eval $ac_compile) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -s conftest.$ac_objext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 glibcxx_cv_func__sincos_use=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 glibcxx_cv_func__sincos_use=no
9395 rm -f conftest.$ac_objext conftest.$ac_ext
9396 ac_ext=c
9397 ac_cpp='$CPP $CPPFLAGS'
9398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9406 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9407 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9409 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9411 for ac_func in _sincos
9413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9414 echo "$as_me:$LINENO: checking for $ac_func" >&5
9415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_var+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 if test x$gcc_no_link = xyes; then
9420 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9421 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9422 { (exit 1); exit 1; }; }
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line $LINENO "configure"
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char $ac_func (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9435 #ifdef __STDC__
9436 # include <limits.h>
9437 #else
9438 # include <assert.h>
9439 #endif
9440 /* Override any gcc2 internal prototype to avoid an error. */
9441 #ifdef __cplusplus
9442 extern "C"
9444 #endif
9445 /* We use char because int might match the return type of a gcc2
9446 builtin and then its argument prototype would still apply. */
9447 char $ac_func ();
9448 /* The GNU C library defines this for functions which it implements
9449 to always fail with ENOSYS. Some functions are actually named
9450 something starting with __ and the normal name is an alias. */
9451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9452 choke me
9453 #else
9454 char (*f) () = $ac_func;
9455 #endif
9456 #ifdef __cplusplus
9458 #endif
9461 main ()
9463 return f != $ac_func;
9465 return 0;
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 eval "$as_ac_var=yes"
9481 else
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 eval "$as_ac_var=no"
9487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9491 if test `eval echo '${'$as_ac_var'}'` = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9494 _ACEOF
9497 done
9504 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9505 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9506 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9507 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9513 ac_ext=cc
9514 ac_cpp='$CXXCPP $CPPFLAGS'
9515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line $LINENO "configure"
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 #include <math.h>
9527 #ifdef HAVE_IEEEFP_H
9528 #include <ieeefp.h>
9529 #endif
9532 main ()
9534 fpclass(0);
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 glibcxx_cv_func_fpclass_use=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 glibcxx_cv_func_fpclass_use=no
9558 rm -f conftest.$ac_objext conftest.$ac_ext
9559 ac_ext=c
9560 ac_cpp='$CPP $CPPFLAGS'
9561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9570 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9572 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9574 for ac_func in fpclass
9576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9577 echo "$as_me:$LINENO: checking for $ac_func" >&5
9578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9579 if eval "test \"\${$as_ac_var+set}\" = set"; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 if test x$gcc_no_link = xyes; then
9583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9585 { (exit 1); exit 1; }; }
9587 cat >conftest.$ac_ext <<_ACEOF
9588 #line $LINENO "configure"
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 /* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char $ac_func (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9598 #ifdef __STDC__
9599 # include <limits.h>
9600 #else
9601 # include <assert.h>
9602 #endif
9603 /* Override any gcc2 internal prototype to avoid an error. */
9604 #ifdef __cplusplus
9605 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9610 char $ac_func ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 char (*f) () = $ac_func;
9618 #endif
9619 #ifdef __cplusplus
9621 #endif
9624 main ()
9626 return f != $ac_func;
9628 return 0;
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 eval "$as_ac_var=yes"
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 eval "$as_ac_var=no"
9650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9654 if test `eval echo '${'$as_ac_var'}'` = yes; then
9655 cat >>confdefs.h <<_ACEOF
9656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9657 _ACEOF
9660 done
9662 else
9664 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9665 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9666 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9667 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9673 ac_ext=cc
9674 ac_cpp='$CXXCPP $CPPFLAGS'
9675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line $LINENO "configure"
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 #include <math.h>
9687 #ifdef HAVE_IEEEFP_H
9688 #include <ieeefp.h>
9689 #endif
9692 main ()
9694 _fpclass(0);
9696 return 0;
9698 _ACEOF
9699 rm -f conftest.$ac_objext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9701 (eval $ac_compile) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 glibcxx_cv_func__fpclass_use=yes
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 glibcxx_cv_func__fpclass_use=no
9718 rm -f conftest.$ac_objext conftest.$ac_ext
9719 ac_ext=c
9720 ac_cpp='$CPP $CPPFLAGS'
9721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9729 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9730 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9732 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9734 for ac_func in _fpclass
9736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_var+set}\" = set"; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 if test x$gcc_no_link = xyes; then
9743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9745 { (exit 1); exit 1; }; }
9747 cat >conftest.$ac_ext <<_ACEOF
9748 #line $LINENO "configure"
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 /* System header to define __stub macros and hopefully few prototypes,
9755 which can conflict with char $ac_func (); below.
9756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9757 <limits.h> exists even on freestanding compilers. */
9758 #ifdef __STDC__
9759 # include <limits.h>
9760 #else
9761 # include <assert.h>
9762 #endif
9763 /* Override any gcc2 internal prototype to avoid an error. */
9764 #ifdef __cplusplus
9765 extern "C"
9767 #endif
9768 /* We use char because int might match the return type of a gcc2
9769 builtin and then its argument prototype would still apply. */
9770 char $ac_func ();
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9775 choke me
9776 #else
9777 char (*f) () = $ac_func;
9778 #endif
9779 #ifdef __cplusplus
9781 #endif
9784 main ()
9786 return f != $ac_func;
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 eval "$as_ac_var=yes"
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 eval "$as_ac_var=no"
9810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9814 if test `eval echo '${'$as_ac_var'}'` = yes; then
9815 cat >>confdefs.h <<_ACEOF
9816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9817 _ACEOF
9820 done
9827 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9828 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9829 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9830 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9836 ac_ext=cc
9837 ac_cpp='$CXXCPP $CPPFLAGS'
9838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 #include <math.h>
9850 #ifdef HAVE_IEEEFP_H
9851 #include <ieeefp.h>
9852 #endif
9855 main ()
9857 qfpclass(0);
9859 return 0;
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -s conftest.$ac_objext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 glibcxx_cv_func_qfpclass_use=yes
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 glibcxx_cv_func_qfpclass_use=no
9881 rm -f conftest.$ac_objext conftest.$ac_ext
9882 ac_ext=c
9883 ac_cpp='$CPP $CPPFLAGS'
9884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9892 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9893 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9895 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9897 for ac_func in qfpclass
9899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9900 echo "$as_me:$LINENO: checking for $ac_func" >&5
9901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9902 if eval "test \"\${$as_ac_var+set}\" = set"; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 if test x$gcc_no_link = xyes; then
9906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9908 { (exit 1); exit 1; }; }
9910 cat >conftest.$ac_ext <<_ACEOF
9911 #line $LINENO "configure"
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 /* System header to define __stub macros and hopefully few prototypes,
9918 which can conflict with char $ac_func (); below.
9919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9920 <limits.h> exists even on freestanding compilers. */
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926 /* Override any gcc2 internal prototype to avoid an error. */
9927 #ifdef __cplusplus
9928 extern "C"
9930 #endif
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933 char $ac_func ();
9934 /* The GNU C library defines this for functions which it implements
9935 to always fail with ENOSYS. Some functions are actually named
9936 something starting with __ and the normal name is an alias. */
9937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9938 choke me
9939 #else
9940 char (*f) () = $ac_func;
9941 #endif
9942 #ifdef __cplusplus
9944 #endif
9947 main ()
9949 return f != $ac_func;
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 eval "$as_ac_var=yes"
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 eval "$as_ac_var=no"
9973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9977 if test `eval echo '${'$as_ac_var'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980 _ACEOF
9983 done
9985 else
9987 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9988 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9989 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9990 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9996 ac_ext=cc
9997 ac_cpp='$CXXCPP $CPPFLAGS'
9998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10002 cat >conftest.$ac_ext <<_ACEOF
10003 #line $LINENO "configure"
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <math.h>
10010 #ifdef HAVE_IEEEFP_H
10011 #include <ieeefp.h>
10012 #endif
10015 main ()
10017 _qfpclass(0);
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10024 (eval $ac_compile) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -s conftest.$ac_objext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 glibcxx_cv_func__qfpclass_use=yes
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 glibcxx_cv_func__qfpclass_use=no
10041 rm -f conftest.$ac_objext conftest.$ac_ext
10042 ac_ext=c
10043 ac_cpp='$CPP $CPPFLAGS'
10044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10053 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10055 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10057 for ac_func in _qfpclass
10059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10060 echo "$as_me:$LINENO: checking for $ac_func" >&5
10061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10062 if eval "test \"\${$as_ac_var+set}\" = set"; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065 if test x$gcc_no_link = xyes; then
10066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10068 { (exit 1); exit 1; }; }
10070 cat >conftest.$ac_ext <<_ACEOF
10071 #line $LINENO "configure"
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 /* System header to define __stub macros and hopefully few prototypes,
10078 which can conflict with char $ac_func (); below.
10079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10080 <limits.h> exists even on freestanding compilers. */
10081 #ifdef __STDC__
10082 # include <limits.h>
10083 #else
10084 # include <assert.h>
10085 #endif
10086 /* Override any gcc2 internal prototype to avoid an error. */
10087 #ifdef __cplusplus
10088 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char $ac_func ();
10094 /* The GNU C library defines this for functions which it implements
10095 to always fail with ENOSYS. Some functions are actually named
10096 something starting with __ and the normal name is an alias. */
10097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10098 choke me
10099 #else
10100 char (*f) () = $ac_func;
10101 #endif
10102 #ifdef __cplusplus
10104 #endif
10107 main ()
10109 return f != $ac_func;
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 eval "$as_ac_var=yes"
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 eval "$as_ac_var=no"
10133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10137 if test `eval echo '${'$as_ac_var'}'` = yes; then
10138 cat >>confdefs.h <<_ACEOF
10139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10140 _ACEOF
10143 done
10150 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10151 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10152 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10153 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10159 ac_ext=cc
10160 ac_cpp='$CXXCPP $CPPFLAGS'
10161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10165 cat >conftest.$ac_ext <<_ACEOF
10166 #line $LINENO "configure"
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <math.h>
10174 main ()
10176 hypot(0, 0);
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -s conftest.$ac_objext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 glibcxx_cv_func_hypot_use=yes
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 glibcxx_cv_func_hypot_use=no
10200 rm -f conftest.$ac_objext conftest.$ac_ext
10201 ac_ext=c
10202 ac_cpp='$CPP $CPPFLAGS'
10203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10211 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10212 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10214 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10216 for ac_func in hypot
10218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10219 echo "$as_me:$LINENO: checking for $ac_func" >&5
10220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10221 if eval "test \"\${$as_ac_var+set}\" = set"; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 if test x$gcc_no_link = xyes; then
10225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10227 { (exit 1); exit 1; }; }
10229 cat >conftest.$ac_ext <<_ACEOF
10230 #line $LINENO "configure"
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10240 #ifdef __STDC__
10241 # include <limits.h>
10242 #else
10243 # include <assert.h>
10244 #endif
10245 /* Override any gcc2 internal prototype to avoid an error. */
10246 #ifdef __cplusplus
10247 extern "C"
10249 #endif
10250 /* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10252 char $ac_func ();
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10257 choke me
10258 #else
10259 char (*f) () = $ac_func;
10260 #endif
10261 #ifdef __cplusplus
10263 #endif
10266 main ()
10268 return f != $ac_func;
10270 return 0;
10272 _ACEOF
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 eval "$as_ac_var=yes"
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 eval "$as_ac_var=no"
10292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10299 _ACEOF
10302 done
10304 else
10306 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10307 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10308 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10309 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10315 ac_ext=cc
10316 ac_cpp='$CXXCPP $CPPFLAGS'
10317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <math.h>
10330 main ()
10332 _hypot(0, 0);
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 glibcxx_cv_func__hypot_use=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 glibcxx_cv_func__hypot_use=no
10356 rm -f conftest.$ac_objext conftest.$ac_ext
10357 ac_ext=c
10358 ac_cpp='$CPP $CPPFLAGS'
10359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10367 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10368 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10370 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10372 for ac_func in _hypot
10374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 if test x$gcc_no_link = xyes; then
10381 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10383 { (exit 1); exit 1; }; }
10385 cat >conftest.$ac_ext <<_ACEOF
10386 #line $LINENO "configure"
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 /* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func (); below.
10394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10395 <limits.h> exists even on freestanding compilers. */
10396 #ifdef __STDC__
10397 # include <limits.h>
10398 #else
10399 # include <assert.h>
10400 #endif
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 #ifdef __cplusplus
10403 extern "C"
10405 #endif
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10408 char $ac_func ();
10409 /* The GNU C library defines this for functions which it implements
10410 to always fail with ENOSYS. Some functions are actually named
10411 something starting with __ and the normal name is an alias. */
10412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10413 choke me
10414 #else
10415 char (*f) () = $ac_func;
10416 #endif
10417 #ifdef __cplusplus
10419 #endif
10422 main ()
10424 return f != $ac_func;
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 eval "$as_ac_var=yes"
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 eval "$as_ac_var=no"
10448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10452 if test `eval echo '${'$as_ac_var'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455 _ACEOF
10458 done
10465 echo "$as_me:$LINENO: checking for float trig functions" >&5
10466 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10467 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10473 ac_ext=cc
10474 ac_cpp='$CXXCPP $CPPFLAGS'
10475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <math.h>
10488 main ()
10490 `for x in acosf asinf atanf \
10491 cosf sinf tanf \
10492 coshf sinhf tanhf; do echo "$x (0);"; done`
10494 return 0;
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10499 (eval $ac_compile) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 glibcxx_cv_func_float_trig_use=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 glibcxx_cv_func_float_trig_use=no
10516 rm -f conftest.$ac_objext conftest.$ac_ext
10517 ac_ext=c
10518 ac_cpp='$CPP $CPPFLAGS'
10519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10525 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10526 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10527 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10537 for ac_func in acosf asinf atanf \
10538 cosf sinf tanf \
10539 coshf sinhf tanhf
10541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10542 echo "$as_me:$LINENO: checking for $ac_func" >&5
10543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10544 if eval "test \"\${$as_ac_var+set}\" = set"; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 if test x$gcc_no_link = xyes; then
10548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10550 { (exit 1); exit 1; }; }
10552 cat >conftest.$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func (); below.
10561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 <limits.h> exists even on freestanding compilers. */
10563 #ifdef __STDC__
10564 # include <limits.h>
10565 #else
10566 # include <assert.h>
10567 #endif
10568 /* Override any gcc2 internal prototype to avoid an error. */
10569 #ifdef __cplusplus
10570 extern "C"
10572 #endif
10573 /* We use char because int might match the return type of a gcc2
10574 builtin and then its argument prototype would still apply. */
10575 char $ac_func ();
10576 /* The GNU C library defines this for functions which it implements
10577 to always fail with ENOSYS. Some functions are actually named
10578 something starting with __ and the normal name is an alias. */
10579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10580 choke me
10581 #else
10582 char (*f) () = $ac_func;
10583 #endif
10584 #ifdef __cplusplus
10586 #endif
10589 main ()
10591 return f != $ac_func;
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 eval "$as_ac_var=yes"
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 eval "$as_ac_var=no"
10615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10619 if test `eval echo '${'$as_ac_var'}'` = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10622 _ACEOF
10625 done
10630 echo "$as_me:$LINENO: checking for float round functions" >&5
10631 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10632 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10638 ac_ext=cc
10639 ac_cpp='$CXXCPP $CPPFLAGS'
10640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 /* confdefs.h. */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 #include <math.h>
10653 main ()
10655 `for x in ceilf floorf; do echo "$x (0);"; done`
10657 return 0;
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 glibcxx_cv_func_float_round_use=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 glibcxx_cv_func_float_round_use=no
10679 rm -f conftest.$ac_objext conftest.$ac_ext
10680 ac_ext=c
10681 ac_cpp='$CPP $CPPFLAGS'
10682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10689 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10690 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10693 for ac_func in ceilf floorf
10695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10696 echo "$as_me:$LINENO: checking for $ac_func" >&5
10697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_var+set}\" = set"; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 if test x$gcc_no_link = xyes; then
10702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10704 { (exit 1); exit 1; }; }
10706 cat >conftest.$ac_ext <<_ACEOF
10707 #line $LINENO "configure"
10708 /* confdefs.h. */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char $ac_func (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10717 #ifdef __STDC__
10718 # include <limits.h>
10719 #else
10720 # include <assert.h>
10721 #endif
10722 /* Override any gcc2 internal prototype to avoid an error. */
10723 #ifdef __cplusplus
10724 extern "C"
10726 #endif
10727 /* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10729 char $ac_func ();
10730 /* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10734 choke me
10735 #else
10736 char (*f) () = $ac_func;
10737 #endif
10738 #ifdef __cplusplus
10740 #endif
10743 main ()
10745 return f != $ac_func;
10747 return 0;
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 eval "$as_ac_var=yes"
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 eval "$as_ac_var=no"
10769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10773 if test `eval echo '${'$as_ac_var'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10776 _ACEOF
10779 done
10785 echo "$as_me:$LINENO: checking for expf declaration" >&5
10786 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10787 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10788 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10794 ac_ext=cc
10795 ac_cpp='$CXXCPP $CPPFLAGS'
10796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10800 cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 #include <math.h>
10808 #ifdef HAVE_IEEEFP_H
10809 #include <ieeefp.h>
10810 #endif
10813 main ()
10815 expf(0);
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 glibcxx_cv_func_expf_use=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 glibcxx_cv_func_expf_use=no
10839 rm -f conftest.$ac_objext conftest.$ac_ext
10840 ac_ext=c
10841 ac_cpp='$CPP $CPPFLAGS'
10842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10851 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10853 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10855 for ac_func in expf
10857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10858 echo "$as_me:$LINENO: checking for $ac_func" >&5
10859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10860 if eval "test \"\${$as_ac_var+set}\" = set"; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 if test x$gcc_no_link = xyes; then
10864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10866 { (exit 1); exit 1; }; }
10868 cat >conftest.$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
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. */
10879 #ifdef __STDC__
10880 # include <limits.h>
10881 #else
10882 # include <assert.h>
10883 #endif
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 #ifdef __cplusplus
10886 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char $ac_func ();
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10896 choke me
10897 #else
10898 char (*f) () = $ac_func;
10899 #endif
10900 #ifdef __cplusplus
10902 #endif
10905 main ()
10907 return f != $ac_func;
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 eval "$as_ac_var=yes"
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 eval "$as_ac_var=no"
10931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10935 if test `eval echo '${'$as_ac_var'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10938 _ACEOF
10941 done
10943 else
10945 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10946 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10947 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10948 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10954 ac_ext=cc
10955 ac_cpp='$CXXCPP $CPPFLAGS'
10956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10960 cat >conftest.$ac_ext <<_ACEOF
10961 #line $LINENO "configure"
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 #include <math.h>
10968 #ifdef HAVE_IEEEFP_H
10969 #include <ieeefp.h>
10970 #endif
10973 main ()
10975 _expf(0);
10977 return 0;
10979 _ACEOF
10980 rm -f conftest.$ac_objext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10982 (eval $ac_compile) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 glibcxx_cv_func__expf_use=yes
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 glibcxx_cv_func__expf_use=no
10999 rm -f conftest.$ac_objext conftest.$ac_ext
11000 ac_ext=c
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11011 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11013 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11015 for ac_func in _expf
11017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11018 echo "$as_me:$LINENO: checking for $ac_func" >&5
11019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11020 if eval "test \"\${$as_ac_var+set}\" = set"; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 if test x$gcc_no_link = xyes; then
11024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11026 { (exit 1); exit 1; }; }
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 /* System header to define __stub macros and hopefully few prototypes,
11036 which can conflict with char $ac_func (); below.
11037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038 <limits.h> exists even on freestanding compilers. */
11039 #ifdef __STDC__
11040 # include <limits.h>
11041 #else
11042 # include <assert.h>
11043 #endif
11044 /* Override any gcc2 internal prototype to avoid an error. */
11045 #ifdef __cplusplus
11046 extern "C"
11048 #endif
11049 /* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051 char $ac_func ();
11052 /* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11056 choke me
11057 #else
11058 char (*f) () = $ac_func;
11059 #endif
11060 #ifdef __cplusplus
11062 #endif
11065 main ()
11067 return f != $ac_func;
11069 return 0;
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 eval "$as_ac_var=yes"
11085 else
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 eval "$as_ac_var=no"
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11098 _ACEOF
11101 done
11108 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11109 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11110 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11111 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11117 ac_ext=cc
11118 ac_cpp='$CXXCPP $CPPFLAGS'
11119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <math.h>
11131 #ifdef HAVE_IEEEFP_H
11132 #include <ieeefp.h>
11133 #endif
11136 main ()
11138 isnanf(0);
11140 return 0;
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 glibcxx_cv_func_isnanf_use=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 glibcxx_cv_func_isnanf_use=no
11162 rm -f conftest.$ac_objext conftest.$ac_ext
11163 ac_ext=c
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11173 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11174 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11176 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11178 for ac_func in isnanf
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_var+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 if test x$gcc_no_link = xyes; then
11187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11189 { (exit 1); exit 1; }; }
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* System header to define __stub macros and hopefully few prototypes,
11199 which can conflict with char $ac_func (); below.
11200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11201 <limits.h> exists even on freestanding compilers. */
11202 #ifdef __STDC__
11203 # include <limits.h>
11204 #else
11205 # include <assert.h>
11206 #endif
11207 /* Override any gcc2 internal prototype to avoid an error. */
11208 #ifdef __cplusplus
11209 extern "C"
11211 #endif
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char $ac_func ();
11215 /* The GNU C library defines this for functions which it implements
11216 to always fail with ENOSYS. Some functions are actually named
11217 something starting with __ and the normal name is an alias. */
11218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11219 choke me
11220 #else
11221 char (*f) () = $ac_func;
11222 #endif
11223 #ifdef __cplusplus
11225 #endif
11228 main ()
11230 return f != $ac_func;
11232 return 0;
11234 _ACEOF
11235 rm -f conftest.$ac_objext conftest$ac_exeext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -s conftest$ac_exeext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 eval "$as_ac_var=yes"
11248 else
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 eval "$as_ac_var=no"
11254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11258 if test `eval echo '${'$as_ac_var'}'` = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 _ACEOF
11264 done
11266 else
11268 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11269 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11270 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11271 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11277 ac_ext=cc
11278 ac_cpp='$CXXCPP $CPPFLAGS'
11279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <math.h>
11291 #ifdef HAVE_IEEEFP_H
11292 #include <ieeefp.h>
11293 #endif
11296 main ()
11298 _isnanf(0);
11300 return 0;
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 glibcxx_cv_func__isnanf_use=yes
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 glibcxx_cv_func__isnanf_use=no
11322 rm -f conftest.$ac_objext conftest.$ac_ext
11323 ac_ext=c
11324 ac_cpp='$CPP $CPPFLAGS'
11325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11334 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11336 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11338 for ac_func in _isnanf
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_var+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 if test x$gcc_no_link = xyes; then
11347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11349 { (exit 1); exit 1; }; }
11351 cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 /* System header to define __stub macros and hopefully few prototypes,
11359 which can conflict with char $ac_func (); below.
11360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11361 <limits.h> exists even on freestanding compilers. */
11362 #ifdef __STDC__
11363 # include <limits.h>
11364 #else
11365 # include <assert.h>
11366 #endif
11367 /* Override any gcc2 internal prototype to avoid an error. */
11368 #ifdef __cplusplus
11369 extern "C"
11371 #endif
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11374 char $ac_func ();
11375 /* The GNU C library defines this for functions which it implements
11376 to always fail with ENOSYS. Some functions are actually named
11377 something starting with __ and the normal name is an alias. */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 choke me
11380 #else
11381 char (*f) () = $ac_func;
11382 #endif
11383 #ifdef __cplusplus
11385 #endif
11388 main ()
11390 return f != $ac_func;
11392 return 0;
11394 _ACEOF
11395 rm -f conftest.$ac_objext conftest$ac_exeext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 eval "$as_ac_var=yes"
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 eval "$as_ac_var=no"
11414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11418 if test `eval echo '${'$as_ac_var'}'` = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11421 _ACEOF
11424 done
11431 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11432 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11433 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11434 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11440 ac_ext=cc
11441 ac_cpp='$CXXCPP $CPPFLAGS'
11442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11446 cat >conftest.$ac_ext <<_ACEOF
11447 #line $LINENO "configure"
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <math.h>
11454 #ifdef HAVE_IEEEFP_H
11455 #include <ieeefp.h>
11456 #endif
11459 main ()
11461 isinff(0);
11463 return 0;
11465 _ACEOF
11466 rm -f conftest.$ac_objext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468 (eval $ac_compile) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 glibcxx_cv_func_isinff_use=yes
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 glibcxx_cv_func_isinff_use=no
11485 rm -f conftest.$ac_objext conftest.$ac_ext
11486 ac_ext=c
11487 ac_cpp='$CPP $CPPFLAGS'
11488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11496 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11497 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11499 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11501 for ac_func in isinff
11503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11504 echo "$as_me:$LINENO: checking for $ac_func" >&5
11505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11506 if eval "test \"\${$as_ac_var+set}\" = set"; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 if test x$gcc_no_link = xyes; then
11510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11512 { (exit 1); exit 1; }; }
11514 cat >conftest.$ac_ext <<_ACEOF
11515 #line $LINENO "configure"
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* System header to define __stub macros and hopefully few prototypes,
11522 which can conflict with char $ac_func (); below.
11523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11524 <limits.h> exists even on freestanding compilers. */
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530 /* Override any gcc2 internal prototype to avoid an error. */
11531 #ifdef __cplusplus
11532 extern "C"
11534 #endif
11535 /* We use char because int might match the return type of a gcc2
11536 builtin and then its argument prototype would still apply. */
11537 char $ac_func ();
11538 /* The GNU C library defines this for functions which it implements
11539 to always fail with ENOSYS. Some functions are actually named
11540 something starting with __ and the normal name is an alias. */
11541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11542 choke me
11543 #else
11544 char (*f) () = $ac_func;
11545 #endif
11546 #ifdef __cplusplus
11548 #endif
11551 main ()
11553 return f != $ac_func;
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11560 (eval $ac_link) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 eval "$as_ac_var=yes"
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 eval "$as_ac_var=no"
11577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11581 if test `eval echo '${'$as_ac_var'}'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 _ACEOF
11587 done
11589 else
11591 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11592 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11593 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11594 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11600 ac_ext=cc
11601 ac_cpp='$CXXCPP $CPPFLAGS'
11602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11606 cat >conftest.$ac_ext <<_ACEOF
11607 #line $LINENO "configure"
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <math.h>
11614 #ifdef HAVE_IEEEFP_H
11615 #include <ieeefp.h>
11616 #endif
11619 main ()
11621 _isinff(0);
11623 return 0;
11625 _ACEOF
11626 rm -f conftest.$ac_objext
11627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11628 (eval $ac_compile) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 glibcxx_cv_func__isinff_use=yes
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 glibcxx_cv_func__isinff_use=no
11645 rm -f conftest.$ac_objext conftest.$ac_ext
11646 ac_ext=c
11647 ac_cpp='$CPP $CPPFLAGS'
11648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11656 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11657 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11659 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11661 for ac_func in _isinff
11663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_var+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 if test x$gcc_no_link = xyes; then
11670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11672 { (exit 1); exit 1; }; }
11674 cat >conftest.$ac_ext <<_ACEOF
11675 #line $LINENO "configure"
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 /* System header to define __stub macros and hopefully few prototypes,
11682 which can conflict with char $ac_func (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690 /* Override any gcc2 internal prototype to avoid an error. */
11691 #ifdef __cplusplus
11692 extern "C"
11694 #endif
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697 char $ac_func ();
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 choke me
11703 #else
11704 char (*f) () = $ac_func;
11705 #endif
11706 #ifdef __cplusplus
11708 #endif
11711 main ()
11713 return f != $ac_func;
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 eval "$as_ac_var=no"
11737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11741 if test `eval echo '${'$as_ac_var'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 _ACEOF
11747 done
11754 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11755 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11756 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11757 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11763 ac_ext=cc
11764 ac_cpp='$CXXCPP $CPPFLAGS'
11765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11769 cat >conftest.$ac_ext <<_ACEOF
11770 #line $LINENO "configure"
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 #include <math.h>
11778 main ()
11780 atan2f(0, 0);
11782 return 0;
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 glibcxx_cv_func_atan2f_use=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 glibcxx_cv_func_atan2f_use=no
11804 rm -f conftest.$ac_objext conftest.$ac_ext
11805 ac_ext=c
11806 ac_cpp='$CPP $CPPFLAGS'
11807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11815 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11816 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11818 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11820 for ac_func in atan2f
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11825 if eval "test \"\${$as_ac_var+set}\" = set"; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 if test x$gcc_no_link = xyes; then
11829 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11831 { (exit 1); exit 1; }; }
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* System header to define __stub macros and hopefully few prototypes,
11841 which can conflict with char $ac_func (); below.
11842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843 <limits.h> exists even on freestanding compilers. */
11844 #ifdef __STDC__
11845 # include <limits.h>
11846 #else
11847 # include <assert.h>
11848 #endif
11849 /* Override any gcc2 internal prototype to avoid an error. */
11850 #ifdef __cplusplus
11851 extern "C"
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char $ac_func ();
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 choke me
11862 #else
11863 char (*f) () = $ac_func;
11864 #endif
11865 #ifdef __cplusplus
11867 #endif
11870 main ()
11872 return f != $ac_func;
11874 return 0;
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 eval "$as_ac_var=yes"
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 eval "$as_ac_var=no"
11896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11900 if test `eval echo '${'$as_ac_var'}'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 _ACEOF
11906 done
11908 else
11910 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11911 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11912 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11913 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11919 ac_ext=cc
11920 ac_cpp='$CXXCPP $CPPFLAGS'
11921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11925 cat >conftest.$ac_ext <<_ACEOF
11926 #line $LINENO "configure"
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 #include <math.h>
11934 main ()
11936 _atan2f(0, 0);
11938 return 0;
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943 (eval $ac_compile) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 glibcxx_cv_func__atan2f_use=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 glibcxx_cv_func__atan2f_use=no
11960 rm -f conftest.$ac_objext conftest.$ac_ext
11961 ac_ext=c
11962 ac_cpp='$CPP $CPPFLAGS'
11963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11971 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11972 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11974 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11976 for ac_func in _atan2f
11978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11979 echo "$as_me:$LINENO: checking for $ac_func" >&5
11980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11981 if eval "test \"\${$as_ac_var+set}\" = set"; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 if test x$gcc_no_link = xyes; then
11985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11987 { (exit 1); exit 1; }; }
11989 cat >conftest.$ac_ext <<_ACEOF
11990 #line $LINENO "configure"
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char $ac_func (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12000 #ifdef __STDC__
12001 # include <limits.h>
12002 #else
12003 # include <assert.h>
12004 #endif
12005 /* Override any gcc2 internal prototype to avoid an error. */
12006 #ifdef __cplusplus
12007 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char $ac_func ();
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 choke me
12018 #else
12019 char (*f) () = $ac_func;
12020 #endif
12021 #ifdef __cplusplus
12023 #endif
12026 main ()
12028 return f != $ac_func;
12030 return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 eval "$as_ac_var=no"
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12056 if test `eval echo '${'$as_ac_var'}'` = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12059 _ACEOF
12062 done
12069 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12070 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12071 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12072 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12078 ac_ext=cc
12079 ac_cpp='$CXXCPP $CPPFLAGS'
12080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12084 cat >conftest.$ac_ext <<_ACEOF
12085 #line $LINENO "configure"
12086 /* confdefs.h. */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include <math.h>
12092 #ifdef HAVE_IEEEFP_H
12093 #include <ieeefp.h>
12094 #endif
12097 main ()
12099 fabsf(0);
12101 return 0;
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 glibcxx_cv_func_fabsf_use=yes
12117 else
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 glibcxx_cv_func_fabsf_use=no
12123 rm -f conftest.$ac_objext conftest.$ac_ext
12124 ac_ext=c
12125 ac_cpp='$CPP $CPPFLAGS'
12126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12134 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12135 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12137 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12139 for ac_func in fabsf
12141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142 echo "$as_me:$LINENO: checking for $ac_func" >&5
12143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12144 if eval "test \"\${$as_ac_var+set}\" = set"; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 if test x$gcc_no_link = xyes; then
12148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12150 { (exit 1); exit 1; }; }
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 /* System header to define __stub macros and hopefully few prototypes,
12160 which can conflict with char $ac_func (); below.
12161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12162 <limits.h> exists even on freestanding compilers. */
12163 #ifdef __STDC__
12164 # include <limits.h>
12165 #else
12166 # include <assert.h>
12167 #endif
12168 /* Override any gcc2 internal prototype to avoid an error. */
12169 #ifdef __cplusplus
12170 extern "C"
12172 #endif
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12175 char $ac_func ();
12176 /* The GNU C library defines this for functions which it implements
12177 to always fail with ENOSYS. Some functions are actually named
12178 something starting with __ and the normal name is an alias. */
12179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12180 choke me
12181 #else
12182 char (*f) () = $ac_func;
12183 #endif
12184 #ifdef __cplusplus
12186 #endif
12189 main ()
12191 return f != $ac_func;
12193 return 0;
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 eval "$as_ac_var=yes"
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 eval "$as_ac_var=no"
12215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12219 if test `eval echo '${'$as_ac_var'}'` = yes; then
12220 cat >>confdefs.h <<_ACEOF
12221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12222 _ACEOF
12225 done
12227 else
12229 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12230 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12231 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12232 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12238 ac_ext=cc
12239 ac_cpp='$CXXCPP $CPPFLAGS'
12240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12244 cat >conftest.$ac_ext <<_ACEOF
12245 #line $LINENO "configure"
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 #include <math.h>
12252 #ifdef HAVE_IEEEFP_H
12253 #include <ieeefp.h>
12254 #endif
12257 main ()
12259 _fabsf(0);
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -s conftest.$ac_objext'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 glibcxx_cv_func__fabsf_use=yes
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 glibcxx_cv_func__fabsf_use=no
12283 rm -f conftest.$ac_objext conftest.$ac_ext
12284 ac_ext=c
12285 ac_cpp='$CPP $CPPFLAGS'
12286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12295 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12297 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12299 for ac_func in _fabsf
12301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302 echo "$as_me:$LINENO: checking for $ac_func" >&5
12303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304 if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 if test x$gcc_no_link = xyes; then
12308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12310 { (exit 1); exit 1; }; }
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12323 #ifdef __STDC__
12324 # include <limits.h>
12325 #else
12326 # include <assert.h>
12327 #endif
12328 /* Override any gcc2 internal prototype to avoid an error. */
12329 #ifdef __cplusplus
12330 extern "C"
12332 #endif
12333 /* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335 char $ac_func ();
12336 /* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340 choke me
12341 #else
12342 char (*f) () = $ac_func;
12343 #endif
12344 #ifdef __cplusplus
12346 #endif
12349 main ()
12351 return f != $ac_func;
12353 return 0;
12355 _ACEOF
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 eval "$as_ac_var=yes"
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 eval "$as_ac_var=no"
12375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12379 if test `eval echo '${'$as_ac_var'}'` = yes; then
12380 cat >>confdefs.h <<_ACEOF
12381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12382 _ACEOF
12385 done
12392 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12393 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12394 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12395 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12401 ac_ext=cc
12402 ac_cpp='$CXXCPP $CPPFLAGS'
12403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <math.h>
12416 main ()
12418 fmodf(0, 0);
12420 return 0;
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425 (eval $ac_compile) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -s conftest.$ac_objext'
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 glibcxx_cv_func_fmodf_use=yes
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 glibcxx_cv_func_fmodf_use=no
12442 rm -f conftest.$ac_objext conftest.$ac_ext
12443 ac_ext=c
12444 ac_cpp='$CPP $CPPFLAGS'
12445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12453 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12454 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12456 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12458 for ac_func in fmodf
12460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12461 echo "$as_me:$LINENO: checking for $ac_func" >&5
12462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12463 if eval "test \"\${$as_ac_var+set}\" = set"; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 if test x$gcc_no_link = xyes; then
12467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12469 { (exit 1); exit 1; }; }
12471 cat >conftest.$ac_ext <<_ACEOF
12472 #line $LINENO "configure"
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* System header to define __stub macros and hopefully few prototypes,
12479 which can conflict with char $ac_func (); below.
12480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 <limits.h> exists even on freestanding compilers. */
12482 #ifdef __STDC__
12483 # include <limits.h>
12484 #else
12485 # include <assert.h>
12486 #endif
12487 /* Override any gcc2 internal prototype to avoid an error. */
12488 #ifdef __cplusplus
12489 extern "C"
12491 #endif
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494 char $ac_func ();
12495 /* The GNU C library defines this for functions which it implements
12496 to always fail with ENOSYS. Some functions are actually named
12497 something starting with __ and the normal name is an alias. */
12498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12499 choke me
12500 #else
12501 char (*f) () = $ac_func;
12502 #endif
12503 #ifdef __cplusplus
12505 #endif
12508 main ()
12510 return f != $ac_func;
12512 return 0;
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -s conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 eval "$as_ac_var=yes"
12528 else
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 eval "$as_ac_var=no"
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12538 if test `eval echo '${'$as_ac_var'}'` = yes; then
12539 cat >>confdefs.h <<_ACEOF
12540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12541 _ACEOF
12544 done
12546 else
12548 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12549 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12550 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12551 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12557 ac_ext=cc
12558 ac_cpp='$CXXCPP $CPPFLAGS'
12559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <math.h>
12572 main ()
12574 _fmodf(0, 0);
12576 return 0;
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 glibcxx_cv_func__fmodf_use=yes
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 glibcxx_cv_func__fmodf_use=no
12598 rm -f conftest.$ac_objext conftest.$ac_ext
12599 ac_ext=c
12600 ac_cpp='$CPP $CPPFLAGS'
12601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12610 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12612 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12614 for ac_func in _fmodf
12616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12617 echo "$as_me:$LINENO: checking for $ac_func" >&5
12618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12619 if eval "test \"\${$as_ac_var+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 if test x$gcc_no_link = xyes; then
12623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12624 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12625 { (exit 1); exit 1; }; }
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 /* System header to define __stub macros and hopefully few prototypes,
12635 which can conflict with char $ac_func (); below.
12636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12637 <limits.h> exists even on freestanding compilers. */
12638 #ifdef __STDC__
12639 # include <limits.h>
12640 #else
12641 # include <assert.h>
12642 #endif
12643 /* Override any gcc2 internal prototype to avoid an error. */
12644 #ifdef __cplusplus
12645 extern "C"
12647 #endif
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650 char $ac_func ();
12651 /* The GNU C library defines this for functions which it implements
12652 to always fail with ENOSYS. Some functions are actually named
12653 something starting with __ and the normal name is an alias. */
12654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12655 choke me
12656 #else
12657 char (*f) () = $ac_func;
12658 #endif
12659 #ifdef __cplusplus
12661 #endif
12664 main ()
12666 return f != $ac_func;
12668 return 0;
12670 _ACEOF
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 eval "$as_ac_var=no"
12690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12694 if test `eval echo '${'$as_ac_var'}'` = yes; then
12695 cat >>confdefs.h <<_ACEOF
12696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12697 _ACEOF
12700 done
12707 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12708 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12709 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12710 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12716 ac_ext=cc
12717 ac_cpp='$CXXCPP $CPPFLAGS'
12718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12722 cat >conftest.$ac_ext <<_ACEOF
12723 #line $LINENO "configure"
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 #include <math.h>
12731 main ()
12733 frexpf(0, 0);
12735 return 0;
12737 _ACEOF
12738 rm -f conftest.$ac_objext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest.$ac_objext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 glibcxx_cv_func_frexpf_use=yes
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 glibcxx_cv_func_frexpf_use=no
12757 rm -f conftest.$ac_objext conftest.$ac_ext
12758 ac_ext=c
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12769 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12771 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12773 for ac_func in frexpf
12775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12778 if eval "test \"\${$as_ac_var+set}\" = set"; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 if test x$gcc_no_link = xyes; then
12782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12784 { (exit 1); exit 1; }; }
12786 cat >conftest.$ac_ext <<_ACEOF
12787 #line $LINENO "configure"
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char $ac_func (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12797 #ifdef __STDC__
12798 # include <limits.h>
12799 #else
12800 # include <assert.h>
12801 #endif
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 #ifdef __cplusplus
12804 extern "C"
12806 #endif
12807 /* We use char because int might match the return type of a gcc2
12808 builtin and then its argument prototype would still apply. */
12809 char $ac_func ();
12810 /* The GNU C library defines this for functions which it implements
12811 to always fail with ENOSYS. Some functions are actually named
12812 something starting with __ and the normal name is an alias. */
12813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12814 choke me
12815 #else
12816 char (*f) () = $ac_func;
12817 #endif
12818 #ifdef __cplusplus
12820 #endif
12823 main ()
12825 return f != $ac_func;
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 eval "$as_ac_var=yes"
12843 else
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12847 eval "$as_ac_var=no"
12849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12853 if test `eval echo '${'$as_ac_var'}'` = yes; then
12854 cat >>confdefs.h <<_ACEOF
12855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12856 _ACEOF
12859 done
12861 else
12863 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12864 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12865 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12866 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12872 ac_ext=cc
12873 ac_cpp='$CXXCPP $CPPFLAGS'
12874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12878 cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <math.h>
12887 main ()
12889 _frexpf(0, 0);
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 glibcxx_cv_func__frexpf_use=yes
12907 else
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 glibcxx_cv_func__frexpf_use=no
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 ac_ext=c
12915 ac_cpp='$CPP $CPPFLAGS'
12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12925 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12927 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12929 for ac_func in _frexpf
12931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12932 echo "$as_me:$LINENO: checking for $ac_func" >&5
12933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12934 if eval "test \"\${$as_ac_var+set}\" = set"; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937 if test x$gcc_no_link = xyes; then
12938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12940 { (exit 1); exit 1; }; }
12942 cat >conftest.$ac_ext <<_ACEOF
12943 #line $LINENO "configure"
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 /* System header to define __stub macros and hopefully few prototypes,
12950 which can conflict with char $ac_func (); below.
12951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952 <limits.h> exists even on freestanding compilers. */
12953 #ifdef __STDC__
12954 # include <limits.h>
12955 #else
12956 # include <assert.h>
12957 #endif
12958 /* Override any gcc2 internal prototype to avoid an error. */
12959 #ifdef __cplusplus
12960 extern "C"
12962 #endif
12963 /* We use char because int might match the return type of a gcc2
12964 builtin and then its argument prototype would still apply. */
12965 char $ac_func ();
12966 /* The GNU C library defines this for functions which it implements
12967 to always fail with ENOSYS. Some functions are actually named
12968 something starting with __ and the normal name is an alias. */
12969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 choke me
12971 #else
12972 char (*f) () = $ac_func;
12973 #endif
12974 #ifdef __cplusplus
12976 #endif
12979 main ()
12981 return f != $ac_func;
12983 return 0;
12985 _ACEOF
12986 rm -f conftest.$ac_objext conftest$ac_exeext
12987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988 (eval $ac_link) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 eval "$as_ac_var=yes"
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 eval "$as_ac_var=no"
13005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13009 if test `eval echo '${'$as_ac_var'}'` = yes; then
13010 cat >>confdefs.h <<_ACEOF
13011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 _ACEOF
13015 done
13022 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13023 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13024 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13025 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13031 ac_ext=cc
13032 ac_cpp='$CXXCPP $CPPFLAGS'
13033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <math.h>
13046 main ()
13048 hypotf(0, 0);
13050 return 0;
13052 _ACEOF
13053 rm -f conftest.$ac_objext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -s conftest.$ac_objext'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 glibcxx_cv_func_hypotf_use=yes
13066 else
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 glibcxx_cv_func_hypotf_use=no
13072 rm -f conftest.$ac_objext conftest.$ac_ext
13073 ac_ext=c
13074 ac_cpp='$CPP $CPPFLAGS'
13075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13084 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13086 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13088 for ac_func in hypotf
13090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13091 echo "$as_me:$LINENO: checking for $ac_func" >&5
13092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13093 if eval "test \"\${$as_ac_var+set}\" = set"; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 if test x$gcc_no_link = xyes; then
13097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13099 { (exit 1); exit 1; }; }
13101 cat >conftest.$ac_ext <<_ACEOF
13102 #line $LINENO "configure"
13103 /* confdefs.h. */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13108 /* System header to define __stub macros and hopefully few prototypes,
13109 which can conflict with char $ac_func (); below.
13110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13111 <limits.h> exists even on freestanding compilers. */
13112 #ifdef __STDC__
13113 # include <limits.h>
13114 #else
13115 # include <assert.h>
13116 #endif
13117 /* Override any gcc2 internal prototype to avoid an error. */
13118 #ifdef __cplusplus
13119 extern "C"
13121 #endif
13122 /* We use char because int might match the return type of a gcc2
13123 builtin and then its argument prototype would still apply. */
13124 char $ac_func ();
13125 /* The GNU C library defines this for functions which it implements
13126 to always fail with ENOSYS. Some functions are actually named
13127 something starting with __ and the normal name is an alias. */
13128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13129 choke me
13130 #else
13131 char (*f) () = $ac_func;
13132 #endif
13133 #ifdef __cplusplus
13135 #endif
13138 main ()
13140 return f != $ac_func;
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 eval "$as_ac_var=yes"
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 eval "$as_ac_var=no"
13164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13168 if test `eval echo '${'$as_ac_var'}'` = yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13171 _ACEOF
13174 done
13176 else
13178 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13179 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13180 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13181 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13187 ac_ext=cc
13188 ac_cpp='$CXXCPP $CPPFLAGS'
13189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #line $LINENO "configure"
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 #include <math.h>
13202 main ()
13204 _hypotf(0, 0);
13206 return 0;
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 glibcxx_cv_func__hypotf_use=yes
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 glibcxx_cv_func__hypotf_use=no
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13229 ac_ext=c
13230 ac_cpp='$CPP $CPPFLAGS'
13231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13240 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13242 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13244 for ac_func in _hypotf
13246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 echo "$as_me:$LINENO: checking for $ac_func" >&5
13248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_var+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 if test x$gcc_no_link = xyes; then
13253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13255 { (exit 1); exit 1; }; }
13257 cat >conftest.$ac_ext <<_ACEOF
13258 #line $LINENO "configure"
13259 /* confdefs.h. */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 /* System header to define __stub macros and hopefully few prototypes,
13265 which can conflict with char $ac_func (); below.
13266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 <limits.h> exists even on freestanding compilers. */
13268 #ifdef __STDC__
13269 # include <limits.h>
13270 #else
13271 # include <assert.h>
13272 #endif
13273 /* Override any gcc2 internal prototype to avoid an error. */
13274 #ifdef __cplusplus
13275 extern "C"
13277 #endif
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13280 char $ac_func ();
13281 /* The GNU C library defines this for functions which it implements
13282 to always fail with ENOSYS. Some functions are actually named
13283 something starting with __ and the normal name is an alias. */
13284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13285 choke me
13286 #else
13287 char (*f) () = $ac_func;
13288 #endif
13289 #ifdef __cplusplus
13291 #endif
13294 main ()
13296 return f != $ac_func;
13298 return 0;
13300 _ACEOF
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13303 (eval $ac_link) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -s conftest$ac_exeext'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 eval "$as_ac_var=yes"
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 eval "$as_ac_var=no"
13320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13324 if test `eval echo '${'$as_ac_var'}'` = yes; then
13325 cat >>confdefs.h <<_ACEOF
13326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13327 _ACEOF
13330 done
13337 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13338 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13339 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13340 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13346 ac_ext=cc
13347 ac_cpp='$CXXCPP $CPPFLAGS'
13348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13352 cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <math.h>
13361 main ()
13363 ldexpf(0, 0);
13365 return 0;
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -s conftest.$ac_objext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 glibcxx_cv_func_ldexpf_use=yes
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 glibcxx_cv_func_ldexpf_use=no
13387 rm -f conftest.$ac_objext conftest.$ac_ext
13388 ac_ext=c
13389 ac_cpp='$CPP $CPPFLAGS'
13390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13399 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13401 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13403 for ac_func in ldexpf
13405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13406 echo "$as_me:$LINENO: checking for $ac_func" >&5
13407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13408 if eval "test \"\${$as_ac_var+set}\" = set"; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411 if test x$gcc_no_link = xyes; then
13412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13414 { (exit 1); exit 1; }; }
13416 cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 /* System header to define __stub macros and hopefully few prototypes,
13424 which can conflict with char $ac_func (); below.
13425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13426 <limits.h> exists even on freestanding compilers. */
13427 #ifdef __STDC__
13428 # include <limits.h>
13429 #else
13430 # include <assert.h>
13431 #endif
13432 /* Override any gcc2 internal prototype to avoid an error. */
13433 #ifdef __cplusplus
13434 extern "C"
13436 #endif
13437 /* We use char because int might match the return type of a gcc2
13438 builtin and then its argument prototype would still apply. */
13439 char $ac_func ();
13440 /* The GNU C library defines this for functions which it implements
13441 to always fail with ENOSYS. Some functions are actually named
13442 something starting with __ and the normal name is an alias. */
13443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13444 choke me
13445 #else
13446 char (*f) () = $ac_func;
13447 #endif
13448 #ifdef __cplusplus
13450 #endif
13453 main ()
13455 return f != $ac_func;
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_var=yes"
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 eval "$as_ac_var=no"
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13483 if test `eval echo '${'$as_ac_var'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486 _ACEOF
13489 done
13491 else
13493 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13494 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13495 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13496 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13502 ac_ext=cc
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <math.h>
13517 main ()
13519 _ldexpf(0, 0);
13521 return 0;
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 glibcxx_cv_func__ldexpf_use=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 glibcxx_cv_func__ldexpf_use=no
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13544 ac_ext=c
13545 ac_cpp='$CPP $CPPFLAGS'
13546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13554 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13555 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13557 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13559 for ac_func in _ldexpf
13561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13562 echo "$as_me:$LINENO: checking for $ac_func" >&5
13563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13564 if eval "test \"\${$as_ac_var+set}\" = set"; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567 if test x$gcc_no_link = xyes; then
13568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13570 { (exit 1); exit 1; }; }
13572 cat >conftest.$ac_ext <<_ACEOF
13573 #line $LINENO "configure"
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 /* System header to define __stub macros and hopefully few prototypes,
13580 which can conflict with char $ac_func (); below.
13581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13582 <limits.h> exists even on freestanding compilers. */
13583 #ifdef __STDC__
13584 # include <limits.h>
13585 #else
13586 # include <assert.h>
13587 #endif
13588 /* Override any gcc2 internal prototype to avoid an error. */
13589 #ifdef __cplusplus
13590 extern "C"
13592 #endif
13593 /* We use char because int might match the return type of a gcc2
13594 builtin and then its argument prototype would still apply. */
13595 char $ac_func ();
13596 /* The GNU C library defines this for functions which it implements
13597 to always fail with ENOSYS. Some functions are actually named
13598 something starting with __ and the normal name is an alias. */
13599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13600 choke me
13601 #else
13602 char (*f) () = $ac_func;
13603 #endif
13604 #ifdef __cplusplus
13606 #endif
13609 main ()
13611 return f != $ac_func;
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -s conftest$ac_exeext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 eval "$as_ac_var=yes"
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 eval "$as_ac_var=no"
13635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13639 if test `eval echo '${'$as_ac_var'}'` = yes; then
13640 cat >>confdefs.h <<_ACEOF
13641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13642 _ACEOF
13645 done
13652 echo "$as_me:$LINENO: checking for logf declaration" >&5
13653 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13654 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13655 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13661 ac_ext=cc
13662 ac_cpp='$CXXCPP $CPPFLAGS'
13663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13667 cat >conftest.$ac_ext <<_ACEOF
13668 #line $LINENO "configure"
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 #include <math.h>
13675 #ifdef HAVE_IEEEFP_H
13676 #include <ieeefp.h>
13677 #endif
13680 main ()
13682 logf(0);
13684 return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 glibcxx_cv_func_logf_use=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 glibcxx_cv_func_logf_use=no
13706 rm -f conftest.$ac_objext conftest.$ac_ext
13707 ac_ext=c
13708 ac_cpp='$CPP $CPPFLAGS'
13709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13718 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13720 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13722 for ac_func in logf
13724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13725 echo "$as_me:$LINENO: checking for $ac_func" >&5
13726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13727 if eval "test \"\${$as_ac_var+set}\" = set"; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 if test x$gcc_no_link = xyes; then
13731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13733 { (exit 1); exit 1; }; }
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 /* System header to define __stub macros and hopefully few prototypes,
13743 which can conflict with char $ac_func (); below.
13744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13745 <limits.h> exists even on freestanding compilers. */
13746 #ifdef __STDC__
13747 # include <limits.h>
13748 #else
13749 # include <assert.h>
13750 #endif
13751 /* Override any gcc2 internal prototype to avoid an error. */
13752 #ifdef __cplusplus
13753 extern "C"
13755 #endif
13756 /* We use char because int might match the return type of a gcc2
13757 builtin and then its argument prototype would still apply. */
13758 char $ac_func ();
13759 /* The GNU C library defines this for functions which it implements
13760 to always fail with ENOSYS. Some functions are actually named
13761 something starting with __ and the normal name is an alias. */
13762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13763 choke me
13764 #else
13765 char (*f) () = $ac_func;
13766 #endif
13767 #ifdef __cplusplus
13769 #endif
13772 main ()
13774 return f != $ac_func;
13776 return 0;
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 eval "$as_ac_var=yes"
13792 else
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 eval "$as_ac_var=no"
13798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13802 if test `eval echo '${'$as_ac_var'}'` = yes; then
13803 cat >>confdefs.h <<_ACEOF
13804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13805 _ACEOF
13808 done
13810 else
13812 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13813 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13814 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13815 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13821 ac_ext=cc
13822 ac_cpp='$CXXCPP $CPPFLAGS'
13823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13827 cat >conftest.$ac_ext <<_ACEOF
13828 #line $LINENO "configure"
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 #include <math.h>
13835 #ifdef HAVE_IEEEFP_H
13836 #include <ieeefp.h>
13837 #endif
13840 main ()
13842 _logf(0);
13844 return 0;
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849 (eval $ac_compile) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 glibcxx_cv_func__logf_use=yes
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 glibcxx_cv_func__logf_use=no
13866 rm -f conftest.$ac_objext conftest.$ac_ext
13867 ac_ext=c
13868 ac_cpp='$CPP $CPPFLAGS'
13869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13878 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13880 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13882 for ac_func in _logf
13884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13885 echo "$as_me:$LINENO: checking for $ac_func" >&5
13886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13887 if eval "test \"\${$as_ac_var+set}\" = set"; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890 if test x$gcc_no_link = xyes; then
13891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13893 { (exit 1); exit 1; }; }
13895 cat >conftest.$ac_ext <<_ACEOF
13896 #line $LINENO "configure"
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 /* System header to define __stub macros and hopefully few prototypes,
13903 which can conflict with char $ac_func (); below.
13904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13905 <limits.h> exists even on freestanding compilers. */
13906 #ifdef __STDC__
13907 # include <limits.h>
13908 #else
13909 # include <assert.h>
13910 #endif
13911 /* Override any gcc2 internal prototype to avoid an error. */
13912 #ifdef __cplusplus
13913 extern "C"
13915 #endif
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char $ac_func ();
13919 /* The GNU C library defines this for functions which it implements
13920 to always fail with ENOSYS. Some functions are actually named
13921 something starting with __ and the normal name is an alias. */
13922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13923 choke me
13924 #else
13925 char (*f) () = $ac_func;
13926 #endif
13927 #ifdef __cplusplus
13929 #endif
13932 main ()
13934 return f != $ac_func;
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 eval "$as_ac_var=yes"
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 eval "$as_ac_var=no"
13958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13962 if test `eval echo '${'$as_ac_var'}'` = yes; then
13963 cat >>confdefs.h <<_ACEOF
13964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13965 _ACEOF
13968 done
13975 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13976 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13977 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13978 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13984 ac_ext=cc
13985 ac_cpp='$CXXCPP $CPPFLAGS'
13986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 /* confdefs.h. */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <math.h>
13998 #ifdef HAVE_IEEEFP_H
13999 #include <ieeefp.h>
14000 #endif
14003 main ()
14005 log10f(0);
14007 return 0;
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -s conftest.$ac_objext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 glibcxx_cv_func_log10f_use=yes
14023 else
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 glibcxx_cv_func_log10f_use=no
14029 rm -f conftest.$ac_objext conftest.$ac_ext
14030 ac_ext=c
14031 ac_cpp='$CPP $CPPFLAGS'
14032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14041 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14043 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14045 for ac_func in log10f
14047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14048 echo "$as_me:$LINENO: checking for $ac_func" >&5
14049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14050 if eval "test \"\${$as_ac_var+set}\" = set"; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053 if test x$gcc_no_link = xyes; then
14054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14056 { (exit 1); exit 1; }; }
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 /* System header to define __stub macros and hopefully few prototypes,
14066 which can conflict with char $ac_func (); below.
14067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14068 <limits.h> exists even on freestanding compilers. */
14069 #ifdef __STDC__
14070 # include <limits.h>
14071 #else
14072 # include <assert.h>
14073 #endif
14074 /* Override any gcc2 internal prototype to avoid an error. */
14075 #ifdef __cplusplus
14076 extern "C"
14078 #endif
14079 /* We use char because int might match the return type of a gcc2
14080 builtin and then its argument prototype would still apply. */
14081 char $ac_func ();
14082 /* The GNU C library defines this for functions which it implements
14083 to always fail with ENOSYS. Some functions are actually named
14084 something starting with __ and the normal name is an alias. */
14085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14086 choke me
14087 #else
14088 char (*f) () = $ac_func;
14089 #endif
14090 #ifdef __cplusplus
14092 #endif
14095 main ()
14097 return f != $ac_func;
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 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.$ac_objext conftest$ac_exeext conftest.$ac_ext
14123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14125 if test `eval echo '${'$as_ac_var'}'` = yes; then
14126 cat >>confdefs.h <<_ACEOF
14127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14128 _ACEOF
14131 done
14133 else
14135 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14136 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14137 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14138 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14144 ac_ext=cc
14145 ac_cpp='$CXXCPP $CPPFLAGS'
14146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14150 cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <math.h>
14158 #ifdef HAVE_IEEEFP_H
14159 #include <ieeefp.h>
14160 #endif
14163 main ()
14165 _log10f(0);
14167 return 0;
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 glibcxx_cv_func__log10f_use=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 glibcxx_cv_func__log10f_use=no
14189 rm -f conftest.$ac_objext conftest.$ac_ext
14190 ac_ext=c
14191 ac_cpp='$CPP $CPPFLAGS'
14192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14201 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14203 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14205 for ac_func in _log10f
14207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 echo "$as_me:$LINENO: checking for $ac_func" >&5
14209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14210 if eval "test \"\${$as_ac_var+set}\" = set"; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 if test x$gcc_no_link = xyes; then
14214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14216 { (exit 1); exit 1; }; }
14218 cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 /* System header to define __stub macros and hopefully few prototypes,
14226 which can conflict with char $ac_func (); below.
14227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14228 <limits.h> exists even on freestanding compilers. */
14229 #ifdef __STDC__
14230 # include <limits.h>
14231 #else
14232 # include <assert.h>
14233 #endif
14234 /* Override any gcc2 internal prototype to avoid an error. */
14235 #ifdef __cplusplus
14236 extern "C"
14238 #endif
14239 /* We use char because int might match the return type of a gcc2
14240 builtin and then its argument prototype would still apply. */
14241 char $ac_func ();
14242 /* The GNU C library defines this for functions which it implements
14243 to always fail with ENOSYS. Some functions are actually named
14244 something starting with __ and the normal name is an alias. */
14245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14246 choke me
14247 #else
14248 char (*f) () = $ac_func;
14249 #endif
14250 #ifdef __cplusplus
14252 #endif
14255 main ()
14257 return f != $ac_func;
14259 return 0;
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -s conftest$ac_exeext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 eval "$as_ac_var=yes"
14275 else
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 eval "$as_ac_var=no"
14281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14285 if test `eval echo '${'$as_ac_var'}'` = yes; then
14286 cat >>confdefs.h <<_ACEOF
14287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14288 _ACEOF
14291 done
14298 echo "$as_me:$LINENO: checking for modff declaration" >&5
14299 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14300 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14301 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14307 ac_ext=cc
14308 ac_cpp='$CXXCPP $CPPFLAGS'
14309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14313 cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 #include <math.h>
14322 main ()
14324 modff(0, 0);
14326 return 0;
14328 _ACEOF
14329 rm -f conftest.$ac_objext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 glibcxx_cv_func_modff_use=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 glibcxx_cv_func_modff_use=no
14348 rm -f conftest.$ac_objext conftest.$ac_ext
14349 ac_ext=c
14350 ac_cpp='$CPP $CPPFLAGS'
14351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14360 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14362 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14364 for ac_func in modff
14366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367 echo "$as_me:$LINENO: checking for $ac_func" >&5
14368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_var+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 if test x$gcc_no_link = xyes; then
14373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14375 { (exit 1); exit 1; }; }
14377 cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14388 #ifdef __STDC__
14389 # include <limits.h>
14390 #else
14391 # include <assert.h>
14392 #endif
14393 /* Override any gcc2 internal prototype to avoid an error. */
14394 #ifdef __cplusplus
14395 extern "C"
14397 #endif
14398 /* We use char because int might match the return type of a gcc2
14399 builtin and then its argument prototype would still apply. */
14400 char $ac_func ();
14401 /* The GNU C library defines this for functions which it implements
14402 to always fail with ENOSYS. Some functions are actually named
14403 something starting with __ and the normal name is an alias. */
14404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14405 choke me
14406 #else
14407 char (*f) () = $ac_func;
14408 #endif
14409 #ifdef __cplusplus
14411 #endif
14414 main ()
14416 return f != $ac_func;
14418 return 0;
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14423 (eval $ac_link) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try='test -s conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 eval "$as_ac_var=yes"
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 eval "$as_ac_var=no"
14440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14444 if test `eval echo '${'$as_ac_var'}'` = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 _ACEOF
14450 done
14452 else
14454 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14455 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14456 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14457 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14463 ac_ext=cc
14464 ac_cpp='$CXXCPP $CPPFLAGS'
14465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <math.h>
14478 main ()
14480 _modff(0, 0);
14482 return 0;
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 glibcxx_cv_func__modff_use=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 glibcxx_cv_func__modff_use=no
14504 rm -f conftest.$ac_objext conftest.$ac_ext
14505 ac_ext=c
14506 ac_cpp='$CPP $CPPFLAGS'
14507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14516 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14518 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14520 for ac_func in _modff
14522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523 echo "$as_me:$LINENO: checking for $ac_func" >&5
14524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14525 if eval "test \"\${$as_ac_var+set}\" = set"; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 if test x$gcc_no_link = xyes; then
14529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14531 { (exit 1); exit 1; }; }
14533 cat >conftest.$ac_ext <<_ACEOF
14534 #line $LINENO "configure"
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 /* System header to define __stub macros and hopefully few prototypes,
14541 which can conflict with char $ac_func (); below.
14542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14543 <limits.h> exists even on freestanding compilers. */
14544 #ifdef __STDC__
14545 # include <limits.h>
14546 #else
14547 # include <assert.h>
14548 #endif
14549 /* Override any gcc2 internal prototype to avoid an error. */
14550 #ifdef __cplusplus
14551 extern "C"
14553 #endif
14554 /* We use char because int might match the return type of a gcc2
14555 builtin and then its argument prototype would still apply. */
14556 char $ac_func ();
14557 /* The GNU C library defines this for functions which it implements
14558 to always fail with ENOSYS. Some functions are actually named
14559 something starting with __ and the normal name is an alias. */
14560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14561 choke me
14562 #else
14563 char (*f) () = $ac_func;
14564 #endif
14565 #ifdef __cplusplus
14567 #endif
14570 main ()
14572 return f != $ac_func;
14574 return 0;
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579 (eval $ac_link) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 eval "$as_ac_var=yes"
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 eval "$as_ac_var=no"
14596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14600 if test `eval echo '${'$as_ac_var'}'` = yes; then
14601 cat >>confdefs.h <<_ACEOF
14602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14603 _ACEOF
14606 done
14613 echo "$as_me:$LINENO: checking for powf declaration" >&5
14614 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14615 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14616 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14622 ac_ext=cc
14623 ac_cpp='$CXXCPP $CPPFLAGS'
14624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14628 cat >conftest.$ac_ext <<_ACEOF
14629 #line $LINENO "configure"
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 #include <math.h>
14637 main ()
14639 powf(0, 0);
14641 return 0;
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
14656 glibcxx_cv_func_powf_use=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 glibcxx_cv_func_powf_use=no
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14664 ac_ext=c
14665 ac_cpp='$CPP $CPPFLAGS'
14666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14674 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14675 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14677 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14679 for ac_func in powf
14681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14682 echo "$as_me:$LINENO: checking for $ac_func" >&5
14683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14684 if eval "test \"\${$as_ac_var+set}\" = set"; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 if test x$gcc_no_link = xyes; then
14688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14690 { (exit 1); exit 1; }; }
14692 cat >conftest.$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
14703 #ifdef __STDC__
14704 # include <limits.h>
14705 #else
14706 # include <assert.h>
14707 #endif
14708 /* Override any gcc2 internal prototype to avoid an error. */
14709 #ifdef __cplusplus
14710 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14715 char $ac_func ();
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14720 choke me
14721 #else
14722 char (*f) () = $ac_func;
14723 #endif
14724 #ifdef __cplusplus
14726 #endif
14729 main ()
14731 return f != $ac_func;
14733 return 0;
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -s conftest$ac_exeext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 eval "$as_ac_var=yes"
14749 else
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 eval "$as_ac_var=no"
14755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14759 if test `eval echo '${'$as_ac_var'}'` = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14762 _ACEOF
14765 done
14767 else
14769 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14770 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14771 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14772 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14778 ac_ext=cc
14779 ac_cpp='$CXXCPP $CPPFLAGS'
14780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <math.h>
14793 main ()
14795 _powf(0, 0);
14797 return 0;
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -s conftest.$ac_objext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 glibcxx_cv_func__powf_use=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 glibcxx_cv_func__powf_use=no
14819 rm -f conftest.$ac_objext conftest.$ac_ext
14820 ac_ext=c
14821 ac_cpp='$CPP $CPPFLAGS'
14822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14830 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14831 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14833 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14835 for ac_func in _powf
14837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14838 echo "$as_me:$LINENO: checking for $ac_func" >&5
14839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14840 if eval "test \"\${$as_ac_var+set}\" = set"; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 if test x$gcc_no_link = xyes; then
14844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14846 { (exit 1); exit 1; }; }
14848 cat >conftest.$ac_ext <<_ACEOF
14849 #line $LINENO "configure"
14850 /* confdefs.h. */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 /* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char $ac_func (); below.
14857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14858 <limits.h> exists even on freestanding compilers. */
14859 #ifdef __STDC__
14860 # include <limits.h>
14861 #else
14862 # include <assert.h>
14863 #endif
14864 /* Override any gcc2 internal prototype to avoid an error. */
14865 #ifdef __cplusplus
14866 extern "C"
14868 #endif
14869 /* We use char because int might match the return type of a gcc2
14870 builtin and then its argument prototype would still apply. */
14871 char $ac_func ();
14872 /* The GNU C library defines this for functions which it implements
14873 to always fail with ENOSYS. Some functions are actually named
14874 something starting with __ and the normal name is an alias. */
14875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14876 choke me
14877 #else
14878 char (*f) () = $ac_func;
14879 #endif
14880 #ifdef __cplusplus
14882 #endif
14885 main ()
14887 return f != $ac_func;
14889 return 0;
14891 _ACEOF
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -s conftest$ac_exeext'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 eval "$as_ac_var=yes"
14905 else
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 eval "$as_ac_var=no"
14911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14915 if test `eval echo '${'$as_ac_var'}'` = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14918 _ACEOF
14921 done
14928 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14929 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14930 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14931 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14937 ac_ext=cc
14938 ac_cpp='$CXXCPP $CPPFLAGS'
14939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14943 cat >conftest.$ac_ext <<_ACEOF
14944 #line $LINENO "configure"
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 #include <math.h>
14951 #ifdef HAVE_IEEEFP_H
14952 #include <ieeefp.h>
14953 #endif
14956 main ()
14958 sqrtf(0);
14960 return 0;
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 glibcxx_cv_func_sqrtf_use=yes
14976 else
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 glibcxx_cv_func_sqrtf_use=no
14982 rm -f conftest.$ac_objext conftest.$ac_ext
14983 ac_ext=c
14984 ac_cpp='$CPP $CPPFLAGS'
14985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14994 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14996 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14998 for ac_func in sqrtf
15000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15001 echo "$as_me:$LINENO: checking for $ac_func" >&5
15002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15003 if eval "test \"\${$as_ac_var+set}\" = set"; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 if test x$gcc_no_link = xyes; then
15007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15008 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15009 { (exit 1); exit 1; }; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15013 /* confdefs.h. */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char $ac_func (); below.
15020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021 <limits.h> exists even on freestanding compilers. */
15022 #ifdef __STDC__
15023 # include <limits.h>
15024 #else
15025 # include <assert.h>
15026 #endif
15027 /* Override any gcc2 internal prototype to avoid an error. */
15028 #ifdef __cplusplus
15029 extern "C"
15031 #endif
15032 /* We use char because int might match the return type of a gcc2
15033 builtin and then its argument prototype would still apply. */
15034 char $ac_func ();
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15039 choke me
15040 #else
15041 char (*f) () = $ac_func;
15042 #endif
15043 #ifdef __cplusplus
15045 #endif
15048 main ()
15050 return f != $ac_func;
15052 return 0;
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -s conftest$ac_exeext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 eval "$as_ac_var=yes"
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 eval "$as_ac_var=no"
15074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15078 if test `eval echo '${'$as_ac_var'}'` = yes; then
15079 cat >>confdefs.h <<_ACEOF
15080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 _ACEOF
15084 done
15086 else
15088 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15089 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15090 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15091 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 else
15097 ac_ext=cc
15098 ac_cpp='$CXXCPP $CPPFLAGS'
15099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15103 cat >conftest.$ac_ext <<_ACEOF
15104 #line $LINENO "configure"
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <math.h>
15111 #ifdef HAVE_IEEEFP_H
15112 #include <ieeefp.h>
15113 #endif
15116 main ()
15118 _sqrtf(0);
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 glibcxx_cv_func__sqrtf_use=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 glibcxx_cv_func__sqrtf_use=no
15142 rm -f conftest.$ac_objext conftest.$ac_ext
15143 ac_ext=c
15144 ac_cpp='$CPP $CPPFLAGS'
15145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15153 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15154 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15156 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15158 for ac_func in _sqrtf
15160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15161 echo "$as_me:$LINENO: checking for $ac_func" >&5
15162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15163 if eval "test \"\${$as_ac_var+set}\" = set"; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 if test x$gcc_no_link = xyes; then
15167 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15168 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15169 { (exit 1); exit 1; }; }
15171 cat >conftest.$ac_ext <<_ACEOF
15172 #line $LINENO "configure"
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 /* System header to define __stub macros and hopefully few prototypes,
15179 which can conflict with char $ac_func (); below.
15180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15181 <limits.h> exists even on freestanding compilers. */
15182 #ifdef __STDC__
15183 # include <limits.h>
15184 #else
15185 # include <assert.h>
15186 #endif
15187 /* Override any gcc2 internal prototype to avoid an error. */
15188 #ifdef __cplusplus
15189 extern "C"
15191 #endif
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char $ac_func ();
15195 /* The GNU C library defines this for functions which it implements
15196 to always fail with ENOSYS. Some functions are actually named
15197 something starting with __ and the normal name is an alias. */
15198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15199 choke me
15200 #else
15201 char (*f) () = $ac_func;
15202 #endif
15203 #ifdef __cplusplus
15205 #endif
15208 main ()
15210 return f != $ac_func;
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -s conftest$ac_exeext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 eval "$as_ac_var=yes"
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 eval "$as_ac_var=no"
15234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15238 if test `eval echo '${'$as_ac_var'}'` = yes; then
15239 cat >>confdefs.h <<_ACEOF
15240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241 _ACEOF
15244 done
15251 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15252 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15253 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15254 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15260 ac_ext=cc
15261 ac_cpp='$CXXCPP $CPPFLAGS'
15262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15266 cat >conftest.$ac_ext <<_ACEOF
15267 #line $LINENO "configure"
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <math.h>
15275 main ()
15277 sincosf(0, 0, 0);
15279 return 0;
15281 _ACEOF
15282 rm -f conftest.$ac_objext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15284 (eval $ac_compile) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -s conftest.$ac_objext'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 glibcxx_cv_func_sincosf_use=yes
15295 else
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 glibcxx_cv_func_sincosf_use=no
15301 rm -f conftest.$ac_objext conftest.$ac_ext
15302 ac_ext=c
15303 ac_cpp='$CPP $CPPFLAGS'
15304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15312 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15313 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15315 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15317 for ac_func in sincosf
15319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15320 echo "$as_me:$LINENO: checking for $ac_func" >&5
15321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_var+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 if test x$gcc_no_link = xyes; then
15326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15328 { (exit 1); exit 1; }; }
15330 cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* System header to define __stub macros and hopefully few prototypes,
15338 which can conflict with char $ac_func (); below.
15339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15340 <limits.h> exists even on freestanding compilers. */
15341 #ifdef __STDC__
15342 # include <limits.h>
15343 #else
15344 # include <assert.h>
15345 #endif
15346 /* Override any gcc2 internal prototype to avoid an error. */
15347 #ifdef __cplusplus
15348 extern "C"
15350 #endif
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15353 char $ac_func ();
15354 /* The GNU C library defines this for functions which it implements
15355 to always fail with ENOSYS. Some functions are actually named
15356 something starting with __ and the normal name is an alias. */
15357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15358 choke me
15359 #else
15360 char (*f) () = $ac_func;
15361 #endif
15362 #ifdef __cplusplus
15364 #endif
15367 main ()
15369 return f != $ac_func;
15371 return 0;
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 eval "$as_ac_var=yes"
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 eval "$as_ac_var=no"
15393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15397 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15400 _ACEOF
15403 done
15405 else
15407 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15408 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15409 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15410 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15416 ac_ext=cc
15417 ac_cpp='$CXXCPP $CPPFLAGS'
15418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <math.h>
15431 main ()
15433 _sincosf(0, 0, 0);
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 glibcxx_cv_func__sincosf_use=yes
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 glibcxx_cv_func__sincosf_use=no
15457 rm -f conftest.$ac_objext conftest.$ac_ext
15458 ac_ext=c
15459 ac_cpp='$CPP $CPPFLAGS'
15460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15468 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15469 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15471 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15473 for ac_func in _sincosf
15475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15476 echo "$as_me:$LINENO: checking for $ac_func" >&5
15477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_var+set}\" = set"; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 if test x$gcc_no_link = xyes; then
15482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15484 { (exit 1); exit 1; }; }
15486 cat >conftest.$ac_ext <<_ACEOF
15487 #line $LINENO "configure"
15488 /* confdefs.h. */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 /* System header to define __stub macros and hopefully few prototypes,
15494 which can conflict with char $ac_func (); below.
15495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15496 <limits.h> exists even on freestanding compilers. */
15497 #ifdef __STDC__
15498 # include <limits.h>
15499 #else
15500 # include <assert.h>
15501 #endif
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 #ifdef __cplusplus
15504 extern "C"
15506 #endif
15507 /* We use char because int might match the return type of a gcc2
15508 builtin and then its argument prototype would still apply. */
15509 char $ac_func ();
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 choke me
15515 #else
15516 char (*f) () = $ac_func;
15517 #endif
15518 #ifdef __cplusplus
15520 #endif
15523 main ()
15525 return f != $ac_func;
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15532 (eval $ac_link) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -s conftest$ac_exeext'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; }; then
15542 eval "$as_ac_var=yes"
15543 else
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 eval "$as_ac_var=no"
15549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15553 if test `eval echo '${'$as_ac_var'}'` = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15556 _ACEOF
15559 done
15566 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15567 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15568 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15569 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15575 ac_ext=cc
15576 ac_cpp='$CXXCPP $CPPFLAGS'
15577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <math.h>
15589 #ifdef HAVE_IEEEFP_H
15590 #include <ieeefp.h>
15591 #endif
15594 main ()
15596 finitef(0);
15598 return 0;
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603 (eval $ac_compile) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 glibcxx_cv_func_finitef_use=yes
15614 else
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 glibcxx_cv_func_finitef_use=no
15620 rm -f conftest.$ac_objext conftest.$ac_ext
15621 ac_ext=c
15622 ac_cpp='$CPP $CPPFLAGS'
15623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15631 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15632 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15634 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15636 for ac_func in finitef
15638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15639 echo "$as_me:$LINENO: checking for $ac_func" >&5
15640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15641 if eval "test \"\${$as_ac_var+set}\" = set"; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644 if test x$gcc_no_link = xyes; then
15645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15647 { (exit 1); exit 1; }; }
15649 cat >conftest.$ac_ext <<_ACEOF
15650 #line $LINENO "configure"
15651 /* confdefs.h. */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 /* System header to define __stub macros and hopefully few prototypes,
15657 which can conflict with char $ac_func (); below.
15658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659 <limits.h> exists even on freestanding compilers. */
15660 #ifdef __STDC__
15661 # include <limits.h>
15662 #else
15663 # include <assert.h>
15664 #endif
15665 /* Override any gcc2 internal prototype to avoid an error. */
15666 #ifdef __cplusplus
15667 extern "C"
15669 #endif
15670 /* We use char because int might match the return type of a gcc2
15671 builtin and then its argument prototype would still apply. */
15672 char $ac_func ();
15673 /* The GNU C library defines this for functions which it implements
15674 to always fail with ENOSYS. Some functions are actually named
15675 something starting with __ and the normal name is an alias. */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 char (*f) () = $ac_func;
15680 #endif
15681 #ifdef __cplusplus
15683 #endif
15686 main ()
15688 return f != $ac_func;
15690 return 0;
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 eval "$as_ac_var=yes"
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 eval "$as_ac_var=no"
15712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15719 _ACEOF
15722 done
15724 else
15726 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15727 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15728 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15729 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15735 ac_ext=cc
15736 ac_cpp='$CXXCPP $CPPFLAGS'
15737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15741 cat >conftest.$ac_ext <<_ACEOF
15742 #line $LINENO "configure"
15743 /* confdefs.h. */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <math.h>
15749 #ifdef HAVE_IEEEFP_H
15750 #include <ieeefp.h>
15751 #endif
15754 main ()
15756 _finitef(0);
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 glibcxx_cv_func__finitef_use=yes
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 glibcxx_cv_func__finitef_use=no
15780 rm -f conftest.$ac_objext conftest.$ac_ext
15781 ac_ext=c
15782 ac_cpp='$CPP $CPPFLAGS'
15783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15791 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15792 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15794 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15796 for ac_func in _finitef
15798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_var+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 if test x$gcc_no_link = xyes; then
15805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15807 { (exit 1); exit 1; }; }
15809 cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 /* System header to define __stub macros and hopefully few prototypes,
15817 which can conflict with char $ac_func (); below.
15818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819 <limits.h> exists even on freestanding compilers. */
15820 #ifdef __STDC__
15821 # include <limits.h>
15822 #else
15823 # include <assert.h>
15824 #endif
15825 /* Override any gcc2 internal prototype to avoid an error. */
15826 #ifdef __cplusplus
15827 extern "C"
15829 #endif
15830 /* We use char because int might match the return type of a gcc2
15831 builtin and then its argument prototype would still apply. */
15832 char $ac_func ();
15833 /* The GNU C library defines this for functions which it implements
15834 to always fail with ENOSYS. Some functions are actually named
15835 something starting with __ and the normal name is an alias. */
15836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 choke me
15838 #else
15839 char (*f) () = $ac_func;
15840 #endif
15841 #ifdef __cplusplus
15843 #endif
15846 main ()
15848 return f != $ac_func;
15850 return 0;
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -s conftest$ac_exeext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 eval "$as_ac_var=yes"
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 eval "$as_ac_var=no"
15872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879 _ACEOF
15882 done
15889 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15890 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15891 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15897 ac_ext=cc
15898 ac_cpp='$CXXCPP $CPPFLAGS'
15899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15903 cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 #include <math.h>
15912 main ()
15914 `for x in acosl asinl atanl \
15915 cosl sinl tanl \
15916 coshl sinhl tanhl; do echo "$x (0);"; done`
15918 return 0;
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923 (eval $ac_compile) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 glibcxx_cv_func_long_double_trig_use=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 glibcxx_cv_func_long_double_trig_use=no
15940 rm -f conftest.$ac_objext conftest.$ac_ext
15941 ac_ext=c
15942 ac_cpp='$CPP $CPPFLAGS'
15943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15949 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15950 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15951 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15961 for ac_func in acosl asinl atanl \
15962 cosl sinl tanl \
15963 coshl sinhl tanhl
15965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15966 echo "$as_me:$LINENO: checking for $ac_func" >&5
15967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15968 if eval "test \"\${$as_ac_var+set}\" = set"; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971 if test x$gcc_no_link = xyes; then
15972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15974 { (exit 1); exit 1; }; }
15976 cat >conftest.$ac_ext <<_ACEOF
15977 #line $LINENO "configure"
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 /* System header to define __stub macros and hopefully few prototypes,
15984 which can conflict with char $ac_func (); below.
15985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15986 <limits.h> exists even on freestanding compilers. */
15987 #ifdef __STDC__
15988 # include <limits.h>
15989 #else
15990 # include <assert.h>
15991 #endif
15992 /* Override any gcc2 internal prototype to avoid an error. */
15993 #ifdef __cplusplus
15994 extern "C"
15996 #endif
15997 /* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
15999 char $ac_func ();
16000 /* The GNU C library defines this for functions which it implements
16001 to always fail with ENOSYS. Some functions are actually named
16002 something starting with __ and the normal name is an alias. */
16003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16004 choke me
16005 #else
16006 char (*f) () = $ac_func;
16007 #endif
16008 #ifdef __cplusplus
16010 #endif
16013 main ()
16015 return f != $ac_func;
16017 return 0;
16019 _ACEOF
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022 (eval $ac_link) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 eval "$as_ac_var=yes"
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 eval "$as_ac_var=no"
16039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16043 if test `eval echo '${'$as_ac_var'}'` = yes; then
16044 cat >>confdefs.h <<_ACEOF
16045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16046 _ACEOF
16049 done
16054 echo "$as_me:$LINENO: checking for long double round functions" >&5
16055 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16056 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16062 ac_ext=cc
16063 ac_cpp='$CXXCPP $CPPFLAGS'
16064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16068 cat >conftest.$ac_ext <<_ACEOF
16069 #line $LINENO "configure"
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #include <math.h>
16077 main ()
16079 `for x in ceill floorl; do echo "$x (0);"; done`
16081 return 0;
16083 _ACEOF
16084 rm -f conftest.$ac_objext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16086 (eval $ac_compile) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -s conftest.$ac_objext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 glibcxx_cv_func_long_double_round_use=yes
16097 else
16098 echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 glibcxx_cv_func_long_double_round_use=no
16103 rm -f conftest.$ac_objext conftest.$ac_ext
16104 ac_ext=c
16105 ac_cpp='$CPP $CPPFLAGS'
16106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16112 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16113 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16114 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16117 for ac_func in ceill floorl
16119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16120 echo "$as_me:$LINENO: checking for $ac_func" >&5
16121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16122 if eval "test \"\${$as_ac_var+set}\" = set"; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125 if test x$gcc_no_link = xyes; then
16126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16128 { (exit 1); exit 1; }; }
16130 cat >conftest.$ac_ext <<_ACEOF
16131 #line $LINENO "configure"
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 /* System header to define __stub macros and hopefully few prototypes,
16138 which can conflict with char $ac_func (); below.
16139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16140 <limits.h> exists even on freestanding compilers. */
16141 #ifdef __STDC__
16142 # include <limits.h>
16143 #else
16144 # include <assert.h>
16145 #endif
16146 /* Override any gcc2 internal prototype to avoid an error. */
16147 #ifdef __cplusplus
16148 extern "C"
16150 #endif
16151 /* We use char because int might match the return type of a gcc2
16152 builtin and then its argument prototype would still apply. */
16153 char $ac_func ();
16154 /* The GNU C library defines this for functions which it implements
16155 to always fail with ENOSYS. Some functions are actually named
16156 something starting with __ and the normal name is an alias. */
16157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16158 choke me
16159 #else
16160 char (*f) () = $ac_func;
16161 #endif
16162 #ifdef __cplusplus
16164 #endif
16167 main ()
16169 return f != $ac_func;
16171 return 0;
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 eval "$as_ac_var=yes"
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 eval "$as_ac_var=no"
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16197 if test `eval echo '${'$as_ac_var'}'` = yes; then
16198 cat >>confdefs.h <<_ACEOF
16199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16200 _ACEOF
16203 done
16209 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16210 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16211 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16212 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16218 ac_ext=cc
16219 ac_cpp='$CXXCPP $CPPFLAGS'
16220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16224 cat >conftest.$ac_ext <<_ACEOF
16225 #line $LINENO "configure"
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <math.h>
16232 #ifdef HAVE_IEEEFP_H
16233 #include <ieeefp.h>
16234 #endif
16237 main ()
16239 isnanl(0);
16241 return 0;
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 glibcxx_cv_func_isnanl_use=yes
16257 else
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 glibcxx_cv_func_isnanl_use=no
16263 rm -f conftest.$ac_objext conftest.$ac_ext
16264 ac_ext=c
16265 ac_cpp='$CPP $CPPFLAGS'
16266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16274 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16275 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16277 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16279 for ac_func in isnanl
16281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16282 echo "$as_me:$LINENO: checking for $ac_func" >&5
16283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16284 if eval "test \"\${$as_ac_var+set}\" = set"; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287 if test x$gcc_no_link = xyes; then
16288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16290 { (exit 1); exit 1; }; }
16292 cat >conftest.$ac_ext <<_ACEOF
16293 #line $LINENO "configure"
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 /* System header to define __stub macros and hopefully few prototypes,
16300 which can conflict with char $ac_func (); below.
16301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16302 <limits.h> exists even on freestanding compilers. */
16303 #ifdef __STDC__
16304 # include <limits.h>
16305 #else
16306 # include <assert.h>
16307 #endif
16308 /* Override any gcc2 internal prototype to avoid an error. */
16309 #ifdef __cplusplus
16310 extern "C"
16312 #endif
16313 /* We use char because int might match the return type of a gcc2
16314 builtin and then its argument prototype would still apply. */
16315 char $ac_func ();
16316 /* The GNU C library defines this for functions which it implements
16317 to always fail with ENOSYS. Some functions are actually named
16318 something starting with __ and the normal name is an alias. */
16319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16320 choke me
16321 #else
16322 char (*f) () = $ac_func;
16323 #endif
16324 #ifdef __cplusplus
16326 #endif
16329 main ()
16331 return f != $ac_func;
16333 return 0;
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -s conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 eval "$as_ac_var=yes"
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 eval "$as_ac_var=no"
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16359 if test `eval echo '${'$as_ac_var'}'` = yes; then
16360 cat >>confdefs.h <<_ACEOF
16361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16362 _ACEOF
16365 done
16367 else
16369 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16370 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16371 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16372 if test "${glibcxx_cv_func__isnanl_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 #line $LINENO "configure"
16386 /* confdefs.h. */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 #include <math.h>
16392 #ifdef HAVE_IEEEFP_H
16393 #include <ieeefp.h>
16394 #endif
16397 main ()
16399 _isnanl(0);
16401 return 0;
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 glibcxx_cv_func__isnanl_use=yes
16417 else
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 glibcxx_cv_func__isnanl_use=no
16423 rm -f conftest.$ac_objext conftest.$ac_ext
16424 ac_ext=c
16425 ac_cpp='$CPP $CPPFLAGS'
16426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16435 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16437 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16439 for ac_func in _isnanl
16441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 echo "$as_me:$LINENO: checking for $ac_func" >&5
16443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16444 if eval "test \"\${$as_ac_var+set}\" = set"; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 if test x$gcc_no_link = xyes; then
16448 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16450 { (exit 1); exit 1; }; }
16452 cat >conftest.$ac_ext <<_ACEOF
16453 #line $LINENO "configure"
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 /* System header to define __stub macros and hopefully few prototypes,
16460 which can conflict with char $ac_func (); below.
16461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16462 <limits.h> exists even on freestanding compilers. */
16463 #ifdef __STDC__
16464 # include <limits.h>
16465 #else
16466 # include <assert.h>
16467 #endif
16468 /* Override any gcc2 internal prototype to avoid an error. */
16469 #ifdef __cplusplus
16470 extern "C"
16472 #endif
16473 /* We use char because int might match the return type of a gcc2
16474 builtin and then its argument prototype would still apply. */
16475 char $ac_func ();
16476 /* The GNU C library defines this for functions which it implements
16477 to always fail with ENOSYS. Some functions are actually named
16478 something starting with __ and the normal name is an alias. */
16479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16480 choke me
16481 #else
16482 char (*f) () = $ac_func;
16483 #endif
16484 #ifdef __cplusplus
16486 #endif
16489 main ()
16491 return f != $ac_func;
16493 return 0;
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -s conftest$ac_exeext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 eval "$as_ac_var=yes"
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 eval "$as_ac_var=no"
16515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16519 if test `eval echo '${'$as_ac_var'}'` = yes; then
16520 cat >>confdefs.h <<_ACEOF
16521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16522 _ACEOF
16525 done
16532 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16533 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16534 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16535 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16541 ac_ext=cc
16542 ac_cpp='$CXXCPP $CPPFLAGS'
16543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16547 cat >conftest.$ac_ext <<_ACEOF
16548 #line $LINENO "configure"
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <math.h>
16555 #ifdef HAVE_IEEEFP_H
16556 #include <ieeefp.h>
16557 #endif
16560 main ()
16562 isinfl(0);
16564 return 0;
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569 (eval $ac_compile) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 glibcxx_cv_func_isinfl_use=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 glibcxx_cv_func_isinfl_use=no
16586 rm -f conftest.$ac_objext conftest.$ac_ext
16587 ac_ext=c
16588 ac_cpp='$CPP $CPPFLAGS'
16589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16597 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16598 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16600 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16602 for ac_func in isinfl
16604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16605 echo "$as_me:$LINENO: checking for $ac_func" >&5
16606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16607 if eval "test \"\${$as_ac_var+set}\" = set"; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 if test x$gcc_no_link = xyes; then
16611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16613 { (exit 1); exit 1; }; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 #line $LINENO "configure"
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 /* System header to define __stub macros and hopefully few prototypes,
16623 which can conflict with char $ac_func (); below.
16624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16625 <limits.h> exists even on freestanding compilers. */
16626 #ifdef __STDC__
16627 # include <limits.h>
16628 #else
16629 # include <assert.h>
16630 #endif
16631 /* Override any gcc2 internal prototype to avoid an error. */
16632 #ifdef __cplusplus
16633 extern "C"
16635 #endif
16636 /* We use char because int might match the return type of a gcc2
16637 builtin and then its argument prototype would still apply. */
16638 char $ac_func ();
16639 /* The GNU C library defines this for functions which it implements
16640 to always fail with ENOSYS. Some functions are actually named
16641 something starting with __ and the normal name is an alias. */
16642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16643 choke me
16644 #else
16645 char (*f) () = $ac_func;
16646 #endif
16647 #ifdef __cplusplus
16649 #endif
16652 main ()
16654 return f != $ac_func;
16656 return 0;
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 eval "$as_ac_var=yes"
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 eval "$as_ac_var=no"
16678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16682 if test `eval echo '${'$as_ac_var'}'` = yes; then
16683 cat >>confdefs.h <<_ACEOF
16684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16685 _ACEOF
16688 done
16690 else
16692 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16693 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16694 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16695 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16701 ac_ext=cc
16702 ac_cpp='$CXXCPP $CPPFLAGS'
16703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16707 cat >conftest.$ac_ext <<_ACEOF
16708 #line $LINENO "configure"
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <math.h>
16715 #ifdef HAVE_IEEEFP_H
16716 #include <ieeefp.h>
16717 #endif
16720 main ()
16722 _isinfl(0);
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 glibcxx_cv_func__isinfl_use=yes
16740 else
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 glibcxx_cv_func__isinfl_use=no
16746 rm -f conftest.$ac_objext conftest.$ac_ext
16747 ac_ext=c
16748 ac_cpp='$CPP $CPPFLAGS'
16749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16757 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16758 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16760 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16762 for ac_func in _isinfl
16764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 echo "$as_me:$LINENO: checking for $ac_func" >&5
16766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16767 if eval "test \"\${$as_ac_var+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 if test x$gcc_no_link = xyes; then
16771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16773 { (exit 1); exit 1; }; }
16775 cat >conftest.$ac_ext <<_ACEOF
16776 #line $LINENO "configure"
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 /* System header to define __stub macros and hopefully few prototypes,
16783 which can conflict with char $ac_func (); below.
16784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16785 <limits.h> exists even on freestanding compilers. */
16786 #ifdef __STDC__
16787 # include <limits.h>
16788 #else
16789 # include <assert.h>
16790 #endif
16791 /* Override any gcc2 internal prototype to avoid an error. */
16792 #ifdef __cplusplus
16793 extern "C"
16795 #endif
16796 /* We use char because int might match the return type of a gcc2
16797 builtin and then its argument prototype would still apply. */
16798 char $ac_func ();
16799 /* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
16802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16803 choke me
16804 #else
16805 char (*f) () = $ac_func;
16806 #endif
16807 #ifdef __cplusplus
16809 #endif
16812 main ()
16814 return f != $ac_func;
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -s conftest$ac_exeext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 eval "$as_ac_var=yes"
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 eval "$as_ac_var=no"
16838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16842 if test `eval echo '${'$as_ac_var'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16845 _ACEOF
16848 done
16855 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16856 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16857 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16858 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16864 ac_ext=cc
16865 ac_cpp='$CXXCPP $CPPFLAGS'
16866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16870 cat >conftest.$ac_ext <<_ACEOF
16871 #line $LINENO "configure"
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #include <math.h>
16879 main ()
16881 copysignl(0, 0);
16883 return 0;
16885 _ACEOF
16886 rm -f conftest.$ac_objext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 glibcxx_cv_func_copysignl_use=yes
16899 else
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 glibcxx_cv_func_copysignl_use=no
16905 rm -f conftest.$ac_objext conftest.$ac_ext
16906 ac_ext=c
16907 ac_cpp='$CPP $CPPFLAGS'
16908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16916 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16917 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16919 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16921 for ac_func in copysignl
16923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16924 echo "$as_me:$LINENO: checking for $ac_func" >&5
16925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16926 if eval "test \"\${$as_ac_var+set}\" = set"; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929 if test x$gcc_no_link = xyes; then
16930 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16931 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16932 { (exit 1); exit 1; }; }
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 /* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func (); below.
16943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944 <limits.h> exists even on freestanding compilers. */
16945 #ifdef __STDC__
16946 # include <limits.h>
16947 #else
16948 # include <assert.h>
16949 #endif
16950 /* Override any gcc2 internal prototype to avoid an error. */
16951 #ifdef __cplusplus
16952 extern "C"
16954 #endif
16955 /* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16957 char $ac_func ();
16958 /* The GNU C library defines this for functions which it implements
16959 to always fail with ENOSYS. Some functions are actually named
16960 something starting with __ and the normal name is an alias. */
16961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16962 choke me
16963 #else
16964 char (*f) () = $ac_func;
16965 #endif
16966 #ifdef __cplusplus
16968 #endif
16971 main ()
16973 return f != $ac_func;
16975 return 0;
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 eval "$as_ac_var=yes"
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 eval "$as_ac_var=no"
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17001 if test `eval echo '${'$as_ac_var'}'` = yes; then
17002 cat >>confdefs.h <<_ACEOF
17003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17004 _ACEOF
17007 done
17009 else
17011 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
17012 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17013 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17014 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17020 ac_ext=cc
17021 ac_cpp='$CXXCPP $CPPFLAGS'
17022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17026 cat >conftest.$ac_ext <<_ACEOF
17027 #line $LINENO "configure"
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 #include <math.h>
17035 main ()
17037 _copysignl(0, 0);
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 glibcxx_cv_func__copysignl_use=yes
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 glibcxx_cv_func__copysignl_use=no
17061 rm -f conftest.$ac_objext conftest.$ac_ext
17062 ac_ext=c
17063 ac_cpp='$CPP $CPPFLAGS'
17064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17072 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17073 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17075 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17077 for ac_func in _copysignl
17079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080 echo "$as_me:$LINENO: checking for $ac_func" >&5
17081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17082 if eval "test \"\${$as_ac_var+set}\" = set"; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085 if test x$gcc_no_link = xyes; then
17086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17088 { (exit 1); exit 1; }; }
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 /* System header to define __stub macros and hopefully few prototypes,
17098 which can conflict with char $ac_func (); below.
17099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100 <limits.h> exists even on freestanding compilers. */
17101 #ifdef __STDC__
17102 # include <limits.h>
17103 #else
17104 # include <assert.h>
17105 #endif
17106 /* Override any gcc2 internal prototype to avoid an error. */
17107 #ifdef __cplusplus
17108 extern "C"
17110 #endif
17111 /* We use char because int might match the return type of a gcc2
17112 builtin and then its argument prototype would still apply. */
17113 char $ac_func ();
17114 /* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17118 choke me
17119 #else
17120 char (*f) () = $ac_func;
17121 #endif
17122 #ifdef __cplusplus
17124 #endif
17127 main ()
17129 return f != $ac_func;
17131 return 0;
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 eval "$as_ac_var=yes"
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 eval "$as_ac_var=no"
17153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 _ACEOF
17163 done
17170 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17171 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17172 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17173 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17179 ac_ext=cc
17180 ac_cpp='$CXXCPP $CPPFLAGS'
17181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17185 cat >conftest.$ac_ext <<_ACEOF
17186 #line $LINENO "configure"
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <math.h>
17194 main ()
17196 atan2l(0, 0);
17198 return 0;
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 glibcxx_cv_func_atan2l_use=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 glibcxx_cv_func_atan2l_use=no
17220 rm -f conftest.$ac_objext conftest.$ac_ext
17221 ac_ext=c
17222 ac_cpp='$CPP $CPPFLAGS'
17223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17231 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17232 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17234 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17236 for ac_func in atan2l
17238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17239 echo "$as_me:$LINENO: checking for $ac_func" >&5
17240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17241 if eval "test \"\${$as_ac_var+set}\" = set"; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 if test x$gcc_no_link = xyes; then
17245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17247 { (exit 1); exit 1; }; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 #line $LINENO "configure"
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 /* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17260 #ifdef __STDC__
17261 # include <limits.h>
17262 #else
17263 # include <assert.h>
17264 #endif
17265 /* Override any gcc2 internal prototype to avoid an error. */
17266 #ifdef __cplusplus
17267 extern "C"
17269 #endif
17270 /* We use char because int might match the return type of a gcc2
17271 builtin and then its argument prototype would still apply. */
17272 char $ac_func ();
17273 /* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17277 choke me
17278 #else
17279 char (*f) () = $ac_func;
17280 #endif
17281 #ifdef __cplusplus
17283 #endif
17286 main ()
17288 return f != $ac_func;
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17316 if test `eval echo '${'$as_ac_var'}'` = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17319 _ACEOF
17322 done
17324 else
17326 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17327 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17328 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17329 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17335 ac_ext=cc
17336 ac_cpp='$CXXCPP $CPPFLAGS'
17337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17341 cat >conftest.$ac_ext <<_ACEOF
17342 #line $LINENO "configure"
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 #include <math.h>
17350 main ()
17352 _atan2l(0, 0);
17354 return 0;
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -s conftest.$ac_objext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 glibcxx_cv_func__atan2l_use=yes
17370 else
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 glibcxx_cv_func__atan2l_use=no
17376 rm -f conftest.$ac_objext conftest.$ac_ext
17377 ac_ext=c
17378 ac_cpp='$CPP $CPPFLAGS'
17379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17387 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17388 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17390 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17392 for ac_func in _atan2l
17394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17395 echo "$as_me:$LINENO: checking for $ac_func" >&5
17396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17397 if eval "test \"\${$as_ac_var+set}\" = set"; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400 if test x$gcc_no_link = xyes; then
17401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17403 { (exit 1); exit 1; }; }
17405 cat >conftest.$ac_ext <<_ACEOF
17406 #line $LINENO "configure"
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 /* System header to define __stub macros and hopefully few prototypes,
17413 which can conflict with char $ac_func (); below.
17414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17415 <limits.h> exists even on freestanding compilers. */
17416 #ifdef __STDC__
17417 # include <limits.h>
17418 #else
17419 # include <assert.h>
17420 #endif
17421 /* Override any gcc2 internal prototype to avoid an error. */
17422 #ifdef __cplusplus
17423 extern "C"
17425 #endif
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17428 char $ac_func ();
17429 /* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433 choke me
17434 #else
17435 char (*f) () = $ac_func;
17436 #endif
17437 #ifdef __cplusplus
17439 #endif
17442 main ()
17444 return f != $ac_func;
17446 return 0;
17448 _ACEOF
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -s conftest$ac_exeext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 eval "$as_ac_var=yes"
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 eval "$as_ac_var=no"
17468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17472 if test `eval echo '${'$as_ac_var'}'` = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17475 _ACEOF
17478 done
17485 echo "$as_me:$LINENO: checking for expl declaration" >&5
17486 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17487 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17488 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17494 ac_ext=cc
17495 ac_cpp='$CXXCPP $CPPFLAGS'
17496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17500 cat >conftest.$ac_ext <<_ACEOF
17501 #line $LINENO "configure"
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 #include <math.h>
17508 #ifdef HAVE_IEEEFP_H
17509 #include <ieeefp.h>
17510 #endif
17513 main ()
17515 expl(0);
17517 return 0;
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 glibcxx_cv_func_expl_use=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 glibcxx_cv_func_expl_use=no
17539 rm -f conftest.$ac_objext conftest.$ac_ext
17540 ac_ext=c
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17550 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17551 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17553 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17555 for ac_func in expl
17557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17558 echo "$as_me:$LINENO: checking for $ac_func" >&5
17559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_var+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 if test x$gcc_no_link = xyes; then
17564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17566 { (exit 1); exit 1; }; }
17568 cat >conftest.$ac_ext <<_ACEOF
17569 #line $LINENO "configure"
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579 #ifdef __STDC__
17580 # include <limits.h>
17581 #else
17582 # include <assert.h>
17583 #endif
17584 /* Override any gcc2 internal prototype to avoid an error. */
17585 #ifdef __cplusplus
17586 extern "C"
17588 #endif
17589 /* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591 char $ac_func ();
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17596 choke me
17597 #else
17598 char (*f) () = $ac_func;
17599 #endif
17600 #ifdef __cplusplus
17602 #endif
17605 main ()
17607 return f != $ac_func;
17609 return 0;
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 eval "$as_ac_var=yes"
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 eval "$as_ac_var=no"
17631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17635 if test `eval echo '${'$as_ac_var'}'` = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 _ACEOF
17641 done
17643 else
17645 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17646 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17647 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17648 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17654 ac_ext=cc
17655 ac_cpp='$CXXCPP $CPPFLAGS'
17656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17660 cat >conftest.$ac_ext <<_ACEOF
17661 #line $LINENO "configure"
17662 /* confdefs.h. */
17663 _ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h. */
17667 #include <math.h>
17668 #ifdef HAVE_IEEEFP_H
17669 #include <ieeefp.h>
17670 #endif
17673 main ()
17675 _expl(0);
17677 return 0;
17679 _ACEOF
17680 rm -f conftest.$ac_objext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17682 (eval $ac_compile) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 glibcxx_cv_func__expl_use=yes
17693 else
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 glibcxx_cv_func__expl_use=no
17699 rm -f conftest.$ac_objext conftest.$ac_ext
17700 ac_ext=c
17701 ac_cpp='$CPP $CPPFLAGS'
17702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17710 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17711 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17713 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17715 for ac_func in _expl
17717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17718 echo "$as_me:$LINENO: checking for $ac_func" >&5
17719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17720 if eval "test \"\${$as_ac_var+set}\" = set"; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 if test x$gcc_no_link = xyes; then
17724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17726 { (exit 1); exit 1; }; }
17728 cat >conftest.$ac_ext <<_ACEOF
17729 #line $LINENO "configure"
17730 /* confdefs.h. */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17739 #ifdef __STDC__
17740 # include <limits.h>
17741 #else
17742 # include <assert.h>
17743 #endif
17744 /* Override any gcc2 internal prototype to avoid an error. */
17745 #ifdef __cplusplus
17746 extern "C"
17748 #endif
17749 /* We use char because int might match the return type of a gcc2
17750 builtin and then its argument prototype would still apply. */
17751 char $ac_func ();
17752 /* The GNU C library defines this for functions which it implements
17753 to always fail with ENOSYS. Some functions are actually named
17754 something starting with __ and the normal name is an alias. */
17755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17756 choke me
17757 #else
17758 char (*f) () = $ac_func;
17759 #endif
17760 #ifdef __cplusplus
17762 #endif
17765 main ()
17767 return f != $ac_func;
17769 return 0;
17771 _ACEOF
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_var=yes"
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 eval "$as_ac_var=no"
17791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17795 if test `eval echo '${'$as_ac_var'}'` = yes; then
17796 cat >>confdefs.h <<_ACEOF
17797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17798 _ACEOF
17801 done
17808 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17809 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17810 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17811 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17817 ac_ext=cc
17818 ac_cpp='$CXXCPP $CPPFLAGS'
17819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17823 cat >conftest.$ac_ext <<_ACEOF
17824 #line $LINENO "configure"
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <math.h>
17831 #ifdef HAVE_IEEEFP_H
17832 #include <ieeefp.h>
17833 #endif
17836 main ()
17838 fabsl(0);
17840 return 0;
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -s conftest.$ac_objext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 glibcxx_cv_func_fabsl_use=yes
17856 else
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 glibcxx_cv_func_fabsl_use=no
17862 rm -f conftest.$ac_objext conftest.$ac_ext
17863 ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17874 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17876 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17878 for ac_func in fabsl
17880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17881 echo "$as_me:$LINENO: checking for $ac_func" >&5
17882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17883 if eval "test \"\${$as_ac_var+set}\" = set"; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886 if test x$gcc_no_link = xyes; then
17887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17889 { (exit 1); exit 1; }; }
17891 cat >conftest.$ac_ext <<_ACEOF
17892 #line $LINENO "configure"
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 /* System header to define __stub macros and hopefully few prototypes,
17899 which can conflict with char $ac_func (); below.
17900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17901 <limits.h> exists even on freestanding compilers. */
17902 #ifdef __STDC__
17903 # include <limits.h>
17904 #else
17905 # include <assert.h>
17906 #endif
17907 /* Override any gcc2 internal prototype to avoid an error. */
17908 #ifdef __cplusplus
17909 extern "C"
17911 #endif
17912 /* We use char because int might match the return type of a gcc2
17913 builtin and then its argument prototype would still apply. */
17914 char $ac_func ();
17915 /* The GNU C library defines this for functions which it implements
17916 to always fail with ENOSYS. Some functions are actually named
17917 something starting with __ and the normal name is an alias. */
17918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17919 choke me
17920 #else
17921 char (*f) () = $ac_func;
17922 #endif
17923 #ifdef __cplusplus
17925 #endif
17928 main ()
17930 return f != $ac_func;
17932 return 0;
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17937 (eval $ac_link) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 eval "$as_ac_var=yes"
17948 else
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 eval "$as_ac_var=no"
17954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17958 if test `eval echo '${'$as_ac_var'}'` = yes; then
17959 cat >>confdefs.h <<_ACEOF
17960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17961 _ACEOF
17964 done
17966 else
17968 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17969 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17970 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17971 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17977 ac_ext=cc
17978 ac_cpp='$CXXCPP $CPPFLAGS'
17979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17983 cat >conftest.$ac_ext <<_ACEOF
17984 #line $LINENO "configure"
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <math.h>
17991 #ifdef HAVE_IEEEFP_H
17992 #include <ieeefp.h>
17993 #endif
17996 main ()
17998 _fabsl(0);
18000 return 0;
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005 (eval $ac_compile) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -s conftest.$ac_objext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 glibcxx_cv_func__fabsl_use=yes
18016 else
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 glibcxx_cv_func__fabsl_use=no
18022 rm -f conftest.$ac_objext conftest.$ac_ext
18023 ac_ext=c
18024 ac_cpp='$CPP $CPPFLAGS'
18025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18034 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18036 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18038 for ac_func in _fabsl
18040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041 echo "$as_me:$LINENO: checking for $ac_func" >&5
18042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18043 if eval "test \"\${$as_ac_var+set}\" = set"; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046 if test x$gcc_no_link = xyes; then
18047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18049 { (exit 1); exit 1; }; }
18051 cat >conftest.$ac_ext <<_ACEOF
18052 #line $LINENO "configure"
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 /* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char $ac_func (); below.
18060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061 <limits.h> exists even on freestanding compilers. */
18062 #ifdef __STDC__
18063 # include <limits.h>
18064 #else
18065 # include <assert.h>
18066 #endif
18067 /* Override any gcc2 internal prototype to avoid an error. */
18068 #ifdef __cplusplus
18069 extern "C"
18071 #endif
18072 /* We use char because int might match the return type of a gcc2
18073 builtin and then its argument prototype would still apply. */
18074 char $ac_func ();
18075 /* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18079 choke me
18080 #else
18081 char (*f) () = $ac_func;
18082 #endif
18083 #ifdef __cplusplus
18085 #endif
18088 main ()
18090 return f != $ac_func;
18092 return 0;
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -s conftest$ac_exeext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 eval "$as_ac_var=yes"
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 eval "$as_ac_var=no"
18114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18118 if test `eval echo '${'$as_ac_var'}'` = yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18121 _ACEOF
18124 done
18131 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18132 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18133 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18134 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18140 ac_ext=cc
18141 ac_cpp='$CXXCPP $CPPFLAGS'
18142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18146 cat >conftest.$ac_ext <<_ACEOF
18147 #line $LINENO "configure"
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 #include <math.h>
18155 main ()
18157 fmodl(0, 0);
18159 return 0;
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 glibcxx_cv_func_fmodl_use=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 glibcxx_cv_func_fmodl_use=no
18181 rm -f conftest.$ac_objext conftest.$ac_ext
18182 ac_ext=c
18183 ac_cpp='$CPP $CPPFLAGS'
18184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18192 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18193 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18195 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18197 for ac_func in fmodl
18199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18200 echo "$as_me:$LINENO: checking for $ac_func" >&5
18201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18202 if eval "test \"\${$as_ac_var+set}\" = set"; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205 if test x$gcc_no_link = xyes; then
18206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18208 { (exit 1); exit 1; }; }
18210 cat >conftest.$ac_ext <<_ACEOF
18211 #line $LINENO "configure"
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 /* System header to define __stub macros and hopefully few prototypes,
18218 which can conflict with char $ac_func (); below.
18219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18220 <limits.h> exists even on freestanding compilers. */
18221 #ifdef __STDC__
18222 # include <limits.h>
18223 #else
18224 # include <assert.h>
18225 #endif
18226 /* Override any gcc2 internal prototype to avoid an error. */
18227 #ifdef __cplusplus
18228 extern "C"
18230 #endif
18231 /* We use char because int might match the return type of a gcc2
18232 builtin and then its argument prototype would still apply. */
18233 char $ac_func ();
18234 /* The GNU C library defines this for functions which it implements
18235 to always fail with ENOSYS. Some functions are actually named
18236 something starting with __ and the normal name is an alias. */
18237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18238 choke me
18239 #else
18240 char (*f) () = $ac_func;
18241 #endif
18242 #ifdef __cplusplus
18244 #endif
18247 main ()
18249 return f != $ac_func;
18251 return 0;
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256 (eval $ac_link) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -s conftest$ac_exeext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 eval "$as_ac_var=yes"
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 eval "$as_ac_var=no"
18273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18277 if test `eval echo '${'$as_ac_var'}'` = yes; then
18278 cat >>confdefs.h <<_ACEOF
18279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18280 _ACEOF
18283 done
18285 else
18287 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18288 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18289 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18290 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18296 ac_ext=cc
18297 ac_cpp='$CXXCPP $CPPFLAGS'
18298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18302 cat >conftest.$ac_ext <<_ACEOF
18303 #line $LINENO "configure"
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <math.h>
18311 main ()
18313 _fmodl(0, 0);
18315 return 0;
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320 (eval $ac_compile) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -s conftest.$ac_objext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 glibcxx_cv_func__fmodl_use=yes
18331 else
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 glibcxx_cv_func__fmodl_use=no
18337 rm -f conftest.$ac_objext conftest.$ac_ext
18338 ac_ext=c
18339 ac_cpp='$CPP $CPPFLAGS'
18340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18348 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18349 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18351 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18353 for ac_func in _fmodl
18355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18356 echo "$as_me:$LINENO: checking for $ac_func" >&5
18357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18358 if eval "test \"\${$as_ac_var+set}\" = set"; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 if test x$gcc_no_link = xyes; then
18362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18364 { (exit 1); exit 1; }; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 #line $LINENO "configure"
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 /* System header to define __stub macros and hopefully few prototypes,
18374 which can conflict with char $ac_func (); below.
18375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18376 <limits.h> exists even on freestanding compilers. */
18377 #ifdef __STDC__
18378 # include <limits.h>
18379 #else
18380 # include <assert.h>
18381 #endif
18382 /* Override any gcc2 internal prototype to avoid an error. */
18383 #ifdef __cplusplus
18384 extern "C"
18386 #endif
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char $ac_func ();
18390 /* The GNU C library defines this for functions which it implements
18391 to always fail with ENOSYS. Some functions are actually named
18392 something starting with __ and the normal name is an alias. */
18393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18394 choke me
18395 #else
18396 char (*f) () = $ac_func;
18397 #endif
18398 #ifdef __cplusplus
18400 #endif
18403 main ()
18405 return f != $ac_func;
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext conftest$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 eval "$as_ac_var=yes"
18423 else
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 eval "$as_ac_var=no"
18429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18433 if test `eval echo '${'$as_ac_var'}'` = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18436 _ACEOF
18439 done
18446 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18447 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18448 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18449 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18455 ac_ext=cc
18456 ac_cpp='$CXXCPP $CPPFLAGS'
18457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461 cat >conftest.$ac_ext <<_ACEOF
18462 #line $LINENO "configure"
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 #include <math.h>
18470 main ()
18472 frexpl(0, 0);
18474 return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18479 (eval $ac_compile) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -s conftest.$ac_objext'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 glibcxx_cv_func_frexpl_use=yes
18490 else
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 glibcxx_cv_func_frexpl_use=no
18496 rm -f conftest.$ac_objext conftest.$ac_ext
18497 ac_ext=c
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18507 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18508 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18510 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18512 for ac_func in frexpl
18514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18515 echo "$as_me:$LINENO: checking for $ac_func" >&5
18516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18517 if eval "test \"\${$as_ac_var+set}\" = set"; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520 if test x$gcc_no_link = xyes; then
18521 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18523 { (exit 1); exit 1; }; }
18525 cat >conftest.$ac_ext <<_ACEOF
18526 #line $LINENO "configure"
18527 /* confdefs.h. */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532 /* System header to define __stub macros and hopefully few prototypes,
18533 which can conflict with char $ac_func (); below.
18534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18535 <limits.h> exists even on freestanding compilers. */
18536 #ifdef __STDC__
18537 # include <limits.h>
18538 #else
18539 # include <assert.h>
18540 #endif
18541 /* Override any gcc2 internal prototype to avoid an error. */
18542 #ifdef __cplusplus
18543 extern "C"
18545 #endif
18546 /* We use char because int might match the return type of a gcc2
18547 builtin and then its argument prototype would still apply. */
18548 char $ac_func ();
18549 /* The GNU C library defines this for functions which it implements
18550 to always fail with ENOSYS. Some functions are actually named
18551 something starting with __ and the normal name is an alias. */
18552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18553 choke me
18554 #else
18555 char (*f) () = $ac_func;
18556 #endif
18557 #ifdef __cplusplus
18559 #endif
18562 main ()
18564 return f != $ac_func;
18566 return 0;
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18581 eval "$as_ac_var=yes"
18582 else
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 eval "$as_ac_var=no"
18588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18592 if test `eval echo '${'$as_ac_var'}'` = yes; then
18593 cat >>confdefs.h <<_ACEOF
18594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18595 _ACEOF
18598 done
18600 else
18602 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18603 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18604 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18605 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18611 ac_ext=cc
18612 ac_cpp='$CXXCPP $CPPFLAGS'
18613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18617 cat >conftest.$ac_ext <<_ACEOF
18618 #line $LINENO "configure"
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 #include <math.h>
18626 main ()
18628 _frexpl(0, 0);
18630 return 0;
18632 _ACEOF
18633 rm -f conftest.$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -s conftest.$ac_objext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 glibcxx_cv_func__frexpl_use=yes
18646 else
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 glibcxx_cv_func__frexpl_use=no
18652 rm -f conftest.$ac_objext conftest.$ac_ext
18653 ac_ext=c
18654 ac_cpp='$CPP $CPPFLAGS'
18655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18663 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18664 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18666 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18668 for ac_func in _frexpl
18670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18671 echo "$as_me:$LINENO: checking for $ac_func" >&5
18672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_var+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676 if test x$gcc_no_link = xyes; then
18677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18679 { (exit 1); exit 1; }; }
18681 cat >conftest.$ac_ext <<_ACEOF
18682 #line $LINENO "configure"
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18697 /* Override any gcc2 internal prototype to avoid an error. */
18698 #ifdef __cplusplus
18699 extern "C"
18701 #endif
18702 /* We use char because int might match the return type of a gcc2
18703 builtin and then its argument prototype would still apply. */
18704 char $ac_func ();
18705 /* The GNU C library defines this for functions which it implements
18706 to always fail with ENOSYS. Some functions are actually named
18707 something starting with __ and the normal name is an alias. */
18708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18709 choke me
18710 #else
18711 char (*f) () = $ac_func;
18712 #endif
18713 #ifdef __cplusplus
18715 #endif
18718 main ()
18720 return f != $ac_func;
18722 return 0;
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727 (eval $ac_link) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -s conftest$ac_exeext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 eval "$as_ac_var=yes"
18738 else
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 eval "$as_ac_var=no"
18744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18748 if test `eval echo '${'$as_ac_var'}'` = yes; then
18749 cat >>confdefs.h <<_ACEOF
18750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18751 _ACEOF
18754 done
18761 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18762 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18763 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18764 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18770 ac_ext=cc
18771 ac_cpp='$CXXCPP $CPPFLAGS'
18772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776 cat >conftest.$ac_ext <<_ACEOF
18777 #line $LINENO "configure"
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <math.h>
18785 main ()
18787 hypotl(0, 0);
18789 return 0;
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794 (eval $ac_compile) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 glibcxx_cv_func_hypotl_use=yes
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 glibcxx_cv_func_hypotl_use=no
18811 rm -f conftest.$ac_objext conftest.$ac_ext
18812 ac_ext=c
18813 ac_cpp='$CPP $CPPFLAGS'
18814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18822 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18823 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18825 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18827 for ac_func in hypotl
18829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18830 echo "$as_me:$LINENO: checking for $ac_func" >&5
18831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18832 if eval "test \"\${$as_ac_var+set}\" = set"; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 if test x$gcc_no_link = xyes; then
18836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18838 { (exit 1); exit 1; }; }
18840 cat >conftest.$ac_ext <<_ACEOF
18841 #line $LINENO "configure"
18842 /* confdefs.h. */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 /* System header to define __stub macros and hopefully few prototypes,
18848 which can conflict with char $ac_func (); below.
18849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18850 <limits.h> exists even on freestanding compilers. */
18851 #ifdef __STDC__
18852 # include <limits.h>
18853 #else
18854 # include <assert.h>
18855 #endif
18856 /* Override any gcc2 internal prototype to avoid an error. */
18857 #ifdef __cplusplus
18858 extern "C"
18860 #endif
18861 /* We use char because int might match the return type of a gcc2
18862 builtin and then its argument prototype would still apply. */
18863 char $ac_func ();
18864 /* The GNU C library defines this for functions which it implements
18865 to always fail with ENOSYS. Some functions are actually named
18866 something starting with __ and the normal name is an alias. */
18867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18868 choke me
18869 #else
18870 char (*f) () = $ac_func;
18871 #endif
18872 #ifdef __cplusplus
18874 #endif
18877 main ()
18879 return f != $ac_func;
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886 (eval $ac_link) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
18890 { ac_try='test -s conftest$ac_exeext'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 eval "$as_ac_var=yes"
18897 else
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 eval "$as_ac_var=no"
18903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18907 if test `eval echo '${'$as_ac_var'}'` = yes; then
18908 cat >>confdefs.h <<_ACEOF
18909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18910 _ACEOF
18913 done
18915 else
18917 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18918 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18919 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18920 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18926 ac_ext=cc
18927 ac_cpp='$CXXCPP $CPPFLAGS'
18928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18932 cat >conftest.$ac_ext <<_ACEOF
18933 #line $LINENO "configure"
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 #include <math.h>
18941 main ()
18943 _hypotl(0, 0);
18945 return 0;
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 glibcxx_cv_func__hypotl_use=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 glibcxx_cv_func__hypotl_use=no
18967 rm -f conftest.$ac_objext conftest.$ac_ext
18968 ac_ext=c
18969 ac_cpp='$CPP $CPPFLAGS'
18970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18978 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18979 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18981 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18983 for ac_func in _hypotl
18985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18986 echo "$as_me:$LINENO: checking for $ac_func" >&5
18987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18988 if eval "test \"\${$as_ac_var+set}\" = set"; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991 if test x$gcc_no_link = xyes; then
18992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18994 { (exit 1); exit 1; }; }
18996 cat >conftest.$ac_ext <<_ACEOF
18997 #line $LINENO "configure"
18998 /* confdefs.h. */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char $ac_func (); below.
19005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006 <limits.h> exists even on freestanding compilers. */
19007 #ifdef __STDC__
19008 # include <limits.h>
19009 #else
19010 # include <assert.h>
19011 #endif
19012 /* Override any gcc2 internal prototype to avoid an error. */
19013 #ifdef __cplusplus
19014 extern "C"
19016 #endif
19017 /* We use char because int might match the return type of a gcc2
19018 builtin and then its argument prototype would still apply. */
19019 char $ac_func ();
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19024 choke me
19025 #else
19026 char (*f) () = $ac_func;
19027 #endif
19028 #ifdef __cplusplus
19030 #endif
19033 main ()
19035 return f != $ac_func;
19037 return 0;
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19042 (eval $ac_link) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 eval "$as_ac_var=yes"
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 eval "$as_ac_var=no"
19059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19063 if test `eval echo '${'$as_ac_var'}'` = yes; then
19064 cat >>confdefs.h <<_ACEOF
19065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19066 _ACEOF
19069 done
19076 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19077 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19078 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19079 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19085 ac_ext=cc
19086 ac_cpp='$CXXCPP $CPPFLAGS'
19087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19091 cat >conftest.$ac_ext <<_ACEOF
19092 #line $LINENO "configure"
19093 /* confdefs.h. */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 #include <math.h>
19100 main ()
19102 ldexpl(0, 0);
19104 return 0;
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
19113 { ac_try='test -s conftest.$ac_objext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 glibcxx_cv_func_ldexpl_use=yes
19120 else
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 glibcxx_cv_func_ldexpl_use=no
19126 rm -f conftest.$ac_objext conftest.$ac_ext
19127 ac_ext=c
19128 ac_cpp='$CPP $CPPFLAGS'
19129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19137 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19138 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19140 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19142 for ac_func in ldexpl
19144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19145 echo "$as_me:$LINENO: checking for $ac_func" >&5
19146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19147 if eval "test \"\${$as_ac_var+set}\" = set"; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150 if test x$gcc_no_link = xyes; then
19151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19153 { (exit 1); exit 1; }; }
19155 cat >conftest.$ac_ext <<_ACEOF
19156 #line $LINENO "configure"
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 /* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char $ac_func (); below.
19164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19165 <limits.h> exists even on freestanding compilers. */
19166 #ifdef __STDC__
19167 # include <limits.h>
19168 #else
19169 # include <assert.h>
19170 #endif
19171 /* Override any gcc2 internal prototype to avoid an error. */
19172 #ifdef __cplusplus
19173 extern "C"
19175 #endif
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19178 char $ac_func ();
19179 /* The GNU C library defines this for functions which it implements
19180 to always fail with ENOSYS. Some functions are actually named
19181 something starting with __ and the normal name is an alias. */
19182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19183 choke me
19184 #else
19185 char (*f) () = $ac_func;
19186 #endif
19187 #ifdef __cplusplus
19189 #endif
19192 main ()
19194 return f != $ac_func;
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19201 (eval $ac_link) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -s conftest$ac_exeext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 eval "$as_ac_var=yes"
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 eval "$as_ac_var=no"
19218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19222 if test `eval echo '${'$as_ac_var'}'` = yes; then
19223 cat >>confdefs.h <<_ACEOF
19224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19225 _ACEOF
19228 done
19230 else
19232 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19233 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19234 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19235 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19241 ac_ext=cc
19242 ac_cpp='$CXXCPP $CPPFLAGS'
19243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19247 cat >conftest.$ac_ext <<_ACEOF
19248 #line $LINENO "configure"
19249 /* confdefs.h. */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 #include <math.h>
19256 main ()
19258 _ldexpl(0, 0);
19260 return 0;
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -s conftest.$ac_objext'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 glibcxx_cv_func__ldexpl_use=yes
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 glibcxx_cv_func__ldexpl_use=no
19282 rm -f conftest.$ac_objext conftest.$ac_ext
19283 ac_ext=c
19284 ac_cpp='$CPP $CPPFLAGS'
19285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19293 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19294 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19296 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19298 for ac_func in _ldexpl
19300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19301 echo "$as_me:$LINENO: checking for $ac_func" >&5
19302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_var+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306 if test x$gcc_no_link = xyes; then
19307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19309 { (exit 1); exit 1; }; }
19311 cat >conftest.$ac_ext <<_ACEOF
19312 #line $LINENO "configure"
19313 /* confdefs.h. */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char $ac_func (); below.
19320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19321 <limits.h> exists even on freestanding compilers. */
19322 #ifdef __STDC__
19323 # include <limits.h>
19324 #else
19325 # include <assert.h>
19326 #endif
19327 /* Override any gcc2 internal prototype to avoid an error. */
19328 #ifdef __cplusplus
19329 extern "C"
19331 #endif
19332 /* We use char because int might match the return type of a gcc2
19333 builtin and then its argument prototype would still apply. */
19334 char $ac_func ();
19335 /* The GNU C library defines this for functions which it implements
19336 to always fail with ENOSYS. Some functions are actually named
19337 something starting with __ and the normal name is an alias. */
19338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19339 choke me
19340 #else
19341 char (*f) () = $ac_func;
19342 #endif
19343 #ifdef __cplusplus
19345 #endif
19348 main ()
19350 return f != $ac_func;
19352 return 0;
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -s conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 eval "$as_ac_var=yes"
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 eval "$as_ac_var=no"
19374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19378 if test `eval echo '${'$as_ac_var'}'` = yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19381 _ACEOF
19384 done
19391 echo "$as_me:$LINENO: checking for logl declaration" >&5
19392 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19393 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19394 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19400 ac_ext=cc
19401 ac_cpp='$CXXCPP $CPPFLAGS'
19402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19406 cat >conftest.$ac_ext <<_ACEOF
19407 #line $LINENO "configure"
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <math.h>
19414 #ifdef HAVE_IEEEFP_H
19415 #include <ieeefp.h>
19416 #endif
19419 main ()
19421 logl(0);
19423 return 0;
19425 _ACEOF
19426 rm -f conftest.$ac_objext
19427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19428 (eval $ac_compile) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -s conftest.$ac_objext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 glibcxx_cv_func_logl_use=yes
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 glibcxx_cv_func_logl_use=no
19445 rm -f conftest.$ac_objext conftest.$ac_ext
19446 ac_ext=c
19447 ac_cpp='$CPP $CPPFLAGS'
19448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19457 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19459 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19461 for ac_func in logl
19463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19464 echo "$as_me:$LINENO: checking for $ac_func" >&5
19465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19466 if eval "test \"\${$as_ac_var+set}\" = set"; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 if test x$gcc_no_link = xyes; then
19470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19472 { (exit 1); exit 1; }; }
19474 cat >conftest.$ac_ext <<_ACEOF
19475 #line $LINENO "configure"
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 /* System header to define __stub macros and hopefully few prototypes,
19482 which can conflict with char $ac_func (); below.
19483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19484 <limits.h> exists even on freestanding compilers. */
19485 #ifdef __STDC__
19486 # include <limits.h>
19487 #else
19488 # include <assert.h>
19489 #endif
19490 /* Override any gcc2 internal prototype to avoid an error. */
19491 #ifdef __cplusplus
19492 extern "C"
19494 #endif
19495 /* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497 char $ac_func ();
19498 /* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502 choke me
19503 #else
19504 char (*f) () = $ac_func;
19505 #endif
19506 #ifdef __cplusplus
19508 #endif
19511 main ()
19513 return f != $ac_func;
19515 return 0;
19517 _ACEOF
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520 (eval $ac_link) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -s conftest$ac_exeext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 eval "$as_ac_var=yes"
19531 else
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 eval "$as_ac_var=no"
19537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19541 if test `eval echo '${'$as_ac_var'}'` = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19544 _ACEOF
19547 done
19549 else
19551 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19552 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19553 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19554 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19560 ac_ext=cc
19561 ac_cpp='$CXXCPP $CPPFLAGS'
19562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566 cat >conftest.$ac_ext <<_ACEOF
19567 #line $LINENO "configure"
19568 /* confdefs.h. */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573 #include <math.h>
19574 #ifdef HAVE_IEEEFP_H
19575 #include <ieeefp.h>
19576 #endif
19579 main ()
19581 _logl(0);
19583 return 0;
19585 _ACEOF
19586 rm -f conftest.$ac_objext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -s conftest.$ac_objext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 glibcxx_cv_func__logl_use=yes
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 glibcxx_cv_func__logl_use=no
19605 rm -f conftest.$ac_objext conftest.$ac_ext
19606 ac_ext=c
19607 ac_cpp='$CPP $CPPFLAGS'
19608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19617 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19619 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19621 for ac_func in _logl
19623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19624 echo "$as_me:$LINENO: checking for $ac_func" >&5
19625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19626 if eval "test \"\${$as_ac_var+set}\" = set"; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 if test x$gcc_no_link = xyes; then
19630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19632 { (exit 1); exit 1; }; }
19634 cat >conftest.$ac_ext <<_ACEOF
19635 #line $LINENO "configure"
19636 /* confdefs.h. */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 /* System header to define __stub macros and hopefully few prototypes,
19642 which can conflict with char $ac_func (); below.
19643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644 <limits.h> exists even on freestanding compilers. */
19645 #ifdef __STDC__
19646 # include <limits.h>
19647 #else
19648 # include <assert.h>
19649 #endif
19650 /* Override any gcc2 internal prototype to avoid an error. */
19651 #ifdef __cplusplus
19652 extern "C"
19654 #endif
19655 /* We use char because int might match the return type of a gcc2
19656 builtin and then its argument prototype would still apply. */
19657 char $ac_func ();
19658 /* The GNU C library defines this for functions which it implements
19659 to always fail with ENOSYS. Some functions are actually named
19660 something starting with __ and the normal name is an alias. */
19661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19662 choke me
19663 #else
19664 char (*f) () = $ac_func;
19665 #endif
19666 #ifdef __cplusplus
19668 #endif
19671 main ()
19673 return f != $ac_func;
19675 return 0;
19677 _ACEOF
19678 rm -f conftest.$ac_objext conftest$ac_exeext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19680 (eval $ac_link) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -s conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 eval "$as_ac_var=yes"
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 eval "$as_ac_var=no"
19697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19701 if test `eval echo '${'$as_ac_var'}'` = yes; then
19702 cat >>confdefs.h <<_ACEOF
19703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19704 _ACEOF
19707 done
19714 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19715 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19716 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19717 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19723 ac_ext=cc
19724 ac_cpp='$CXXCPP $CPPFLAGS'
19725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729 cat >conftest.$ac_ext <<_ACEOF
19730 #line $LINENO "configure"
19731 /* confdefs.h. */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 #include <math.h>
19737 #ifdef HAVE_IEEEFP_H
19738 #include <ieeefp.h>
19739 #endif
19742 main ()
19744 log10l(0);
19746 return 0;
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 glibcxx_cv_func_log10l_use=yes
19762 else
19763 echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 glibcxx_cv_func_log10l_use=no
19768 rm -f conftest.$ac_objext conftest.$ac_ext
19769 ac_ext=c
19770 ac_cpp='$CPP $CPPFLAGS'
19771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19780 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19782 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19784 for ac_func in log10l
19786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19787 echo "$as_me:$LINENO: checking for $ac_func" >&5
19788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19789 if eval "test \"\${$as_ac_var+set}\" = set"; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 if test x$gcc_no_link = xyes; then
19793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19795 { (exit 1); exit 1; }; }
19797 cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 /* System header to define __stub macros and hopefully few prototypes,
19805 which can conflict with char $ac_func (); below.
19806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19807 <limits.h> exists even on freestanding compilers. */
19808 #ifdef __STDC__
19809 # include <limits.h>
19810 #else
19811 # include <assert.h>
19812 #endif
19813 /* Override any gcc2 internal prototype to avoid an error. */
19814 #ifdef __cplusplus
19815 extern "C"
19817 #endif
19818 /* We use char because int might match the return type of a gcc2
19819 builtin and then its argument prototype would still apply. */
19820 char $ac_func ();
19821 /* The GNU C library defines this for functions which it implements
19822 to always fail with ENOSYS. Some functions are actually named
19823 something starting with __ and the normal name is an alias. */
19824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19825 choke me
19826 #else
19827 char (*f) () = $ac_func;
19828 #endif
19829 #ifdef __cplusplus
19831 #endif
19834 main ()
19836 return f != $ac_func;
19838 return 0;
19840 _ACEOF
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843 (eval $ac_link) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -s conftest$ac_exeext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 eval "$as_ac_var=yes"
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 eval "$as_ac_var=no"
19860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19864 if test `eval echo '${'$as_ac_var'}'` = yes; then
19865 cat >>confdefs.h <<_ACEOF
19866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19867 _ACEOF
19870 done
19872 else
19874 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19875 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19876 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19877 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19883 ac_ext=cc
19884 ac_cpp='$CXXCPP $CPPFLAGS'
19885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19889 cat >conftest.$ac_ext <<_ACEOF
19890 #line $LINENO "configure"
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 #include <math.h>
19897 #ifdef HAVE_IEEEFP_H
19898 #include <ieeefp.h>
19899 #endif
19902 main ()
19904 _log10l(0);
19906 return 0;
19908 _ACEOF
19909 rm -f conftest.$ac_objext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19911 (eval $ac_compile) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 glibcxx_cv_func__log10l_use=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 glibcxx_cv_func__log10l_use=no
19928 rm -f conftest.$ac_objext conftest.$ac_ext
19929 ac_ext=c
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19939 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19940 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19942 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19944 for ac_func in _log10l
19946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19947 echo "$as_me:$LINENO: checking for $ac_func" >&5
19948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19949 if eval "test \"\${$as_ac_var+set}\" = set"; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 if test x$gcc_no_link = xyes; then
19953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19955 { (exit 1); exit 1; }; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 #line $LINENO "configure"
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 /* System header to define __stub macros and hopefully few prototypes,
19965 which can conflict with char $ac_func (); below.
19966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967 <limits.h> exists even on freestanding compilers. */
19968 #ifdef __STDC__
19969 # include <limits.h>
19970 #else
19971 # include <assert.h>
19972 #endif
19973 /* Override any gcc2 internal prototype to avoid an error. */
19974 #ifdef __cplusplus
19975 extern "C"
19977 #endif
19978 /* We use char because int might match the return type of a gcc2
19979 builtin and then its argument prototype would still apply. */
19980 char $ac_func ();
19981 /* The GNU C library defines this for functions which it implements
19982 to always fail with ENOSYS. Some functions are actually named
19983 something starting with __ and the normal name is an alias. */
19984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19985 choke me
19986 #else
19987 char (*f) () = $ac_func;
19988 #endif
19989 #ifdef __cplusplus
19991 #endif
19994 main ()
19996 return f != $ac_func;
19998 return 0;
20000 _ACEOF
20001 rm -f conftest.$ac_objext conftest$ac_exeext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20003 (eval $ac_link) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -s conftest$ac_exeext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 eval "$as_ac_var=yes"
20014 else
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 eval "$as_ac_var=no"
20020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20024 if test `eval echo '${'$as_ac_var'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20027 _ACEOF
20030 done
20037 echo "$as_me:$LINENO: checking for modfl declaration" >&5
20038 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20039 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20040 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20046 ac_ext=cc
20047 ac_cpp='$CXXCPP $CPPFLAGS'
20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20052 cat >conftest.$ac_ext <<_ACEOF
20053 #line $LINENO "configure"
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <math.h>
20061 main ()
20063 modfl(0, 0);
20065 return 0;
20067 _ACEOF
20068 rm -f conftest.$ac_objext
20069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20070 (eval $ac_compile) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try='test -s conftest.$ac_objext'
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; }; then
20080 glibcxx_cv_func_modfl_use=yes
20081 else
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 glibcxx_cv_func_modfl_use=no
20087 rm -f conftest.$ac_objext conftest.$ac_ext
20088 ac_ext=c
20089 ac_cpp='$CPP $CPPFLAGS'
20090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20098 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20099 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20101 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20103 for ac_func in modfl
20105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20106 echo "$as_me:$LINENO: checking for $ac_func" >&5
20107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_var+set}\" = set"; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111 if test x$gcc_no_link = xyes; then
20112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20114 { (exit 1); exit 1; }; }
20116 cat >conftest.$ac_ext <<_ACEOF
20117 #line $LINENO "configure"
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20127 #ifdef __STDC__
20128 # include <limits.h>
20129 #else
20130 # include <assert.h>
20131 #endif
20132 /* Override any gcc2 internal prototype to avoid an error. */
20133 #ifdef __cplusplus
20134 extern "C"
20136 #endif
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20139 char $ac_func ();
20140 /* The GNU C library defines this for functions which it implements
20141 to always fail with ENOSYS. Some functions are actually named
20142 something starting with __ and the normal name is an alias. */
20143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20144 choke me
20145 #else
20146 char (*f) () = $ac_func;
20147 #endif
20148 #ifdef __cplusplus
20150 #endif
20153 main ()
20155 return f != $ac_func;
20157 return 0;
20159 _ACEOF
20160 rm -f conftest.$ac_objext conftest$ac_exeext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -s conftest$ac_exeext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 eval "$as_ac_var=yes"
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 eval "$as_ac_var=no"
20179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20183 if test `eval echo '${'$as_ac_var'}'` = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20186 _ACEOF
20189 done
20191 else
20193 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20194 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20195 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20196 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20202 ac_ext=cc
20203 ac_cpp='$CXXCPP $CPPFLAGS'
20204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line $LINENO "configure"
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <math.h>
20217 main ()
20219 _modfl(0, 0);
20221 return 0;
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 glibcxx_cv_func__modfl_use=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 glibcxx_cv_func__modfl_use=no
20243 rm -f conftest.$ac_objext conftest.$ac_ext
20244 ac_ext=c
20245 ac_cpp='$CPP $CPPFLAGS'
20246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20255 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20257 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20259 for ac_func in _modfl
20261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20262 echo "$as_me:$LINENO: checking for $ac_func" >&5
20263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20264 if eval "test \"\${$as_ac_var+set}\" = set"; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267 if test x$gcc_no_link = xyes; then
20268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20270 { (exit 1); exit 1; }; }
20272 cat >conftest.$ac_ext <<_ACEOF
20273 #line $LINENO "configure"
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 /* System header to define __stub macros and hopefully few prototypes,
20280 which can conflict with char $ac_func (); below.
20281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20282 <limits.h> exists even on freestanding compilers. */
20283 #ifdef __STDC__
20284 # include <limits.h>
20285 #else
20286 # include <assert.h>
20287 #endif
20288 /* Override any gcc2 internal prototype to avoid an error. */
20289 #ifdef __cplusplus
20290 extern "C"
20292 #endif
20293 /* We use char because int might match the return type of a gcc2
20294 builtin and then its argument prototype would still apply. */
20295 char $ac_func ();
20296 /* The GNU C library defines this for functions which it implements
20297 to always fail with ENOSYS. Some functions are actually named
20298 something starting with __ and the normal name is an alias. */
20299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20300 choke me
20301 #else
20302 char (*f) () = $ac_func;
20303 #endif
20304 #ifdef __cplusplus
20306 #endif
20309 main ()
20311 return f != $ac_func;
20313 return 0;
20315 _ACEOF
20316 rm -f conftest.$ac_objext conftest$ac_exeext
20317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20318 (eval $ac_link) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
20322 { ac_try='test -s conftest$ac_exeext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 eval "$as_ac_var=yes"
20329 else
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 eval "$as_ac_var=no"
20335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20339 if test `eval echo '${'$as_ac_var'}'` = yes; then
20340 cat >>confdefs.h <<_ACEOF
20341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20342 _ACEOF
20345 done
20352 echo "$as_me:$LINENO: checking for powl declaration" >&5
20353 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20354 if test x${glibcxx_cv_func_powl_use+set} != xset; then
20355 if test "${glibcxx_cv_func_powl_use+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20361 ac_ext=cc
20362 ac_cpp='$CXXCPP $CPPFLAGS'
20363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20367 cat >conftest.$ac_ext <<_ACEOF
20368 #line $LINENO "configure"
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 #include <math.h>
20376 main ()
20378 powl(0, 0);
20380 return 0;
20382 _ACEOF
20383 rm -f conftest.$ac_objext
20384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385 (eval $ac_compile) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 glibcxx_cv_func_powl_use=yes
20396 else
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 glibcxx_cv_func_powl_use=no
20402 rm -f conftest.$ac_objext conftest.$ac_ext
20403 ac_ext=c
20404 ac_cpp='$CPP $CPPFLAGS'
20405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20414 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20416 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20418 for ac_func in powl
20420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20421 echo "$as_me:$LINENO: checking for $ac_func" >&5
20422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20423 if eval "test \"\${$as_ac_var+set}\" = set"; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426 if test x$gcc_no_link = xyes; then
20427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20429 { (exit 1); exit 1; }; }
20431 cat >conftest.$ac_ext <<_ACEOF
20432 #line $LINENO "configure"
20433 /* confdefs.h. */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20438 /* System header to define __stub macros and hopefully few prototypes,
20439 which can conflict with char $ac_func (); below.
20440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20441 <limits.h> exists even on freestanding compilers. */
20442 #ifdef __STDC__
20443 # include <limits.h>
20444 #else
20445 # include <assert.h>
20446 #endif
20447 /* Override any gcc2 internal prototype to avoid an error. */
20448 #ifdef __cplusplus
20449 extern "C"
20451 #endif
20452 /* We use char because int might match the return type of a gcc2
20453 builtin and then its argument prototype would still apply. */
20454 char $ac_func ();
20455 /* The GNU C library defines this for functions which it implements
20456 to always fail with ENOSYS. Some functions are actually named
20457 something starting with __ and the normal name is an alias. */
20458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20459 choke me
20460 #else
20461 char (*f) () = $ac_func;
20462 #endif
20463 #ifdef __cplusplus
20465 #endif
20468 main ()
20470 return f != $ac_func;
20472 return 0;
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20477 (eval $ac_link) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -s conftest$ac_exeext'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 eval "$as_ac_var=yes"
20488 else
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 eval "$as_ac_var=no"
20494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20498 if test `eval echo '${'$as_ac_var'}'` = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20501 _ACEOF
20504 done
20506 else
20508 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20509 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20510 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20511 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20517 ac_ext=cc
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523 cat >conftest.$ac_ext <<_ACEOF
20524 #line $LINENO "configure"
20525 /* confdefs.h. */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <math.h>
20532 main ()
20534 _powl(0, 0);
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541 (eval $ac_compile) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 glibcxx_cv_func__powl_use=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 glibcxx_cv_func__powl_use=no
20558 rm -f conftest.$ac_objext conftest.$ac_ext
20559 ac_ext=c
20560 ac_cpp='$CPP $CPPFLAGS'
20561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20569 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20570 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20572 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20574 for ac_func in _powl
20576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20577 echo "$as_me:$LINENO: checking for $ac_func" >&5
20578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20579 if eval "test \"\${$as_ac_var+set}\" = set"; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 if test x$gcc_no_link = xyes; then
20583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20585 { (exit 1); exit 1; }; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 /* System header to define __stub macros and hopefully few prototypes,
20595 which can conflict with char $ac_func (); below.
20596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597 <limits.h> exists even on freestanding compilers. */
20598 #ifdef __STDC__
20599 # include <limits.h>
20600 #else
20601 # include <assert.h>
20602 #endif
20603 /* Override any gcc2 internal prototype to avoid an error. */
20604 #ifdef __cplusplus
20605 extern "C"
20607 #endif
20608 /* We use char because int might match the return type of a gcc2
20609 builtin and then its argument prototype would still apply. */
20610 char $ac_func ();
20611 /* The GNU C library defines this for functions which it implements
20612 to always fail with ENOSYS. Some functions are actually named
20613 something starting with __ and the normal name is an alias. */
20614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20615 choke me
20616 #else
20617 char (*f) () = $ac_func;
20618 #endif
20619 #ifdef __cplusplus
20621 #endif
20624 main ()
20626 return f != $ac_func;
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -s conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 eval "$as_ac_var=yes"
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 eval "$as_ac_var=no"
20650 rm -f conftest.$ac_objext 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
20667 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20668 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20669 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20670 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20676 ac_ext=cc
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20682 cat >conftest.$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <math.h>
20690 #ifdef HAVE_IEEEFP_H
20691 #include <ieeefp.h>
20692 #endif
20695 main ()
20697 sqrtl(0);
20699 return 0;
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -s conftest.$ac_objext'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 glibcxx_cv_func_sqrtl_use=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 glibcxx_cv_func_sqrtl_use=no
20721 rm -f conftest.$ac_objext conftest.$ac_ext
20722 ac_ext=c
20723 ac_cpp='$CPP $CPPFLAGS'
20724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20732 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20733 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20735 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20737 for ac_func in sqrtl
20739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20740 echo "$as_me:$LINENO: checking for $ac_func" >&5
20741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20742 if eval "test \"\${$as_ac_var+set}\" = set"; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 if test x$gcc_no_link = xyes; then
20746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20748 { (exit 1); exit 1; }; }
20750 cat >conftest.$ac_ext <<_ACEOF
20751 #line $LINENO "configure"
20752 /* confdefs.h. */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 /* System header to define __stub macros and hopefully few prototypes,
20758 which can conflict with char $ac_func (); below.
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760 <limits.h> exists even on freestanding compilers. */
20761 #ifdef __STDC__
20762 # include <limits.h>
20763 #else
20764 # include <assert.h>
20765 #endif
20766 /* Override any gcc2 internal prototype to avoid an error. */
20767 #ifdef __cplusplus
20768 extern "C"
20770 #endif
20771 /* We use char because int might match the return type of a gcc2
20772 builtin and then its argument prototype would still apply. */
20773 char $ac_func ();
20774 /* The GNU C library defines this for functions which it implements
20775 to always fail with ENOSYS. Some functions are actually named
20776 something starting with __ and the normal name is an alias. */
20777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20778 choke me
20779 #else
20780 char (*f) () = $ac_func;
20781 #endif
20782 #ifdef __cplusplus
20784 #endif
20787 main ()
20789 return f != $ac_func;
20791 return 0;
20793 _ACEOF
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -s conftest$ac_exeext'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 eval "$as_ac_var=yes"
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 eval "$as_ac_var=no"
20813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20817 if test `eval echo '${'$as_ac_var'}'` = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20820 _ACEOF
20823 done
20825 else
20827 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20828 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20829 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20830 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20836 ac_ext=cc
20837 ac_cpp='$CXXCPP $CPPFLAGS'
20838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20842 cat >conftest.$ac_ext <<_ACEOF
20843 #line $LINENO "configure"
20844 /* confdefs.h. */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 #include <math.h>
20850 #ifdef HAVE_IEEEFP_H
20851 #include <ieeefp.h>
20852 #endif
20855 main ()
20857 _sqrtl(0);
20859 return 0;
20861 _ACEOF
20862 rm -f conftest.$ac_objext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20864 (eval $ac_compile) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -s conftest.$ac_objext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 glibcxx_cv_func__sqrtl_use=yes
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 glibcxx_cv_func__sqrtl_use=no
20881 rm -f conftest.$ac_objext conftest.$ac_ext
20882 ac_ext=c
20883 ac_cpp='$CPP $CPPFLAGS'
20884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20892 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20893 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20895 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20897 for ac_func in _sqrtl
20899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20900 echo "$as_me:$LINENO: checking for $ac_func" >&5
20901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20902 if eval "test \"\${$as_ac_var+set}\" = set"; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905 if test x$gcc_no_link = xyes; then
20906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20908 { (exit 1); exit 1; }; }
20910 cat >conftest.$ac_ext <<_ACEOF
20911 #line $LINENO "configure"
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 /* System header to define __stub macros and hopefully few prototypes,
20918 which can conflict with char $ac_func (); below.
20919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20920 <limits.h> exists even on freestanding compilers. */
20921 #ifdef __STDC__
20922 # include <limits.h>
20923 #else
20924 # include <assert.h>
20925 #endif
20926 /* Override any gcc2 internal prototype to avoid an error. */
20927 #ifdef __cplusplus
20928 extern "C"
20930 #endif
20931 /* We use char because int might match the return type of a gcc2
20932 builtin and then its argument prototype would still apply. */
20933 char $ac_func ();
20934 /* The GNU C library defines this for functions which it implements
20935 to always fail with ENOSYS. Some functions are actually named
20936 something starting with __ and the normal name is an alias. */
20937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20938 choke me
20939 #else
20940 char (*f) () = $ac_func;
20941 #endif
20942 #ifdef __cplusplus
20944 #endif
20947 main ()
20949 return f != $ac_func;
20951 return 0;
20953 _ACEOF
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20956 (eval $ac_link) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
20960 { ac_try='test -s conftest$ac_exeext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 eval "$as_ac_var=yes"
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 eval "$as_ac_var=no"
20973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20977 if test `eval echo '${'$as_ac_var'}'` = yes; then
20978 cat >>confdefs.h <<_ACEOF
20979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20980 _ACEOF
20983 done
20990 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20991 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20992 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20993 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20999 ac_ext=cc
21000 ac_cpp='$CXXCPP $CPPFLAGS'
21001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21005 cat >conftest.$ac_ext <<_ACEOF
21006 #line $LINENO "configure"
21007 /* confdefs.h. */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <math.h>
21014 main ()
21016 sincosl(0, 0, 0);
21018 return 0;
21020 _ACEOF
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 glibcxx_cv_func_sincosl_use=yes
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 glibcxx_cv_func_sincosl_use=no
21040 rm -f conftest.$ac_objext conftest.$ac_ext
21041 ac_ext=c
21042 ac_cpp='$CPP $CPPFLAGS'
21043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21051 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21052 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21054 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21056 for ac_func in sincosl
21058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21059 echo "$as_me:$LINENO: checking for $ac_func" >&5
21060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21061 if eval "test \"\${$as_ac_var+set}\" = set"; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 else
21064 if test x$gcc_no_link = xyes; then
21065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21067 { (exit 1); exit 1; }; }
21069 cat >conftest.$ac_ext <<_ACEOF
21070 #line $LINENO "configure"
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 /* System header to define __stub macros and hopefully few prototypes,
21077 which can conflict with char $ac_func (); below.
21078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21079 <limits.h> exists even on freestanding compilers. */
21080 #ifdef __STDC__
21081 # include <limits.h>
21082 #else
21083 # include <assert.h>
21084 #endif
21085 /* Override any gcc2 internal prototype to avoid an error. */
21086 #ifdef __cplusplus
21087 extern "C"
21089 #endif
21090 /* We use char because int might match the return type of a gcc2
21091 builtin and then its argument prototype would still apply. */
21092 char $ac_func ();
21093 /* The GNU C library defines this for functions which it implements
21094 to always fail with ENOSYS. Some functions are actually named
21095 something starting with __ and the normal name is an alias. */
21096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21097 choke me
21098 #else
21099 char (*f) () = $ac_func;
21100 #endif
21101 #ifdef __cplusplus
21103 #endif
21106 main ()
21108 return f != $ac_func;
21110 return 0;
21112 _ACEOF
21113 rm -f conftest.$ac_objext conftest$ac_exeext
21114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21115 (eval $ac_link) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -s conftest$ac_exeext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 eval "$as_ac_var=yes"
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 eval "$as_ac_var=no"
21132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21136 if test `eval echo '${'$as_ac_var'}'` = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21139 _ACEOF
21142 done
21144 else
21146 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21147 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21148 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21149 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21155 ac_ext=cc
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161 cat >conftest.$ac_ext <<_ACEOF
21162 #line $LINENO "configure"
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <math.h>
21170 main ()
21172 _sincosl(0, 0, 0);
21174 return 0;
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21179 (eval $ac_compile) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -s conftest.$ac_objext'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; }; then
21189 glibcxx_cv_func__sincosl_use=yes
21190 else
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 glibcxx_cv_func__sincosl_use=no
21196 rm -f conftest.$ac_objext conftest.$ac_ext
21197 ac_ext=c
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21207 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21208 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21210 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21212 for ac_func in _sincosl
21214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21215 echo "$as_me:$LINENO: checking for $ac_func" >&5
21216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21217 if eval "test \"\${$as_ac_var+set}\" = set"; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220 if test x$gcc_no_link = xyes; then
21221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21223 { (exit 1); exit 1; }; }
21225 cat >conftest.$ac_ext <<_ACEOF
21226 #line $LINENO "configure"
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 /* System header to define __stub macros and hopefully few prototypes,
21233 which can conflict with char $ac_func (); below.
21234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21235 <limits.h> exists even on freestanding compilers. */
21236 #ifdef __STDC__
21237 # include <limits.h>
21238 #else
21239 # include <assert.h>
21240 #endif
21241 /* Override any gcc2 internal prototype to avoid an error. */
21242 #ifdef __cplusplus
21243 extern "C"
21245 #endif
21246 /* We use char because int might match the return type of a gcc2
21247 builtin and then its argument prototype would still apply. */
21248 char $ac_func ();
21249 /* The GNU C library defines this for functions which it implements
21250 to always fail with ENOSYS. Some functions are actually named
21251 something starting with __ and the normal name is an alias. */
21252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21253 choke me
21254 #else
21255 char (*f) () = $ac_func;
21256 #endif
21257 #ifdef __cplusplus
21259 #endif
21262 main ()
21264 return f != $ac_func;
21266 return 0;
21268 _ACEOF
21269 rm -f conftest.$ac_objext conftest$ac_exeext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21271 (eval $ac_link) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try='test -s conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 eval "$as_ac_var=yes"
21282 else
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 eval "$as_ac_var=no"
21288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21292 if test `eval echo '${'$as_ac_var'}'` = yes; then
21293 cat >>confdefs.h <<_ACEOF
21294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21295 _ACEOF
21298 done
21305 echo "$as_me:$LINENO: checking for finitel declaration" >&5
21306 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21307 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21308 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21314 ac_ext=cc
21315 ac_cpp='$CXXCPP $CPPFLAGS'
21316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21320 cat >conftest.$ac_ext <<_ACEOF
21321 #line $LINENO "configure"
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #include <math.h>
21328 #ifdef HAVE_IEEEFP_H
21329 #include <ieeefp.h>
21330 #endif
21333 main ()
21335 finitel(0);
21337 return 0;
21339 _ACEOF
21340 rm -f conftest.$ac_objext
21341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21342 (eval $ac_compile) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 glibcxx_cv_func_finitel_use=yes
21353 else
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 glibcxx_cv_func_finitel_use=no
21359 rm -f conftest.$ac_objext conftest.$ac_ext
21360 ac_ext=c
21361 ac_cpp='$CPP $CPPFLAGS'
21362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21370 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21371 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21373 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21375 for ac_func in finitel
21377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21378 echo "$as_me:$LINENO: checking for $ac_func" >&5
21379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21380 if eval "test \"\${$as_ac_var+set}\" = set"; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383 if test x$gcc_no_link = xyes; then
21384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21386 { (exit 1); exit 1; }; }
21388 cat >conftest.$ac_ext <<_ACEOF
21389 #line $LINENO "configure"
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 /* System header to define __stub macros and hopefully few prototypes,
21396 which can conflict with char $ac_func (); below.
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21398 <limits.h> exists even on freestanding compilers. */
21399 #ifdef __STDC__
21400 # include <limits.h>
21401 #else
21402 # include <assert.h>
21403 #endif
21404 /* Override any gcc2 internal prototype to avoid an error. */
21405 #ifdef __cplusplus
21406 extern "C"
21408 #endif
21409 /* We use char because int might match the return type of a gcc2
21410 builtin and then its argument prototype would still apply. */
21411 char $ac_func ();
21412 /* The GNU C library defines this for functions which it implements
21413 to always fail with ENOSYS. Some functions are actually named
21414 something starting with __ and the normal name is an alias. */
21415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21416 choke me
21417 #else
21418 char (*f) () = $ac_func;
21419 #endif
21420 #ifdef __cplusplus
21422 #endif
21425 main ()
21427 return f != $ac_func;
21429 return 0;
21431 _ACEOF
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21434 (eval $ac_link) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -s conftest$ac_exeext'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 eval "$as_ac_var=yes"
21445 else
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 eval "$as_ac_var=no"
21451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21455 if test `eval echo '${'$as_ac_var'}'` = yes; then
21456 cat >>confdefs.h <<_ACEOF
21457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21458 _ACEOF
21461 done
21463 else
21465 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21466 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21467 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21468 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21474 ac_ext=cc
21475 ac_cpp='$CXXCPP $CPPFLAGS'
21476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21480 cat >conftest.$ac_ext <<_ACEOF
21481 #line $LINENO "configure"
21482 /* confdefs.h. */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #include <math.h>
21488 #ifdef HAVE_IEEEFP_H
21489 #include <ieeefp.h>
21490 #endif
21493 main ()
21495 _finitel(0);
21497 return 0;
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21502 (eval $ac_compile) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 glibcxx_cv_func__finitel_use=yes
21513 else
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 glibcxx_cv_func__finitel_use=no
21519 rm -f conftest.$ac_objext conftest.$ac_ext
21520 ac_ext=c
21521 ac_cpp='$CPP $CPPFLAGS'
21522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21530 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21531 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21533 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21535 for ac_func in _finitel
21537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21538 echo "$as_me:$LINENO: checking for $ac_func" >&5
21539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21540 if eval "test \"\${$as_ac_var+set}\" = set"; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543 if test x$gcc_no_link = xyes; then
21544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21546 { (exit 1); exit 1; }; }
21548 cat >conftest.$ac_ext <<_ACEOF
21549 #line $LINENO "configure"
21550 /* confdefs.h. */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 /* System header to define __stub macros and hopefully few prototypes,
21556 which can conflict with char $ac_func (); below.
21557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21558 <limits.h> exists even on freestanding compilers. */
21559 #ifdef __STDC__
21560 # include <limits.h>
21561 #else
21562 # include <assert.h>
21563 #endif
21564 /* Override any gcc2 internal prototype to avoid an error. */
21565 #ifdef __cplusplus
21566 extern "C"
21568 #endif
21569 /* We use char because int might match the return type of a gcc2
21570 builtin and then its argument prototype would still apply. */
21571 char $ac_func ();
21572 /* The GNU C library defines this for functions which it implements
21573 to always fail with ENOSYS. Some functions are actually named
21574 something starting with __ and the normal name is an alias. */
21575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21576 choke me
21577 #else
21578 char (*f) () = $ac_func;
21579 #endif
21580 #ifdef __cplusplus
21582 #endif
21585 main ()
21587 return f != $ac_func;
21589 return 0;
21591 _ACEOF
21592 rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21594 (eval $ac_link) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -s conftest$ac_exeext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 eval "$as_ac_var=yes"
21605 else
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 eval "$as_ac_var=no"
21611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21615 if test `eval echo '${'$as_ac_var'}'` = yes; then
21616 cat >>confdefs.h <<_ACEOF
21617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21618 _ACEOF
21621 done
21629 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21630 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21631 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21637 ac_ext=cc
21638 ac_cpp='$CXXCPP $CPPFLAGS'
21639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21643 cat >conftest.$ac_ext <<_ACEOF
21644 #line $LINENO "configure"
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 #include <math.h>
21652 main ()
21654 `for x in _acosf _asinf _atanf \
21655 _cosf _sinf _tanf \
21656 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21658 return 0;
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21663 (eval $ac_compile) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest.$ac_objext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 glibcxx_cv_func__float_trig_use=yes
21674 else
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 glibcxx_cv_func__float_trig_use=no
21680 rm -f conftest.$ac_objext conftest.$ac_ext
21681 ac_ext=c
21682 ac_cpp='$CPP $CPPFLAGS'
21683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21689 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21690 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21691 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21701 for ac_func in _acosf _asinf _atanf \
21702 _cosf _sinf _tanf \
21703 _coshf _sinhf _tanhf
21705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21706 echo "$as_me:$LINENO: checking for $ac_func" >&5
21707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21708 if eval "test \"\${$as_ac_var+set}\" = set"; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711 if test x$gcc_no_link = xyes; then
21712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21714 { (exit 1); exit 1; }; }
21716 cat >conftest.$ac_ext <<_ACEOF
21717 #line $LINENO "configure"
21718 /* confdefs.h. */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21727 #ifdef __STDC__
21728 # include <limits.h>
21729 #else
21730 # include <assert.h>
21731 #endif
21732 /* Override any gcc2 internal prototype to avoid an error. */
21733 #ifdef __cplusplus
21734 extern "C"
21736 #endif
21737 /* We use char because int might match the return type of a gcc2
21738 builtin and then its argument prototype would still apply. */
21739 char $ac_func ();
21740 /* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21744 choke me
21745 #else
21746 char (*f) () = $ac_func;
21747 #endif
21748 #ifdef __cplusplus
21750 #endif
21753 main ()
21755 return f != $ac_func;
21757 return 0;
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 eval "$as_ac_var=yes"
21773 else
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 eval "$as_ac_var=no"
21779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786 _ACEOF
21789 done
21794 echo "$as_me:$LINENO: checking for _float round functions" >&5
21795 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21796 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21802 ac_ext=cc
21803 ac_cpp='$CXXCPP $CPPFLAGS'
21804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21808 cat >conftest.$ac_ext <<_ACEOF
21809 #line $LINENO "configure"
21810 /* confdefs.h. */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21815 #include <math.h>
21817 main ()
21819 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21821 return 0;
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21826 (eval $ac_compile) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } &&
21830 { ac_try='test -s conftest.$ac_objext'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }; then
21836 glibcxx_cv_func__float_round_use=yes
21837 else
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21841 glibcxx_cv_func__float_round_use=no
21843 rm -f conftest.$ac_objext conftest.$ac_ext
21844 ac_ext=c
21845 ac_cpp='$CPP $CPPFLAGS'
21846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21852 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21853 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21854 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21857 for ac_func in _ceilf _floorf
21859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21860 echo "$as_me:$LINENO: checking for $ac_func" >&5
21861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21862 if eval "test \"\${$as_ac_var+set}\" = set"; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865 if test x$gcc_no_link = xyes; then
21866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21868 { (exit 1); exit 1; }; }
21870 cat >conftest.$ac_ext <<_ACEOF
21871 #line $LINENO "configure"
21872 /* confdefs.h. */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21877 /* System header to define __stub macros and hopefully few prototypes,
21878 which can conflict with char $ac_func (); below.
21879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21880 <limits.h> exists even on freestanding compilers. */
21881 #ifdef __STDC__
21882 # include <limits.h>
21883 #else
21884 # include <assert.h>
21885 #endif
21886 /* Override any gcc2 internal prototype to avoid an error. */
21887 #ifdef __cplusplus
21888 extern "C"
21890 #endif
21891 /* We use char because int might match the return type of a gcc2
21892 builtin and then its argument prototype would still apply. */
21893 char $ac_func ();
21894 /* The GNU C library defines this for functions which it implements
21895 to always fail with ENOSYS. Some functions are actually named
21896 something starting with __ and the normal name is an alias. */
21897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21898 choke me
21899 #else
21900 char (*f) () = $ac_func;
21901 #endif
21902 #ifdef __cplusplus
21904 #endif
21907 main ()
21909 return f != $ac_func;
21911 return 0;
21913 _ACEOF
21914 rm -f conftest.$ac_objext conftest$ac_exeext
21915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21916 (eval $ac_link) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
21920 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21926 eval "$as_ac_var=yes"
21927 else
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 eval "$as_ac_var=no"
21933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21937 if test `eval echo '${'$as_ac_var'}'` = yes; then
21938 cat >>confdefs.h <<_ACEOF
21939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21940 _ACEOF
21943 done
21949 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21950 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21951 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21957 ac_ext=cc
21958 ac_cpp='$CXXCPP $CPPFLAGS'
21959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21963 cat >conftest.$ac_ext <<_ACEOF
21964 #line $LINENO "configure"
21965 /* confdefs.h. */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 #include <math.h>
21972 main ()
21974 `for x in _acosl _asinl _atanl \
21975 _cosl _sinl _tanl \
21976 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21978 return 0;
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21983 (eval $ac_compile) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } &&
21987 { ac_try='test -s conftest.$ac_objext'
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; }; then
21993 glibcxx_cv_func__long_double_trig_use=yes
21994 else
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21998 glibcxx_cv_func__long_double_trig_use=no
22000 rm -f conftest.$ac_objext conftest.$ac_ext
22001 ac_ext=c
22002 ac_cpp='$CPP $CPPFLAGS'
22003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22009 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
22010 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
22011 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
22021 for ac_func in _acosl _asinl _atanl \
22022 _cosl _sinl _tanl \
22023 _coshl _sinhl _tanhl
22025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22026 echo "$as_me:$LINENO: checking for $ac_func" >&5
22027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22028 if eval "test \"\${$as_ac_var+set}\" = set"; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031 if test x$gcc_no_link = xyes; then
22032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22034 { (exit 1); exit 1; }; }
22036 cat >conftest.$ac_ext <<_ACEOF
22037 #line $LINENO "configure"
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 /* System header to define __stub macros and hopefully few prototypes,
22044 which can conflict with char $ac_func (); below.
22045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22046 <limits.h> exists even on freestanding compilers. */
22047 #ifdef __STDC__
22048 # include <limits.h>
22049 #else
22050 # include <assert.h>
22051 #endif
22052 /* Override any gcc2 internal prototype to avoid an error. */
22053 #ifdef __cplusplus
22054 extern "C"
22056 #endif
22057 /* We use char because int might match the return type of a gcc2
22058 builtin and then its argument prototype would still apply. */
22059 char $ac_func ();
22060 /* The GNU C library defines this for functions which it implements
22061 to always fail with ENOSYS. Some functions are actually named
22062 something starting with __ and the normal name is an alias. */
22063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22064 choke me
22065 #else
22066 char (*f) () = $ac_func;
22067 #endif
22068 #ifdef __cplusplus
22070 #endif
22073 main ()
22075 return f != $ac_func;
22077 return 0;
22079 _ACEOF
22080 rm -f conftest.$ac_objext conftest$ac_exeext
22081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22082 (eval $ac_link) 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try='test -s conftest$ac_exeext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 eval "$as_ac_var=yes"
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 eval "$as_ac_var=no"
22099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22103 if test `eval echo '${'$as_ac_var'}'` = yes; then
22104 cat >>confdefs.h <<_ACEOF
22105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22106 _ACEOF
22109 done
22114 echo "$as_me:$LINENO: checking for _long double round functions" >&5
22115 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22116 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 else
22122 ac_ext=cc
22123 ac_cpp='$CXXCPP $CPPFLAGS'
22124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128 cat >conftest.$ac_ext <<_ACEOF
22129 #line $LINENO "configure"
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 #include <math.h>
22137 main ()
22139 `for x in _ceill _floorl; do echo "$x (0);"; done`
22141 return 0;
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try='test -s conftest.$ac_objext'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 glibcxx_cv_func__long_double_round_use=yes
22157 else
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 glibcxx_cv_func__long_double_round_use=no
22163 rm -f conftest.$ac_objext conftest.$ac_ext
22164 ac_ext=c
22165 ac_cpp='$CPP $CPPFLAGS'
22166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22172 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22173 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22174 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22177 for ac_func in _ceill _floorl
22179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22180 echo "$as_me:$LINENO: checking for $ac_func" >&5
22181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22182 if eval "test \"\${$as_ac_var+set}\" = set"; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185 if test x$gcc_no_link = xyes; then
22186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22188 { (exit 1); exit 1; }; }
22190 cat >conftest.$ac_ext <<_ACEOF
22191 #line $LINENO "configure"
22192 /* confdefs.h. */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 /* System header to define __stub macros and hopefully few prototypes,
22198 which can conflict with char $ac_func (); below.
22199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22200 <limits.h> exists even on freestanding compilers. */
22201 #ifdef __STDC__
22202 # include <limits.h>
22203 #else
22204 # include <assert.h>
22205 #endif
22206 /* Override any gcc2 internal prototype to avoid an error. */
22207 #ifdef __cplusplus
22208 extern "C"
22210 #endif
22211 /* We use char because int might match the return type of a gcc2
22212 builtin and then its argument prototype would still apply. */
22213 char $ac_func ();
22214 /* The GNU C library defines this for functions which it implements
22215 to always fail with ENOSYS. Some functions are actually named
22216 something starting with __ and the normal name is an alias. */
22217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22218 choke me
22219 #else
22220 char (*f) () = $ac_func;
22221 #endif
22222 #ifdef __cplusplus
22224 #endif
22227 main ()
22229 return f != $ac_func;
22231 return 0;
22233 _ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236 (eval $ac_link) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -s conftest$ac_exeext'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 eval "$as_ac_var=yes"
22247 else
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 eval "$as_ac_var=no"
22253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22257 if test `eval echo '${'$as_ac_var'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22260 _ACEOF
22263 done
22268 LIBS="$ac_save_LIBS"
22269 CXXFLAGS="$ac_save_CXXFLAGS"
22273 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22274 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22275 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22276 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22282 ac_ext=cc
22283 ac_cpp='$CXXCPP $CPPFLAGS'
22284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22288 cat >conftest.$ac_ext <<_ACEOF
22289 #line $LINENO "configure"
22290 /* confdefs.h. */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 #include <math.h>
22297 main ()
22299 __builtin_abs(0);
22301 return 0;
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } &&
22310 { ac_try='test -s conftest.$ac_objext'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 glibcxx_cv_func___builtin_abs_use=yes
22317 else
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 glibcxx_cv_func___builtin_abs_use=no
22323 rm -f conftest.$ac_objext conftest.$ac_ext
22324 ac_ext=c
22325 ac_cpp='$CPP $CPPFLAGS'
22326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22334 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22335 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22336 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22337 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22338 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22339 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22340 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22344 if test x$gcc_no_link = xyes; then
22345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22347 { (exit 1); exit 1; }; }
22349 cat >conftest.$ac_ext <<_ACEOF
22350 #line $LINENO "configure"
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 #include <math.h>
22358 main ()
22360 __builtin_abs(0);
22362 return 0;
22364 _ACEOF
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22367 (eval $ac_link) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } &&
22371 { ac_try='test -s conftest$ac_exeext'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; }; then
22377 glibcxx_cv_func___builtin_abs_link=yes
22378 else
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 glibcxx_cv_func___builtin_abs_link=no
22384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22389 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22390 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22391 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22392 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22393 cat >>confdefs.h <<_ACEOF
22394 #define ${ac_tr_func} 1
22395 _ACEOF
22401 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22402 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22403 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22404 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22405 echo $ECHO_N "(cached) $ECHO_C" >&6
22406 else
22410 ac_ext=cc
22411 ac_cpp='$CXXCPP $CPPFLAGS'
22412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22416 cat >conftest.$ac_ext <<_ACEOF
22417 #line $LINENO "configure"
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <math.h>
22425 main ()
22427 __builtin_fabsf(0);
22429 return 0;
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -s conftest.$ac_objext'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 glibcxx_cv_func___builtin_fabsf_use=yes
22445 else
22446 echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22449 glibcxx_cv_func___builtin_fabsf_use=no
22451 rm -f conftest.$ac_objext conftest.$ac_ext
22452 ac_ext=c
22453 ac_cpp='$CPP $CPPFLAGS'
22454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22462 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22463 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22464 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22465 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22466 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22467 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22468 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22472 if test x$gcc_no_link = xyes; then
22473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22475 { (exit 1); exit 1; }; }
22477 cat >conftest.$ac_ext <<_ACEOF
22478 #line $LINENO "configure"
22479 /* confdefs.h. */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <math.h>
22486 main ()
22488 __builtin_fabsf(0);
22490 return 0;
22492 _ACEOF
22493 rm -f conftest.$ac_objext conftest$ac_exeext
22494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22495 (eval $ac_link) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
22499 { ac_try='test -s conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 glibcxx_cv_func___builtin_fabsf_link=yes
22506 else
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 glibcxx_cv_func___builtin_fabsf_link=no
22512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22517 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22518 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22519 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22520 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22521 cat >>confdefs.h <<_ACEOF
22522 #define ${ac_tr_func} 1
22523 _ACEOF
22529 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22530 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22531 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22532 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22538 ac_ext=cc
22539 ac_cpp='$CXXCPP $CPPFLAGS'
22540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22544 cat >conftest.$ac_ext <<_ACEOF
22545 #line $LINENO "configure"
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <math.h>
22553 main ()
22555 __builtin_fabs(0);
22557 return 0;
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22562 (eval $ac_compile) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 glibcxx_cv_func___builtin_fabs_use=yes
22573 else
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 glibcxx_cv_func___builtin_fabs_use=no
22579 rm -f conftest.$ac_objext conftest.$ac_ext
22580 ac_ext=c
22581 ac_cpp='$CPP $CPPFLAGS'
22582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22591 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22592 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22593 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22594 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22595 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22596 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22600 if test x$gcc_no_link = xyes; then
22601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22603 { (exit 1); exit 1; }; }
22605 cat >conftest.$ac_ext <<_ACEOF
22606 #line $LINENO "configure"
22607 /* confdefs.h. */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <math.h>
22614 main ()
22616 __builtin_fabs(0);
22618 return 0;
22620 _ACEOF
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22623 (eval $ac_link) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
22627 { ac_try='test -s conftest$ac_exeext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 glibcxx_cv_func___builtin_fabs_link=yes
22634 else
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 glibcxx_cv_func___builtin_fabs_link=no
22640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22645 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22646 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22647 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22648 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22649 cat >>confdefs.h <<_ACEOF
22650 #define ${ac_tr_func} 1
22651 _ACEOF
22657 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22658 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22659 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22660 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22666 ac_ext=cc
22667 ac_cpp='$CXXCPP $CPPFLAGS'
22668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22672 cat >conftest.$ac_ext <<_ACEOF
22673 #line $LINENO "configure"
22674 /* confdefs.h. */
22675 _ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22679 #include <math.h>
22681 main ()
22683 __builtin_fabsl(0);
22685 return 0;
22687 _ACEOF
22688 rm -f conftest.$ac_objext
22689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22690 (eval $ac_compile) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } &&
22694 { ac_try='test -s conftest.$ac_objext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22700 glibcxx_cv_func___builtin_fabsl_use=yes
22701 else
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 glibcxx_cv_func___builtin_fabsl_use=no
22707 rm -f conftest.$ac_objext conftest.$ac_ext
22708 ac_ext=c
22709 ac_cpp='$CPP $CPPFLAGS'
22710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22718 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22719 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22720 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22721 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22722 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22723 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22724 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22728 if test x$gcc_no_link = xyes; then
22729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22731 { (exit 1); exit 1; }; }
22733 cat >conftest.$ac_ext <<_ACEOF
22734 #line $LINENO "configure"
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 #include <math.h>
22742 main ()
22744 __builtin_fabsl(0);
22746 return 0;
22748 _ACEOF
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22751 (eval $ac_link) 2>&5
22752 ac_status=$?
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } &&
22755 { ac_try='test -s conftest$ac_exeext'
22756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757 (eval $ac_try) 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 glibcxx_cv_func___builtin_fabsl_link=yes
22762 else
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 glibcxx_cv_func___builtin_fabsl_link=no
22768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22773 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22774 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22775 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22776 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22777 cat >>confdefs.h <<_ACEOF
22778 #define ${ac_tr_func} 1
22779 _ACEOF
22785 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22786 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22787 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22788 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22794 ac_ext=cc
22795 ac_cpp='$CXXCPP $CPPFLAGS'
22796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22800 cat >conftest.$ac_ext <<_ACEOF
22801 #line $LINENO "configure"
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 #include <math.h>
22809 main ()
22811 __builtin_labs(0);
22813 return 0;
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22818 (eval $ac_compile) 2>&5
22819 ac_status=$?
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 glibcxx_cv_func___builtin_labs_use=yes
22829 else
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 glibcxx_cv_func___builtin_labs_use=no
22835 rm -f conftest.$ac_objext conftest.$ac_ext
22836 ac_ext=c
22837 ac_cpp='$CPP $CPPFLAGS'
22838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22846 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22847 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22848 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22849 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22850 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22851 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22852 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22854 else
22856 if test x$gcc_no_link = xyes; then
22857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22859 { (exit 1); exit 1; }; }
22861 cat >conftest.$ac_ext <<_ACEOF
22862 #line $LINENO "configure"
22863 /* confdefs.h. */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 #include <math.h>
22870 main ()
22872 __builtin_labs(0);
22874 return 0;
22876 _ACEOF
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879 (eval $ac_link) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } &&
22883 { ac_try='test -s conftest$ac_exeext'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; }; then
22889 glibcxx_cv_func___builtin_labs_link=yes
22890 else
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 glibcxx_cv_func___builtin_labs_link=no
22896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22901 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22902 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22903 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22904 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22905 cat >>confdefs.h <<_ACEOF
22906 #define ${ac_tr_func} 1
22907 _ACEOF
22914 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22915 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22916 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22917 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22923 ac_ext=cc
22924 ac_cpp='$CXXCPP $CPPFLAGS'
22925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22929 cat >conftest.$ac_ext <<_ACEOF
22930 #line $LINENO "configure"
22931 /* confdefs.h. */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 #include <math.h>
22938 main ()
22940 __builtin_sqrtf(0);
22942 return 0;
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22947 (eval $ac_compile) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } &&
22951 { ac_try='test -s conftest.$ac_objext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 glibcxx_cv_func___builtin_sqrtf_use=yes
22958 else
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 glibcxx_cv_func___builtin_sqrtf_use=no
22964 rm -f conftest.$ac_objext conftest.$ac_ext
22965 ac_ext=c
22966 ac_cpp='$CPP $CPPFLAGS'
22967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22975 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22976 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22977 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22978 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22979 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22980 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22981 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22985 if test x$gcc_no_link = xyes; then
22986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22988 { (exit 1); exit 1; }; }
22990 cat >conftest.$ac_ext <<_ACEOF
22991 #line $LINENO "configure"
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <math.h>
22999 main ()
23001 __builtin_sqrtf(0);
23003 return 0;
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008 (eval $ac_link) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -s conftest$ac_exeext'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 glibcxx_cv_func___builtin_sqrtf_link=yes
23019 else
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 glibcxx_cv_func___builtin_sqrtf_link=no
23025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23030 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23031 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23032 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23033 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23034 cat >>confdefs.h <<_ACEOF
23035 #define ${ac_tr_func} 1
23036 _ACEOF
23042 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23043 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23044 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23045 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23051 ac_ext=cc
23052 ac_cpp='$CXXCPP $CPPFLAGS'
23053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23057 cat >conftest.$ac_ext <<_ACEOF
23058 #line $LINENO "configure"
23059 /* confdefs.h. */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include <math.h>
23066 main ()
23068 __builtin_sqrt(0);
23070 return 0;
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075 (eval $ac_compile) 2>&5
23076 ac_status=$?
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
23079 { ac_try='test -s conftest.$ac_objext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 glibcxx_cv_func___builtin_sqrt_use=yes
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 glibcxx_cv_func___builtin_sqrt_use=no
23092 rm -f conftest.$ac_objext conftest.$ac_ext
23093 ac_ext=c
23094 ac_cpp='$CPP $CPPFLAGS'
23095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23103 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23104 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23105 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23106 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23107 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23108 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23109 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23113 if test x$gcc_no_link = xyes; then
23114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23116 { (exit 1); exit 1; }; }
23118 cat >conftest.$ac_ext <<_ACEOF
23119 #line $LINENO "configure"
23120 /* confdefs.h. */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 #include <math.h>
23127 main ()
23129 __builtin_sqrt(0);
23131 return 0;
23133 _ACEOF
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136 (eval $ac_link) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
23140 { ac_try='test -s conftest$ac_exeext'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 glibcxx_cv_func___builtin_sqrt_link=yes
23147 else
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 glibcxx_cv_func___builtin_sqrt_link=no
23153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23158 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23159 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23160 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23161 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23162 cat >>confdefs.h <<_ACEOF
23163 #define ${ac_tr_func} 1
23164 _ACEOF
23170 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23171 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23172 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23173 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23179 ac_ext=cc
23180 ac_cpp='$CXXCPP $CPPFLAGS'
23181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23185 cat >conftest.$ac_ext <<_ACEOF
23186 #line $LINENO "configure"
23187 /* confdefs.h. */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 #include <math.h>
23194 main ()
23196 __builtin_sqrtl(0);
23198 return 0;
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23203 (eval $ac_compile) 2>&5
23204 ac_status=$?
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
23207 { ac_try='test -s conftest.$ac_objext'
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209 (eval $ac_try) 2>&5
23210 ac_status=$?
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); }; }; then
23213 glibcxx_cv_func___builtin_sqrtl_use=yes
23214 else
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 glibcxx_cv_func___builtin_sqrtl_use=no
23220 rm -f conftest.$ac_objext conftest.$ac_ext
23221 ac_ext=c
23222 ac_cpp='$CPP $CPPFLAGS'
23223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23231 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23232 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23233 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23234 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23235 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23236 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23237 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23241 if test x$gcc_no_link = xyes; then
23242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23244 { (exit 1); exit 1; }; }
23246 cat >conftest.$ac_ext <<_ACEOF
23247 #line $LINENO "configure"
23248 /* confdefs.h. */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 #include <math.h>
23255 main ()
23257 __builtin_sqrtl(0);
23259 return 0;
23261 _ACEOF
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264 (eval $ac_link) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -s conftest$ac_exeext'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 glibcxx_cv_func___builtin_sqrtl_link=yes
23275 else
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 glibcxx_cv_func___builtin_sqrtl_link=no
23281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23287 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23288 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23289 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23290 cat >>confdefs.h <<_ACEOF
23291 #define ${ac_tr_func} 1
23292 _ACEOF
23299 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23300 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23301 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23302 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23308 ac_ext=cc
23309 ac_cpp='$CXXCPP $CPPFLAGS'
23310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23314 cat >conftest.$ac_ext <<_ACEOF
23315 #line $LINENO "configure"
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 #include <math.h>
23323 main ()
23325 __builtin_sinf(0);
23327 return 0;
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23332 (eval $ac_compile) 2>&5
23333 ac_status=$?
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } &&
23336 { ac_try='test -s conftest.$ac_objext'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 glibcxx_cv_func___builtin_sinf_use=yes
23343 else
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 glibcxx_cv_func___builtin_sinf_use=no
23349 rm -f conftest.$ac_objext conftest.$ac_ext
23350 ac_ext=c
23351 ac_cpp='$CPP $CPPFLAGS'
23352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23360 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23361 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23362 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23363 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23364 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23365 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23366 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23370 if test x$gcc_no_link = xyes; then
23371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23373 { (exit 1); exit 1; }; }
23375 cat >conftest.$ac_ext <<_ACEOF
23376 #line $LINENO "configure"
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 #include <math.h>
23384 main ()
23386 __builtin_sinf(0);
23388 return 0;
23390 _ACEOF
23391 rm -f conftest.$ac_objext conftest$ac_exeext
23392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23393 (eval $ac_link) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } &&
23397 { ac_try='test -s conftest$ac_exeext'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; }; then
23403 glibcxx_cv_func___builtin_sinf_link=yes
23404 else
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 glibcxx_cv_func___builtin_sinf_link=no
23410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23415 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23416 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23417 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23418 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23419 cat >>confdefs.h <<_ACEOF
23420 #define ${ac_tr_func} 1
23421 _ACEOF
23427 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23428 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23429 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23430 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23431 echo $ECHO_N "(cached) $ECHO_C" >&6
23432 else
23436 ac_ext=cc
23437 ac_cpp='$CXXCPP $CPPFLAGS'
23438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23442 cat >conftest.$ac_ext <<_ACEOF
23443 #line $LINENO "configure"
23444 /* confdefs.h. */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 #include <math.h>
23451 main ()
23453 __builtin_sin(0);
23455 return 0;
23457 _ACEOF
23458 rm -f conftest.$ac_objext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23460 (eval $ac_compile) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -s conftest.$ac_objext'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; }; then
23470 glibcxx_cv_func___builtin_sin_use=yes
23471 else
23472 echo "$as_me: failed program was:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23475 glibcxx_cv_func___builtin_sin_use=no
23477 rm -f conftest.$ac_objext conftest.$ac_ext
23478 ac_ext=c
23479 ac_cpp='$CPP $CPPFLAGS'
23480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23488 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23489 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23490 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23491 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23492 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23493 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23494 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23498 if test x$gcc_no_link = xyes; then
23499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23501 { (exit 1); exit 1; }; }
23503 cat >conftest.$ac_ext <<_ACEOF
23504 #line $LINENO "configure"
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 #include <math.h>
23512 main ()
23514 __builtin_sin(0);
23516 return 0;
23518 _ACEOF
23519 rm -f conftest.$ac_objext conftest$ac_exeext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23521 (eval $ac_link) 2>&5
23522 ac_status=$?
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -s conftest$ac_exeext'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 glibcxx_cv_func___builtin_sin_link=yes
23532 else
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 glibcxx_cv_func___builtin_sin_link=no
23538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23543 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23544 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23545 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23546 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23547 cat >>confdefs.h <<_ACEOF
23548 #define ${ac_tr_func} 1
23549 _ACEOF
23555 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23556 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23557 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23558 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 else
23564 ac_ext=cc
23565 ac_cpp='$CXXCPP $CPPFLAGS'
23566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23570 cat >conftest.$ac_ext <<_ACEOF
23571 #line $LINENO "configure"
23572 /* confdefs.h. */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577 #include <math.h>
23579 main ()
23581 __builtin_sinl(0);
23583 return 0;
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23588 (eval $ac_compile) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -s conftest.$ac_objext'
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 glibcxx_cv_func___builtin_sinl_use=yes
23599 else
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 glibcxx_cv_func___builtin_sinl_use=no
23605 rm -f conftest.$ac_objext conftest.$ac_ext
23606 ac_ext=c
23607 ac_cpp='$CPP $CPPFLAGS'
23608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23616 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23617 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23618 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23619 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23620 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23621 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23622 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23626 if test x$gcc_no_link = xyes; then
23627 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23629 { (exit 1); exit 1; }; }
23631 cat >conftest.$ac_ext <<_ACEOF
23632 #line $LINENO "configure"
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 #include <math.h>
23640 main ()
23642 __builtin_sinl(0);
23644 return 0;
23646 _ACEOF
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23649 (eval $ac_link) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } &&
23653 { ac_try='test -s conftest$ac_exeext'
23654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); }; }; then
23659 glibcxx_cv_func___builtin_sinl_link=yes
23660 else
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23664 glibcxx_cv_func___builtin_sinl_link=no
23666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23671 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23672 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23673 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23674 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23675 cat >>confdefs.h <<_ACEOF
23676 #define ${ac_tr_func} 1
23677 _ACEOF
23684 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23685 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23686 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23687 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23693 ac_ext=cc
23694 ac_cpp='$CXXCPP $CPPFLAGS'
23695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23699 cat >conftest.$ac_ext <<_ACEOF
23700 #line $LINENO "configure"
23701 /* confdefs.h. */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 #include <math.h>
23708 main ()
23710 __builtin_cosf(0);
23712 return 0;
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23717 (eval $ac_compile) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } &&
23721 { ac_try='test -s conftest.$ac_objext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 glibcxx_cv_func___builtin_cosf_use=yes
23728 else
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 glibcxx_cv_func___builtin_cosf_use=no
23734 rm -f conftest.$ac_objext conftest.$ac_ext
23735 ac_ext=c
23736 ac_cpp='$CPP $CPPFLAGS'
23737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23745 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23746 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23747 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23748 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23749 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23750 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23751 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23755 if test x$gcc_no_link = xyes; then
23756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23758 { (exit 1); exit 1; }; }
23760 cat >conftest.$ac_ext <<_ACEOF
23761 #line $LINENO "configure"
23762 /* confdefs.h. */
23763 _ACEOF
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h. */
23767 #include <math.h>
23769 main ()
23771 __builtin_cosf(0);
23773 return 0;
23775 _ACEOF
23776 rm -f conftest.$ac_objext conftest$ac_exeext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23778 (eval $ac_link) 2>&5
23779 ac_status=$?
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } &&
23782 { ac_try='test -s conftest$ac_exeext'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23785 ac_status=$?
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; }; then
23788 glibcxx_cv_func___builtin_cosf_link=yes
23789 else
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 glibcxx_cv_func___builtin_cosf_link=no
23795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23800 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23801 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23802 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23803 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23804 cat >>confdefs.h <<_ACEOF
23805 #define ${ac_tr_func} 1
23806 _ACEOF
23812 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23813 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23814 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23815 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 else
23821 ac_ext=cc
23822 ac_cpp='$CXXCPP $CPPFLAGS'
23823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23827 cat >conftest.$ac_ext <<_ACEOF
23828 #line $LINENO "configure"
23829 /* confdefs.h. */
23830 _ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 #include <math.h>
23836 main ()
23838 __builtin_cos(0);
23840 return 0;
23842 _ACEOF
23843 rm -f conftest.$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845 (eval $ac_compile) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try='test -s conftest.$ac_objext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 glibcxx_cv_func___builtin_cos_use=yes
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 glibcxx_cv_func___builtin_cos_use=no
23862 rm -f conftest.$ac_objext conftest.$ac_ext
23863 ac_ext=c
23864 ac_cpp='$CPP $CPPFLAGS'
23865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23873 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23874 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23875 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23876 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23877 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23878 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23879 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23883 if test x$gcc_no_link = xyes; then
23884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23886 { (exit 1); exit 1; }; }
23888 cat >conftest.$ac_ext <<_ACEOF
23889 #line $LINENO "configure"
23890 /* confdefs.h. */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <math.h>
23897 main ()
23899 __builtin_cos(0);
23901 return 0;
23903 _ACEOF
23904 rm -f conftest.$ac_objext conftest$ac_exeext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23906 (eval $ac_link) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } &&
23910 { ac_try='test -s conftest$ac_exeext'
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 glibcxx_cv_func___builtin_cos_link=yes
23917 else
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 glibcxx_cv_func___builtin_cos_link=no
23923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23928 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23929 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23930 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23931 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23932 cat >>confdefs.h <<_ACEOF
23933 #define ${ac_tr_func} 1
23934 _ACEOF
23940 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23941 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23942 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23943 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23949 ac_ext=cc
23950 ac_cpp='$CXXCPP $CPPFLAGS'
23951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23955 cat >conftest.$ac_ext <<_ACEOF
23956 #line $LINENO "configure"
23957 /* confdefs.h. */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h. */
23962 #include <math.h>
23964 main ()
23966 __builtin_cosl(0);
23968 return 0;
23970 _ACEOF
23971 rm -f conftest.$ac_objext
23972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973 (eval $ac_compile) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } &&
23977 { ac_try='test -s conftest.$ac_objext'
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
23983 glibcxx_cv_func___builtin_cosl_use=yes
23984 else
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 glibcxx_cv_func___builtin_cosl_use=no
23990 rm -f conftest.$ac_objext conftest.$ac_ext
23991 ac_ext=c
23992 ac_cpp='$CPP $CPPFLAGS'
23993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24001 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
24002 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
24003 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
24004 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
24005 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
24006 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
24007 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24009 else
24011 if test x$gcc_no_link = xyes; then
24012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24014 { (exit 1); exit 1; }; }
24016 cat >conftest.$ac_ext <<_ACEOF
24017 #line $LINENO "configure"
24018 /* confdefs.h. */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 #include <math.h>
24025 main ()
24027 __builtin_cosl(0);
24029 return 0;
24031 _ACEOF
24032 rm -f conftest.$ac_objext conftest$ac_exeext
24033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24034 (eval $ac_link) 2>&5
24035 ac_status=$?
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
24038 { ac_try='test -s conftest$ac_exeext'
24039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24044 glibcxx_cv_func___builtin_cosl_link=yes
24045 else
24046 echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24049 glibcxx_cv_func___builtin_cosl_link=no
24051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24057 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24058 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24059 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24060 cat >>confdefs.h <<_ACEOF
24061 #define ${ac_tr_func} 1
24062 _ACEOF
24068 dummyvar=no
24069 if test x$dummyvar = x"yes"; then
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE___BUILTIN_ABS 1
24072 _ACEOF
24074 cat >>confdefs.h <<\_ACEOF
24075 #define HAVE___BUILTIN_LABS 1
24076 _ACEOF
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE___BUILTIN_COS 1
24080 _ACEOF
24082 cat >>confdefs.h <<\_ACEOF
24083 #define HAVE___BUILTIN_COSF 1
24084 _ACEOF
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE___BUILTIN_COSL 1
24088 _ACEOF
24090 cat >>confdefs.h <<\_ACEOF
24091 #define HAVE___BUILTIN_FABS 1
24092 _ACEOF
24094 cat >>confdefs.h <<\_ACEOF
24095 #define HAVE___BUILTIN_FABSF 1
24096 _ACEOF
24098 cat >>confdefs.h <<\_ACEOF
24099 #define HAVE___BUILTIN_FABSL 1
24100 _ACEOF
24102 cat >>confdefs.h <<\_ACEOF
24103 #define HAVE___BUILTIN_SIN 1
24104 _ACEOF
24106 cat >>confdefs.h <<\_ACEOF
24107 #define HAVE___BUILTIN_SINF 1
24108 _ACEOF
24110 cat >>confdefs.h <<\_ACEOF
24111 #define HAVE___BUILTIN_SINL 1
24112 _ACEOF
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE___BUILTIN_SQRT 1
24116 _ACEOF
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE___BUILTIN_SQRTF 1
24120 _ACEOF
24122 cat >>confdefs.h <<\_ACEOF
24123 #define HAVE___BUILTIN_SQRTL 1
24124 _ACEOF
24130 echo "$as_me:$LINENO: checking for main in -lm" >&5
24131 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24132 if test "${ac_cv_lib_m_main+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135 ac_check_lib_save_LIBS=$LIBS
24136 LIBS="-lm $LIBS"
24137 if test x$gcc_no_link = xyes; then
24138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24140 { (exit 1); exit 1; }; }
24142 cat >conftest.$ac_ext <<_ACEOF
24143 #line $LINENO "configure"
24144 /* confdefs.h. */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24152 main ()
24154 main ();
24156 return 0;
24158 _ACEOF
24159 rm -f conftest.$ac_objext conftest$ac_exeext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24161 (eval $ac_link) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } &&
24165 { ac_try='test -s conftest$ac_exeext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 ac_cv_lib_m_main=yes
24172 else
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 ac_cv_lib_m_main=no
24178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24179 LIBS=$ac_check_lib_save_LIBS
24181 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24182 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24183 if test $ac_cv_lib_m_main = yes; then
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_LIBM 1
24186 _ACEOF
24188 LIBS="-lm $LIBS"
24194 for ac_func in nan copysignf
24196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24197 echo "$as_me:$LINENO: checking for $ac_func" >&5
24198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24199 if eval "test \"\${$as_ac_var+set}\" = set"; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24201 else
24202 if test x$gcc_no_link = xyes; then
24203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24205 { (exit 1); exit 1; }; }
24207 cat >conftest.$ac_ext <<_ACEOF
24208 #line $LINENO "configure"
24209 /* confdefs.h. */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h. */
24214 /* System header to define __stub macros and hopefully few prototypes,
24215 which can conflict with char $ac_func (); below.
24216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24217 <limits.h> exists even on freestanding compilers. */
24218 #ifdef __STDC__
24219 # include <limits.h>
24220 #else
24221 # include <assert.h>
24222 #endif
24223 /* Override any gcc2 internal prototype to avoid an error. */
24224 #ifdef __cplusplus
24225 extern "C"
24227 #endif
24228 /* We use char because int might match the return type of a gcc2
24229 builtin and then its argument prototype would still apply. */
24230 char $ac_func ();
24231 /* The GNU C library defines this for functions which it implements
24232 to always fail with ENOSYS. Some functions are actually named
24233 something starting with __ and the normal name is an alias. */
24234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24235 choke me
24236 #else
24237 char (*f) () = $ac_func;
24238 #endif
24239 #ifdef __cplusplus
24241 #endif
24244 main ()
24246 return f != $ac_func;
24248 return 0;
24250 _ACEOF
24251 rm -f conftest.$ac_objext conftest$ac_exeext
24252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24253 (eval $ac_link) 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } &&
24257 { ac_try='test -s conftest$ac_exeext'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; }; then
24263 eval "$as_ac_var=yes"
24264 else
24265 echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24268 eval "$as_ac_var=no"
24270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24274 if test `eval echo '${'$as_ac_var'}'` = yes; then
24275 cat >>confdefs.h <<_ACEOF
24276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24277 _ACEOF
24279 else
24280 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24282 done
24286 for ac_func in __signbit
24288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24289 echo "$as_me:$LINENO: checking for $ac_func" >&5
24290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24291 if eval "test \"\${$as_ac_var+set}\" = set"; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294 if test x$gcc_no_link = xyes; then
24295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24297 { (exit 1); exit 1; }; }
24299 cat >conftest.$ac_ext <<_ACEOF
24300 #line $LINENO "configure"
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 /* System header to define __stub macros and hopefully few prototypes,
24307 which can conflict with char $ac_func (); below.
24308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24309 <limits.h> exists even on freestanding compilers. */
24310 #ifdef __STDC__
24311 # include <limits.h>
24312 #else
24313 # include <assert.h>
24314 #endif
24315 /* Override any gcc2 internal prototype to avoid an error. */
24316 #ifdef __cplusplus
24317 extern "C"
24319 #endif
24320 /* We use char because int might match the return type of a gcc2
24321 builtin and then its argument prototype would still apply. */
24322 char $ac_func ();
24323 /* The GNU C library defines this for functions which it implements
24324 to always fail with ENOSYS. Some functions are actually named
24325 something starting with __ and the normal name is an alias. */
24326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24327 choke me
24328 #else
24329 char (*f) () = $ac_func;
24330 #endif
24331 #ifdef __cplusplus
24333 #endif
24336 main ()
24338 return f != $ac_func;
24340 return 0;
24342 _ACEOF
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24345 (eval $ac_link) 2>&5
24346 ac_status=$?
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
24349 { ac_try='test -s conftest$ac_exeext'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; }; then
24355 eval "$as_ac_var=yes"
24356 else
24357 echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 eval "$as_ac_var=no"
24362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24366 if test `eval echo '${'$as_ac_var'}'` = yes; then
24367 cat >>confdefs.h <<_ACEOF
24368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24369 _ACEOF
24371 else
24372 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24374 done
24377 for ac_func in __signbitf
24379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24380 echo "$as_me:$LINENO: checking for $ac_func" >&5
24381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24382 if eval "test \"\${$as_ac_var+set}\" = set"; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385 if test x$gcc_no_link = xyes; then
24386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24388 { (exit 1); exit 1; }; }
24390 cat >conftest.$ac_ext <<_ACEOF
24391 #line $LINENO "configure"
24392 /* confdefs.h. */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 /* System header to define __stub macros and hopefully few prototypes,
24398 which can conflict with char $ac_func (); below.
24399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24400 <limits.h> exists even on freestanding compilers. */
24401 #ifdef __STDC__
24402 # include <limits.h>
24403 #else
24404 # include <assert.h>
24405 #endif
24406 /* Override any gcc2 internal prototype to avoid an error. */
24407 #ifdef __cplusplus
24408 extern "C"
24410 #endif
24411 /* We use char because int might match the return type of a gcc2
24412 builtin and then its argument prototype would still apply. */
24413 char $ac_func ();
24414 /* The GNU C library defines this for functions which it implements
24415 to always fail with ENOSYS. Some functions are actually named
24416 something starting with __ and the normal name is an alias. */
24417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24418 choke me
24419 #else
24420 char (*f) () = $ac_func;
24421 #endif
24422 #ifdef __cplusplus
24424 #endif
24427 main ()
24429 return f != $ac_func;
24431 return 0;
24433 _ACEOF
24434 rm -f conftest.$ac_objext conftest$ac_exeext
24435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24436 (eval $ac_link) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } &&
24440 { ac_try='test -s conftest$ac_exeext'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; }; then
24446 eval "$as_ac_var=yes"
24447 else
24448 echo "$as_me: failed program was:" >&5
24449 sed 's/^/| /' conftest.$ac_ext >&5
24451 eval "$as_ac_var=no"
24453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24457 if test `eval echo '${'$as_ac_var'}'` = yes; then
24458 cat >>confdefs.h <<_ACEOF
24459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24460 _ACEOF
24462 else
24463 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24465 done
24468 if test x$ac_cv_func_copysignl = x"yes"; then
24470 for ac_func in __signbitl
24472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24473 echo "$as_me:$LINENO: checking for $ac_func" >&5
24474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24475 if eval "test \"\${$as_ac_var+set}\" = set"; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478 if test x$gcc_no_link = xyes; then
24479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24481 { (exit 1); exit 1; }; }
24483 cat >conftest.$ac_ext <<_ACEOF
24484 #line $LINENO "configure"
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 /* System header to define __stub macros and hopefully few prototypes,
24491 which can conflict with char $ac_func (); below.
24492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24493 <limits.h> exists even on freestanding compilers. */
24494 #ifdef __STDC__
24495 # include <limits.h>
24496 #else
24497 # include <assert.h>
24498 #endif
24499 /* Override any gcc2 internal prototype to avoid an error. */
24500 #ifdef __cplusplus
24501 extern "C"
24503 #endif
24504 /* We use char because int might match the return type of a gcc2
24505 builtin and then its argument prototype would still apply. */
24506 char $ac_func ();
24507 /* The GNU C library defines this for functions which it implements
24508 to always fail with ENOSYS. Some functions are actually named
24509 something starting with __ and the normal name is an alias. */
24510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24511 choke me
24512 #else
24513 char (*f) () = $ac_func;
24514 #endif
24515 #ifdef __cplusplus
24517 #endif
24520 main ()
24522 return f != $ac_func;
24524 return 0;
24526 _ACEOF
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24529 (eval $ac_link) 2>&5
24530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); } &&
24533 { ac_try='test -s conftest$ac_exeext'
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24536 ac_status=$?
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
24539 eval "$as_ac_var=yes"
24540 else
24541 echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24544 eval "$as_ac_var=no"
24546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24550 if test `eval echo '${'$as_ac_var'}'` = yes; then
24551 cat >>confdefs.h <<_ACEOF
24552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24553 _ACEOF
24555 else
24556 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24558 done
24562 # XXX Review this. Nothing uses it.
24563 if test -n "$LIBMATHOBJS"; then
24564 need_libmath=yes
24569 # Test wchar.h for mbstate_t, which is needed for char_traits and
24570 # others even if wchar_t support is not on.
24571 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24572 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24573 cat >conftest.$ac_ext <<_ACEOF
24574 #line $LINENO "configure"
24575 /* confdefs.h. */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 #include <wchar.h>
24582 main ()
24584 mbstate_t teststate;
24586 return 0;
24588 _ACEOF
24589 rm -f conftest.$ac_objext
24590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24591 (eval $ac_compile) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
24595 { ac_try='test -s conftest.$ac_objext'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 have_mbstate_t=yes
24602 else
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 have_mbstate_t=no
24608 rm -f conftest.$ac_objext conftest.$ac_ext
24609 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24610 echo "${ECHO_T}$have_mbstate_t" >&6
24611 if test x"$have_mbstate_t" = xyes; then
24612 cat >>confdefs.h <<\_ACEOF
24613 #define HAVE_MBSTATE_T 1
24614 _ACEOF
24618 # Sanity check for existence of ISO C99 headers for extended encoding.
24620 for ac_header in wchar.h
24622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24624 echo "$as_me:$LINENO: checking for $ac_header" >&5
24625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24631 else
24632 # Is the header compilable?
24633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24635 cat >conftest.$ac_ext <<_ACEOF
24636 #line $LINENO "configure"
24637 /* confdefs.h. */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24642 $ac_includes_default
24643 #include <$ac_header>
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24647 (eval $ac_compile) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
24651 { ac_try='test -s conftest.$ac_objext'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; }; then
24657 ac_header_compiler=yes
24658 else
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_header_compiler=no
24664 rm -f conftest.$ac_objext conftest.$ac_ext
24665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24666 echo "${ECHO_T}$ac_header_compiler" >&6
24668 # Is the header present?
24669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24671 cat >conftest.$ac_ext <<_ACEOF
24672 #line $LINENO "configure"
24673 /* confdefs.h. */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24678 #include <$ac_header>
24679 _ACEOF
24680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24682 ac_status=$?
24683 grep -v '^ *+' conftest.er1 >conftest.err
24684 rm -f conftest.er1
24685 cat conftest.err >&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } >/dev/null; then
24688 if test -s conftest.err; then
24689 ac_cpp_err=$ac_c_preproc_warn_flag
24690 else
24691 ac_cpp_err=
24693 else
24694 ac_cpp_err=yes
24696 if test -z "$ac_cpp_err"; then
24697 ac_header_preproc=yes
24698 else
24699 echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24702 ac_header_preproc=no
24704 rm -f conftest.err conftest.$ac_ext
24705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24706 echo "${ECHO_T}$ac_header_preproc" >&6
24708 # So? What about this header?
24709 case $ac_header_compiler:$ac_header_preproc in
24710 yes:no )
24711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24716 cat <<\_ASBOX
24717 ## ------------------------------------ ##
24718 ## Report this to bug-autoconf@gnu.org. ##
24719 ## ------------------------------------ ##
24720 _ASBOX
24722 sed "s/^/$as_me: WARNING: /" >&2
24724 no:yes )
24725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24732 cat <<\_ASBOX
24733 ## ------------------------------------ ##
24734 ## Report this to bug-autoconf@gnu.org. ##
24735 ## ------------------------------------ ##
24736 _ASBOX
24738 sed "s/^/$as_me: WARNING: /" >&2
24740 esac
24741 echo "$as_me:$LINENO: checking for $ac_header" >&5
24742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24745 else
24746 eval "$as_ac_Header=$ac_header_preproc"
24748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24753 cat >>confdefs.h <<_ACEOF
24754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24755 _ACEOF
24756 ac_has_wchar_h=yes
24757 else
24758 ac_has_wchar_h=no
24761 done
24764 for ac_header in wctype.h
24766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24768 echo "$as_me:$LINENO: checking for $ac_header" >&5
24769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24775 else
24776 # Is the header compilable?
24777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24779 cat >conftest.$ac_ext <<_ACEOF
24780 #line $LINENO "configure"
24781 /* confdefs.h. */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24787 #include <$ac_header>
24788 _ACEOF
24789 rm -f conftest.$ac_objext
24790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24791 (eval $ac_compile) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } &&
24795 { ac_try='test -s conftest.$ac_objext'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_header_compiler=yes
24802 else
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ac_header_compiler=no
24808 rm -f conftest.$ac_objext conftest.$ac_ext
24809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24810 echo "${ECHO_T}$ac_header_compiler" >&6
24812 # Is the header present?
24813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24815 cat >conftest.$ac_ext <<_ACEOF
24816 #line $LINENO "configure"
24817 /* confdefs.h. */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24822 #include <$ac_header>
24823 _ACEOF
24824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } >/dev/null; then
24832 if test -s conftest.err; then
24833 ac_cpp_err=$ac_c_preproc_warn_flag
24834 else
24835 ac_cpp_err=
24837 else
24838 ac_cpp_err=yes
24840 if test -z "$ac_cpp_err"; then
24841 ac_header_preproc=yes
24842 else
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_header_preproc=no
24848 rm -f conftest.err conftest.$ac_ext
24849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24850 echo "${ECHO_T}$ac_header_preproc" >&6
24852 # So? What about this header?
24853 case $ac_header_compiler:$ac_header_preproc in
24854 yes:no )
24855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24860 cat <<\_ASBOX
24861 ## ------------------------------------ ##
24862 ## Report this to bug-autoconf@gnu.org. ##
24863 ## ------------------------------------ ##
24864 _ASBOX
24866 sed "s/^/$as_me: WARNING: /" >&2
24868 no:yes )
24869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24876 cat <<\_ASBOX
24877 ## ------------------------------------ ##
24878 ## Report this to bug-autoconf@gnu.org. ##
24879 ## ------------------------------------ ##
24880 _ASBOX
24882 sed "s/^/$as_me: WARNING: /" >&2
24884 esac
24885 echo "$as_me:$LINENO: checking for $ac_header" >&5
24886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24889 else
24890 eval "$as_ac_Header=$ac_header_preproc"
24892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24897 cat >>confdefs.h <<_ACEOF
24898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24899 _ACEOF
24900 ac_has_wctype_h=yes
24901 else
24902 ac_has_wctype_h=no
24905 done
24908 # Only continue checking if the ISO C99 headers exist and support is on.
24909 if test x"$ac_has_wchar_h" = xyes &&
24910 test x"$ac_has_wctype_h" = xyes &&
24911 test x"$enable_c_mbchar" != xno; then
24913 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24914 # numeric_limits can instantiate type_traits<wchar_t>
24915 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24916 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24917 cat >conftest.$ac_ext <<_ACEOF
24918 #line $LINENO "configure"
24919 /* confdefs.h. */
24920 _ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24924 #include <wchar.h>
24926 main ()
24928 int i = WCHAR_MIN; int j = WCHAR_MAX;
24930 return 0;
24932 _ACEOF
24933 rm -f conftest.$ac_objext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24935 (eval $ac_compile) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } &&
24939 { ac_try='test -s conftest.$ac_objext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 has_wchar_minmax=yes
24946 else
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 has_wchar_minmax=no
24952 rm -f conftest.$ac_objext conftest.$ac_ext
24953 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24954 echo "${ECHO_T}$has_wchar_minmax" >&6
24956 # Test wchar.h for WEOF, which is what we use to determine whether
24957 # to specialize for char_traits<wchar_t> or not.
24958 echo "$as_me:$LINENO: checking for WEOF" >&5
24959 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24961 #line $LINENO "configure"
24962 /* confdefs.h. */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24968 #include <wchar.h>
24969 #include <stddef.h>
24971 main ()
24973 wint_t i = WEOF;
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>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } &&
24984 { ac_try='test -s conftest.$ac_objext'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
24990 has_weof=yes
24991 else
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 has_weof=no
24997 rm -f conftest.$ac_objext conftest.$ac_ext
24998 echo "$as_me:$LINENO: result: $has_weof" >&5
24999 echo "${ECHO_T}$has_weof" >&6
25001 # Tests for wide character functions used in char_traits<wchar_t>.
25002 ac_wfuncs=yes
25009 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
25011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25012 echo "$as_me:$LINENO: checking for $ac_func" >&5
25013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25014 if eval "test \"\${$as_ac_var+set}\" = set"; then
25015 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 else
25017 if test x$gcc_no_link = xyes; then
25018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25020 { (exit 1); exit 1; }; }
25022 cat >conftest.$ac_ext <<_ACEOF
25023 #line $LINENO "configure"
25024 /* confdefs.h. */
25025 _ACEOF
25026 cat confdefs.h >>conftest.$ac_ext
25027 cat >>conftest.$ac_ext <<_ACEOF
25028 /* end confdefs.h. */
25029 /* System header to define __stub macros and hopefully few prototypes,
25030 which can conflict with char $ac_func (); below.
25031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25032 <limits.h> exists even on freestanding compilers. */
25033 #ifdef __STDC__
25034 # include <limits.h>
25035 #else
25036 # include <assert.h>
25037 #endif
25038 /* Override any gcc2 internal prototype to avoid an error. */
25039 #ifdef __cplusplus
25040 extern "C"
25042 #endif
25043 /* We use char because int might match the return type of a gcc2
25044 builtin and then its argument prototype would still apply. */
25045 char $ac_func ();
25046 /* The GNU C library defines this for functions which it implements
25047 to always fail with ENOSYS. Some functions are actually named
25048 something starting with __ and the normal name is an alias. */
25049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25050 choke me
25051 #else
25052 char (*f) () = $ac_func;
25053 #endif
25054 #ifdef __cplusplus
25056 #endif
25059 main ()
25061 return f != $ac_func;
25063 return 0;
25065 _ACEOF
25066 rm -f conftest.$ac_objext conftest$ac_exeext
25067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25068 (eval $ac_link) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } &&
25072 { ac_try='test -s conftest$ac_exeext'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; }; then
25078 eval "$as_ac_var=yes"
25079 else
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 eval "$as_ac_var=no"
25085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25089 if test `eval echo '${'$as_ac_var'}'` = yes; then
25090 cat >>confdefs.h <<_ACEOF
25091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25092 _ACEOF
25094 else
25095 ac_wfuncs=no
25097 done
25100 # Checks for names injected into std:: by the c_std headers.
25147 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25148 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
25149 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25150 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
25151 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25152 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25155 echo "$as_me:$LINENO: checking for $ac_func" >&5
25156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25157 if eval "test \"\${$as_ac_var+set}\" = set"; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 else
25160 if test x$gcc_no_link = xyes; then
25161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25163 { (exit 1); exit 1; }; }
25165 cat >conftest.$ac_ext <<_ACEOF
25166 #line $LINENO "configure"
25167 /* confdefs.h. */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 /* System header to define __stub macros and hopefully few prototypes,
25173 which can conflict with char $ac_func (); below.
25174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25175 <limits.h> exists even on freestanding compilers. */
25176 #ifdef __STDC__
25177 # include <limits.h>
25178 #else
25179 # include <assert.h>
25180 #endif
25181 /* Override any gcc2 internal prototype to avoid an error. */
25182 #ifdef __cplusplus
25183 extern "C"
25185 #endif
25186 /* We use char because int might match the return type of a gcc2
25187 builtin and then its argument prototype would still apply. */
25188 char $ac_func ();
25189 /* The GNU C library defines this for functions which it implements
25190 to always fail with ENOSYS. Some functions are actually named
25191 something starting with __ and the normal name is an alias. */
25192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25193 choke me
25194 #else
25195 char (*f) () = $ac_func;
25196 #endif
25197 #ifdef __cplusplus
25199 #endif
25202 main ()
25204 return f != $ac_func;
25206 return 0;
25208 _ACEOF
25209 rm -f conftest.$ac_objext conftest$ac_exeext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25211 (eval $ac_link) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } &&
25215 { ac_try='test -s conftest$ac_exeext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 eval "$as_ac_var=yes"
25222 else
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 eval "$as_ac_var=no"
25228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25232 if test `eval echo '${'$as_ac_var'}'` = yes; then
25233 cat >>confdefs.h <<_ACEOF
25234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25235 _ACEOF
25237 else
25238 ac_wfuncs=no
25240 done
25243 # Checks for wide character functions that are not required
25244 # for basic wchar_t support. Don't disable support if they are missing.
25245 # Injection of these is wrapped with guard macros.
25251 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
25253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25254 echo "$as_me:$LINENO: checking for $ac_func" >&5
25255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25256 if eval "test \"\${$as_ac_var+set}\" = set"; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25258 else
25259 if test x$gcc_no_link = xyes; then
25260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25262 { (exit 1); exit 1; }; }
25264 cat >conftest.$ac_ext <<_ACEOF
25265 #line $LINENO "configure"
25266 /* confdefs.h. */
25267 _ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h. */
25271 /* System header to define __stub macros and hopefully few prototypes,
25272 which can conflict with char $ac_func (); below.
25273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25274 <limits.h> exists even on freestanding compilers. */
25275 #ifdef __STDC__
25276 # include <limits.h>
25277 #else
25278 # include <assert.h>
25279 #endif
25280 /* Override any gcc2 internal prototype to avoid an error. */
25281 #ifdef __cplusplus
25282 extern "C"
25284 #endif
25285 /* We use char because int might match the return type of a gcc2
25286 builtin and then its argument prototype would still apply. */
25287 char $ac_func ();
25288 /* The GNU C library defines this for functions which it implements
25289 to always fail with ENOSYS. Some functions are actually named
25290 something starting with __ and the normal name is an alias. */
25291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25292 choke me
25293 #else
25294 char (*f) () = $ac_func;
25295 #endif
25296 #ifdef __cplusplus
25298 #endif
25301 main ()
25303 return f != $ac_func;
25305 return 0;
25307 _ACEOF
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25310 (eval $ac_link) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } &&
25314 { ac_try='test -s conftest$ac_exeext'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; }; then
25320 eval "$as_ac_var=yes"
25321 else
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25325 eval "$as_ac_var=no"
25327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25331 if test `eval echo '${'$as_ac_var'}'` = yes; then
25332 cat >>confdefs.h <<_ACEOF
25333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25334 _ACEOF
25337 done
25340 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25341 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25342 if test x"$has_weof" = xyes &&
25343 test x"$has_wchar_minmax" = xyes &&
25344 test x"$ac_wfuncs" = xyes;
25345 then
25346 ac_isoC99_wchar_t=yes
25347 else
25348 ac_isoC99_wchar_t=no
25350 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25351 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25353 # Use iconv for wchar_t to char conversions. As such, check for
25354 # X/Open Portability Guide, version 2 features (XPG2).
25355 if test "${ac_cv_header_iconv_h+set}" = set; then
25356 echo "$as_me:$LINENO: checking for iconv.h" >&5
25357 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25358 if test "${ac_cv_header_iconv_h+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25362 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25363 else
25364 # Is the header compilable?
25365 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25366 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25367 cat >conftest.$ac_ext <<_ACEOF
25368 #line $LINENO "configure"
25369 /* confdefs.h. */
25370 _ACEOF
25371 cat confdefs.h >>conftest.$ac_ext
25372 cat >>conftest.$ac_ext <<_ACEOF
25373 /* end confdefs.h. */
25374 $ac_includes_default
25375 #include <iconv.h>
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25379 (eval $ac_compile) 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -s conftest.$ac_objext'
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; }; then
25389 ac_header_compiler=yes
25390 else
25391 echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25394 ac_header_compiler=no
25396 rm -f conftest.$ac_objext conftest.$ac_ext
25397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25398 echo "${ECHO_T}$ac_header_compiler" >&6
25400 # Is the header present?
25401 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25402 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25403 cat >conftest.$ac_ext <<_ACEOF
25404 #line $LINENO "configure"
25405 /* confdefs.h. */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 #include <iconv.h>
25411 _ACEOF
25412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25414 ac_status=$?
25415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } >/dev/null; then
25420 if test -s conftest.err; then
25421 ac_cpp_err=$ac_c_preproc_warn_flag
25422 else
25423 ac_cpp_err=
25425 else
25426 ac_cpp_err=yes
25428 if test -z "$ac_cpp_err"; then
25429 ac_header_preproc=yes
25430 else
25431 echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 ac_header_preproc=no
25436 rm -f conftest.err conftest.$ac_ext
25437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25438 echo "${ECHO_T}$ac_header_preproc" >&6
25440 # So? What about this header?
25441 case $ac_header_compiler:$ac_header_preproc in
25442 yes:no )
25443 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25444 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25445 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25446 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25448 cat <<\_ASBOX
25449 ## ------------------------------------ ##
25450 ## Report this to bug-autoconf@gnu.org. ##
25451 ## ------------------------------------ ##
25452 _ASBOX
25454 sed "s/^/$as_me: WARNING: /" >&2
25456 no:yes )
25457 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25458 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25459 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25460 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25461 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25462 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25464 cat <<\_ASBOX
25465 ## ------------------------------------ ##
25466 ## Report this to bug-autoconf@gnu.org. ##
25467 ## ------------------------------------ ##
25468 _ASBOX
25470 sed "s/^/$as_me: WARNING: /" >&2
25472 esac
25473 echo "$as_me:$LINENO: checking for iconv.h" >&5
25474 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25475 if test "${ac_cv_header_iconv_h+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478 ac_cv_header_iconv_h=$ac_header_preproc
25480 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25481 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25484 if test $ac_cv_header_iconv_h = yes; then
25485 ac_has_iconv_h=yes
25486 else
25487 ac_has_iconv_h=no
25491 if test "${ac_cv_header_langinfo_h+set}" = set; then
25492 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25493 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25494 if test "${ac_cv_header_langinfo_h+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25498 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25499 else
25500 # Is the header compilable?
25501 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25502 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25503 cat >conftest.$ac_ext <<_ACEOF
25504 #line $LINENO "configure"
25505 /* confdefs.h. */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 $ac_includes_default
25511 #include <langinfo.h>
25512 _ACEOF
25513 rm -f conftest.$ac_objext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 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 ac_header_compiler=yes
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_header_compiler=no
25532 rm -f conftest.$ac_objext conftest.$ac_ext
25533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25534 echo "${ECHO_T}$ac_header_compiler" >&6
25536 # Is the header present?
25537 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25538 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25539 cat >conftest.$ac_ext <<_ACEOF
25540 #line $LINENO "configure"
25541 /* confdefs.h. */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 #include <langinfo.h>
25547 _ACEOF
25548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25550 ac_status=$?
25551 grep -v '^ *+' conftest.er1 >conftest.err
25552 rm -f conftest.er1
25553 cat conftest.err >&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); } >/dev/null; then
25556 if test -s conftest.err; then
25557 ac_cpp_err=$ac_c_preproc_warn_flag
25558 else
25559 ac_cpp_err=
25561 else
25562 ac_cpp_err=yes
25564 if test -z "$ac_cpp_err"; then
25565 ac_header_preproc=yes
25566 else
25567 echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25570 ac_header_preproc=no
25572 rm -f conftest.err conftest.$ac_ext
25573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25574 echo "${ECHO_T}$ac_header_preproc" >&6
25576 # So? What about this header?
25577 case $ac_header_compiler:$ac_header_preproc in
25578 yes:no )
25579 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25580 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25581 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25582 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25584 cat <<\_ASBOX
25585 ## ------------------------------------ ##
25586 ## Report this to bug-autoconf@gnu.org. ##
25587 ## ------------------------------------ ##
25588 _ASBOX
25590 sed "s/^/$as_me: WARNING: /" >&2
25592 no:yes )
25593 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25594 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25595 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25596 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25597 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25598 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25600 cat <<\_ASBOX
25601 ## ------------------------------------ ##
25602 ## Report this to bug-autoconf@gnu.org. ##
25603 ## ------------------------------------ ##
25604 _ASBOX
25606 sed "s/^/$as_me: WARNING: /" >&2
25608 esac
25609 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25610 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25611 if test "${ac_cv_header_langinfo_h+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614 ac_cv_header_langinfo_h=$ac_header_preproc
25616 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25617 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25620 if test $ac_cv_header_langinfo_h = yes; then
25621 ac_has_langinfo_h=yes
25622 else
25623 ac_has_langinfo_h=no
25628 # Check for existence of libiconv.a providing XPG2 wchar_t support.
25629 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25630 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25631 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25632 echo $ECHO_N "(cached) $ECHO_C" >&6
25633 else
25634 ac_check_lib_save_LIBS=$LIBS
25635 LIBS="-liconv $LIBS"
25636 if test x$gcc_no_link = xyes; then
25637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25639 { (exit 1); exit 1; }; }
25641 cat >conftest.$ac_ext <<_ACEOF
25642 #line $LINENO "configure"
25643 /* confdefs.h. */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25649 /* Override any gcc2 internal prototype to avoid an error. */
25650 #ifdef __cplusplus
25651 extern "C"
25652 #endif
25653 /* We use char because int might match the return type of a gcc2
25654 builtin and then its argument prototype would still apply. */
25655 char iconv ();
25657 main ()
25659 iconv ();
25661 return 0;
25663 _ACEOF
25664 rm -f conftest.$ac_objext conftest$ac_exeext
25665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25666 (eval $ac_link) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_lib_iconv_iconv=yes
25677 else
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 ac_cv_lib_iconv_iconv=no
25683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25684 LIBS=$ac_check_lib_save_LIBS
25686 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25687 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25688 if test $ac_cv_lib_iconv_iconv = yes; then
25689 libiconv="-liconv"
25692 ac_save_LIBS="$LIBS"
25693 LIBS="$LIBS $libiconv"
25699 for ac_func in iconv_open iconv_close iconv nl_langinfo
25701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25702 echo "$as_me:$LINENO: checking for $ac_func" >&5
25703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25704 if eval "test \"\${$as_ac_var+set}\" = set"; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706 else
25707 if test x$gcc_no_link = xyes; then
25708 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25709 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25710 { (exit 1); exit 1; }; }
25712 cat >conftest.$ac_ext <<_ACEOF
25713 #line $LINENO "configure"
25714 /* confdefs.h. */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25719 /* System header to define __stub macros and hopefully few prototypes,
25720 which can conflict with char $ac_func (); below.
25721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25722 <limits.h> exists even on freestanding compilers. */
25723 #ifdef __STDC__
25724 # include <limits.h>
25725 #else
25726 # include <assert.h>
25727 #endif
25728 /* Override any gcc2 internal prototype to avoid an error. */
25729 #ifdef __cplusplus
25730 extern "C"
25732 #endif
25733 /* We use char because int might match the return type of a gcc2
25734 builtin and then its argument prototype would still apply. */
25735 char $ac_func ();
25736 /* The GNU C library defines this for functions which it implements
25737 to always fail with ENOSYS. Some functions are actually named
25738 something starting with __ and the normal name is an alias. */
25739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25740 choke me
25741 #else
25742 char (*f) () = $ac_func;
25743 #endif
25744 #ifdef __cplusplus
25746 #endif
25749 main ()
25751 return f != $ac_func;
25753 return 0;
25755 _ACEOF
25756 rm -f conftest.$ac_objext conftest$ac_exeext
25757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25758 (eval $ac_link) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } &&
25762 { ac_try='test -s conftest$ac_exeext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 eval "$as_ac_var=yes"
25769 else
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25773 eval "$as_ac_var=no"
25775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25779 if test `eval echo '${'$as_ac_var'}'` = yes; then
25780 cat >>confdefs.h <<_ACEOF
25781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25782 _ACEOF
25783 ac_XPG2funcs=yes
25784 else
25785 ac_XPG2funcs=no
25787 done
25790 LIBS="$ac_save_LIBS"
25792 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25793 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25794 if test x"$ac_has_iconv_h" = xyes &&
25795 test x"$ac_has_langinfo_h" = xyes &&
25796 test x"$ac_XPG2funcs" = xyes;
25797 then
25798 ac_XPG2_wchar_t=yes
25799 else
25800 ac_XPG2_wchar_t=no
25802 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25803 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25805 # At the moment, only enable wchar_t specializations if all the
25806 # above support is present.
25807 if test x"$ac_isoC99_wchar_t" = xyes &&
25808 test x"$ac_XPG2_wchar_t" = xyes;
25809 then
25810 cat >>confdefs.h <<\_ACEOF
25811 #define _GLIBCXX_USE_WCHAR_T 1
25812 _ACEOF
25814 enable_wchar_t=yes
25817 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25818 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25819 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25820 echo "${ECHO_T}$enable_wchar_t" >&6
25823 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25824 ac_save_CXXFLAGS="$CXXFLAGS"
25825 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25828 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25829 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25830 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25831 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25837 ac_ext=cc
25838 ac_cpp='$CXXCPP $CPPFLAGS'
25839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25843 cat >conftest.$ac_ext <<_ACEOF
25844 #line $LINENO "configure"
25845 /* confdefs.h. */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <stdlib.h>
25852 main ()
25854 strtold(0, 0);
25856 return 0;
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25861 (eval $ac_compile) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 glibcxx_cv_func_strtold_use=yes
25872 else
25873 echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25876 glibcxx_cv_func_strtold_use=no
25878 rm -f conftest.$ac_objext conftest.$ac_ext
25879 ac_ext=c
25880 ac_cpp='$CPP $CPPFLAGS'
25881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25889 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25890 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25891 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25893 for ac_func in strtold
25895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25896 echo "$as_me:$LINENO: checking for $ac_func" >&5
25897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25898 if eval "test \"\${$as_ac_var+set}\" = set"; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901 if test x$gcc_no_link = xyes; then
25902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25904 { (exit 1); exit 1; }; }
25906 cat >conftest.$ac_ext <<_ACEOF
25907 #line $LINENO "configure"
25908 /* confdefs.h. */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 /* System header to define __stub macros and hopefully few prototypes,
25914 which can conflict with char $ac_func (); below.
25915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25916 <limits.h> exists even on freestanding compilers. */
25917 #ifdef __STDC__
25918 # include <limits.h>
25919 #else
25920 # include <assert.h>
25921 #endif
25922 /* Override any gcc2 internal prototype to avoid an error. */
25923 #ifdef __cplusplus
25924 extern "C"
25926 #endif
25927 /* We use char because int might match the return type of a gcc2
25928 builtin and then its argument prototype would still apply. */
25929 char $ac_func ();
25930 /* The GNU C library defines this for functions which it implements
25931 to always fail with ENOSYS. Some functions are actually named
25932 something starting with __ and the normal name is an alias. */
25933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25934 choke me
25935 #else
25936 char (*f) () = $ac_func;
25937 #endif
25938 #ifdef __cplusplus
25940 #endif
25943 main ()
25945 return f != $ac_func;
25947 return 0;
25949 _ACEOF
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25952 (eval $ac_link) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -s conftest$ac_exeext'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
25962 eval "$as_ac_var=yes"
25963 else
25964 echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25967 eval "$as_ac_var=no"
25969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25973 if test `eval echo '${'$as_ac_var'}'` = yes; then
25974 cat >>confdefs.h <<_ACEOF
25975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25976 _ACEOF
25979 done
25984 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25985 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25986 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25987 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25988 echo $ECHO_N "(cached) $ECHO_C" >&6
25989 else
25993 ac_ext=cc
25994 ac_cpp='$CXXCPP $CPPFLAGS'
25995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25999 cat >conftest.$ac_ext <<_ACEOF
26000 #line $LINENO "configure"
26001 /* confdefs.h. */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <stdlib.h>
26008 main ()
26010 strtof(0, 0);
26012 return 0;
26014 _ACEOF
26015 rm -f conftest.$ac_objext
26016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26017 (eval $ac_compile) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -s conftest.$ac_objext'
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027 glibcxx_cv_func_strtof_use=yes
26028 else
26029 echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.$ac_ext >&5
26032 glibcxx_cv_func_strtof_use=no
26034 rm -f conftest.$ac_objext conftest.$ac_ext
26035 ac_ext=c
26036 ac_cpp='$CPP $CPPFLAGS'
26037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26045 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
26046 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
26047 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26049 for ac_func in strtof
26051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26052 echo "$as_me:$LINENO: checking for $ac_func" >&5
26053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26054 if eval "test \"\${$as_ac_var+set}\" = set"; then
26055 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 else
26057 if test x$gcc_no_link = xyes; then
26058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26060 { (exit 1); exit 1; }; }
26062 cat >conftest.$ac_ext <<_ACEOF
26063 #line $LINENO "configure"
26064 /* confdefs.h. */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 /* System header to define __stub macros and hopefully few prototypes,
26070 which can conflict with char $ac_func (); below.
26071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26072 <limits.h> exists even on freestanding compilers. */
26073 #ifdef __STDC__
26074 # include <limits.h>
26075 #else
26076 # include <assert.h>
26077 #endif
26078 /* Override any gcc2 internal prototype to avoid an error. */
26079 #ifdef __cplusplus
26080 extern "C"
26082 #endif
26083 /* We use char because int might match the return type of a gcc2
26084 builtin and then its argument prototype would still apply. */
26085 char $ac_func ();
26086 /* The GNU C library defines this for functions which it implements
26087 to always fail with ENOSYS. Some functions are actually named
26088 something starting with __ and the normal name is an alias. */
26089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26090 choke me
26091 #else
26092 char (*f) () = $ac_func;
26093 #endif
26094 #ifdef __cplusplus
26096 #endif
26099 main ()
26101 return f != $ac_func;
26103 return 0;
26105 _ACEOF
26106 rm -f conftest.$ac_objext conftest$ac_exeext
26107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26108 (eval $ac_link) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
26112 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
26119 else
26120 echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26123 eval "$as_ac_var=no"
26125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26129 if test `eval echo '${'$as_ac_var'}'` = yes; then
26130 cat >>confdefs.h <<_ACEOF
26131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26132 _ACEOF
26135 done
26140 echo "$as_me:$LINENO: checking for lrand48 declaration" >&5
26141 echo $ECHO_N "checking for lrand48 declaration... $ECHO_C" >&6
26142 if test x${glibcxx_cv_func_lrand48_use+set} != xset; then
26143 if test "${glibcxx_cv_func_lrand48_use+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26145 else
26149 ac_ext=cc
26150 ac_cpp='$CXXCPP $CPPFLAGS'
26151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26155 cat >conftest.$ac_ext <<_ACEOF
26156 #line $LINENO "configure"
26157 /* confdefs.h. */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 #include <stdlib.h>
26164 main ()
26166 lrand48();
26168 return 0;
26170 _ACEOF
26171 rm -f conftest.$ac_objext
26172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26173 (eval $ac_compile) 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } &&
26177 { ac_try='test -s conftest.$ac_objext'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
26183 glibcxx_cv_func_lrand48_use=yes
26184 else
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 glibcxx_cv_func_lrand48_use=no
26190 rm -f conftest.$ac_objext conftest.$ac_ext
26191 ac_ext=c
26192 ac_cpp='$CPP $CPPFLAGS'
26193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26201 echo "$as_me:$LINENO: result: $glibcxx_cv_func_lrand48_use" >&5
26202 echo "${ECHO_T}$glibcxx_cv_func_lrand48_use" >&6
26203 if test x$glibcxx_cv_func_lrand48_use = x"yes"; then
26205 for ac_func in lrand48
26207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26208 echo "$as_me:$LINENO: checking for $ac_func" >&5
26209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26210 if eval "test \"\${$as_ac_var+set}\" = set"; then
26211 echo $ECHO_N "(cached) $ECHO_C" >&6
26212 else
26213 if test x$gcc_no_link = xyes; then
26214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26216 { (exit 1); exit 1; }; }
26218 cat >conftest.$ac_ext <<_ACEOF
26219 #line $LINENO "configure"
26220 /* confdefs.h. */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26225 /* System header to define __stub macros and hopefully few prototypes,
26226 which can conflict with char $ac_func (); below.
26227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26228 <limits.h> exists even on freestanding compilers. */
26229 #ifdef __STDC__
26230 # include <limits.h>
26231 #else
26232 # include <assert.h>
26233 #endif
26234 /* Override any gcc2 internal prototype to avoid an error. */
26235 #ifdef __cplusplus
26236 extern "C"
26238 #endif
26239 /* We use char because int might match the return type of a gcc2
26240 builtin and then its argument prototype would still apply. */
26241 char $ac_func ();
26242 /* The GNU C library defines this for functions which it implements
26243 to always fail with ENOSYS. Some functions are actually named
26244 something starting with __ and the normal name is an alias. */
26245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26246 choke me
26247 #else
26248 char (*f) () = $ac_func;
26249 #endif
26250 #ifdef __cplusplus
26252 #endif
26255 main ()
26257 return f != $ac_func;
26259 return 0;
26261 _ACEOF
26262 rm -f conftest.$ac_objext conftest$ac_exeext
26263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26264 (eval $ac_link) 2>&5
26265 ac_status=$?
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } &&
26268 { ac_try='test -s conftest$ac_exeext'
26269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26270 (eval $ac_try) 2>&5
26271 ac_status=$?
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); }; }; then
26274 eval "$as_ac_var=yes"
26275 else
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 eval "$as_ac_var=no"
26281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26285 if test `eval echo '${'$as_ac_var'}'` = yes; then
26286 cat >>confdefs.h <<_ACEOF
26287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26288 _ACEOF
26291 done
26296 CXXFLAGS="$ac_save_CXXFLAGS"
26299 # For showmanyc_helper().
26302 for ac_header in sys/ioctl.h sys/filio.h
26304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26306 echo "$as_me:$LINENO: checking for $ac_header" >&5
26307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
26311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26313 else
26314 # Is the header compilable?
26315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26317 cat >conftest.$ac_ext <<_ACEOF
26318 #line $LINENO "configure"
26319 /* confdefs.h. */
26320 _ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26324 $ac_includes_default
26325 #include <$ac_header>
26326 _ACEOF
26327 rm -f conftest.$ac_objext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329 (eval $ac_compile) 2>&5
26330 ac_status=$?
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } &&
26333 { ac_try='test -s conftest.$ac_objext'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; }; then
26339 ac_header_compiler=yes
26340 else
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 ac_header_compiler=no
26346 rm -f conftest.$ac_objext conftest.$ac_ext
26347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26348 echo "${ECHO_T}$ac_header_compiler" >&6
26350 # Is the header present?
26351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26353 cat >conftest.$ac_ext <<_ACEOF
26354 #line $LINENO "configure"
26355 /* confdefs.h. */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h. */
26360 #include <$ac_header>
26361 _ACEOF
26362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26364 ac_status=$?
26365 grep -v '^ *+' conftest.er1 >conftest.err
26366 rm -f conftest.er1
26367 cat conftest.err >&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } >/dev/null; then
26370 if test -s conftest.err; then
26371 ac_cpp_err=$ac_c_preproc_warn_flag
26372 else
26373 ac_cpp_err=
26375 else
26376 ac_cpp_err=yes
26378 if test -z "$ac_cpp_err"; then
26379 ac_header_preproc=yes
26380 else
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_header_preproc=no
26386 rm -f conftest.err conftest.$ac_ext
26387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26388 echo "${ECHO_T}$ac_header_preproc" >&6
26390 # So? What about this header?
26391 case $ac_header_compiler:$ac_header_preproc in
26392 yes:no )
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26398 cat <<\_ASBOX
26399 ## ------------------------------------ ##
26400 ## Report this to bug-autoconf@gnu.org. ##
26401 ## ------------------------------------ ##
26402 _ASBOX
26404 sed "s/^/$as_me: WARNING: /" >&2
26406 no:yes )
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26414 cat <<\_ASBOX
26415 ## ------------------------------------ ##
26416 ## Report this to bug-autoconf@gnu.org. ##
26417 ## ------------------------------------ ##
26418 _ASBOX
26420 sed "s/^/$as_me: WARNING: /" >&2
26422 esac
26423 echo "$as_me:$LINENO: checking for $ac_header" >&5
26424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428 eval "$as_ac_Header=$ac_header_preproc"
26430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26435 cat >>confdefs.h <<_ACEOF
26436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26437 _ACEOF
26441 done
26444 if test "${glibcxx_cv_POLL+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26448 if test x$gcc_no_link = xyes; then
26449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26451 { (exit 1); exit 1; }; }
26453 cat >conftest.$ac_ext <<_ACEOF
26454 #line $LINENO "configure"
26455 /* confdefs.h. */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 #include <poll.h>
26462 main ()
26464 struct pollfd pfd[1];
26465 pfd[0].events = POLLIN;
26466 poll(pfd, 1, 0);
26468 return 0;
26470 _ACEOF
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26473 (eval $ac_link) 2>&5
26474 ac_status=$?
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } &&
26477 { ac_try='test -s conftest$ac_exeext'
26478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479 (eval $ac_try) 2>&5
26480 ac_status=$?
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); }; }; then
26483 glibcxx_cv_POLL=yes
26484 else
26485 echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26488 glibcxx_cv_POLL=no
26490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26494 if test $glibcxx_cv_POLL = yes; then
26495 cat >>confdefs.h <<\_ACEOF
26496 #define HAVE_POLL 1
26497 _ACEOF
26502 if test "${glibcxx_cv_S_ISREG+set}" = set; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26506 if test x$gcc_no_link = xyes; then
26507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26509 { (exit 1); exit 1; }; }
26511 cat >conftest.$ac_ext <<_ACEOF
26512 #line $LINENO "configure"
26513 /* confdefs.h. */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26518 #include <sys/stat.h>
26520 main ()
26522 struct stat buffer;
26523 fstat(0, &buffer);
26524 S_ISREG(buffer.st_mode);
26526 return 0;
26528 _ACEOF
26529 rm -f conftest.$ac_objext conftest$ac_exeext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26531 (eval $ac_link) 2>&5
26532 ac_status=$?
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -s conftest$ac_exeext'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26541 glibcxx_cv_S_ISREG=yes
26542 else
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 glibcxx_cv_S_ISREG=no
26548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26552 if test "${glibcxx_cv_S_IFREG+set}" = set; then
26553 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 else
26556 if test x$gcc_no_link = xyes; then
26557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26559 { (exit 1); exit 1; }; }
26561 cat >conftest.$ac_ext <<_ACEOF
26562 #line $LINENO "configure"
26563 /* confdefs.h. */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h. */
26568 #include <sys/stat.h>
26570 main ()
26572 struct stat buffer;
26573 fstat(0, &buffer);
26574 S_IFREG & buffer.st_mode;
26576 return 0;
26578 _ACEOF
26579 rm -f conftest.$ac_objext conftest$ac_exeext
26580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26581 (eval $ac_link) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
26585 { ac_try='test -s conftest$ac_exeext'
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; }; then
26591 glibcxx_cv_S_IFREG=yes
26592 else
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 glibcxx_cv_S_IFREG=no
26598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26602 if test $glibcxx_cv_S_ISREG = yes; then
26603 cat >>confdefs.h <<\_ACEOF
26604 #define HAVE_S_ISREG 1
26605 _ACEOF
26607 elif test $glibcxx_cv_S_IFREG = yes; then
26608 cat >>confdefs.h <<\_ACEOF
26609 #define HAVE_S_IFREG 1
26610 _ACEOF
26615 # For xsputn_2().
26617 for ac_header in sys/uio.h
26619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26621 echo "$as_me:$LINENO: checking for $ac_header" >&5
26622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26628 else
26629 # Is the header compilable?
26630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26632 cat >conftest.$ac_ext <<_ACEOF
26633 #line $LINENO "configure"
26634 /* confdefs.h. */
26635 _ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26639 $ac_includes_default
26640 #include <$ac_header>
26641 _ACEOF
26642 rm -f conftest.$ac_objext
26643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26644 (eval $ac_compile) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } &&
26648 { ac_try='test -s conftest.$ac_objext'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; }; then
26654 ac_header_compiler=yes
26655 else
26656 echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 ac_header_compiler=no
26661 rm -f conftest.$ac_objext conftest.$ac_ext
26662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663 echo "${ECHO_T}$ac_header_compiler" >&6
26665 # Is the header present?
26666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26668 cat >conftest.$ac_ext <<_ACEOF
26669 #line $LINENO "configure"
26670 /* confdefs.h. */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 #include <$ac_header>
26676 _ACEOF
26677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26679 ac_status=$?
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } >/dev/null; then
26685 if test -s conftest.err; then
26686 ac_cpp_err=$ac_c_preproc_warn_flag
26687 else
26688 ac_cpp_err=
26690 else
26691 ac_cpp_err=yes
26693 if test -z "$ac_cpp_err"; then
26694 ac_header_preproc=yes
26695 else
26696 echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26699 ac_header_preproc=no
26701 rm -f conftest.err conftest.$ac_ext
26702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26703 echo "${ECHO_T}$ac_header_preproc" >&6
26705 # So? What about this header?
26706 case $ac_header_compiler:$ac_header_preproc in
26707 yes:no )
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26713 cat <<\_ASBOX
26714 ## ------------------------------------ ##
26715 ## Report this to bug-autoconf@gnu.org. ##
26716 ## ------------------------------------ ##
26717 _ASBOX
26719 sed "s/^/$as_me: WARNING: /" >&2
26721 no:yes )
26722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26729 cat <<\_ASBOX
26730 ## ------------------------------------ ##
26731 ## Report this to bug-autoconf@gnu.org. ##
26732 ## ------------------------------------ ##
26733 _ASBOX
26735 sed "s/^/$as_me: WARNING: /" >&2
26737 esac
26738 echo "$as_me:$LINENO: checking for $ac_header" >&5
26739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 else
26743 eval "$as_ac_Header=$ac_header_preproc"
26745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26750 cat >>confdefs.h <<_ACEOF
26751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26752 _ACEOF
26756 done
26759 if test "${glibcxx_cv_WRITEV+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26763 if test x$gcc_no_link = xyes; then
26764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26765 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26766 { (exit 1); exit 1; }; }
26768 cat >conftest.$ac_ext <<_ACEOF
26769 #line $LINENO "configure"
26770 /* confdefs.h. */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 #include <sys/uio.h>
26777 main ()
26779 struct iovec iov[2];
26780 writev(0, iov, 0);
26782 return 0;
26784 _ACEOF
26785 rm -f conftest.$ac_objext conftest$ac_exeext
26786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26787 (eval $ac_link) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
26791 { ac_try='test -s conftest$ac_exeext'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
26797 glibcxx_cv_WRITEV=yes
26798 else
26799 echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26802 glibcxx_cv_WRITEV=no
26804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26808 if test $glibcxx_cv_WRITEV = yes; then
26809 cat >>confdefs.h <<\_ACEOF
26810 #define HAVE_WRITEV 1
26811 _ACEOF
26816 # For the __streamoff_base_type typedef.
26818 if test "${glibcxx_cv_INT64_T+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26822 cat >conftest.$ac_ext <<_ACEOF
26823 #line $LINENO "configure"
26824 /* confdefs.h. */
26825 _ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h. */
26829 #include <stdint.h>
26831 main ()
26833 int64_t var;
26835 return 0;
26837 _ACEOF
26838 rm -f conftest.$ac_objext
26839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26840 (eval $ac_compile) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -s conftest.$ac_objext'
26845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; }; then
26850 glibcxx_cv_INT64_T=yes
26851 else
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26855 glibcxx_cv_INT64_T=no
26857 rm -f conftest.$ac_objext conftest.$ac_ext
26861 if test $glibcxx_cv_INT64_T = yes; then
26862 cat >>confdefs.h <<\_ACEOF
26863 #define HAVE_INT64_T 1
26864 _ACEOF
26869 # For LFS support.
26873 ac_ext=cc
26874 ac_cpp='$CXXCPP $CPPFLAGS'
26875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26879 if test "${glibcxx_cv_LFS+set}" = set; then
26880 echo $ECHO_N "(cached) $ECHO_C" >&6
26881 else
26883 if test x$gcc_no_link = xyes; then
26884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26886 { (exit 1); exit 1; }; }
26888 cat >conftest.$ac_ext <<_ACEOF
26889 #line $LINENO "configure"
26890 /* confdefs.h. */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26895 #include <unistd.h>
26896 #include <stdio.h>
26899 main ()
26901 fopen64("t", "w");
26902 lseek64(1, 0, SEEK_CUR);
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>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -s conftest$ac_exeext'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; }; then
26919 glibcxx_cv_LFS=yes
26920 else
26921 echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26924 glibcxx_cv_LFS=no
26926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26930 if test $glibcxx_cv_LFS = yes; then
26931 cat >>confdefs.h <<\_ACEOF
26932 #define _GLIBCXX_USE_LFS 1
26933 _ACEOF
26936 ac_ext=c
26937 ac_cpp='$CPP $CPPFLAGS'
26938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26945 if test "${ac_cv_header_locale_h+set}" = set; then
26946 echo "$as_me:$LINENO: checking for locale.h" >&5
26947 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26948 if test "${ac_cv_header_locale_h+set}" = set; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26951 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26952 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26953 else
26954 # Is the header compilable?
26955 echo "$as_me:$LINENO: checking locale.h usability" >&5
26956 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26957 cat >conftest.$ac_ext <<_ACEOF
26958 #line $LINENO "configure"
26959 /* confdefs.h. */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 $ac_includes_default
26965 #include <locale.h>
26966 _ACEOF
26967 rm -f conftest.$ac_objext
26968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26969 (eval $ac_compile) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -s conftest.$ac_objext'
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
26979 ac_header_compiler=yes
26980 else
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 ac_header_compiler=no
26986 rm -f conftest.$ac_objext conftest.$ac_ext
26987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26988 echo "${ECHO_T}$ac_header_compiler" >&6
26990 # Is the header present?
26991 echo "$as_me:$LINENO: checking locale.h presence" >&5
26992 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26993 cat >conftest.$ac_ext <<_ACEOF
26994 #line $LINENO "configure"
26995 /* confdefs.h. */
26996 _ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h. */
27000 #include <locale.h>
27001 _ACEOF
27002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27004 ac_status=$?
27005 grep -v '^ *+' conftest.er1 >conftest.err
27006 rm -f conftest.er1
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } >/dev/null; then
27010 if test -s conftest.err; then
27011 ac_cpp_err=$ac_c_preproc_warn_flag
27012 else
27013 ac_cpp_err=
27015 else
27016 ac_cpp_err=yes
27018 if test -z "$ac_cpp_err"; then
27019 ac_header_preproc=yes
27020 else
27021 echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27024 ac_header_preproc=no
27026 rm -f conftest.err conftest.$ac_ext
27027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27028 echo "${ECHO_T}$ac_header_preproc" >&6
27030 # So? What about this header?
27031 case $ac_header_compiler:$ac_header_preproc in
27032 yes:no )
27033 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
27034 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27035 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
27036 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
27038 cat <<\_ASBOX
27039 ## ------------------------------------ ##
27040 ## Report this to bug-autoconf@gnu.org. ##
27041 ## ------------------------------------ ##
27042 _ASBOX
27044 sed "s/^/$as_me: WARNING: /" >&2
27046 no:yes )
27047 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
27048 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
27049 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
27050 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
27051 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
27052 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
27054 cat <<\_ASBOX
27055 ## ------------------------------------ ##
27056 ## Report this to bug-autoconf@gnu.org. ##
27057 ## ------------------------------------ ##
27058 _ASBOX
27060 sed "s/^/$as_me: WARNING: /" >&2
27062 esac
27063 echo "$as_me:$LINENO: checking for locale.h" >&5
27064 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
27065 if test "${ac_cv_header_locale_h+set}" = set; then
27066 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 else
27068 ac_cv_header_locale_h=$ac_header_preproc
27070 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
27071 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
27074 if test $ac_cv_header_locale_h = yes; then
27076 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27077 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
27078 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081 if test x$gcc_no_link = xyes; then
27082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27084 { (exit 1); exit 1; }; }
27086 cat >conftest.$ac_ext <<_ACEOF
27087 #line $LINENO "configure"
27088 /* confdefs.h. */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 #include <locale.h>
27095 main ()
27097 return LC_MESSAGES
27099 return 0;
27101 _ACEOF
27102 rm -f conftest.$ac_objext conftest$ac_exeext
27103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27104 (eval $ac_link) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } &&
27108 { ac_try='test -s conftest$ac_exeext'
27109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 ac_cv_val_LC_MESSAGES=yes
27115 else
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 ac_cv_val_LC_MESSAGES=no
27121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27123 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
27124 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
27125 if test $ac_cv_val_LC_MESSAGES = yes; then
27126 cat >>confdefs.h <<\_ACEOF
27127 #define HAVE_LC_MESSAGES 1
27128 _ACEOF
27137 cat >conftest.$ac_ext <<_ACEOF
27138 #line $LINENO "configure"
27139 /* confdefs.h. */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h. */
27144 #include <setjmp.h>
27146 main ()
27148 sigjmp_buf env;
27149 while (! sigsetjmp (env, 1))
27150 siglongjmp (env, 1);
27153 return 0;
27155 _ACEOF
27156 rm -f conftest.$ac_objext
27157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27158 (eval $ac_compile) 2>&5
27159 ac_status=$?
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); } &&
27162 { ac_try='test -s conftest.$ac_objext'
27163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164 (eval $ac_try) 2>&5
27165 ac_status=$?
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; }; then
27169 cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_SIGSETJMP 1
27171 _ACEOF
27173 else
27174 echo "$as_me: failed program was:" >&5
27175 sed 's/^/| /' conftest.$ac_ext >&5
27178 rm -f conftest.$ac_objext conftest.$ac_ext
27180 if test x$gcc_no_link = xyes; then
27181 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27182 ac_cv_func_mmap_fixed_mapped=no
27185 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27188 for ac_header in stdlib.h unistd.h
27190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27192 echo "$as_me:$LINENO: checking for $ac_header" >&5
27193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27199 else
27200 # Is the header compilable?
27201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27203 cat >conftest.$ac_ext <<_ACEOF
27204 #line $LINENO "configure"
27205 /* confdefs.h. */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 $ac_includes_default
27211 #include <$ac_header>
27212 _ACEOF
27213 rm -f conftest.$ac_objext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27215 (eval $ac_compile) 2>&5
27216 ac_status=$?
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
27219 { ac_try='test -s conftest.$ac_objext'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; }; then
27225 ac_header_compiler=yes
27226 else
27227 echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27230 ac_header_compiler=no
27232 rm -f conftest.$ac_objext conftest.$ac_ext
27233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27234 echo "${ECHO_T}$ac_header_compiler" >&6
27236 # Is the header present?
27237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27239 cat >conftest.$ac_ext <<_ACEOF
27240 #line $LINENO "configure"
27241 /* confdefs.h. */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 #include <$ac_header>
27247 _ACEOF
27248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27250 ac_status=$?
27251 grep -v '^ *+' conftest.er1 >conftest.err
27252 rm -f conftest.er1
27253 cat conftest.err >&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } >/dev/null; then
27256 if test -s conftest.err; then
27257 ac_cpp_err=$ac_c_preproc_warn_flag
27258 else
27259 ac_cpp_err=
27261 else
27262 ac_cpp_err=yes
27264 if test -z "$ac_cpp_err"; then
27265 ac_header_preproc=yes
27266 else
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 ac_header_preproc=no
27272 rm -f conftest.err conftest.$ac_ext
27273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27274 echo "${ECHO_T}$ac_header_preproc" >&6
27276 # So? What about this header?
27277 case $ac_header_compiler:$ac_header_preproc in
27278 yes:no )
27279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27284 cat <<\_ASBOX
27285 ## ------------------------------------ ##
27286 ## Report this to bug-autoconf@gnu.org. ##
27287 ## ------------------------------------ ##
27288 _ASBOX
27290 sed "s/^/$as_me: WARNING: /" >&2
27292 no:yes )
27293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27300 cat <<\_ASBOX
27301 ## ------------------------------------ ##
27302 ## Report this to bug-autoconf@gnu.org. ##
27303 ## ------------------------------------ ##
27304 _ASBOX
27306 sed "s/^/$as_me: WARNING: /" >&2
27308 esac
27309 echo "$as_me:$LINENO: checking for $ac_header" >&5
27310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
27313 else
27314 eval "$as_ac_Header=$ac_header_preproc"
27316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27321 cat >>confdefs.h <<_ACEOF
27322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27323 _ACEOF
27327 done
27330 for ac_func in getpagesize
27332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27333 echo "$as_me:$LINENO: checking for $ac_func" >&5
27334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27335 if eval "test \"\${$as_ac_var+set}\" = set"; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338 if test x$gcc_no_link = xyes; then
27339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27341 { (exit 1); exit 1; }; }
27343 cat >conftest.$ac_ext <<_ACEOF
27344 #line $LINENO "configure"
27345 /* confdefs.h. */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27350 /* System header to define __stub macros and hopefully few prototypes,
27351 which can conflict with char $ac_func (); below.
27352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27353 <limits.h> exists even on freestanding compilers. */
27354 #ifdef __STDC__
27355 # include <limits.h>
27356 #else
27357 # include <assert.h>
27358 #endif
27359 /* Override any gcc2 internal prototype to avoid an error. */
27360 #ifdef __cplusplus
27361 extern "C"
27363 #endif
27364 /* We use char because int might match the return type of a gcc2
27365 builtin and then its argument prototype would still apply. */
27366 char $ac_func ();
27367 /* The GNU C library defines this for functions which it implements
27368 to always fail with ENOSYS. Some functions are actually named
27369 something starting with __ and the normal name is an alias. */
27370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27371 choke me
27372 #else
27373 char (*f) () = $ac_func;
27374 #endif
27375 #ifdef __cplusplus
27377 #endif
27380 main ()
27382 return f != $ac_func;
27384 return 0;
27386 _ACEOF
27387 rm -f conftest.$ac_objext conftest$ac_exeext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27389 (eval $ac_link) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } &&
27393 { ac_try='test -s conftest$ac_exeext'
27394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395 (eval $ac_try) 2>&5
27396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 eval "$as_ac_var=yes"
27400 else
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 eval "$as_ac_var=no"
27406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27410 if test `eval echo '${'$as_ac_var'}'` = yes; then
27411 cat >>confdefs.h <<_ACEOF
27412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27413 _ACEOF
27416 done
27418 echo "$as_me:$LINENO: checking for working mmap" >&5
27419 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27420 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423 if test "$cross_compiling" = yes; then
27424 ac_cv_func_mmap_fixed_mapped=no
27425 else
27426 cat >conftest.$ac_ext <<_ACEOF
27427 #line $LINENO "configure"
27428 /* confdefs.h. */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 $ac_includes_default
27434 /* malloc might have been renamed as rpl_malloc. */
27435 #undef malloc
27437 /* Thanks to Mike Haertel and Jim Avera for this test.
27438 Here is a matrix of mmap possibilities:
27439 mmap private not fixed
27440 mmap private fixed at somewhere currently unmapped
27441 mmap private fixed at somewhere already mapped
27442 mmap shared not fixed
27443 mmap shared fixed at somewhere currently unmapped
27444 mmap shared fixed at somewhere already mapped
27445 For private mappings, we should verify that changes cannot be read()
27446 back from the file, nor mmap's back from the file at a different
27447 address. (There have been systems where private was not correctly
27448 implemented like the infamous i386 svr4.0, and systems where the
27449 VM page cache was not coherent with the file system buffer cache
27450 like early versions of FreeBSD and possibly contemporary NetBSD.)
27451 For shared mappings, we should conversely verify that changes get
27452 propagated back to all the places they're supposed to be.
27454 Grep wants private fixed already mapped.
27455 The main things grep needs to know about mmap are:
27456 * does it exist and is it safe to write into the mmap'd area
27457 * how to use it (BSD variants) */
27459 #include <fcntl.h>
27460 #include <sys/mman.h>
27462 #if !STDC_HEADERS && !HAVE_STDLIB_H
27463 char *malloc ();
27464 #endif
27466 /* This mess was copied from the GNU getpagesize.h. */
27467 #if !HAVE_GETPAGESIZE
27468 /* Assume that all systems that can run configure have sys/param.h. */
27469 # if !HAVE_SYS_PARAM_H
27470 # define HAVE_SYS_PARAM_H 1
27471 # endif
27473 # ifdef _SC_PAGESIZE
27474 # define getpagesize() sysconf(_SC_PAGESIZE)
27475 # else /* no _SC_PAGESIZE */
27476 # if HAVE_SYS_PARAM_H
27477 # include <sys/param.h>
27478 # ifdef EXEC_PAGESIZE
27479 # define getpagesize() EXEC_PAGESIZE
27480 # else /* no EXEC_PAGESIZE */
27481 # ifdef NBPG
27482 # define getpagesize() NBPG * CLSIZE
27483 # ifndef CLSIZE
27484 # define CLSIZE 1
27485 # endif /* no CLSIZE */
27486 # else /* no NBPG */
27487 # ifdef NBPC
27488 # define getpagesize() NBPC
27489 # else /* no NBPC */
27490 # ifdef PAGESIZE
27491 # define getpagesize() PAGESIZE
27492 # endif /* PAGESIZE */
27493 # endif /* no NBPC */
27494 # endif /* no NBPG */
27495 # endif /* no EXEC_PAGESIZE */
27496 # else /* no HAVE_SYS_PARAM_H */
27497 # define getpagesize() 8192 /* punt totally */
27498 # endif /* no HAVE_SYS_PARAM_H */
27499 # endif /* no _SC_PAGESIZE */
27501 #endif /* no HAVE_GETPAGESIZE */
27504 main ()
27506 char *data, *data2, *data3;
27507 int i, pagesize;
27508 int fd;
27510 pagesize = getpagesize ();
27512 /* First, make a file with some known garbage in it. */
27513 data = (char *) malloc (pagesize);
27514 if (!data)
27515 exit (1);
27516 for (i = 0; i < pagesize; ++i)
27517 *(data + i) = rand ();
27518 umask (0);
27519 fd = creat ("conftest.mmap", 0600);
27520 if (fd < 0)
27521 exit (1);
27522 if (write (fd, data, pagesize) != pagesize)
27523 exit (1);
27524 close (fd);
27526 /* Next, try to mmap the file at a fixed address which already has
27527 something else allocated at it. If we can, also make sure that
27528 we see the same garbage. */
27529 fd = open ("conftest.mmap", O_RDWR);
27530 if (fd < 0)
27531 exit (1);
27532 data2 = (char *) malloc (2 * pagesize);
27533 if (!data2)
27534 exit (1);
27535 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27536 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27537 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27538 exit (1);
27539 for (i = 0; i < pagesize; ++i)
27540 if (*(data + i) != *(data2 + i))
27541 exit (1);
27543 /* Finally, make sure that changes to the mapped area do not
27544 percolate back to the file as seen by read(). (This is a bug on
27545 some variants of i386 svr4.0.) */
27546 for (i = 0; i < pagesize; ++i)
27547 *(data2 + i) = *(data2 + i) + 1;
27548 data3 = (char *) malloc (pagesize);
27549 if (!data3)
27550 exit (1);
27551 if (read (fd, data3, pagesize) != pagesize)
27552 exit (1);
27553 for (i = 0; i < pagesize; ++i)
27554 if (*(data + i) != *(data3 + i))
27555 exit (1);
27556 close (fd);
27557 exit (0);
27559 _ACEOF
27560 rm -f conftest$ac_exeext
27561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562 (eval $ac_link) 2>&5
27563 ac_status=$?
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; }; then
27571 ac_cv_func_mmap_fixed_mapped=yes
27572 else
27573 echo "$as_me: program exited with status $ac_status" >&5
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 ( exit $ac_status )
27578 ac_cv_func_mmap_fixed_mapped=no
27580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27583 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27584 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27585 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27587 cat >>confdefs.h <<\_ACEOF
27588 #define HAVE_MMAP 1
27589 _ACEOF
27592 rm -f conftest.mmap
27596 else
27598 # This lets us hard-code the functionality we know we'll have in the cross
27599 # target environment. "Let" is a sugar-coated word placed on an especially
27600 # dull and tedious hack, actually.
27602 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27603 # that involve linking, can't be used:
27604 # "cannot open sim-crt0.o"
27605 # "cannot open crt0.o"
27606 # etc. All this is because there currently exists no unified, consistent
27607 # way for top level CC information to be passed down to target directories:
27608 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27609 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27610 # crosses can be removed.
27612 # If Canadian cross, then don't pick up tools from the build directory.
27613 # Used only in GLIBCXX_EXPORT_INCLUDES.
27614 if test -n "$with_cross_host" &&
27615 test x"$build_alias" != x"$with_cross_host" &&
27616 test x"$build" != x"$target";
27617 then
27618 CANADIAN=yes
27619 else
27620 CANADIAN=no
27623 # Construct crosses by hand, eliminating bits that need ld...
27624 # GLIBCXX_CHECK_COMPILER_FEATURES
27625 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27626 # GLIBCXX_CHECK_MATH_SUPPORT
27628 # First, test for "known" system libraries. We may be using newlib even
27629 # on a hosted environment.
27630 if test "x${with_newlib}" = "xyes"; then
27631 os_include_dir="os/newlib"
27632 cat >>confdefs.h <<\_ACEOF
27633 #define HAVE_HYPOT 1
27634 _ACEOF
27637 # GLIBCXX_CHECK_STDLIB_SUPPORT
27638 cat >>confdefs.h <<\_ACEOF
27639 #define HAVE_STRTOF 1
27640 _ACEOF
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_STRTOLD 1
27644 _ACEOF
27646 # AC_FUNC_MMAP
27647 cat >>confdefs.h <<\_ACEOF
27648 #define HAVE_MMAP 1
27649 _ACEOF
27652 cat >>confdefs.h <<\_ACEOF
27653 #define HAVE_ACOSF 1
27654 _ACEOF
27656 cat >>confdefs.h <<\_ACEOF
27657 #define HAVE_ASINF 1
27658 _ACEOF
27660 cat >>confdefs.h <<\_ACEOF
27661 #define HAVE_ATAN2F 1
27662 _ACEOF
27664 cat >>confdefs.h <<\_ACEOF
27665 #define HAVE_ATANF 1
27666 _ACEOF
27668 cat >>confdefs.h <<\_ACEOF
27669 #define HAVE_CEILF 1
27670 _ACEOF
27672 cat >>confdefs.h <<\_ACEOF
27673 #define HAVE_COPYSIGN 1
27674 _ACEOF
27676 cat >>confdefs.h <<\_ACEOF
27677 #define HAVE_COPYSIGNF 1
27678 _ACEOF
27680 cat >>confdefs.h <<\_ACEOF
27681 #define HAVE_COSF 1
27682 _ACEOF
27684 cat >>confdefs.h <<\_ACEOF
27685 #define HAVE_COSHF 1
27686 _ACEOF
27688 cat >>confdefs.h <<\_ACEOF
27689 #define HAVE_EXPF 1
27690 _ACEOF
27692 cat >>confdefs.h <<\_ACEOF
27693 #define HAVE_FABSF 1
27694 _ACEOF
27696 cat >>confdefs.h <<\_ACEOF
27697 #define HAVE_FLOORF 1
27698 _ACEOF
27700 cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_FMODF 1
27702 _ACEOF
27704 cat >>confdefs.h <<\_ACEOF
27705 #define HAVE_FREXPF 1
27706 _ACEOF
27708 cat >>confdefs.h <<\_ACEOF
27709 #define HAVE_LDEXPF 1
27710 _ACEOF
27712 cat >>confdefs.h <<\_ACEOF
27713 #define HAVE_LOG10F 1
27714 _ACEOF
27716 cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_LOGF 1
27718 _ACEOF
27720 cat >>confdefs.h <<\_ACEOF
27721 #define HAVE_MODFF 1
27722 _ACEOF
27724 cat >>confdefs.h <<\_ACEOF
27725 #define HAVE_POWF 1
27726 _ACEOF
27728 cat >>confdefs.h <<\_ACEOF
27729 #define HAVE_SINF 1
27730 _ACEOF
27732 cat >>confdefs.h <<\_ACEOF
27733 #define HAVE_SINHF 1
27734 _ACEOF
27736 cat >>confdefs.h <<\_ACEOF
27737 #define HAVE_SQRTF 1
27738 _ACEOF
27740 cat >>confdefs.h <<\_ACEOF
27741 #define HAVE_TANF 1
27742 _ACEOF
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_TANHF 1
27746 _ACEOF
27748 else
27750 # Base decisions on target environment.
27751 case "${host}" in
27752 *-darwin*)
27753 # Darwin versions vary, but the linker should work in a cross environment,
27754 # so we just check for all the features here.
27755 # Check for available headers.
27769 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27770 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27771 sys/types.h
27773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27775 echo "$as_me:$LINENO: checking for $ac_header" >&5
27776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27778 echo $ECHO_N "(cached) $ECHO_C" >&6
27780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27782 else
27783 # Is the header compilable?
27784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27786 cat >conftest.$ac_ext <<_ACEOF
27787 #line $LINENO "configure"
27788 /* confdefs.h. */
27789 _ACEOF
27790 cat confdefs.h >>conftest.$ac_ext
27791 cat >>conftest.$ac_ext <<_ACEOF
27792 /* end confdefs.h. */
27793 $ac_includes_default
27794 #include <$ac_header>
27795 _ACEOF
27796 rm -f conftest.$ac_objext
27797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27798 (eval $ac_compile) 2>&5
27799 ac_status=$?
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
27802 { ac_try='test -s conftest.$ac_objext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_header_compiler=yes
27809 else
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ac_header_compiler=no
27815 rm -f conftest.$ac_objext conftest.$ac_ext
27816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27817 echo "${ECHO_T}$ac_header_compiler" >&6
27819 # Is the header present?
27820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27823 #line $LINENO "configure"
27824 /* confdefs.h. */
27825 _ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h. */
27829 #include <$ac_header>
27830 _ACEOF
27831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27833 ac_status=$?
27834 grep -v '^ *+' conftest.er1 >conftest.err
27835 rm -f conftest.er1
27836 cat conftest.err >&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); } >/dev/null; then
27839 if test -s conftest.err; then
27840 ac_cpp_err=$ac_c_preproc_warn_flag
27841 else
27842 ac_cpp_err=
27844 else
27845 ac_cpp_err=yes
27847 if test -z "$ac_cpp_err"; then
27848 ac_header_preproc=yes
27849 else
27850 echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27853 ac_header_preproc=no
27855 rm -f conftest.err conftest.$ac_ext
27856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27857 echo "${ECHO_T}$ac_header_preproc" >&6
27859 # So? What about this header?
27860 case $ac_header_compiler:$ac_header_preproc in
27861 yes:no )
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27867 cat <<\_ASBOX
27868 ## ------------------------------------ ##
27869 ## Report this to bug-autoconf@gnu.org. ##
27870 ## ------------------------------------ ##
27871 _ASBOX
27873 sed "s/^/$as_me: WARNING: /" >&2
27875 no:yes )
27876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27883 cat <<\_ASBOX
27884 ## ------------------------------------ ##
27885 ## Report this to bug-autoconf@gnu.org. ##
27886 ## ------------------------------------ ##
27887 _ASBOX
27889 sed "s/^/$as_me: WARNING: /" >&2
27891 esac
27892 echo "$as_me:$LINENO: checking for $ac_header" >&5
27893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27895 echo $ECHO_N "(cached) $ECHO_C" >&6
27896 else
27897 eval "$as_ac_Header=$ac_header_preproc"
27899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27904 cat >>confdefs.h <<_ACEOF
27905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27906 _ACEOF
27910 done
27914 # All these tests are for C++; save the language and the compiler flags.
27915 # The CXXFLAGS thing is suspicious, but based on similar bits previously
27916 # found in GLIBCXX_CONFIGURE.
27919 ac_ext=cc
27920 ac_cpp='$CXXCPP $CPPFLAGS'
27921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27925 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27926 ac_save_CXXFLAGS="$CXXFLAGS"
27928 # Check for maintainer-mode bits.
27929 if test x"$USE_MAINTAINER_MODE" = xno; then
27930 WERROR=''
27931 else
27932 WERROR='-Werror'
27935 # Check for -ffunction-sections -fdata-sections
27936 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27937 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27938 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27939 cat >conftest.$ac_ext <<_ACEOF
27940 #line $LINENO "configure"
27941 /* confdefs.h. */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27948 main ()
27950 int foo;
27952 return 0;
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957 (eval $ac_compile) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
27961 { ac_try='test -s conftest.$ac_objext'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27967 ac_fdsections=yes
27968 else
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 ac_fdsections=no
27974 rm -f conftest.$ac_objext conftest.$ac_ext
27975 if test "$ac_test_CXXFLAGS" = set; then
27976 CXXFLAGS="$ac_save_CXXFLAGS"
27977 else
27978 # this is the suspicious part
27979 CXXFLAGS=''
27981 if test x"$ac_fdsections" = x"yes"; then
27982 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27984 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27985 echo "${ECHO_T}$ac_fdsections" >&6
27987 ac_ext=c
27988 ac_cpp='$CPP $CPPFLAGS'
27989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27996 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27998 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27999 ac_save_CXXFLAGS="$CXXFLAGS"
28000 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
28002 echo "$as_me:$LINENO: checking for sin in -lm" >&5
28003 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
28004 if test "${ac_cv_lib_m_sin+set}" = set; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007 ac_check_lib_save_LIBS=$LIBS
28008 LIBS="-lm $LIBS"
28009 if test x$gcc_no_link = xyes; then
28010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28012 { (exit 1); exit 1; }; }
28014 cat >conftest.$ac_ext <<_ACEOF
28015 #line $LINENO "configure"
28016 /* confdefs.h. */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28022 /* Override any gcc2 internal prototype to avoid an error. */
28023 #ifdef __cplusplus
28024 extern "C"
28025 #endif
28026 /* We use char because int might match the return type of a gcc2
28027 builtin and then its argument prototype would still apply. */
28028 char sin ();
28030 main ()
28032 sin ();
28034 return 0;
28036 _ACEOF
28037 rm -f conftest.$ac_objext conftest$ac_exeext
28038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28039 (eval $ac_link) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } &&
28043 { ac_try='test -s conftest$ac_exeext'
28044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; }; then
28049 ac_cv_lib_m_sin=yes
28050 else
28051 echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28054 ac_cv_lib_m_sin=no
28056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28057 LIBS=$ac_check_lib_save_LIBS
28059 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
28060 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
28061 if test $ac_cv_lib_m_sin = yes; then
28062 libm="-lm"
28065 ac_save_LIBS="$LIBS"
28066 LIBS="$LIBS $libm"
28070 echo "$as_me:$LINENO: checking for isinf declaration" >&5
28071 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
28072 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
28073 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075 else
28079 ac_ext=cc
28080 ac_cpp='$CXXCPP $CPPFLAGS'
28081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28085 cat >conftest.$ac_ext <<_ACEOF
28086 #line $LINENO "configure"
28087 /* confdefs.h. */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h. */
28092 #include <math.h>
28093 #ifdef HAVE_IEEEFP_H
28094 #include <ieeefp.h>
28095 #endif
28098 main ()
28100 isinf(0);
28102 return 0;
28104 _ACEOF
28105 rm -f conftest.$ac_objext
28106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28107 (eval $ac_compile) 2>&5
28108 ac_status=$?
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } &&
28111 { ac_try='test -s conftest.$ac_objext'
28112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113 (eval $ac_try) 2>&5
28114 ac_status=$?
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); }; }; then
28117 glibcxx_cv_func_isinf_use=yes
28118 else
28119 echo "$as_me: failed program was:" >&5
28120 sed 's/^/| /' conftest.$ac_ext >&5
28122 glibcxx_cv_func_isinf_use=no
28124 rm -f conftest.$ac_objext conftest.$ac_ext
28125 ac_ext=c
28126 ac_cpp='$CPP $CPPFLAGS'
28127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
28136 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
28138 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
28140 for ac_func in isinf
28142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28143 echo "$as_me:$LINENO: checking for $ac_func" >&5
28144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28145 if eval "test \"\${$as_ac_var+set}\" = set"; then
28146 echo $ECHO_N "(cached) $ECHO_C" >&6
28147 else
28148 if test x$gcc_no_link = xyes; then
28149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28151 { (exit 1); exit 1; }; }
28153 cat >conftest.$ac_ext <<_ACEOF
28154 #line $LINENO "configure"
28155 /* confdefs.h. */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* System header to define __stub macros and hopefully few prototypes,
28161 which can conflict with char $ac_func (); below.
28162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28163 <limits.h> exists even on freestanding compilers. */
28164 #ifdef __STDC__
28165 # include <limits.h>
28166 #else
28167 # include <assert.h>
28168 #endif
28169 /* Override any gcc2 internal prototype to avoid an error. */
28170 #ifdef __cplusplus
28171 extern "C"
28173 #endif
28174 /* We use char because int might match the return type of a gcc2
28175 builtin and then its argument prototype would still apply. */
28176 char $ac_func ();
28177 /* The GNU C library defines this for functions which it implements
28178 to always fail with ENOSYS. Some functions are actually named
28179 something starting with __ and the normal name is an alias. */
28180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28181 choke me
28182 #else
28183 char (*f) () = $ac_func;
28184 #endif
28185 #ifdef __cplusplus
28187 #endif
28190 main ()
28192 return f != $ac_func;
28194 return 0;
28196 _ACEOF
28197 rm -f conftest.$ac_objext conftest$ac_exeext
28198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28199 (eval $ac_link) 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
28203 { ac_try='test -s conftest$ac_exeext'
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28206 ac_status=$?
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; }; then
28209 eval "$as_ac_var=yes"
28210 else
28211 echo "$as_me: failed program was:" >&5
28212 sed 's/^/| /' conftest.$ac_ext >&5
28214 eval "$as_ac_var=no"
28216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28220 if test `eval echo '${'$as_ac_var'}'` = yes; then
28221 cat >>confdefs.h <<_ACEOF
28222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28223 _ACEOF
28226 done
28228 else
28230 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
28231 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
28232 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
28233 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
28234 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 else
28239 ac_ext=cc
28240 ac_cpp='$CXXCPP $CPPFLAGS'
28241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28245 cat >conftest.$ac_ext <<_ACEOF
28246 #line $LINENO "configure"
28247 /* confdefs.h. */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <math.h>
28253 #ifdef HAVE_IEEEFP_H
28254 #include <ieeefp.h>
28255 #endif
28258 main ()
28260 _isinf(0);
28262 return 0;
28264 _ACEOF
28265 rm -f conftest.$ac_objext
28266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28267 (eval $ac_compile) 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
28271 { ac_try='test -s conftest.$ac_objext'
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28274 ac_status=$?
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; }; then
28277 glibcxx_cv_func__isinf_use=yes
28278 else
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 glibcxx_cv_func__isinf_use=no
28284 rm -f conftest.$ac_objext conftest.$ac_ext
28285 ac_ext=c
28286 ac_cpp='$CPP $CPPFLAGS'
28287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
28296 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
28298 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
28300 for ac_func in _isinf
28302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28303 echo "$as_me:$LINENO: checking for $ac_func" >&5
28304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28305 if eval "test \"\${$as_ac_var+set}\" = set"; then
28306 echo $ECHO_N "(cached) $ECHO_C" >&6
28307 else
28308 if test x$gcc_no_link = xyes; then
28309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28311 { (exit 1); exit 1; }; }
28313 cat >conftest.$ac_ext <<_ACEOF
28314 #line $LINENO "configure"
28315 /* confdefs.h. */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28320 /* System header to define __stub macros and hopefully few prototypes,
28321 which can conflict with char $ac_func (); below.
28322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28323 <limits.h> exists even on freestanding compilers. */
28324 #ifdef __STDC__
28325 # include <limits.h>
28326 #else
28327 # include <assert.h>
28328 #endif
28329 /* Override any gcc2 internal prototype to avoid an error. */
28330 #ifdef __cplusplus
28331 extern "C"
28333 #endif
28334 /* We use char because int might match the return type of a gcc2
28335 builtin and then its argument prototype would still apply. */
28336 char $ac_func ();
28337 /* The GNU C library defines this for functions which it implements
28338 to always fail with ENOSYS. Some functions are actually named
28339 something starting with __ and the normal name is an alias. */
28340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28341 choke me
28342 #else
28343 char (*f) () = $ac_func;
28344 #endif
28345 #ifdef __cplusplus
28347 #endif
28350 main ()
28352 return f != $ac_func;
28354 return 0;
28356 _ACEOF
28357 rm -f conftest.$ac_objext conftest$ac_exeext
28358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28359 (eval $ac_link) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
28363 { ac_try='test -s conftest$ac_exeext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 eval "$as_ac_var=yes"
28370 else
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 eval "$as_ac_var=no"
28376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28380 if test `eval echo '${'$as_ac_var'}'` = yes; then
28381 cat >>confdefs.h <<_ACEOF
28382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28383 _ACEOF
28386 done
28393 echo "$as_me:$LINENO: checking for isnan declaration" >&5
28394 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28395 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28396 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28397 echo $ECHO_N "(cached) $ECHO_C" >&6
28398 else
28402 ac_ext=cc
28403 ac_cpp='$CXXCPP $CPPFLAGS'
28404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28408 cat >conftest.$ac_ext <<_ACEOF
28409 #line $LINENO "configure"
28410 /* confdefs.h. */
28411 _ACEOF
28412 cat confdefs.h >>conftest.$ac_ext
28413 cat >>conftest.$ac_ext <<_ACEOF
28414 /* end confdefs.h. */
28415 #include <math.h>
28416 #ifdef HAVE_IEEEFP_H
28417 #include <ieeefp.h>
28418 #endif
28421 main ()
28423 isnan(0);
28425 return 0;
28427 _ACEOF
28428 rm -f conftest.$ac_objext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28430 (eval $ac_compile) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
28434 { ac_try='test -s conftest.$ac_objext'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 glibcxx_cv_func_isnan_use=yes
28441 else
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 glibcxx_cv_func_isnan_use=no
28447 rm -f conftest.$ac_objext conftest.$ac_ext
28448 ac_ext=c
28449 ac_cpp='$CPP $CPPFLAGS'
28450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28458 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28459 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28461 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28463 for ac_func in isnan
28465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28466 echo "$as_me:$LINENO: checking for $ac_func" >&5
28467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28468 if eval "test \"\${$as_ac_var+set}\" = set"; then
28469 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 else
28471 if test x$gcc_no_link = xyes; then
28472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28474 { (exit 1); exit 1; }; }
28476 cat >conftest.$ac_ext <<_ACEOF
28477 #line $LINENO "configure"
28478 /* confdefs.h. */
28479 _ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h. */
28483 /* System header to define __stub macros and hopefully few prototypes,
28484 which can conflict with char $ac_func (); below.
28485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28486 <limits.h> exists even on freestanding compilers. */
28487 #ifdef __STDC__
28488 # include <limits.h>
28489 #else
28490 # include <assert.h>
28491 #endif
28492 /* Override any gcc2 internal prototype to avoid an error. */
28493 #ifdef __cplusplus
28494 extern "C"
28496 #endif
28497 /* We use char because int might match the return type of a gcc2
28498 builtin and then its argument prototype would still apply. */
28499 char $ac_func ();
28500 /* The GNU C library defines this for functions which it implements
28501 to always fail with ENOSYS. Some functions are actually named
28502 something starting with __ and the normal name is an alias. */
28503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28504 choke me
28505 #else
28506 char (*f) () = $ac_func;
28507 #endif
28508 #ifdef __cplusplus
28510 #endif
28513 main ()
28515 return f != $ac_func;
28517 return 0;
28519 _ACEOF
28520 rm -f conftest.$ac_objext conftest$ac_exeext
28521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28522 (eval $ac_link) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -s conftest$ac_exeext'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 eval "$as_ac_var=yes"
28533 else
28534 echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28537 eval "$as_ac_var=no"
28539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28543 if test `eval echo '${'$as_ac_var'}'` = yes; then
28544 cat >>confdefs.h <<_ACEOF
28545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28546 _ACEOF
28549 done
28551 else
28553 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28554 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28555 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28556 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28557 echo $ECHO_N "(cached) $ECHO_C" >&6
28558 else
28562 ac_ext=cc
28563 ac_cpp='$CXXCPP $CPPFLAGS'
28564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28568 cat >conftest.$ac_ext <<_ACEOF
28569 #line $LINENO "configure"
28570 /* confdefs.h. */
28571 _ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28575 #include <math.h>
28576 #ifdef HAVE_IEEEFP_H
28577 #include <ieeefp.h>
28578 #endif
28581 main ()
28583 _isnan(0);
28585 return 0;
28587 _ACEOF
28588 rm -f conftest.$ac_objext
28589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28590 (eval $ac_compile) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
28594 { ac_try='test -s conftest.$ac_objext'
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; }; then
28600 glibcxx_cv_func__isnan_use=yes
28601 else
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28605 glibcxx_cv_func__isnan_use=no
28607 rm -f conftest.$ac_objext conftest.$ac_ext
28608 ac_ext=c
28609 ac_cpp='$CPP $CPPFLAGS'
28610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28618 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28619 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28621 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28623 for ac_func in _isnan
28625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28626 echo "$as_me:$LINENO: checking for $ac_func" >&5
28627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28628 if eval "test \"\${$as_ac_var+set}\" = set"; then
28629 echo $ECHO_N "(cached) $ECHO_C" >&6
28630 else
28631 if test x$gcc_no_link = xyes; then
28632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28634 { (exit 1); exit 1; }; }
28636 cat >conftest.$ac_ext <<_ACEOF
28637 #line $LINENO "configure"
28638 /* confdefs.h. */
28639 _ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h. */
28643 /* System header to define __stub macros and hopefully few prototypes,
28644 which can conflict with char $ac_func (); below.
28645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28646 <limits.h> exists even on freestanding compilers. */
28647 #ifdef __STDC__
28648 # include <limits.h>
28649 #else
28650 # include <assert.h>
28651 #endif
28652 /* Override any gcc2 internal prototype to avoid an error. */
28653 #ifdef __cplusplus
28654 extern "C"
28656 #endif
28657 /* We use char because int might match the return type of a gcc2
28658 builtin and then its argument prototype would still apply. */
28659 char $ac_func ();
28660 /* The GNU C library defines this for functions which it implements
28661 to always fail with ENOSYS. Some functions are actually named
28662 something starting with __ and the normal name is an alias. */
28663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28664 choke me
28665 #else
28666 char (*f) () = $ac_func;
28667 #endif
28668 #ifdef __cplusplus
28670 #endif
28673 main ()
28675 return f != $ac_func;
28677 return 0;
28679 _ACEOF
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682 (eval $ac_link) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } &&
28686 { ac_try='test -s conftest$ac_exeext'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28692 eval "$as_ac_var=yes"
28693 else
28694 echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28697 eval "$as_ac_var=no"
28699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28703 if test `eval echo '${'$as_ac_var'}'` = yes; then
28704 cat >>confdefs.h <<_ACEOF
28705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28706 _ACEOF
28709 done
28716 echo "$as_me:$LINENO: checking for finite declaration" >&5
28717 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28718 if test x${glibcxx_cv_func_finite_use+set} != xset; then
28719 if test "${glibcxx_cv_func_finite_use+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 else
28725 ac_ext=cc
28726 ac_cpp='$CXXCPP $CPPFLAGS'
28727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28731 cat >conftest.$ac_ext <<_ACEOF
28732 #line $LINENO "configure"
28733 /* confdefs.h. */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738 #include <math.h>
28739 #ifdef HAVE_IEEEFP_H
28740 #include <ieeefp.h>
28741 #endif
28744 main ()
28746 finite(0);
28748 return 0;
28750 _ACEOF
28751 rm -f conftest.$ac_objext
28752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28753 (eval $ac_compile) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); } &&
28757 { ac_try='test -s conftest.$ac_objext'
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28760 ac_status=$?
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; }; then
28763 glibcxx_cv_func_finite_use=yes
28764 else
28765 echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28768 glibcxx_cv_func_finite_use=no
28770 rm -f conftest.$ac_objext conftest.$ac_ext
28771 ac_ext=c
28772 ac_cpp='$CPP $CPPFLAGS'
28773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28781 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28782 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28784 if test x$glibcxx_cv_func_finite_use = x"yes"; then
28786 for ac_func in finite
28788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789 echo "$as_me:$LINENO: checking for $ac_func" >&5
28790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28791 if eval "test \"\${$as_ac_var+set}\" = set"; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793 else
28794 if test x$gcc_no_link = xyes; then
28795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28797 { (exit 1); exit 1; }; }
28799 cat >conftest.$ac_ext <<_ACEOF
28800 #line $LINENO "configure"
28801 /* confdefs.h. */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 /* System header to define __stub macros and hopefully few prototypes,
28807 which can conflict with char $ac_func (); below.
28808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28809 <limits.h> exists even on freestanding compilers. */
28810 #ifdef __STDC__
28811 # include <limits.h>
28812 #else
28813 # include <assert.h>
28814 #endif
28815 /* Override any gcc2 internal prototype to avoid an error. */
28816 #ifdef __cplusplus
28817 extern "C"
28819 #endif
28820 /* We use char because int might match the return type of a gcc2
28821 builtin and then its argument prototype would still apply. */
28822 char $ac_func ();
28823 /* The GNU C library defines this for functions which it implements
28824 to always fail with ENOSYS. Some functions are actually named
28825 something starting with __ and the normal name is an alias. */
28826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28827 choke me
28828 #else
28829 char (*f) () = $ac_func;
28830 #endif
28831 #ifdef __cplusplus
28833 #endif
28836 main ()
28838 return f != $ac_func;
28840 return 0;
28842 _ACEOF
28843 rm -f conftest.$ac_objext conftest$ac_exeext
28844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28845 (eval $ac_link) 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } &&
28849 { ac_try='test -s conftest$ac_exeext'
28850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851 (eval $ac_try) 2>&5
28852 ac_status=$?
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; }; then
28855 eval "$as_ac_var=yes"
28856 else
28857 echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.$ac_ext >&5
28860 eval "$as_ac_var=no"
28862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28866 if test `eval echo '${'$as_ac_var'}'` = yes; then
28867 cat >>confdefs.h <<_ACEOF
28868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28869 _ACEOF
28872 done
28874 else
28876 echo "$as_me:$LINENO: checking for _finite declaration" >&5
28877 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28878 if test x${glibcxx_cv_func__finite_use+set} != xset; then
28879 if test "${glibcxx_cv_func__finite_use+set}" = set; then
28880 echo $ECHO_N "(cached) $ECHO_C" >&6
28881 else
28885 ac_ext=cc
28886 ac_cpp='$CXXCPP $CPPFLAGS'
28887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28891 cat >conftest.$ac_ext <<_ACEOF
28892 #line $LINENO "configure"
28893 /* confdefs.h. */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h. */
28898 #include <math.h>
28899 #ifdef HAVE_IEEEFP_H
28900 #include <ieeefp.h>
28901 #endif
28904 main ()
28906 _finite(0);
28908 return 0;
28910 _ACEOF
28911 rm -f conftest.$ac_objext
28912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28913 (eval $ac_compile) 2>&5
28914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -s conftest.$ac_objext'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 glibcxx_cv_func__finite_use=yes
28924 else
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 glibcxx_cv_func__finite_use=no
28930 rm -f conftest.$ac_objext conftest.$ac_ext
28931 ac_ext=c
28932 ac_cpp='$CPP $CPPFLAGS'
28933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28941 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28942 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28944 if test x$glibcxx_cv_func__finite_use = x"yes"; then
28946 for ac_func in _finite
28948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28949 echo "$as_me:$LINENO: checking for $ac_func" >&5
28950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28951 if eval "test \"\${$as_ac_var+set}\" = set"; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28953 else
28954 if test x$gcc_no_link = xyes; then
28955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28957 { (exit 1); exit 1; }; }
28959 cat >conftest.$ac_ext <<_ACEOF
28960 #line $LINENO "configure"
28961 /* confdefs.h. */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 /* System header to define __stub macros and hopefully few prototypes,
28967 which can conflict with char $ac_func (); below.
28968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28969 <limits.h> exists even on freestanding compilers. */
28970 #ifdef __STDC__
28971 # include <limits.h>
28972 #else
28973 # include <assert.h>
28974 #endif
28975 /* Override any gcc2 internal prototype to avoid an error. */
28976 #ifdef __cplusplus
28977 extern "C"
28979 #endif
28980 /* We use char because int might match the return type of a gcc2
28981 builtin and then its argument prototype would still apply. */
28982 char $ac_func ();
28983 /* The GNU C library defines this for functions which it implements
28984 to always fail with ENOSYS. Some functions are actually named
28985 something starting with __ and the normal name is an alias. */
28986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28987 choke me
28988 #else
28989 char (*f) () = $ac_func;
28990 #endif
28991 #ifdef __cplusplus
28993 #endif
28996 main ()
28998 return f != $ac_func;
29000 return 0;
29002 _ACEOF
29003 rm -f conftest.$ac_objext conftest$ac_exeext
29004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29005 (eval $ac_link) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } &&
29009 { ac_try='test -s conftest$ac_exeext'
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 eval "$as_ac_var=yes"
29016 else
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 eval "$as_ac_var=no"
29022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29026 if test `eval echo '${'$as_ac_var'}'` = yes; then
29027 cat >>confdefs.h <<_ACEOF
29028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29029 _ACEOF
29032 done
29039 echo "$as_me:$LINENO: checking for copysign declaration" >&5
29040 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
29041 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
29042 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
29043 echo $ECHO_N "(cached) $ECHO_C" >&6
29044 else
29048 ac_ext=cc
29049 ac_cpp='$CXXCPP $CPPFLAGS'
29050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29054 cat >conftest.$ac_ext <<_ACEOF
29055 #line $LINENO "configure"
29056 /* confdefs.h. */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29061 #include <math.h>
29063 main ()
29065 copysign(0, 0);
29067 return 0;
29069 _ACEOF
29070 rm -f conftest.$ac_objext
29071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29072 (eval $ac_compile) 2>&5
29073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } &&
29076 { ac_try='test -s conftest.$ac_objext'
29077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078 (eval $ac_try) 2>&5
29079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 glibcxx_cv_func_copysign_use=yes
29083 else
29084 echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29087 glibcxx_cv_func_copysign_use=no
29089 rm -f conftest.$ac_objext conftest.$ac_ext
29090 ac_ext=c
29091 ac_cpp='$CPP $CPPFLAGS'
29092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29100 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
29101 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
29103 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
29105 for ac_func in copysign
29107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29108 echo "$as_me:$LINENO: checking for $ac_func" >&5
29109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29110 if eval "test \"\${$as_ac_var+set}\" = set"; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113 if test x$gcc_no_link = xyes; then
29114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29116 { (exit 1); exit 1; }; }
29118 cat >conftest.$ac_ext <<_ACEOF
29119 #line $LINENO "configure"
29120 /* confdefs.h. */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29125 /* System header to define __stub macros and hopefully few prototypes,
29126 which can conflict with char $ac_func (); below.
29127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29128 <limits.h> exists even on freestanding compilers. */
29129 #ifdef __STDC__
29130 # include <limits.h>
29131 #else
29132 # include <assert.h>
29133 #endif
29134 /* Override any gcc2 internal prototype to avoid an error. */
29135 #ifdef __cplusplus
29136 extern "C"
29138 #endif
29139 /* We use char because int might match the return type of a gcc2
29140 builtin and then its argument prototype would still apply. */
29141 char $ac_func ();
29142 /* The GNU C library defines this for functions which it implements
29143 to always fail with ENOSYS. Some functions are actually named
29144 something starting with __ and the normal name is an alias. */
29145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29146 choke me
29147 #else
29148 char (*f) () = $ac_func;
29149 #endif
29150 #ifdef __cplusplus
29152 #endif
29155 main ()
29157 return f != $ac_func;
29159 return 0;
29161 _ACEOF
29162 rm -f conftest.$ac_objext conftest$ac_exeext
29163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29164 (eval $ac_link) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); } &&
29168 { ac_try='test -s conftest$ac_exeext'
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; }; then
29174 eval "$as_ac_var=yes"
29175 else
29176 echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29179 eval "$as_ac_var=no"
29181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29185 if test `eval echo '${'$as_ac_var'}'` = yes; then
29186 cat >>confdefs.h <<_ACEOF
29187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29188 _ACEOF
29191 done
29193 else
29195 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
29196 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
29197 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
29198 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 else
29204 ac_ext=cc
29205 ac_cpp='$CXXCPP $CPPFLAGS'
29206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29210 cat >conftest.$ac_ext <<_ACEOF
29211 #line $LINENO "configure"
29212 /* confdefs.h. */
29213 _ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h. */
29217 #include <math.h>
29219 main ()
29221 _copysign(0, 0);
29223 return 0;
29225 _ACEOF
29226 rm -f conftest.$ac_objext
29227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29228 (eval $ac_compile) 2>&5
29229 ac_status=$?
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); } &&
29232 { ac_try='test -s conftest.$ac_objext'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238 glibcxx_cv_func__copysign_use=yes
29239 else
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29243 glibcxx_cv_func__copysign_use=no
29245 rm -f conftest.$ac_objext conftest.$ac_ext
29246 ac_ext=c
29247 ac_cpp='$CPP $CPPFLAGS'
29248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29256 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
29257 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
29259 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
29261 for ac_func in _copysign
29263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29264 echo "$as_me:$LINENO: checking for $ac_func" >&5
29265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29266 if eval "test \"\${$as_ac_var+set}\" = set"; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 else
29269 if test x$gcc_no_link = xyes; then
29270 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29272 { (exit 1); exit 1; }; }
29274 cat >conftest.$ac_ext <<_ACEOF
29275 #line $LINENO "configure"
29276 /* confdefs.h. */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29281 /* System header to define __stub macros and hopefully few prototypes,
29282 which can conflict with char $ac_func (); below.
29283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29284 <limits.h> exists even on freestanding compilers. */
29285 #ifdef __STDC__
29286 # include <limits.h>
29287 #else
29288 # include <assert.h>
29289 #endif
29290 /* Override any gcc2 internal prototype to avoid an error. */
29291 #ifdef __cplusplus
29292 extern "C"
29294 #endif
29295 /* We use char because int might match the return type of a gcc2
29296 builtin and then its argument prototype would still apply. */
29297 char $ac_func ();
29298 /* The GNU C library defines this for functions which it implements
29299 to always fail with ENOSYS. Some functions are actually named
29300 something starting with __ and the normal name is an alias. */
29301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29302 choke me
29303 #else
29304 char (*f) () = $ac_func;
29305 #endif
29306 #ifdef __cplusplus
29308 #endif
29311 main ()
29313 return f != $ac_func;
29315 return 0;
29317 _ACEOF
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320 (eval $ac_link) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -s conftest$ac_exeext'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 eval "$as_ac_var=yes"
29331 else
29332 echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 eval "$as_ac_var=no"
29337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29341 if test `eval echo '${'$as_ac_var'}'` = yes; then
29342 cat >>confdefs.h <<_ACEOF
29343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29344 _ACEOF
29347 done
29354 echo "$as_me:$LINENO: checking for sincos declaration" >&5
29355 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29356 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29357 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29359 else
29363 ac_ext=cc
29364 ac_cpp='$CXXCPP $CPPFLAGS'
29365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29369 cat >conftest.$ac_ext <<_ACEOF
29370 #line $LINENO "configure"
29371 /* confdefs.h. */
29372 _ACEOF
29373 cat confdefs.h >>conftest.$ac_ext
29374 cat >>conftest.$ac_ext <<_ACEOF
29375 /* end confdefs.h. */
29376 #include <math.h>
29378 main ()
29380 sincos(0, 0, 0);
29382 return 0;
29384 _ACEOF
29385 rm -f conftest.$ac_objext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29387 (eval $ac_compile) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -s conftest.$ac_objext'
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29394 ac_status=$?
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 glibcxx_cv_func_sincos_use=yes
29398 else
29399 echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29402 glibcxx_cv_func_sincos_use=no
29404 rm -f conftest.$ac_objext conftest.$ac_ext
29405 ac_ext=c
29406 ac_cpp='$CPP $CPPFLAGS'
29407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29415 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29416 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29418 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29420 for ac_func in sincos
29422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29423 echo "$as_me:$LINENO: checking for $ac_func" >&5
29424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29425 if eval "test \"\${$as_ac_var+set}\" = set"; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29427 else
29428 if test x$gcc_no_link = xyes; then
29429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29431 { (exit 1); exit 1; }; }
29433 cat >conftest.$ac_ext <<_ACEOF
29434 #line $LINENO "configure"
29435 /* confdefs.h. */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29440 /* System header to define __stub macros and hopefully few prototypes,
29441 which can conflict with char $ac_func (); below.
29442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29443 <limits.h> exists even on freestanding compilers. */
29444 #ifdef __STDC__
29445 # include <limits.h>
29446 #else
29447 # include <assert.h>
29448 #endif
29449 /* Override any gcc2 internal prototype to avoid an error. */
29450 #ifdef __cplusplus
29451 extern "C"
29453 #endif
29454 /* We use char because int might match the return type of a gcc2
29455 builtin and then its argument prototype would still apply. */
29456 char $ac_func ();
29457 /* The GNU C library defines this for functions which it implements
29458 to always fail with ENOSYS. Some functions are actually named
29459 something starting with __ and the normal name is an alias. */
29460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29461 choke me
29462 #else
29463 char (*f) () = $ac_func;
29464 #endif
29465 #ifdef __cplusplus
29467 #endif
29470 main ()
29472 return f != $ac_func;
29474 return 0;
29476 _ACEOF
29477 rm -f conftest.$ac_objext conftest$ac_exeext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29479 (eval $ac_link) 2>&5
29480 ac_status=$?
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
29483 { ac_try='test -s conftest$ac_exeext'
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 eval "$as_ac_var=yes"
29490 else
29491 echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29494 eval "$as_ac_var=no"
29496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29500 if test `eval echo '${'$as_ac_var'}'` = yes; then
29501 cat >>confdefs.h <<_ACEOF
29502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29503 _ACEOF
29506 done
29508 else
29510 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29511 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29512 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29513 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29515 else
29519 ac_ext=cc
29520 ac_cpp='$CXXCPP $CPPFLAGS'
29521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29525 cat >conftest.$ac_ext <<_ACEOF
29526 #line $LINENO "configure"
29527 /* confdefs.h. */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29532 #include <math.h>
29534 main ()
29536 _sincos(0, 0, 0);
29538 return 0;
29540 _ACEOF
29541 rm -f conftest.$ac_objext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29543 (eval $ac_compile) 2>&5
29544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } &&
29547 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29553 glibcxx_cv_func__sincos_use=yes
29554 else
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 glibcxx_cv_func__sincos_use=no
29560 rm -f conftest.$ac_objext conftest.$ac_ext
29561 ac_ext=c
29562 ac_cpp='$CPP $CPPFLAGS'
29563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29571 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29572 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29574 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29576 for ac_func in _sincos
29578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29579 echo "$as_me:$LINENO: checking for $ac_func" >&5
29580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29581 if eval "test \"\${$as_ac_var+set}\" = set"; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584 if test x$gcc_no_link = xyes; then
29585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29587 { (exit 1); exit 1; }; }
29589 cat >conftest.$ac_ext <<_ACEOF
29590 #line $LINENO "configure"
29591 /* confdefs.h. */
29592 _ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29596 /* System header to define __stub macros and hopefully few prototypes,
29597 which can conflict with char $ac_func (); below.
29598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29599 <limits.h> exists even on freestanding compilers. */
29600 #ifdef __STDC__
29601 # include <limits.h>
29602 #else
29603 # include <assert.h>
29604 #endif
29605 /* Override any gcc2 internal prototype to avoid an error. */
29606 #ifdef __cplusplus
29607 extern "C"
29609 #endif
29610 /* We use char because int might match the return type of a gcc2
29611 builtin and then its argument prototype would still apply. */
29612 char $ac_func ();
29613 /* The GNU C library defines this for functions which it implements
29614 to always fail with ENOSYS. Some functions are actually named
29615 something starting with __ and the normal name is an alias. */
29616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29617 choke me
29618 #else
29619 char (*f) () = $ac_func;
29620 #endif
29621 #ifdef __cplusplus
29623 #endif
29626 main ()
29628 return f != $ac_func;
29630 return 0;
29632 _ACEOF
29633 rm -f conftest.$ac_objext conftest$ac_exeext
29634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29635 (eval $ac_link) 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } &&
29639 { ac_try='test -s conftest$ac_exeext'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; }; then
29645 eval "$as_ac_var=yes"
29646 else
29647 echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29650 eval "$as_ac_var=no"
29652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29656 if test `eval echo '${'$as_ac_var'}'` = yes; then
29657 cat >>confdefs.h <<_ACEOF
29658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29659 _ACEOF
29662 done
29669 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29670 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29671 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29672 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674 else
29678 ac_ext=cc
29679 ac_cpp='$CXXCPP $CPPFLAGS'
29680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29684 cat >conftest.$ac_ext <<_ACEOF
29685 #line $LINENO "configure"
29686 /* confdefs.h. */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 #include <math.h>
29692 #ifdef HAVE_IEEEFP_H
29693 #include <ieeefp.h>
29694 #endif
29697 main ()
29699 fpclass(0);
29701 return 0;
29703 _ACEOF
29704 rm -f conftest.$ac_objext
29705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29706 (eval $ac_compile) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } &&
29710 { ac_try='test -s conftest.$ac_objext'
29711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29712 (eval $ac_try) 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; }; then
29716 glibcxx_cv_func_fpclass_use=yes
29717 else
29718 echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29721 glibcxx_cv_func_fpclass_use=no
29723 rm -f conftest.$ac_objext conftest.$ac_ext
29724 ac_ext=c
29725 ac_cpp='$CPP $CPPFLAGS'
29726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29734 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29735 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29737 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29739 for ac_func in fpclass
29741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29742 echo "$as_me:$LINENO: checking for $ac_func" >&5
29743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29744 if eval "test \"\${$as_ac_var+set}\" = set"; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29747 if test x$gcc_no_link = xyes; then
29748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29750 { (exit 1); exit 1; }; }
29752 cat >conftest.$ac_ext <<_ACEOF
29753 #line $LINENO "configure"
29754 /* confdefs.h. */
29755 _ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h. */
29759 /* System header to define __stub macros and hopefully few prototypes,
29760 which can conflict with char $ac_func (); below.
29761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29762 <limits.h> exists even on freestanding compilers. */
29763 #ifdef __STDC__
29764 # include <limits.h>
29765 #else
29766 # include <assert.h>
29767 #endif
29768 /* Override any gcc2 internal prototype to avoid an error. */
29769 #ifdef __cplusplus
29770 extern "C"
29772 #endif
29773 /* We use char because int might match the return type of a gcc2
29774 builtin and then its argument prototype would still apply. */
29775 char $ac_func ();
29776 /* The GNU C library defines this for functions which it implements
29777 to always fail with ENOSYS. Some functions are actually named
29778 something starting with __ and the normal name is an alias. */
29779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29780 choke me
29781 #else
29782 char (*f) () = $ac_func;
29783 #endif
29784 #ifdef __cplusplus
29786 #endif
29789 main ()
29791 return f != $ac_func;
29793 return 0;
29795 _ACEOF
29796 rm -f conftest.$ac_objext conftest$ac_exeext
29797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29798 (eval $ac_link) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
29802 { ac_try='test -s conftest$ac_exeext'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808 eval "$as_ac_var=yes"
29809 else
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 eval "$as_ac_var=no"
29815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29819 if test `eval echo '${'$as_ac_var'}'` = yes; then
29820 cat >>confdefs.h <<_ACEOF
29821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29822 _ACEOF
29825 done
29827 else
29829 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29830 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29831 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29832 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29838 ac_ext=cc
29839 ac_cpp='$CXXCPP $CPPFLAGS'
29840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29844 cat >conftest.$ac_ext <<_ACEOF
29845 #line $LINENO "configure"
29846 /* confdefs.h. */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h. */
29851 #include <math.h>
29852 #ifdef HAVE_IEEEFP_H
29853 #include <ieeefp.h>
29854 #endif
29857 main ()
29859 _fpclass(0);
29861 return 0;
29863 _ACEOF
29864 rm -f conftest.$ac_objext
29865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29866 (eval $ac_compile) 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
29870 { ac_try='test -s conftest.$ac_objext'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; }; then
29876 glibcxx_cv_func__fpclass_use=yes
29877 else
29878 echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29881 glibcxx_cv_func__fpclass_use=no
29883 rm -f conftest.$ac_objext conftest.$ac_ext
29884 ac_ext=c
29885 ac_cpp='$CPP $CPPFLAGS'
29886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29894 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29895 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29897 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29899 for ac_func in _fpclass
29901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29902 echo "$as_me:$LINENO: checking for $ac_func" >&5
29903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29904 if eval "test \"\${$as_ac_var+set}\" = set"; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906 else
29907 if test x$gcc_no_link = xyes; then
29908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29910 { (exit 1); exit 1; }; }
29912 cat >conftest.$ac_ext <<_ACEOF
29913 #line $LINENO "configure"
29914 /* confdefs.h. */
29915 _ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h. */
29919 /* System header to define __stub macros and hopefully few prototypes,
29920 which can conflict with char $ac_func (); below.
29921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29922 <limits.h> exists even on freestanding compilers. */
29923 #ifdef __STDC__
29924 # include <limits.h>
29925 #else
29926 # include <assert.h>
29927 #endif
29928 /* Override any gcc2 internal prototype to avoid an error. */
29929 #ifdef __cplusplus
29930 extern "C"
29932 #endif
29933 /* We use char because int might match the return type of a gcc2
29934 builtin and then its argument prototype would still apply. */
29935 char $ac_func ();
29936 /* The GNU C library defines this for functions which it implements
29937 to always fail with ENOSYS. Some functions are actually named
29938 something starting with __ and the normal name is an alias. */
29939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29940 choke me
29941 #else
29942 char (*f) () = $ac_func;
29943 #endif
29944 #ifdef __cplusplus
29946 #endif
29949 main ()
29951 return f != $ac_func;
29953 return 0;
29955 _ACEOF
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29958 (eval $ac_link) 2>&5
29959 ac_status=$?
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } &&
29962 { ac_try='test -s conftest$ac_exeext'
29963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29964 (eval $ac_try) 2>&5
29965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; }; then
29968 eval "$as_ac_var=yes"
29969 else
29970 echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29973 eval "$as_ac_var=no"
29975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29979 if test `eval echo '${'$as_ac_var'}'` = yes; then
29980 cat >>confdefs.h <<_ACEOF
29981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29982 _ACEOF
29985 done
29992 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29993 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29994 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29995 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
30001 ac_ext=cc
30002 ac_cpp='$CXXCPP $CPPFLAGS'
30003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30007 cat >conftest.$ac_ext <<_ACEOF
30008 #line $LINENO "configure"
30009 /* confdefs.h. */
30010 _ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h. */
30014 #include <math.h>
30015 #ifdef HAVE_IEEEFP_H
30016 #include <ieeefp.h>
30017 #endif
30020 main ()
30022 qfpclass(0);
30024 return 0;
30026 _ACEOF
30027 rm -f conftest.$ac_objext
30028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30029 (eval $ac_compile) 2>&5
30030 ac_status=$?
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
30033 { ac_try='test -s conftest.$ac_objext'
30034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035 (eval $ac_try) 2>&5
30036 ac_status=$?
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; }; then
30039 glibcxx_cv_func_qfpclass_use=yes
30040 else
30041 echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30044 glibcxx_cv_func_qfpclass_use=no
30046 rm -f conftest.$ac_objext conftest.$ac_ext
30047 ac_ext=c
30048 ac_cpp='$CPP $CPPFLAGS'
30049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30057 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
30058 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
30060 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
30062 for ac_func in qfpclass
30064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30065 echo "$as_me:$LINENO: checking for $ac_func" >&5
30066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30067 if eval "test \"\${$as_ac_var+set}\" = set"; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
30069 else
30070 if test x$gcc_no_link = xyes; then
30071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30073 { (exit 1); exit 1; }; }
30075 cat >conftest.$ac_ext <<_ACEOF
30076 #line $LINENO "configure"
30077 /* confdefs.h. */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30082 /* System header to define __stub macros and hopefully few prototypes,
30083 which can conflict with char $ac_func (); below.
30084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085 <limits.h> exists even on freestanding compilers. */
30086 #ifdef __STDC__
30087 # include <limits.h>
30088 #else
30089 # include <assert.h>
30090 #endif
30091 /* Override any gcc2 internal prototype to avoid an error. */
30092 #ifdef __cplusplus
30093 extern "C"
30095 #endif
30096 /* We use char because int might match the return type of a gcc2
30097 builtin and then its argument prototype would still apply. */
30098 char $ac_func ();
30099 /* The GNU C library defines this for functions which it implements
30100 to always fail with ENOSYS. Some functions are actually named
30101 something starting with __ and the normal name is an alias. */
30102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30103 choke me
30104 #else
30105 char (*f) () = $ac_func;
30106 #endif
30107 #ifdef __cplusplus
30109 #endif
30112 main ()
30114 return f != $ac_func;
30116 return 0;
30118 _ACEOF
30119 rm -f conftest.$ac_objext conftest$ac_exeext
30120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30121 (eval $ac_link) 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } &&
30125 { ac_try='test -s conftest$ac_exeext'
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; }; then
30131 eval "$as_ac_var=yes"
30132 else
30133 echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 eval "$as_ac_var=no"
30138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30142 if test `eval echo '${'$as_ac_var'}'` = yes; then
30143 cat >>confdefs.h <<_ACEOF
30144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30145 _ACEOF
30148 done
30150 else
30152 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
30153 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
30154 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
30155 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157 else
30161 ac_ext=cc
30162 ac_cpp='$CXXCPP $CPPFLAGS'
30163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30167 cat >conftest.$ac_ext <<_ACEOF
30168 #line $LINENO "configure"
30169 /* confdefs.h. */
30170 _ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 #include <math.h>
30175 #ifdef HAVE_IEEEFP_H
30176 #include <ieeefp.h>
30177 #endif
30180 main ()
30182 _qfpclass(0);
30184 return 0;
30186 _ACEOF
30187 rm -f conftest.$ac_objext
30188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30189 (eval $ac_compile) 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); } &&
30193 { ac_try='test -s conftest.$ac_objext'
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; }; then
30199 glibcxx_cv_func__qfpclass_use=yes
30200 else
30201 echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30204 glibcxx_cv_func__qfpclass_use=no
30206 rm -f conftest.$ac_objext conftest.$ac_ext
30207 ac_ext=c
30208 ac_cpp='$CPP $CPPFLAGS'
30209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30217 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
30218 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
30220 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
30222 for ac_func in _qfpclass
30224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30225 echo "$as_me:$LINENO: checking for $ac_func" >&5
30226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30227 if eval "test \"\${$as_ac_var+set}\" = set"; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30229 else
30230 if test x$gcc_no_link = xyes; then
30231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30233 { (exit 1); exit 1; }; }
30235 cat >conftest.$ac_ext <<_ACEOF
30236 #line $LINENO "configure"
30237 /* confdefs.h. */
30238 _ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h. */
30242 /* System header to define __stub macros and hopefully few prototypes,
30243 which can conflict with char $ac_func (); below.
30244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30245 <limits.h> exists even on freestanding compilers. */
30246 #ifdef __STDC__
30247 # include <limits.h>
30248 #else
30249 # include <assert.h>
30250 #endif
30251 /* Override any gcc2 internal prototype to avoid an error. */
30252 #ifdef __cplusplus
30253 extern "C"
30255 #endif
30256 /* We use char because int might match the return type of a gcc2
30257 builtin and then its argument prototype would still apply. */
30258 char $ac_func ();
30259 /* The GNU C library defines this for functions which it implements
30260 to always fail with ENOSYS. Some functions are actually named
30261 something starting with __ and the normal name is an alias. */
30262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30263 choke me
30264 #else
30265 char (*f) () = $ac_func;
30266 #endif
30267 #ifdef __cplusplus
30269 #endif
30272 main ()
30274 return f != $ac_func;
30276 return 0;
30278 _ACEOF
30279 rm -f conftest.$ac_objext conftest$ac_exeext
30280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30281 (eval $ac_link) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -s conftest$ac_exeext'
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 eval "$as_ac_var=yes"
30292 else
30293 echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30296 eval "$as_ac_var=no"
30298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305 _ACEOF
30308 done
30315 echo "$as_me:$LINENO: checking for hypot declaration" >&5
30316 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30317 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30318 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30319 echo $ECHO_N "(cached) $ECHO_C" >&6
30320 else
30324 ac_ext=cc
30325 ac_cpp='$CXXCPP $CPPFLAGS'
30326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30330 cat >conftest.$ac_ext <<_ACEOF
30331 #line $LINENO "configure"
30332 /* confdefs.h. */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h. */
30337 #include <math.h>
30339 main ()
30341 hypot(0, 0);
30343 return 0;
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30348 (eval $ac_compile) 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
30352 { ac_try='test -s conftest.$ac_objext'
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 glibcxx_cv_func_hypot_use=yes
30359 else
30360 echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30363 glibcxx_cv_func_hypot_use=no
30365 rm -f conftest.$ac_objext conftest.$ac_ext
30366 ac_ext=c
30367 ac_cpp='$CPP $CPPFLAGS'
30368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30376 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30377 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30379 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30381 for ac_func in hypot
30383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30384 echo "$as_me:$LINENO: checking for $ac_func" >&5
30385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30386 if eval "test \"\${$as_ac_var+set}\" = set"; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30388 else
30389 if test x$gcc_no_link = xyes; then
30390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30392 { (exit 1); exit 1; }; }
30394 cat >conftest.$ac_ext <<_ACEOF
30395 #line $LINENO "configure"
30396 /* confdefs.h. */
30397 _ACEOF
30398 cat confdefs.h >>conftest.$ac_ext
30399 cat >>conftest.$ac_ext <<_ACEOF
30400 /* end confdefs.h. */
30401 /* System header to define __stub macros and hopefully few prototypes,
30402 which can conflict with char $ac_func (); below.
30403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30404 <limits.h> exists even on freestanding compilers. */
30405 #ifdef __STDC__
30406 # include <limits.h>
30407 #else
30408 # include <assert.h>
30409 #endif
30410 /* Override any gcc2 internal prototype to avoid an error. */
30411 #ifdef __cplusplus
30412 extern "C"
30414 #endif
30415 /* We use char because int might match the return type of a gcc2
30416 builtin and then its argument prototype would still apply. */
30417 char $ac_func ();
30418 /* The GNU C library defines this for functions which it implements
30419 to always fail with ENOSYS. Some functions are actually named
30420 something starting with __ and the normal name is an alias. */
30421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30422 choke me
30423 #else
30424 char (*f) () = $ac_func;
30425 #endif
30426 #ifdef __cplusplus
30428 #endif
30431 main ()
30433 return f != $ac_func;
30435 return 0;
30437 _ACEOF
30438 rm -f conftest.$ac_objext conftest$ac_exeext
30439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30440 (eval $ac_link) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try='test -s conftest$ac_exeext'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30450 eval "$as_ac_var=yes"
30451 else
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30455 eval "$as_ac_var=no"
30457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30461 if test `eval echo '${'$as_ac_var'}'` = yes; then
30462 cat >>confdefs.h <<_ACEOF
30463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30464 _ACEOF
30467 done
30469 else
30471 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30472 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30473 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30474 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30480 ac_ext=cc
30481 ac_cpp='$CXXCPP $CPPFLAGS'
30482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30486 cat >conftest.$ac_ext <<_ACEOF
30487 #line $LINENO "configure"
30488 /* confdefs.h. */
30489 _ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h. */
30493 #include <math.h>
30495 main ()
30497 _hypot(0, 0);
30499 return 0;
30501 _ACEOF
30502 rm -f conftest.$ac_objext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30504 (eval $ac_compile) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } &&
30508 { ac_try='test -s conftest.$ac_objext'
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; }; then
30514 glibcxx_cv_func__hypot_use=yes
30515 else
30516 echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.$ac_ext >&5
30519 glibcxx_cv_func__hypot_use=no
30521 rm -f conftest.$ac_objext conftest.$ac_ext
30522 ac_ext=c
30523 ac_cpp='$CPP $CPPFLAGS'
30524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30532 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30533 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30535 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30537 for ac_func in _hypot
30539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30540 echo "$as_me:$LINENO: checking for $ac_func" >&5
30541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30542 if eval "test \"\${$as_ac_var+set}\" = set"; then
30543 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 else
30545 if test x$gcc_no_link = xyes; then
30546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30548 { (exit 1); exit 1; }; }
30550 cat >conftest.$ac_ext <<_ACEOF
30551 #line $LINENO "configure"
30552 /* confdefs.h. */
30553 _ACEOF
30554 cat confdefs.h >>conftest.$ac_ext
30555 cat >>conftest.$ac_ext <<_ACEOF
30556 /* end confdefs.h. */
30557 /* System header to define __stub macros and hopefully few prototypes,
30558 which can conflict with char $ac_func (); below.
30559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30560 <limits.h> exists even on freestanding compilers. */
30561 #ifdef __STDC__
30562 # include <limits.h>
30563 #else
30564 # include <assert.h>
30565 #endif
30566 /* Override any gcc2 internal prototype to avoid an error. */
30567 #ifdef __cplusplus
30568 extern "C"
30570 #endif
30571 /* We use char because int might match the return type of a gcc2
30572 builtin and then its argument prototype would still apply. */
30573 char $ac_func ();
30574 /* The GNU C library defines this for functions which it implements
30575 to always fail with ENOSYS. Some functions are actually named
30576 something starting with __ and the normal name is an alias. */
30577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30578 choke me
30579 #else
30580 char (*f) () = $ac_func;
30581 #endif
30582 #ifdef __cplusplus
30584 #endif
30587 main ()
30589 return f != $ac_func;
30591 return 0;
30593 _ACEOF
30594 rm -f conftest.$ac_objext conftest$ac_exeext
30595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30596 (eval $ac_link) 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 eval "$as_ac_var=yes"
30607 else
30608 echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 eval "$as_ac_var=no"
30613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30617 if test `eval echo '${'$as_ac_var'}'` = yes; then
30618 cat >>confdefs.h <<_ACEOF
30619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30620 _ACEOF
30623 done
30630 echo "$as_me:$LINENO: checking for float trig functions" >&5
30631 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30632 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30633 echo $ECHO_N "(cached) $ECHO_C" >&6
30634 else
30638 ac_ext=cc
30639 ac_cpp='$CXXCPP $CPPFLAGS'
30640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30644 cat >conftest.$ac_ext <<_ACEOF
30645 #line $LINENO "configure"
30646 /* confdefs.h. */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30651 #include <math.h>
30653 main ()
30655 `for x in acosf asinf atanf \
30656 cosf sinf tanf \
30657 coshf sinhf tanhf; do echo "$x (0);"; done`
30659 return 0;
30661 _ACEOF
30662 rm -f conftest.$ac_objext
30663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30664 (eval $ac_compile) 2>&5
30665 ac_status=$?
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); } &&
30668 { ac_try='test -s conftest.$ac_objext'
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; }; then
30674 glibcxx_cv_func_float_trig_use=yes
30675 else
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 glibcxx_cv_func_float_trig_use=no
30681 rm -f conftest.$ac_objext conftest.$ac_ext
30682 ac_ext=c
30683 ac_cpp='$CPP $CPPFLAGS'
30684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30690 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30691 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30692 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30702 for ac_func in acosf asinf atanf \
30703 cosf sinf tanf \
30704 coshf sinhf tanhf
30706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30707 echo "$as_me:$LINENO: checking for $ac_func" >&5
30708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30709 if eval "test \"\${$as_ac_var+set}\" = set"; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
30712 if test x$gcc_no_link = xyes; then
30713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30715 { (exit 1); exit 1; }; }
30717 cat >conftest.$ac_ext <<_ACEOF
30718 #line $LINENO "configure"
30719 /* confdefs.h. */
30720 _ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h. */
30724 /* System header to define __stub macros and hopefully few prototypes,
30725 which can conflict with char $ac_func (); below.
30726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30727 <limits.h> exists even on freestanding compilers. */
30728 #ifdef __STDC__
30729 # include <limits.h>
30730 #else
30731 # include <assert.h>
30732 #endif
30733 /* Override any gcc2 internal prototype to avoid an error. */
30734 #ifdef __cplusplus
30735 extern "C"
30737 #endif
30738 /* We use char because int might match the return type of a gcc2
30739 builtin and then its argument prototype would still apply. */
30740 char $ac_func ();
30741 /* The GNU C library defines this for functions which it implements
30742 to always fail with ENOSYS. Some functions are actually named
30743 something starting with __ and the normal name is an alias. */
30744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30745 choke me
30746 #else
30747 char (*f) () = $ac_func;
30748 #endif
30749 #ifdef __cplusplus
30751 #endif
30754 main ()
30756 return f != $ac_func;
30758 return 0;
30760 _ACEOF
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30763 (eval $ac_link) 2>&5
30764 ac_status=$?
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
30767 { ac_try='test -s conftest$ac_exeext'
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; }; then
30773 eval "$as_ac_var=yes"
30774 else
30775 echo "$as_me: failed program was:" >&5
30776 sed 's/^/| /' conftest.$ac_ext >&5
30778 eval "$as_ac_var=no"
30780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30784 if test `eval echo '${'$as_ac_var'}'` = yes; then
30785 cat >>confdefs.h <<_ACEOF
30786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30787 _ACEOF
30790 done
30795 echo "$as_me:$LINENO: checking for float round functions" >&5
30796 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30797 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30803 ac_ext=cc
30804 ac_cpp='$CXXCPP $CPPFLAGS'
30805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30809 cat >conftest.$ac_ext <<_ACEOF
30810 #line $LINENO "configure"
30811 /* confdefs.h. */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 #include <math.h>
30818 main ()
30820 `for x in ceilf floorf; do echo "$x (0);"; done`
30822 return 0;
30824 _ACEOF
30825 rm -f conftest.$ac_objext
30826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30827 (eval $ac_compile) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); } &&
30831 { ac_try='test -s conftest.$ac_objext'
30832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833 (eval $ac_try) 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
30837 glibcxx_cv_func_float_round_use=yes
30838 else
30839 echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30842 glibcxx_cv_func_float_round_use=no
30844 rm -f conftest.$ac_objext conftest.$ac_ext
30845 ac_ext=c
30846 ac_cpp='$CPP $CPPFLAGS'
30847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30853 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30854 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30855 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30858 for ac_func in ceilf floorf
30860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861 echo "$as_me:$LINENO: checking for $ac_func" >&5
30862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30863 if eval "test \"\${$as_ac_var+set}\" = set"; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866 if test x$gcc_no_link = xyes; then
30867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30869 { (exit 1); exit 1; }; }
30871 cat >conftest.$ac_ext <<_ACEOF
30872 #line $LINENO "configure"
30873 /* confdefs.h. */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878 /* System header to define __stub macros and hopefully few prototypes,
30879 which can conflict with char $ac_func (); below.
30880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881 <limits.h> exists even on freestanding compilers. */
30882 #ifdef __STDC__
30883 # include <limits.h>
30884 #else
30885 # include <assert.h>
30886 #endif
30887 /* Override any gcc2 internal prototype to avoid an error. */
30888 #ifdef __cplusplus
30889 extern "C"
30891 #endif
30892 /* We use char because int might match the return type of a gcc2
30893 builtin and then its argument prototype would still apply. */
30894 char $ac_func ();
30895 /* The GNU C library defines this for functions which it implements
30896 to always fail with ENOSYS. Some functions are actually named
30897 something starting with __ and the normal name is an alias. */
30898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30899 choke me
30900 #else
30901 char (*f) () = $ac_func;
30902 #endif
30903 #ifdef __cplusplus
30905 #endif
30908 main ()
30910 return f != $ac_func;
30912 return 0;
30914 _ACEOF
30915 rm -f conftest.$ac_objext conftest$ac_exeext
30916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30917 (eval $ac_link) 2>&5
30918 ac_status=$?
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); } &&
30921 { ac_try='test -s conftest$ac_exeext'
30922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30923 (eval $ac_try) 2>&5
30924 ac_status=$?
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); }; }; then
30927 eval "$as_ac_var=yes"
30928 else
30929 echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30932 eval "$as_ac_var=no"
30934 rm -f conftest.$ac_objext 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
30950 echo "$as_me:$LINENO: checking for expf declaration" >&5
30951 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30952 if test x${glibcxx_cv_func_expf_use+set} != xset; then
30953 if test "${glibcxx_cv_func_expf_use+set}" = set; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30955 else
30959 ac_ext=cc
30960 ac_cpp='$CXXCPP $CPPFLAGS'
30961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30965 cat >conftest.$ac_ext <<_ACEOF
30966 #line $LINENO "configure"
30967 /* confdefs.h. */
30968 _ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h. */
30972 #include <math.h>
30973 #ifdef HAVE_IEEEFP_H
30974 #include <ieeefp.h>
30975 #endif
30978 main ()
30980 expf(0);
30982 return 0;
30984 _ACEOF
30985 rm -f conftest.$ac_objext
30986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30987 (eval $ac_compile) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
30991 { ac_try='test -s conftest.$ac_objext'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 glibcxx_cv_func_expf_use=yes
30998 else
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 glibcxx_cv_func_expf_use=no
31004 rm -f conftest.$ac_objext conftest.$ac_ext
31005 ac_ext=c
31006 ac_cpp='$CPP $CPPFLAGS'
31007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31015 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
31016 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
31018 if test x$glibcxx_cv_func_expf_use = x"yes"; then
31020 for ac_func in expf
31022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31023 echo "$as_me:$LINENO: checking for $ac_func" >&5
31024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31025 if eval "test \"\${$as_ac_var+set}\" = set"; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31027 else
31028 if test x$gcc_no_link = xyes; then
31029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31031 { (exit 1); exit 1; }; }
31033 cat >conftest.$ac_ext <<_ACEOF
31034 #line $LINENO "configure"
31035 /* confdefs.h. */
31036 _ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31040 /* System header to define __stub macros and hopefully few prototypes,
31041 which can conflict with char $ac_func (); below.
31042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31043 <limits.h> exists even on freestanding compilers. */
31044 #ifdef __STDC__
31045 # include <limits.h>
31046 #else
31047 # include <assert.h>
31048 #endif
31049 /* Override any gcc2 internal prototype to avoid an error. */
31050 #ifdef __cplusplus
31051 extern "C"
31053 #endif
31054 /* We use char because int might match the return type of a gcc2
31055 builtin and then its argument prototype would still apply. */
31056 char $ac_func ();
31057 /* The GNU C library defines this for functions which it implements
31058 to always fail with ENOSYS. Some functions are actually named
31059 something starting with __ and the normal name is an alias. */
31060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31061 choke me
31062 #else
31063 char (*f) () = $ac_func;
31064 #endif
31065 #ifdef __cplusplus
31067 #endif
31070 main ()
31072 return f != $ac_func;
31074 return 0;
31076 _ACEOF
31077 rm -f conftest.$ac_objext conftest$ac_exeext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31079 (eval $ac_link) 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); } &&
31083 { ac_try='test -s conftest$ac_exeext'
31084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31085 (eval $ac_try) 2>&5
31086 ac_status=$?
31087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088 (exit $ac_status); }; }; then
31089 eval "$as_ac_var=yes"
31090 else
31091 echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31094 eval "$as_ac_var=no"
31096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31100 if test `eval echo '${'$as_ac_var'}'` = yes; then
31101 cat >>confdefs.h <<_ACEOF
31102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31103 _ACEOF
31106 done
31108 else
31110 echo "$as_me:$LINENO: checking for _expf declaration" >&5
31111 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
31112 if test x${glibcxx_cv_func__expf_use+set} != xset; then
31113 if test "${glibcxx_cv_func__expf_use+set}" = set; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 else
31119 ac_ext=cc
31120 ac_cpp='$CXXCPP $CPPFLAGS'
31121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31125 cat >conftest.$ac_ext <<_ACEOF
31126 #line $LINENO "configure"
31127 /* confdefs.h. */
31128 _ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h. */
31132 #include <math.h>
31133 #ifdef HAVE_IEEEFP_H
31134 #include <ieeefp.h>
31135 #endif
31138 main ()
31140 _expf(0);
31142 return 0;
31144 _ACEOF
31145 rm -f conftest.$ac_objext
31146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31147 (eval $ac_compile) 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); } &&
31151 { ac_try='test -s conftest.$ac_objext'
31152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153 (eval $ac_try) 2>&5
31154 ac_status=$?
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31157 glibcxx_cv_func__expf_use=yes
31158 else
31159 echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31162 glibcxx_cv_func__expf_use=no
31164 rm -f conftest.$ac_objext conftest.$ac_ext
31165 ac_ext=c
31166 ac_cpp='$CPP $CPPFLAGS'
31167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31175 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
31176 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
31178 if test x$glibcxx_cv_func__expf_use = x"yes"; then
31180 for ac_func in _expf
31182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31183 echo "$as_me:$LINENO: checking for $ac_func" >&5
31184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31185 if eval "test \"\${$as_ac_var+set}\" = set"; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187 else
31188 if test x$gcc_no_link = xyes; then
31189 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31191 { (exit 1); exit 1; }; }
31193 cat >conftest.$ac_ext <<_ACEOF
31194 #line $LINENO "configure"
31195 /* confdefs.h. */
31196 _ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31200 /* System header to define __stub macros and hopefully few prototypes,
31201 which can conflict with char $ac_func (); below.
31202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31203 <limits.h> exists even on freestanding compilers. */
31204 #ifdef __STDC__
31205 # include <limits.h>
31206 #else
31207 # include <assert.h>
31208 #endif
31209 /* Override any gcc2 internal prototype to avoid an error. */
31210 #ifdef __cplusplus
31211 extern "C"
31213 #endif
31214 /* We use char because int might match the return type of a gcc2
31215 builtin and then its argument prototype would still apply. */
31216 char $ac_func ();
31217 /* The GNU C library defines this for functions which it implements
31218 to always fail with ENOSYS. Some functions are actually named
31219 something starting with __ and the normal name is an alias. */
31220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31221 choke me
31222 #else
31223 char (*f) () = $ac_func;
31224 #endif
31225 #ifdef __cplusplus
31227 #endif
31230 main ()
31232 return f != $ac_func;
31234 return 0;
31236 _ACEOF
31237 rm -f conftest.$ac_objext conftest$ac_exeext
31238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31239 (eval $ac_link) 2>&5
31240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } &&
31243 { ac_try='test -s conftest$ac_exeext'
31244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31245 (eval $ac_try) 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; }; then
31249 eval "$as_ac_var=yes"
31250 else
31251 echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31254 eval "$as_ac_var=no"
31256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31260 if test `eval echo '${'$as_ac_var'}'` = yes; then
31261 cat >>confdefs.h <<_ACEOF
31262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31263 _ACEOF
31266 done
31273 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
31274 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
31275 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
31276 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31282 ac_ext=cc
31283 ac_cpp='$CXXCPP $CPPFLAGS'
31284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31288 cat >conftest.$ac_ext <<_ACEOF
31289 #line $LINENO "configure"
31290 /* confdefs.h. */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h. */
31295 #include <math.h>
31296 #ifdef HAVE_IEEEFP_H
31297 #include <ieeefp.h>
31298 #endif
31301 main ()
31303 isnanf(0);
31305 return 0;
31307 _ACEOF
31308 rm -f conftest.$ac_objext
31309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31310 (eval $ac_compile) 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
31314 { ac_try='test -s conftest.$ac_objext'
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
31320 glibcxx_cv_func_isnanf_use=yes
31321 else
31322 echo "$as_me: failed program was:" >&5
31323 sed 's/^/| /' conftest.$ac_ext >&5
31325 glibcxx_cv_func_isnanf_use=no
31327 rm -f conftest.$ac_objext conftest.$ac_ext
31328 ac_ext=c
31329 ac_cpp='$CPP $CPPFLAGS'
31330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31338 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31339 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31341 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31343 for ac_func in isnanf
31345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31346 echo "$as_me:$LINENO: checking for $ac_func" >&5
31347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31348 if eval "test \"\${$as_ac_var+set}\" = set"; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351 if test x$gcc_no_link = xyes; then
31352 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31354 { (exit 1); exit 1; }; }
31356 cat >conftest.$ac_ext <<_ACEOF
31357 #line $LINENO "configure"
31358 /* confdefs.h. */
31359 _ACEOF
31360 cat confdefs.h >>conftest.$ac_ext
31361 cat >>conftest.$ac_ext <<_ACEOF
31362 /* end confdefs.h. */
31363 /* System header to define __stub macros and hopefully few prototypes,
31364 which can conflict with char $ac_func (); below.
31365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366 <limits.h> exists even on freestanding compilers. */
31367 #ifdef __STDC__
31368 # include <limits.h>
31369 #else
31370 # include <assert.h>
31371 #endif
31372 /* Override any gcc2 internal prototype to avoid an error. */
31373 #ifdef __cplusplus
31374 extern "C"
31376 #endif
31377 /* We use char because int might match the return type of a gcc2
31378 builtin and then its argument prototype would still apply. */
31379 char $ac_func ();
31380 /* The GNU C library defines this for functions which it implements
31381 to always fail with ENOSYS. Some functions are actually named
31382 something starting with __ and the normal name is an alias. */
31383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31384 choke me
31385 #else
31386 char (*f) () = $ac_func;
31387 #endif
31388 #ifdef __cplusplus
31390 #endif
31393 main ()
31395 return f != $ac_func;
31397 return 0;
31399 _ACEOF
31400 rm -f conftest.$ac_objext conftest$ac_exeext
31401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31402 (eval $ac_link) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
31406 { ac_try='test -s conftest$ac_exeext'
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; }; then
31412 eval "$as_ac_var=yes"
31413 else
31414 echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31417 eval "$as_ac_var=no"
31419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31423 if test `eval echo '${'$as_ac_var'}'` = yes; then
31424 cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31426 _ACEOF
31429 done
31431 else
31433 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31434 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31435 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31436 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31442 ac_ext=cc
31443 ac_cpp='$CXXCPP $CPPFLAGS'
31444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31448 cat >conftest.$ac_ext <<_ACEOF
31449 #line $LINENO "configure"
31450 /* confdefs.h. */
31451 _ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h. */
31455 #include <math.h>
31456 #ifdef HAVE_IEEEFP_H
31457 #include <ieeefp.h>
31458 #endif
31461 main ()
31463 _isnanf(0);
31465 return 0;
31467 _ACEOF
31468 rm -f conftest.$ac_objext
31469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31470 (eval $ac_compile) 2>&5
31471 ac_status=$?
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } &&
31474 { ac_try='test -s conftest.$ac_objext'
31475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31476 (eval $ac_try) 2>&5
31477 ac_status=$?
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; }; then
31480 glibcxx_cv_func__isnanf_use=yes
31481 else
31482 echo "$as_me: failed program was:" >&5
31483 sed 's/^/| /' conftest.$ac_ext >&5
31485 glibcxx_cv_func__isnanf_use=no
31487 rm -f conftest.$ac_objext conftest.$ac_ext
31488 ac_ext=c
31489 ac_cpp='$CPP $CPPFLAGS'
31490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31498 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31499 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31501 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31503 for ac_func in _isnanf
31505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31506 echo "$as_me:$LINENO: checking for $ac_func" >&5
31507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31508 if eval "test \"\${$as_ac_var+set}\" = set"; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31510 else
31511 if test x$gcc_no_link = xyes; then
31512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31514 { (exit 1); exit 1; }; }
31516 cat >conftest.$ac_ext <<_ACEOF
31517 #line $LINENO "configure"
31518 /* confdefs.h. */
31519 _ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h. */
31523 /* System header to define __stub macros and hopefully few prototypes,
31524 which can conflict with char $ac_func (); below.
31525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31526 <limits.h> exists even on freestanding compilers. */
31527 #ifdef __STDC__
31528 # include <limits.h>
31529 #else
31530 # include <assert.h>
31531 #endif
31532 /* Override any gcc2 internal prototype to avoid an error. */
31533 #ifdef __cplusplus
31534 extern "C"
31536 #endif
31537 /* We use char because int might match the return type of a gcc2
31538 builtin and then its argument prototype would still apply. */
31539 char $ac_func ();
31540 /* The GNU C library defines this for functions which it implements
31541 to always fail with ENOSYS. Some functions are actually named
31542 something starting with __ and the normal name is an alias. */
31543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31544 choke me
31545 #else
31546 char (*f) () = $ac_func;
31547 #endif
31548 #ifdef __cplusplus
31550 #endif
31553 main ()
31555 return f != $ac_func;
31557 return 0;
31559 _ACEOF
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31562 (eval $ac_link) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
31566 { ac_try='test -s conftest$ac_exeext'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
31572 eval "$as_ac_var=yes"
31573 else
31574 echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31577 eval "$as_ac_var=no"
31579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31583 if test `eval echo '${'$as_ac_var'}'` = yes; then
31584 cat >>confdefs.h <<_ACEOF
31585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31586 _ACEOF
31589 done
31596 echo "$as_me:$LINENO: checking for isinff declaration" >&5
31597 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31598 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31599 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31600 echo $ECHO_N "(cached) $ECHO_C" >&6
31601 else
31605 ac_ext=cc
31606 ac_cpp='$CXXCPP $CPPFLAGS'
31607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31611 cat >conftest.$ac_ext <<_ACEOF
31612 #line $LINENO "configure"
31613 /* confdefs.h. */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h. */
31618 #include <math.h>
31619 #ifdef HAVE_IEEEFP_H
31620 #include <ieeefp.h>
31621 #endif
31624 main ()
31626 isinff(0);
31628 return 0;
31630 _ACEOF
31631 rm -f conftest.$ac_objext
31632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31633 (eval $ac_compile) 2>&5
31634 ac_status=$?
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); } &&
31637 { ac_try='test -s conftest.$ac_objext'
31638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639 (eval $ac_try) 2>&5
31640 ac_status=$?
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; }; then
31643 glibcxx_cv_func_isinff_use=yes
31644 else
31645 echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31648 glibcxx_cv_func_isinff_use=no
31650 rm -f conftest.$ac_objext conftest.$ac_ext
31651 ac_ext=c
31652 ac_cpp='$CPP $CPPFLAGS'
31653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31661 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31662 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31664 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31666 for ac_func in isinff
31668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31669 echo "$as_me:$LINENO: checking for $ac_func" >&5
31670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31671 if eval "test \"\${$as_ac_var+set}\" = set"; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674 if test x$gcc_no_link = xyes; then
31675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31677 { (exit 1); exit 1; }; }
31679 cat >conftest.$ac_ext <<_ACEOF
31680 #line $LINENO "configure"
31681 /* confdefs.h. */
31682 _ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h. */
31686 /* System header to define __stub macros and hopefully few prototypes,
31687 which can conflict with char $ac_func (); below.
31688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31689 <limits.h> exists even on freestanding compilers. */
31690 #ifdef __STDC__
31691 # include <limits.h>
31692 #else
31693 # include <assert.h>
31694 #endif
31695 /* Override any gcc2 internal prototype to avoid an error. */
31696 #ifdef __cplusplus
31697 extern "C"
31699 #endif
31700 /* We use char because int might match the return type of a gcc2
31701 builtin and then its argument prototype would still apply. */
31702 char $ac_func ();
31703 /* The GNU C library defines this for functions which it implements
31704 to always fail with ENOSYS. Some functions are actually named
31705 something starting with __ and the normal name is an alias. */
31706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31707 choke me
31708 #else
31709 char (*f) () = $ac_func;
31710 #endif
31711 #ifdef __cplusplus
31713 #endif
31716 main ()
31718 return f != $ac_func;
31720 return 0;
31722 _ACEOF
31723 rm -f conftest.$ac_objext conftest$ac_exeext
31724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31725 (eval $ac_link) 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); } &&
31729 { ac_try='test -s conftest$ac_exeext'
31730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31731 (eval $ac_try) 2>&5
31732 ac_status=$?
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; }; then
31735 eval "$as_ac_var=yes"
31736 else
31737 echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31740 eval "$as_ac_var=no"
31742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31746 if test `eval echo '${'$as_ac_var'}'` = yes; then
31747 cat >>confdefs.h <<_ACEOF
31748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31749 _ACEOF
31752 done
31754 else
31756 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31757 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31758 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31759 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31760 echo $ECHO_N "(cached) $ECHO_C" >&6
31761 else
31765 ac_ext=cc
31766 ac_cpp='$CXXCPP $CPPFLAGS'
31767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31771 cat >conftest.$ac_ext <<_ACEOF
31772 #line $LINENO "configure"
31773 /* confdefs.h. */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h. */
31778 #include <math.h>
31779 #ifdef HAVE_IEEEFP_H
31780 #include <ieeefp.h>
31781 #endif
31784 main ()
31786 _isinff(0);
31788 return 0;
31790 _ACEOF
31791 rm -f conftest.$ac_objext
31792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31793 (eval $ac_compile) 2>&5
31794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
31797 { ac_try='test -s conftest.$ac_objext'
31798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799 (eval $ac_try) 2>&5
31800 ac_status=$?
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); }; }; then
31803 glibcxx_cv_func__isinff_use=yes
31804 else
31805 echo "$as_me: failed program was:" >&5
31806 sed 's/^/| /' conftest.$ac_ext >&5
31808 glibcxx_cv_func__isinff_use=no
31810 rm -f conftest.$ac_objext conftest.$ac_ext
31811 ac_ext=c
31812 ac_cpp='$CPP $CPPFLAGS'
31813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31821 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31822 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31824 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31826 for ac_func in _isinff
31828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31829 echo "$as_me:$LINENO: checking for $ac_func" >&5
31830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31831 if eval "test \"\${$as_ac_var+set}\" = set"; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31833 else
31834 if test x$gcc_no_link = xyes; then
31835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31837 { (exit 1); exit 1; }; }
31839 cat >conftest.$ac_ext <<_ACEOF
31840 #line $LINENO "configure"
31841 /* confdefs.h. */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 /* System header to define __stub macros and hopefully few prototypes,
31847 which can conflict with char $ac_func (); below.
31848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31849 <limits.h> exists even on freestanding compilers. */
31850 #ifdef __STDC__
31851 # include <limits.h>
31852 #else
31853 # include <assert.h>
31854 #endif
31855 /* Override any gcc2 internal prototype to avoid an error. */
31856 #ifdef __cplusplus
31857 extern "C"
31859 #endif
31860 /* We use char because int might match the return type of a gcc2
31861 builtin and then its argument prototype would still apply. */
31862 char $ac_func ();
31863 /* The GNU C library defines this for functions which it implements
31864 to always fail with ENOSYS. Some functions are actually named
31865 something starting with __ and the normal name is an alias. */
31866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31867 choke me
31868 #else
31869 char (*f) () = $ac_func;
31870 #endif
31871 #ifdef __cplusplus
31873 #endif
31876 main ()
31878 return f != $ac_func;
31880 return 0;
31882 _ACEOF
31883 rm -f conftest.$ac_objext conftest$ac_exeext
31884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31885 (eval $ac_link) 2>&5
31886 ac_status=$?
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } &&
31889 { ac_try='test -s conftest$ac_exeext'
31890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891 (eval $ac_try) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; }; then
31895 eval "$as_ac_var=yes"
31896 else
31897 echo "$as_me: failed program was:" >&5
31898 sed 's/^/| /' conftest.$ac_ext >&5
31900 eval "$as_ac_var=no"
31902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31906 if test `eval echo '${'$as_ac_var'}'` = yes; then
31907 cat >>confdefs.h <<_ACEOF
31908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31909 _ACEOF
31912 done
31919 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31920 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31921 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31922 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31923 echo $ECHO_N "(cached) $ECHO_C" >&6
31924 else
31928 ac_ext=cc
31929 ac_cpp='$CXXCPP $CPPFLAGS'
31930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31934 cat >conftest.$ac_ext <<_ACEOF
31935 #line $LINENO "configure"
31936 /* confdefs.h. */
31937 _ACEOF
31938 cat confdefs.h >>conftest.$ac_ext
31939 cat >>conftest.$ac_ext <<_ACEOF
31940 /* end confdefs.h. */
31941 #include <math.h>
31943 main ()
31945 atan2f(0, 0);
31947 return 0;
31949 _ACEOF
31950 rm -f conftest.$ac_objext
31951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31952 (eval $ac_compile) 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); } &&
31956 { ac_try='test -s conftest.$ac_objext'
31957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31958 (eval $ac_try) 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 glibcxx_cv_func_atan2f_use=yes
31963 else
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 glibcxx_cv_func_atan2f_use=no
31969 rm -f conftest.$ac_objext conftest.$ac_ext
31970 ac_ext=c
31971 ac_cpp='$CPP $CPPFLAGS'
31972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31980 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31981 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31983 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31985 for ac_func in atan2f
31987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31988 echo "$as_me:$LINENO: checking for $ac_func" >&5
31989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31990 if eval "test \"\${$as_ac_var+set}\" = set"; then
31991 echo $ECHO_N "(cached) $ECHO_C" >&6
31992 else
31993 if test x$gcc_no_link = xyes; then
31994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31996 { (exit 1); exit 1; }; }
31998 cat >conftest.$ac_ext <<_ACEOF
31999 #line $LINENO "configure"
32000 /* confdefs.h. */
32001 _ACEOF
32002 cat confdefs.h >>conftest.$ac_ext
32003 cat >>conftest.$ac_ext <<_ACEOF
32004 /* end confdefs.h. */
32005 /* System header to define __stub macros and hopefully few prototypes,
32006 which can conflict with char $ac_func (); below.
32007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32008 <limits.h> exists even on freestanding compilers. */
32009 #ifdef __STDC__
32010 # include <limits.h>
32011 #else
32012 # include <assert.h>
32013 #endif
32014 /* Override any gcc2 internal prototype to avoid an error. */
32015 #ifdef __cplusplus
32016 extern "C"
32018 #endif
32019 /* We use char because int might match the return type of a gcc2
32020 builtin and then its argument prototype would still apply. */
32021 char $ac_func ();
32022 /* The GNU C library defines this for functions which it implements
32023 to always fail with ENOSYS. Some functions are actually named
32024 something starting with __ and the normal name is an alias. */
32025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32026 choke me
32027 #else
32028 char (*f) () = $ac_func;
32029 #endif
32030 #ifdef __cplusplus
32032 #endif
32035 main ()
32037 return f != $ac_func;
32039 return 0;
32041 _ACEOF
32042 rm -f conftest.$ac_objext conftest$ac_exeext
32043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32044 (eval $ac_link) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); } &&
32048 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32054 eval "$as_ac_var=yes"
32055 else
32056 echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32059 eval "$as_ac_var=no"
32061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32065 if test `eval echo '${'$as_ac_var'}'` = yes; then
32066 cat >>confdefs.h <<_ACEOF
32067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32068 _ACEOF
32071 done
32073 else
32075 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
32076 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
32077 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
32078 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32084 ac_ext=cc
32085 ac_cpp='$CXXCPP $CPPFLAGS'
32086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32090 cat >conftest.$ac_ext <<_ACEOF
32091 #line $LINENO "configure"
32092 /* confdefs.h. */
32093 _ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h. */
32097 #include <math.h>
32099 main ()
32101 _atan2f(0, 0);
32103 return 0;
32105 _ACEOF
32106 rm -f conftest.$ac_objext
32107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32108 (eval $ac_compile) 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
32112 { ac_try='test -s conftest.$ac_objext'
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; }; then
32118 glibcxx_cv_func__atan2f_use=yes
32119 else
32120 echo "$as_me: failed program was:" >&5
32121 sed 's/^/| /' conftest.$ac_ext >&5
32123 glibcxx_cv_func__atan2f_use=no
32125 rm -f conftest.$ac_objext conftest.$ac_ext
32126 ac_ext=c
32127 ac_cpp='$CPP $CPPFLAGS'
32128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32136 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
32137 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
32139 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
32141 for ac_func in _atan2f
32143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32144 echo "$as_me:$LINENO: checking for $ac_func" >&5
32145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32146 if eval "test \"\${$as_ac_var+set}\" = set"; then
32147 echo $ECHO_N "(cached) $ECHO_C" >&6
32148 else
32149 if test x$gcc_no_link = xyes; then
32150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32152 { (exit 1); exit 1; }; }
32154 cat >conftest.$ac_ext <<_ACEOF
32155 #line $LINENO "configure"
32156 /* confdefs.h. */
32157 _ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h. */
32161 /* System header to define __stub macros and hopefully few prototypes,
32162 which can conflict with char $ac_func (); below.
32163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32164 <limits.h> exists even on freestanding compilers. */
32165 #ifdef __STDC__
32166 # include <limits.h>
32167 #else
32168 # include <assert.h>
32169 #endif
32170 /* Override any gcc2 internal prototype to avoid an error. */
32171 #ifdef __cplusplus
32172 extern "C"
32174 #endif
32175 /* We use char because int might match the return type of a gcc2
32176 builtin and then its argument prototype would still apply. */
32177 char $ac_func ();
32178 /* The GNU C library defines this for functions which it implements
32179 to always fail with ENOSYS. Some functions are actually named
32180 something starting with __ and the normal name is an alias. */
32181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32182 choke me
32183 #else
32184 char (*f) () = $ac_func;
32185 #endif
32186 #ifdef __cplusplus
32188 #endif
32191 main ()
32193 return f != $ac_func;
32195 return 0;
32197 _ACEOF
32198 rm -f conftest.$ac_objext conftest$ac_exeext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32200 (eval $ac_link) 2>&5
32201 ac_status=$?
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
32204 { ac_try='test -s conftest$ac_exeext'
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; }; then
32210 eval "$as_ac_var=yes"
32211 else
32212 echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32215 eval "$as_ac_var=no"
32217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32221 if test `eval echo '${'$as_ac_var'}'` = yes; then
32222 cat >>confdefs.h <<_ACEOF
32223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32224 _ACEOF
32227 done
32234 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
32235 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
32236 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32237 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
32238 echo $ECHO_N "(cached) $ECHO_C" >&6
32239 else
32243 ac_ext=cc
32244 ac_cpp='$CXXCPP $CPPFLAGS'
32245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32249 cat >conftest.$ac_ext <<_ACEOF
32250 #line $LINENO "configure"
32251 /* confdefs.h. */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h. */
32256 #include <math.h>
32257 #ifdef HAVE_IEEEFP_H
32258 #include <ieeefp.h>
32259 #endif
32262 main ()
32264 fabsf(0);
32266 return 0;
32268 _ACEOF
32269 rm -f conftest.$ac_objext
32270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32271 (eval $ac_compile) 2>&5
32272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
32275 { ac_try='test -s conftest.$ac_objext'
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 glibcxx_cv_func_fabsf_use=yes
32282 else
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 glibcxx_cv_func_fabsf_use=no
32288 rm -f conftest.$ac_objext conftest.$ac_ext
32289 ac_ext=c
32290 ac_cpp='$CPP $CPPFLAGS'
32291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32299 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
32300 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
32302 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32304 for ac_func in fabsf
32306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32307 echo "$as_me:$LINENO: checking for $ac_func" >&5
32308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32309 if eval "test \"\${$as_ac_var+set}\" = set"; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312 if test x$gcc_no_link = xyes; then
32313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32315 { (exit 1); exit 1; }; }
32317 cat >conftest.$ac_ext <<_ACEOF
32318 #line $LINENO "configure"
32319 /* confdefs.h. */
32320 _ACEOF
32321 cat confdefs.h >>conftest.$ac_ext
32322 cat >>conftest.$ac_ext <<_ACEOF
32323 /* end confdefs.h. */
32324 /* System header to define __stub macros and hopefully few prototypes,
32325 which can conflict with char $ac_func (); below.
32326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32327 <limits.h> exists even on freestanding compilers. */
32328 #ifdef __STDC__
32329 # include <limits.h>
32330 #else
32331 # include <assert.h>
32332 #endif
32333 /* Override any gcc2 internal prototype to avoid an error. */
32334 #ifdef __cplusplus
32335 extern "C"
32337 #endif
32338 /* We use char because int might match the return type of a gcc2
32339 builtin and then its argument prototype would still apply. */
32340 char $ac_func ();
32341 /* The GNU C library defines this for functions which it implements
32342 to always fail with ENOSYS. Some functions are actually named
32343 something starting with __ and the normal name is an alias. */
32344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32345 choke me
32346 #else
32347 char (*f) () = $ac_func;
32348 #endif
32349 #ifdef __cplusplus
32351 #endif
32354 main ()
32356 return f != $ac_func;
32358 return 0;
32360 _ACEOF
32361 rm -f conftest.$ac_objext conftest$ac_exeext
32362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32363 (eval $ac_link) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
32367 { ac_try='test -s conftest$ac_exeext'
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 eval "$as_ac_var=yes"
32374 else
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 eval "$as_ac_var=no"
32380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32384 if test `eval echo '${'$as_ac_var'}'` = yes; then
32385 cat >>confdefs.h <<_ACEOF
32386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32387 _ACEOF
32390 done
32392 else
32394 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32395 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32396 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32397 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32399 else
32403 ac_ext=cc
32404 ac_cpp='$CXXCPP $CPPFLAGS'
32405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32409 cat >conftest.$ac_ext <<_ACEOF
32410 #line $LINENO "configure"
32411 /* confdefs.h. */
32412 _ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h. */
32416 #include <math.h>
32417 #ifdef HAVE_IEEEFP_H
32418 #include <ieeefp.h>
32419 #endif
32422 main ()
32424 _fabsf(0);
32426 return 0;
32428 _ACEOF
32429 rm -f conftest.$ac_objext
32430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32431 (eval $ac_compile) 2>&5
32432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); } &&
32435 { ac_try='test -s conftest.$ac_objext'
32436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437 (eval $ac_try) 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; }; then
32441 glibcxx_cv_func__fabsf_use=yes
32442 else
32443 echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32446 glibcxx_cv_func__fabsf_use=no
32448 rm -f conftest.$ac_objext conftest.$ac_ext
32449 ac_ext=c
32450 ac_cpp='$CPP $CPPFLAGS'
32451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32459 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32460 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32462 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32464 for ac_func in _fabsf
32466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32467 echo "$as_me:$LINENO: checking for $ac_func" >&5
32468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32469 if eval "test \"\${$as_ac_var+set}\" = set"; then
32470 echo $ECHO_N "(cached) $ECHO_C" >&6
32471 else
32472 if test x$gcc_no_link = xyes; then
32473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32475 { (exit 1); exit 1; }; }
32477 cat >conftest.$ac_ext <<_ACEOF
32478 #line $LINENO "configure"
32479 /* confdefs.h. */
32480 _ACEOF
32481 cat confdefs.h >>conftest.$ac_ext
32482 cat >>conftest.$ac_ext <<_ACEOF
32483 /* end confdefs.h. */
32484 /* System header to define __stub macros and hopefully few prototypes,
32485 which can conflict with char $ac_func (); below.
32486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32487 <limits.h> exists even on freestanding compilers. */
32488 #ifdef __STDC__
32489 # include <limits.h>
32490 #else
32491 # include <assert.h>
32492 #endif
32493 /* Override any gcc2 internal prototype to avoid an error. */
32494 #ifdef __cplusplus
32495 extern "C"
32497 #endif
32498 /* We use char because int might match the return type of a gcc2
32499 builtin and then its argument prototype would still apply. */
32500 char $ac_func ();
32501 /* The GNU C library defines this for functions which it implements
32502 to always fail with ENOSYS. Some functions are actually named
32503 something starting with __ and the normal name is an alias. */
32504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32505 choke me
32506 #else
32507 char (*f) () = $ac_func;
32508 #endif
32509 #ifdef __cplusplus
32511 #endif
32514 main ()
32516 return f != $ac_func;
32518 return 0;
32520 _ACEOF
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32523 (eval $ac_link) 2>&5
32524 ac_status=$?
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
32527 { ac_try='test -s conftest$ac_exeext'
32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529 (eval $ac_try) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; }; then
32533 eval "$as_ac_var=yes"
32534 else
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32538 eval "$as_ac_var=no"
32540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32544 if test `eval echo '${'$as_ac_var'}'` = yes; then
32545 cat >>confdefs.h <<_ACEOF
32546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32547 _ACEOF
32550 done
32557 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32558 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32559 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32560 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
32561 echo $ECHO_N "(cached) $ECHO_C" >&6
32562 else
32566 ac_ext=cc
32567 ac_cpp='$CXXCPP $CPPFLAGS'
32568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32572 cat >conftest.$ac_ext <<_ACEOF
32573 #line $LINENO "configure"
32574 /* confdefs.h. */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32579 #include <math.h>
32581 main ()
32583 fmodf(0, 0);
32585 return 0;
32587 _ACEOF
32588 rm -f conftest.$ac_objext
32589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32590 (eval $ac_compile) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
32594 { ac_try='test -s conftest.$ac_objext'
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }; then
32600 glibcxx_cv_func_fmodf_use=yes
32601 else
32602 echo "$as_me: failed program was:" >&5
32603 sed 's/^/| /' conftest.$ac_ext >&5
32605 glibcxx_cv_func_fmodf_use=no
32607 rm -f conftest.$ac_objext conftest.$ac_ext
32608 ac_ext=c
32609 ac_cpp='$CPP $CPPFLAGS'
32610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32618 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32619 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32621 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32623 for ac_func in fmodf
32625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32626 echo "$as_me:$LINENO: checking for $ac_func" >&5
32627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32628 if eval "test \"\${$as_ac_var+set}\" = set"; then
32629 echo $ECHO_N "(cached) $ECHO_C" >&6
32630 else
32631 if test x$gcc_no_link = xyes; then
32632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32634 { (exit 1); exit 1; }; }
32636 cat >conftest.$ac_ext <<_ACEOF
32637 #line $LINENO "configure"
32638 /* confdefs.h. */
32639 _ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h. */
32643 /* System header to define __stub macros and hopefully few prototypes,
32644 which can conflict with char $ac_func (); below.
32645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32646 <limits.h> exists even on freestanding compilers. */
32647 #ifdef __STDC__
32648 # include <limits.h>
32649 #else
32650 # include <assert.h>
32651 #endif
32652 /* Override any gcc2 internal prototype to avoid an error. */
32653 #ifdef __cplusplus
32654 extern "C"
32656 #endif
32657 /* We use char because int might match the return type of a gcc2
32658 builtin and then its argument prototype would still apply. */
32659 char $ac_func ();
32660 /* The GNU C library defines this for functions which it implements
32661 to always fail with ENOSYS. Some functions are actually named
32662 something starting with __ and the normal name is an alias. */
32663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32664 choke me
32665 #else
32666 char (*f) () = $ac_func;
32667 #endif
32668 #ifdef __cplusplus
32670 #endif
32673 main ()
32675 return f != $ac_func;
32677 return 0;
32679 _ACEOF
32680 rm -f conftest.$ac_objext conftest$ac_exeext
32681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32682 (eval $ac_link) 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); } &&
32686 { ac_try='test -s conftest$ac_exeext'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
32692 eval "$as_ac_var=yes"
32693 else
32694 echo "$as_me: failed program was:" >&5
32695 sed 's/^/| /' conftest.$ac_ext >&5
32697 eval "$as_ac_var=no"
32699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32703 if test `eval echo '${'$as_ac_var'}'` = yes; then
32704 cat >>confdefs.h <<_ACEOF
32705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32706 _ACEOF
32709 done
32711 else
32713 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32714 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32715 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32716 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32722 ac_ext=cc
32723 ac_cpp='$CXXCPP $CPPFLAGS'
32724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32728 cat >conftest.$ac_ext <<_ACEOF
32729 #line $LINENO "configure"
32730 /* confdefs.h. */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32735 #include <math.h>
32737 main ()
32739 _fmodf(0, 0);
32741 return 0;
32743 _ACEOF
32744 rm -f conftest.$ac_objext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32746 (eval $ac_compile) 2>&5
32747 ac_status=$?
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } &&
32750 { ac_try='test -s conftest.$ac_objext'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32753 ac_status=$?
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; }; then
32756 glibcxx_cv_func__fmodf_use=yes
32757 else
32758 echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32761 glibcxx_cv_func__fmodf_use=no
32763 rm -f conftest.$ac_objext conftest.$ac_ext
32764 ac_ext=c
32765 ac_cpp='$CPP $CPPFLAGS'
32766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32774 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32775 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32777 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32779 for ac_func in _fmodf
32781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32782 echo "$as_me:$LINENO: checking for $ac_func" >&5
32783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32784 if eval "test \"\${$as_ac_var+set}\" = set"; then
32785 echo $ECHO_N "(cached) $ECHO_C" >&6
32786 else
32787 if test x$gcc_no_link = xyes; then
32788 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32790 { (exit 1); exit 1; }; }
32792 cat >conftest.$ac_ext <<_ACEOF
32793 #line $LINENO "configure"
32794 /* confdefs.h. */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h. */
32799 /* System header to define __stub macros and hopefully few prototypes,
32800 which can conflict with char $ac_func (); below.
32801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32802 <limits.h> exists even on freestanding compilers. */
32803 #ifdef __STDC__
32804 # include <limits.h>
32805 #else
32806 # include <assert.h>
32807 #endif
32808 /* Override any gcc2 internal prototype to avoid an error. */
32809 #ifdef __cplusplus
32810 extern "C"
32812 #endif
32813 /* We use char because int might match the return type of a gcc2
32814 builtin and then its argument prototype would still apply. */
32815 char $ac_func ();
32816 /* The GNU C library defines this for functions which it implements
32817 to always fail with ENOSYS. Some functions are actually named
32818 something starting with __ and the normal name is an alias. */
32819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32820 choke me
32821 #else
32822 char (*f) () = $ac_func;
32823 #endif
32824 #ifdef __cplusplus
32826 #endif
32829 main ()
32831 return f != $ac_func;
32833 return 0;
32835 _ACEOF
32836 rm -f conftest.$ac_objext conftest$ac_exeext
32837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32838 (eval $ac_link) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } &&
32842 { ac_try='test -s conftest$ac_exeext'
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 eval "$as_ac_var=yes"
32849 else
32850 echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32853 eval "$as_ac_var=no"
32855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32859 if test `eval echo '${'$as_ac_var'}'` = yes; then
32860 cat >>confdefs.h <<_ACEOF
32861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32862 _ACEOF
32865 done
32872 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32873 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32874 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32875 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877 else
32881 ac_ext=cc
32882 ac_cpp='$CXXCPP $CPPFLAGS'
32883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32887 cat >conftest.$ac_ext <<_ACEOF
32888 #line $LINENO "configure"
32889 /* confdefs.h. */
32890 _ACEOF
32891 cat confdefs.h >>conftest.$ac_ext
32892 cat >>conftest.$ac_ext <<_ACEOF
32893 /* end confdefs.h. */
32894 #include <math.h>
32896 main ()
32898 frexpf(0, 0);
32900 return 0;
32902 _ACEOF
32903 rm -f conftest.$ac_objext
32904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32905 (eval $ac_compile) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); } &&
32909 { ac_try='test -s conftest.$ac_objext'
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 glibcxx_cv_func_frexpf_use=yes
32916 else
32917 echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32920 glibcxx_cv_func_frexpf_use=no
32922 rm -f conftest.$ac_objext conftest.$ac_ext
32923 ac_ext=c
32924 ac_cpp='$CPP $CPPFLAGS'
32925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32933 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32934 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32936 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32938 for ac_func in frexpf
32940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32941 echo "$as_me:$LINENO: checking for $ac_func" >&5
32942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32943 if eval "test \"\${$as_ac_var+set}\" = set"; then
32944 echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946 if test x$gcc_no_link = xyes; then
32947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32949 { (exit 1); exit 1; }; }
32951 cat >conftest.$ac_ext <<_ACEOF
32952 #line $LINENO "configure"
32953 /* confdefs.h. */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32958 /* System header to define __stub macros and hopefully few prototypes,
32959 which can conflict with char $ac_func (); below.
32960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32961 <limits.h> exists even on freestanding compilers. */
32962 #ifdef __STDC__
32963 # include <limits.h>
32964 #else
32965 # include <assert.h>
32966 #endif
32967 /* Override any gcc2 internal prototype to avoid an error. */
32968 #ifdef __cplusplus
32969 extern "C"
32971 #endif
32972 /* We use char because int might match the return type of a gcc2
32973 builtin and then its argument prototype would still apply. */
32974 char $ac_func ();
32975 /* The GNU C library defines this for functions which it implements
32976 to always fail with ENOSYS. Some functions are actually named
32977 something starting with __ and the normal name is an alias. */
32978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32979 choke me
32980 #else
32981 char (*f) () = $ac_func;
32982 #endif
32983 #ifdef __cplusplus
32985 #endif
32988 main ()
32990 return f != $ac_func;
32992 return 0;
32994 _ACEOF
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997 (eval $ac_link) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
33001 { ac_try='test -s conftest$ac_exeext'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 eval "$as_ac_var=yes"
33008 else
33009 echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33012 eval "$as_ac_var=no"
33014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33018 if test `eval echo '${'$as_ac_var'}'` = yes; then
33019 cat >>confdefs.h <<_ACEOF
33020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33021 _ACEOF
33024 done
33026 else
33028 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
33029 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
33030 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
33031 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33037 ac_ext=cc
33038 ac_cpp='$CXXCPP $CPPFLAGS'
33039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33043 cat >conftest.$ac_ext <<_ACEOF
33044 #line $LINENO "configure"
33045 /* confdefs.h. */
33046 _ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h. */
33050 #include <math.h>
33052 main ()
33054 _frexpf(0, 0);
33056 return 0;
33058 _ACEOF
33059 rm -f conftest.$ac_objext
33060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33061 (eval $ac_compile) 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); } &&
33065 { ac_try='test -s conftest.$ac_objext'
33066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33067 (eval $ac_try) 2>&5
33068 ac_status=$?
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); }; }; then
33071 glibcxx_cv_func__frexpf_use=yes
33072 else
33073 echo "$as_me: failed program was:" >&5
33074 sed 's/^/| /' conftest.$ac_ext >&5
33076 glibcxx_cv_func__frexpf_use=no
33078 rm -f conftest.$ac_objext conftest.$ac_ext
33079 ac_ext=c
33080 ac_cpp='$CPP $CPPFLAGS'
33081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33089 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
33090 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
33092 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
33094 for ac_func in _frexpf
33096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33097 echo "$as_me:$LINENO: checking for $ac_func" >&5
33098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33099 if eval "test \"\${$as_ac_var+set}\" = set"; then
33100 echo $ECHO_N "(cached) $ECHO_C" >&6
33101 else
33102 if test x$gcc_no_link = xyes; then
33103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33105 { (exit 1); exit 1; }; }
33107 cat >conftest.$ac_ext <<_ACEOF
33108 #line $LINENO "configure"
33109 /* confdefs.h. */
33110 _ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33114 /* System header to define __stub macros and hopefully few prototypes,
33115 which can conflict with char $ac_func (); below.
33116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33117 <limits.h> exists even on freestanding compilers. */
33118 #ifdef __STDC__
33119 # include <limits.h>
33120 #else
33121 # include <assert.h>
33122 #endif
33123 /* Override any gcc2 internal prototype to avoid an error. */
33124 #ifdef __cplusplus
33125 extern "C"
33127 #endif
33128 /* We use char because int might match the return type of a gcc2
33129 builtin and then its argument prototype would still apply. */
33130 char $ac_func ();
33131 /* The GNU C library defines this for functions which it implements
33132 to always fail with ENOSYS. Some functions are actually named
33133 something starting with __ and the normal name is an alias. */
33134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33135 choke me
33136 #else
33137 char (*f) () = $ac_func;
33138 #endif
33139 #ifdef __cplusplus
33141 #endif
33144 main ()
33146 return f != $ac_func;
33148 return 0;
33150 _ACEOF
33151 rm -f conftest.$ac_objext conftest$ac_exeext
33152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33153 (eval $ac_link) 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
33157 { ac_try='test -s conftest$ac_exeext'
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
33163 eval "$as_ac_var=yes"
33164 else
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 eval "$as_ac_var=no"
33170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33174 if test `eval echo '${'$as_ac_var'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33177 _ACEOF
33180 done
33187 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
33188 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
33189 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33190 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33196 ac_ext=cc
33197 ac_cpp='$CXXCPP $CPPFLAGS'
33198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33202 cat >conftest.$ac_ext <<_ACEOF
33203 #line $LINENO "configure"
33204 /* confdefs.h. */
33205 _ACEOF
33206 cat confdefs.h >>conftest.$ac_ext
33207 cat >>conftest.$ac_ext <<_ACEOF
33208 /* end confdefs.h. */
33209 #include <math.h>
33211 main ()
33213 hypotf(0, 0);
33215 return 0;
33217 _ACEOF
33218 rm -f conftest.$ac_objext
33219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33220 (eval $ac_compile) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); } &&
33224 { ac_try='test -s conftest.$ac_objext'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 glibcxx_cv_func_hypotf_use=yes
33231 else
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 glibcxx_cv_func_hypotf_use=no
33237 rm -f conftest.$ac_objext conftest.$ac_ext
33238 ac_ext=c
33239 ac_cpp='$CPP $CPPFLAGS'
33240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33248 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
33249 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
33251 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33253 for ac_func in hypotf
33255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33256 echo "$as_me:$LINENO: checking for $ac_func" >&5
33257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33258 if eval "test \"\${$as_ac_var+set}\" = set"; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33260 else
33261 if test x$gcc_no_link = xyes; then
33262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33264 { (exit 1); exit 1; }; }
33266 cat >conftest.$ac_ext <<_ACEOF
33267 #line $LINENO "configure"
33268 /* confdefs.h. */
33269 _ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h. */
33273 /* System header to define __stub macros and hopefully few prototypes,
33274 which can conflict with char $ac_func (); below.
33275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33276 <limits.h> exists even on freestanding compilers. */
33277 #ifdef __STDC__
33278 # include <limits.h>
33279 #else
33280 # include <assert.h>
33281 #endif
33282 /* Override any gcc2 internal prototype to avoid an error. */
33283 #ifdef __cplusplus
33284 extern "C"
33286 #endif
33287 /* We use char because int might match the return type of a gcc2
33288 builtin and then its argument prototype would still apply. */
33289 char $ac_func ();
33290 /* The GNU C library defines this for functions which it implements
33291 to always fail with ENOSYS. Some functions are actually named
33292 something starting with __ and the normal name is an alias. */
33293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33294 choke me
33295 #else
33296 char (*f) () = $ac_func;
33297 #endif
33298 #ifdef __cplusplus
33300 #endif
33303 main ()
33305 return f != $ac_func;
33307 return 0;
33309 _ACEOF
33310 rm -f conftest.$ac_objext conftest$ac_exeext
33311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33312 (eval $ac_link) 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); } &&
33316 { ac_try='test -s conftest$ac_exeext'
33317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318 (eval $ac_try) 2>&5
33319 ac_status=$?
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
33322 eval "$as_ac_var=yes"
33323 else
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33327 eval "$as_ac_var=no"
33329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33333 if test `eval echo '${'$as_ac_var'}'` = yes; then
33334 cat >>confdefs.h <<_ACEOF
33335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33336 _ACEOF
33339 done
33341 else
33343 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33344 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33345 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33346 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33348 else
33352 ac_ext=cc
33353 ac_cpp='$CXXCPP $CPPFLAGS'
33354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33358 cat >conftest.$ac_ext <<_ACEOF
33359 #line $LINENO "configure"
33360 /* confdefs.h. */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33365 #include <math.h>
33367 main ()
33369 _hypotf(0, 0);
33371 return 0;
33373 _ACEOF
33374 rm -f conftest.$ac_objext
33375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33376 (eval $ac_compile) 2>&5
33377 ac_status=$?
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
33380 { ac_try='test -s conftest.$ac_objext'
33381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33382 (eval $ac_try) 2>&5
33383 ac_status=$?
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); }; }; then
33386 glibcxx_cv_func__hypotf_use=yes
33387 else
33388 echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33391 glibcxx_cv_func__hypotf_use=no
33393 rm -f conftest.$ac_objext conftest.$ac_ext
33394 ac_ext=c
33395 ac_cpp='$CPP $CPPFLAGS'
33396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33404 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33405 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33407 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33409 for ac_func in _hypotf
33411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33412 echo "$as_me:$LINENO: checking for $ac_func" >&5
33413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33414 if eval "test \"\${$as_ac_var+set}\" = set"; then
33415 echo $ECHO_N "(cached) $ECHO_C" >&6
33416 else
33417 if test x$gcc_no_link = xyes; then
33418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33420 { (exit 1); exit 1; }; }
33422 cat >conftest.$ac_ext <<_ACEOF
33423 #line $LINENO "configure"
33424 /* confdefs.h. */
33425 _ACEOF
33426 cat confdefs.h >>conftest.$ac_ext
33427 cat >>conftest.$ac_ext <<_ACEOF
33428 /* end confdefs.h. */
33429 /* System header to define __stub macros and hopefully few prototypes,
33430 which can conflict with char $ac_func (); below.
33431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33432 <limits.h> exists even on freestanding compilers. */
33433 #ifdef __STDC__
33434 # include <limits.h>
33435 #else
33436 # include <assert.h>
33437 #endif
33438 /* Override any gcc2 internal prototype to avoid an error. */
33439 #ifdef __cplusplus
33440 extern "C"
33442 #endif
33443 /* We use char because int might match the return type of a gcc2
33444 builtin and then its argument prototype would still apply. */
33445 char $ac_func ();
33446 /* The GNU C library defines this for functions which it implements
33447 to always fail with ENOSYS. Some functions are actually named
33448 something starting with __ and the normal name is an alias. */
33449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33450 choke me
33451 #else
33452 char (*f) () = $ac_func;
33453 #endif
33454 #ifdef __cplusplus
33456 #endif
33459 main ()
33461 return f != $ac_func;
33463 return 0;
33465 _ACEOF
33466 rm -f conftest.$ac_objext conftest$ac_exeext
33467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33468 (eval $ac_link) 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } &&
33472 { ac_try='test -s conftest$ac_exeext'
33473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474 (eval $ac_try) 2>&5
33475 ac_status=$?
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 eval "$as_ac_var=yes"
33479 else
33480 echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 eval "$as_ac_var=no"
33485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33489 if test `eval echo '${'$as_ac_var'}'` = yes; then
33490 cat >>confdefs.h <<_ACEOF
33491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33492 _ACEOF
33495 done
33502 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33503 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33504 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33505 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33506 echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33511 ac_ext=cc
33512 ac_cpp='$CXXCPP $CPPFLAGS'
33513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33517 cat >conftest.$ac_ext <<_ACEOF
33518 #line $LINENO "configure"
33519 /* confdefs.h. */
33520 _ACEOF
33521 cat confdefs.h >>conftest.$ac_ext
33522 cat >>conftest.$ac_ext <<_ACEOF
33523 /* end confdefs.h. */
33524 #include <math.h>
33526 main ()
33528 ldexpf(0, 0);
33530 return 0;
33532 _ACEOF
33533 rm -f conftest.$ac_objext
33534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33535 (eval $ac_compile) 2>&5
33536 ac_status=$?
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } &&
33539 { ac_try='test -s conftest.$ac_objext'
33540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541 (eval $ac_try) 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
33545 glibcxx_cv_func_ldexpf_use=yes
33546 else
33547 echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33550 glibcxx_cv_func_ldexpf_use=no
33552 rm -f conftest.$ac_objext conftest.$ac_ext
33553 ac_ext=c
33554 ac_cpp='$CPP $CPPFLAGS'
33555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33563 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33564 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33566 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33568 for ac_func in ldexpf
33570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33571 echo "$as_me:$LINENO: checking for $ac_func" >&5
33572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33573 if eval "test \"\${$as_ac_var+set}\" = set"; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575 else
33576 if test x$gcc_no_link = xyes; then
33577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33579 { (exit 1); exit 1; }; }
33581 cat >conftest.$ac_ext <<_ACEOF
33582 #line $LINENO "configure"
33583 /* confdefs.h. */
33584 _ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33588 /* System header to define __stub macros and hopefully few prototypes,
33589 which can conflict with char $ac_func (); below.
33590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33591 <limits.h> exists even on freestanding compilers. */
33592 #ifdef __STDC__
33593 # include <limits.h>
33594 #else
33595 # include <assert.h>
33596 #endif
33597 /* Override any gcc2 internal prototype to avoid an error. */
33598 #ifdef __cplusplus
33599 extern "C"
33601 #endif
33602 /* We use char because int might match the return type of a gcc2
33603 builtin and then its argument prototype would still apply. */
33604 char $ac_func ();
33605 /* The GNU C library defines this for functions which it implements
33606 to always fail with ENOSYS. Some functions are actually named
33607 something starting with __ and the normal name is an alias. */
33608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33609 choke me
33610 #else
33611 char (*f) () = $ac_func;
33612 #endif
33613 #ifdef __cplusplus
33615 #endif
33618 main ()
33620 return f != $ac_func;
33622 return 0;
33624 _ACEOF
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33627 (eval $ac_link) 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); } &&
33631 { ac_try='test -s conftest$ac_exeext'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33637 eval "$as_ac_var=yes"
33638 else
33639 echo "$as_me: failed program was:" >&5
33640 sed 's/^/| /' conftest.$ac_ext >&5
33642 eval "$as_ac_var=no"
33644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33648 if test `eval echo '${'$as_ac_var'}'` = yes; then
33649 cat >>confdefs.h <<_ACEOF
33650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33651 _ACEOF
33654 done
33656 else
33658 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33659 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33660 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33661 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33662 echo $ECHO_N "(cached) $ECHO_C" >&6
33663 else
33667 ac_ext=cc
33668 ac_cpp='$CXXCPP $CPPFLAGS'
33669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33673 cat >conftest.$ac_ext <<_ACEOF
33674 #line $LINENO "configure"
33675 /* confdefs.h. */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h. */
33680 #include <math.h>
33682 main ()
33684 _ldexpf(0, 0);
33686 return 0;
33688 _ACEOF
33689 rm -f conftest.$ac_objext
33690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33691 (eval $ac_compile) 2>&5
33692 ac_status=$?
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
33695 { ac_try='test -s conftest.$ac_objext'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; }; then
33701 glibcxx_cv_func__ldexpf_use=yes
33702 else
33703 echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33706 glibcxx_cv_func__ldexpf_use=no
33708 rm -f conftest.$ac_objext conftest.$ac_ext
33709 ac_ext=c
33710 ac_cpp='$CPP $CPPFLAGS'
33711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33719 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33720 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33722 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33724 for ac_func in _ldexpf
33726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33727 echo "$as_me:$LINENO: checking for $ac_func" >&5
33728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33729 if eval "test \"\${$as_ac_var+set}\" = set"; then
33730 echo $ECHO_N "(cached) $ECHO_C" >&6
33731 else
33732 if test x$gcc_no_link = xyes; then
33733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33735 { (exit 1); exit 1; }; }
33737 cat >conftest.$ac_ext <<_ACEOF
33738 #line $LINENO "configure"
33739 /* confdefs.h. */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33744 /* System header to define __stub macros and hopefully few prototypes,
33745 which can conflict with char $ac_func (); below.
33746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33747 <limits.h> exists even on freestanding compilers. */
33748 #ifdef __STDC__
33749 # include <limits.h>
33750 #else
33751 # include <assert.h>
33752 #endif
33753 /* Override any gcc2 internal prototype to avoid an error. */
33754 #ifdef __cplusplus
33755 extern "C"
33757 #endif
33758 /* We use char because int might match the return type of a gcc2
33759 builtin and then its argument prototype would still apply. */
33760 char $ac_func ();
33761 /* The GNU C library defines this for functions which it implements
33762 to always fail with ENOSYS. Some functions are actually named
33763 something starting with __ and the normal name is an alias. */
33764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33765 choke me
33766 #else
33767 char (*f) () = $ac_func;
33768 #endif
33769 #ifdef __cplusplus
33771 #endif
33774 main ()
33776 return f != $ac_func;
33778 return 0;
33780 _ACEOF
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783 (eval $ac_link) 2>&5
33784 ac_status=$?
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
33787 { ac_try='test -s conftest$ac_exeext'
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; }; then
33793 eval "$as_ac_var=yes"
33794 else
33795 echo "$as_me: failed program was:" >&5
33796 sed 's/^/| /' conftest.$ac_ext >&5
33798 eval "$as_ac_var=no"
33800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33804 if test `eval echo '${'$as_ac_var'}'` = yes; then
33805 cat >>confdefs.h <<_ACEOF
33806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33807 _ACEOF
33810 done
33817 echo "$as_me:$LINENO: checking for logf declaration" >&5
33818 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33819 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33820 if test "${glibcxx_cv_func_logf_use+set}" = set; then
33821 echo $ECHO_N "(cached) $ECHO_C" >&6
33822 else
33826 ac_ext=cc
33827 ac_cpp='$CXXCPP $CPPFLAGS'
33828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33832 cat >conftest.$ac_ext <<_ACEOF
33833 #line $LINENO "configure"
33834 /* confdefs.h. */
33835 _ACEOF
33836 cat confdefs.h >>conftest.$ac_ext
33837 cat >>conftest.$ac_ext <<_ACEOF
33838 /* end confdefs.h. */
33839 #include <math.h>
33840 #ifdef HAVE_IEEEFP_H
33841 #include <ieeefp.h>
33842 #endif
33845 main ()
33847 logf(0);
33849 return 0;
33851 _ACEOF
33852 rm -f conftest.$ac_objext
33853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33854 (eval $ac_compile) 2>&5
33855 ac_status=$?
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } &&
33858 { ac_try='test -s conftest.$ac_objext'
33859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33860 (eval $ac_try) 2>&5
33861 ac_status=$?
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); }; }; then
33864 glibcxx_cv_func_logf_use=yes
33865 else
33866 echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33869 glibcxx_cv_func_logf_use=no
33871 rm -f conftest.$ac_objext conftest.$ac_ext
33872 ac_ext=c
33873 ac_cpp='$CPP $CPPFLAGS'
33874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33882 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33883 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33885 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33887 for ac_func in logf
33889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33890 echo "$as_me:$LINENO: checking for $ac_func" >&5
33891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33892 if eval "test \"\${$as_ac_var+set}\" = set"; then
33893 echo $ECHO_N "(cached) $ECHO_C" >&6
33894 else
33895 if test x$gcc_no_link = xyes; then
33896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33898 { (exit 1); exit 1; }; }
33900 cat >conftest.$ac_ext <<_ACEOF
33901 #line $LINENO "configure"
33902 /* confdefs.h. */
33903 _ACEOF
33904 cat confdefs.h >>conftest.$ac_ext
33905 cat >>conftest.$ac_ext <<_ACEOF
33906 /* end confdefs.h. */
33907 /* System header to define __stub macros and hopefully few prototypes,
33908 which can conflict with char $ac_func (); below.
33909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33910 <limits.h> exists even on freestanding compilers. */
33911 #ifdef __STDC__
33912 # include <limits.h>
33913 #else
33914 # include <assert.h>
33915 #endif
33916 /* Override any gcc2 internal prototype to avoid an error. */
33917 #ifdef __cplusplus
33918 extern "C"
33920 #endif
33921 /* We use char because int might match the return type of a gcc2
33922 builtin and then its argument prototype would still apply. */
33923 char $ac_func ();
33924 /* The GNU C library defines this for functions which it implements
33925 to always fail with ENOSYS. Some functions are actually named
33926 something starting with __ and the normal name is an alias. */
33927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33928 choke me
33929 #else
33930 char (*f) () = $ac_func;
33931 #endif
33932 #ifdef __cplusplus
33934 #endif
33937 main ()
33939 return f != $ac_func;
33941 return 0;
33943 _ACEOF
33944 rm -f conftest.$ac_objext conftest$ac_exeext
33945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33946 (eval $ac_link) 2>&5
33947 ac_status=$?
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } &&
33950 { ac_try='test -s conftest$ac_exeext'
33951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33952 (eval $ac_try) 2>&5
33953 ac_status=$?
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); }; }; then
33956 eval "$as_ac_var=yes"
33957 else
33958 echo "$as_me: failed program was:" >&5
33959 sed 's/^/| /' conftest.$ac_ext >&5
33961 eval "$as_ac_var=no"
33963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33967 if test `eval echo '${'$as_ac_var'}'` = yes; then
33968 cat >>confdefs.h <<_ACEOF
33969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33970 _ACEOF
33973 done
33975 else
33977 echo "$as_me:$LINENO: checking for _logf declaration" >&5
33978 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33979 if test x${glibcxx_cv_func__logf_use+set} != xset; then
33980 if test "${glibcxx_cv_func__logf_use+set}" = set; then
33981 echo $ECHO_N "(cached) $ECHO_C" >&6
33982 else
33986 ac_ext=cc
33987 ac_cpp='$CXXCPP $CPPFLAGS'
33988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33992 cat >conftest.$ac_ext <<_ACEOF
33993 #line $LINENO "configure"
33994 /* confdefs.h. */
33995 _ACEOF
33996 cat confdefs.h >>conftest.$ac_ext
33997 cat >>conftest.$ac_ext <<_ACEOF
33998 /* end confdefs.h. */
33999 #include <math.h>
34000 #ifdef HAVE_IEEEFP_H
34001 #include <ieeefp.h>
34002 #endif
34005 main ()
34007 _logf(0);
34009 return 0;
34011 _ACEOF
34012 rm -f conftest.$ac_objext
34013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34014 (eval $ac_compile) 2>&5
34015 ac_status=$?
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); } &&
34018 { ac_try='test -s conftest.$ac_objext'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 glibcxx_cv_func__logf_use=yes
34025 else
34026 echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34029 glibcxx_cv_func__logf_use=no
34031 rm -f conftest.$ac_objext conftest.$ac_ext
34032 ac_ext=c
34033 ac_cpp='$CPP $CPPFLAGS'
34034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34042 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
34043 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
34045 if test x$glibcxx_cv_func__logf_use = x"yes"; then
34047 for ac_func in _logf
34049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34050 echo "$as_me:$LINENO: checking for $ac_func" >&5
34051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34052 if eval "test \"\${$as_ac_var+set}\" = set"; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34054 else
34055 if test x$gcc_no_link = xyes; then
34056 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34057 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34058 { (exit 1); exit 1; }; }
34060 cat >conftest.$ac_ext <<_ACEOF
34061 #line $LINENO "configure"
34062 /* confdefs.h. */
34063 _ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h. */
34067 /* System header to define __stub macros and hopefully few prototypes,
34068 which can conflict with char $ac_func (); below.
34069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34070 <limits.h> exists even on freestanding compilers. */
34071 #ifdef __STDC__
34072 # include <limits.h>
34073 #else
34074 # include <assert.h>
34075 #endif
34076 /* Override any gcc2 internal prototype to avoid an error. */
34077 #ifdef __cplusplus
34078 extern "C"
34080 #endif
34081 /* We use char because int might match the return type of a gcc2
34082 builtin and then its argument prototype would still apply. */
34083 char $ac_func ();
34084 /* The GNU C library defines this for functions which it implements
34085 to always fail with ENOSYS. Some functions are actually named
34086 something starting with __ and the normal name is an alias. */
34087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34088 choke me
34089 #else
34090 char (*f) () = $ac_func;
34091 #endif
34092 #ifdef __cplusplus
34094 #endif
34097 main ()
34099 return f != $ac_func;
34101 return 0;
34103 _ACEOF
34104 rm -f conftest.$ac_objext conftest$ac_exeext
34105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34106 (eval $ac_link) 2>&5
34107 ac_status=$?
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } &&
34110 { ac_try='test -s conftest$ac_exeext'
34111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112 (eval $ac_try) 2>&5
34113 ac_status=$?
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); }; }; then
34116 eval "$as_ac_var=yes"
34117 else
34118 echo "$as_me: failed program was:" >&5
34119 sed 's/^/| /' conftest.$ac_ext >&5
34121 eval "$as_ac_var=no"
34123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34127 if test `eval echo '${'$as_ac_var'}'` = yes; then
34128 cat >>confdefs.h <<_ACEOF
34129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34130 _ACEOF
34133 done
34140 echo "$as_me:$LINENO: checking for log10f declaration" >&5
34141 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
34142 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
34143 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
34144 echo $ECHO_N "(cached) $ECHO_C" >&6
34145 else
34149 ac_ext=cc
34150 ac_cpp='$CXXCPP $CPPFLAGS'
34151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34155 cat >conftest.$ac_ext <<_ACEOF
34156 #line $LINENO "configure"
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 log10f(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>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); } &&
34181 { ac_try='test -s conftest.$ac_objext'
34182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34183 (eval $ac_try) 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; }; then
34187 glibcxx_cv_func_log10f_use=yes
34188 else
34189 echo "$as_me: failed program was:" >&5
34190 sed 's/^/| /' conftest.$ac_ext >&5
34192 glibcxx_cv_func_log10f_use=no
34194 rm -f conftest.$ac_objext conftest.$ac_ext
34195 ac_ext=c
34196 ac_cpp='$CPP $CPPFLAGS'
34197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34205 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
34206 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
34208 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
34210 for ac_func in log10f
34212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34213 echo "$as_me:$LINENO: checking for $ac_func" >&5
34214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34215 if eval "test \"\${$as_ac_var+set}\" = set"; then
34216 echo $ECHO_N "(cached) $ECHO_C" >&6
34217 else
34218 if test x$gcc_no_link = xyes; then
34219 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34221 { (exit 1); exit 1; }; }
34223 cat >conftest.$ac_ext <<_ACEOF
34224 #line $LINENO "configure"
34225 /* confdefs.h. */
34226 _ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h. */
34230 /* System header to define __stub macros and hopefully few prototypes,
34231 which can conflict with char $ac_func (); below.
34232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34233 <limits.h> exists even on freestanding compilers. */
34234 #ifdef __STDC__
34235 # include <limits.h>
34236 #else
34237 # include <assert.h>
34238 #endif
34239 /* Override any gcc2 internal prototype to avoid an error. */
34240 #ifdef __cplusplus
34241 extern "C"
34243 #endif
34244 /* We use char because int might match the return type of a gcc2
34245 builtin and then its argument prototype would still apply. */
34246 char $ac_func ();
34247 /* The GNU C library defines this for functions which it implements
34248 to always fail with ENOSYS. Some functions are actually named
34249 something starting with __ and the normal name is an alias. */
34250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34251 choke me
34252 #else
34253 char (*f) () = $ac_func;
34254 #endif
34255 #ifdef __cplusplus
34257 #endif
34260 main ()
34262 return f != $ac_func;
34264 return 0;
34266 _ACEOF
34267 rm -f conftest.$ac_objext conftest$ac_exeext
34268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34269 (eval $ac_link) 2>&5
34270 ac_status=$?
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); } &&
34273 { ac_try='test -s conftest$ac_exeext'
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; }; then
34279 eval "$as_ac_var=yes"
34280 else
34281 echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34284 eval "$as_ac_var=no"
34286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34290 if test `eval echo '${'$as_ac_var'}'` = yes; then
34291 cat >>confdefs.h <<_ACEOF
34292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34293 _ACEOF
34296 done
34298 else
34300 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
34301 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
34302 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
34303 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305 else
34309 ac_ext=cc
34310 ac_cpp='$CXXCPP $CPPFLAGS'
34311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34315 cat >conftest.$ac_ext <<_ACEOF
34316 #line $LINENO "configure"
34317 /* confdefs.h. */
34318 _ACEOF
34319 cat confdefs.h >>conftest.$ac_ext
34320 cat >>conftest.$ac_ext <<_ACEOF
34321 /* end confdefs.h. */
34322 #include <math.h>
34323 #ifdef HAVE_IEEEFP_H
34324 #include <ieeefp.h>
34325 #endif
34328 main ()
34330 _log10f(0);
34332 return 0;
34334 _ACEOF
34335 rm -f conftest.$ac_objext
34336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34337 (eval $ac_compile) 2>&5
34338 ac_status=$?
34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340 (exit $ac_status); } &&
34341 { ac_try='test -s conftest.$ac_objext'
34342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34343 (eval $ac_try) 2>&5
34344 ac_status=$?
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); }; }; then
34347 glibcxx_cv_func__log10f_use=yes
34348 else
34349 echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34352 glibcxx_cv_func__log10f_use=no
34354 rm -f conftest.$ac_objext conftest.$ac_ext
34355 ac_ext=c
34356 ac_cpp='$CPP $CPPFLAGS'
34357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34365 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34366 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34368 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34370 for ac_func in _log10f
34372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34373 echo "$as_me:$LINENO: checking for $ac_func" >&5
34374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34375 if eval "test \"\${$as_ac_var+set}\" = set"; then
34376 echo $ECHO_N "(cached) $ECHO_C" >&6
34377 else
34378 if test x$gcc_no_link = xyes; then
34379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34381 { (exit 1); exit 1; }; }
34383 cat >conftest.$ac_ext <<_ACEOF
34384 #line $LINENO "configure"
34385 /* confdefs.h. */
34386 _ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h. */
34390 /* System header to define __stub macros and hopefully few prototypes,
34391 which can conflict with char $ac_func (); below.
34392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34393 <limits.h> exists even on freestanding compilers. */
34394 #ifdef __STDC__
34395 # include <limits.h>
34396 #else
34397 # include <assert.h>
34398 #endif
34399 /* Override any gcc2 internal prototype to avoid an error. */
34400 #ifdef __cplusplus
34401 extern "C"
34403 #endif
34404 /* We use char because int might match the return type of a gcc2
34405 builtin and then its argument prototype would still apply. */
34406 char $ac_func ();
34407 /* The GNU C library defines this for functions which it implements
34408 to always fail with ENOSYS. Some functions are actually named
34409 something starting with __ and the normal name is an alias. */
34410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34411 choke me
34412 #else
34413 char (*f) () = $ac_func;
34414 #endif
34415 #ifdef __cplusplus
34417 #endif
34420 main ()
34422 return f != $ac_func;
34424 return 0;
34426 _ACEOF
34427 rm -f conftest.$ac_objext conftest$ac_exeext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34429 (eval $ac_link) 2>&5
34430 ac_status=$?
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); } &&
34433 { ac_try='test -s conftest$ac_exeext'
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34436 ac_status=$?
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 eval "$as_ac_var=yes"
34440 else
34441 echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 eval "$as_ac_var=no"
34446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34450 if test `eval echo '${'$as_ac_var'}'` = yes; then
34451 cat >>confdefs.h <<_ACEOF
34452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34453 _ACEOF
34456 done
34463 echo "$as_me:$LINENO: checking for modff declaration" >&5
34464 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34465 if test x${glibcxx_cv_func_modff_use+set} != xset; then
34466 if test "${glibcxx_cv_func_modff_use+set}" = set; then
34467 echo $ECHO_N "(cached) $ECHO_C" >&6
34468 else
34472 ac_ext=cc
34473 ac_cpp='$CXXCPP $CPPFLAGS'
34474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34478 cat >conftest.$ac_ext <<_ACEOF
34479 #line $LINENO "configure"
34480 /* confdefs.h. */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h. */
34485 #include <math.h>
34487 main ()
34489 modff(0, 0);
34491 return 0;
34493 _ACEOF
34494 rm -f conftest.$ac_objext
34495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34496 (eval $ac_compile) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); } &&
34500 { ac_try='test -s conftest.$ac_objext'
34501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34502 (eval $ac_try) 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; }; then
34506 glibcxx_cv_func_modff_use=yes
34507 else
34508 echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34511 glibcxx_cv_func_modff_use=no
34513 rm -f conftest.$ac_objext conftest.$ac_ext
34514 ac_ext=c
34515 ac_cpp='$CPP $CPPFLAGS'
34516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34524 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34525 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34527 if test x$glibcxx_cv_func_modff_use = x"yes"; then
34529 for ac_func in modff
34531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34532 echo "$as_me:$LINENO: checking for $ac_func" >&5
34533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34534 if eval "test \"\${$as_ac_var+set}\" = set"; then
34535 echo $ECHO_N "(cached) $ECHO_C" >&6
34536 else
34537 if test x$gcc_no_link = xyes; then
34538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34540 { (exit 1); exit 1; }; }
34542 cat >conftest.$ac_ext <<_ACEOF
34543 #line $LINENO "configure"
34544 /* confdefs.h. */
34545 _ACEOF
34546 cat confdefs.h >>conftest.$ac_ext
34547 cat >>conftest.$ac_ext <<_ACEOF
34548 /* end confdefs.h. */
34549 /* System header to define __stub macros and hopefully few prototypes,
34550 which can conflict with char $ac_func (); below.
34551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34552 <limits.h> exists even on freestanding compilers. */
34553 #ifdef __STDC__
34554 # include <limits.h>
34555 #else
34556 # include <assert.h>
34557 #endif
34558 /* Override any gcc2 internal prototype to avoid an error. */
34559 #ifdef __cplusplus
34560 extern "C"
34562 #endif
34563 /* We use char because int might match the return type of a gcc2
34564 builtin and then its argument prototype would still apply. */
34565 char $ac_func ();
34566 /* The GNU C library defines this for functions which it implements
34567 to always fail with ENOSYS. Some functions are actually named
34568 something starting with __ and the normal name is an alias. */
34569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34570 choke me
34571 #else
34572 char (*f) () = $ac_func;
34573 #endif
34574 #ifdef __cplusplus
34576 #endif
34579 main ()
34581 return f != $ac_func;
34583 return 0;
34585 _ACEOF
34586 rm -f conftest.$ac_objext conftest$ac_exeext
34587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34588 (eval $ac_link) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); } &&
34592 { ac_try='test -s conftest$ac_exeext'
34593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594 (eval $ac_try) 2>&5
34595 ac_status=$?
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; }; then
34598 eval "$as_ac_var=yes"
34599 else
34600 echo "$as_me: failed program was:" >&5
34601 sed 's/^/| /' conftest.$ac_ext >&5
34603 eval "$as_ac_var=no"
34605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34609 if test `eval echo '${'$as_ac_var'}'` = yes; then
34610 cat >>confdefs.h <<_ACEOF
34611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34612 _ACEOF
34615 done
34617 else
34619 echo "$as_me:$LINENO: checking for _modff declaration" >&5
34620 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34621 if test x${glibcxx_cv_func__modff_use+set} != xset; then
34622 if test "${glibcxx_cv_func__modff_use+set}" = set; then
34623 echo $ECHO_N "(cached) $ECHO_C" >&6
34624 else
34628 ac_ext=cc
34629 ac_cpp='$CXXCPP $CPPFLAGS'
34630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34634 cat >conftest.$ac_ext <<_ACEOF
34635 #line $LINENO "configure"
34636 /* confdefs.h. */
34637 _ACEOF
34638 cat confdefs.h >>conftest.$ac_ext
34639 cat >>conftest.$ac_ext <<_ACEOF
34640 /* end confdefs.h. */
34641 #include <math.h>
34643 main ()
34645 _modff(0, 0);
34647 return 0;
34649 _ACEOF
34650 rm -f conftest.$ac_objext
34651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34652 (eval $ac_compile) 2>&5
34653 ac_status=$?
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); } &&
34656 { ac_try='test -s conftest.$ac_objext'
34657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34658 (eval $ac_try) 2>&5
34659 ac_status=$?
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); }; }; then
34662 glibcxx_cv_func__modff_use=yes
34663 else
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34667 glibcxx_cv_func__modff_use=no
34669 rm -f conftest.$ac_objext conftest.$ac_ext
34670 ac_ext=c
34671 ac_cpp='$CPP $CPPFLAGS'
34672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34681 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34683 if test x$glibcxx_cv_func__modff_use = x"yes"; then
34685 for ac_func in _modff
34687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34688 echo "$as_me:$LINENO: checking for $ac_func" >&5
34689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34690 if eval "test \"\${$as_ac_var+set}\" = set"; then
34691 echo $ECHO_N "(cached) $ECHO_C" >&6
34692 else
34693 if test x$gcc_no_link = xyes; then
34694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34696 { (exit 1); exit 1; }; }
34698 cat >conftest.$ac_ext <<_ACEOF
34699 #line $LINENO "configure"
34700 /* confdefs.h. */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 /* System header to define __stub macros and hopefully few prototypes,
34706 which can conflict with char $ac_func (); below.
34707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34708 <limits.h> exists even on freestanding compilers. */
34709 #ifdef __STDC__
34710 # include <limits.h>
34711 #else
34712 # include <assert.h>
34713 #endif
34714 /* Override any gcc2 internal prototype to avoid an error. */
34715 #ifdef __cplusplus
34716 extern "C"
34718 #endif
34719 /* We use char because int might match the return type of a gcc2
34720 builtin and then its argument prototype would still apply. */
34721 char $ac_func ();
34722 /* The GNU C library defines this for functions which it implements
34723 to always fail with ENOSYS. Some functions are actually named
34724 something starting with __ and the normal name is an alias. */
34725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34726 choke me
34727 #else
34728 char (*f) () = $ac_func;
34729 #endif
34730 #ifdef __cplusplus
34732 #endif
34735 main ()
34737 return f != $ac_func;
34739 return 0;
34741 _ACEOF
34742 rm -f conftest.$ac_objext conftest$ac_exeext
34743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34744 (eval $ac_link) 2>&5
34745 ac_status=$?
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); } &&
34748 { ac_try='test -s conftest$ac_exeext'
34749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34750 (eval $ac_try) 2>&5
34751 ac_status=$?
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; }; then
34754 eval "$as_ac_var=yes"
34755 else
34756 echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34759 eval "$as_ac_var=no"
34761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34765 if test `eval echo '${'$as_ac_var'}'` = yes; then
34766 cat >>confdefs.h <<_ACEOF
34767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34768 _ACEOF
34771 done
34778 echo "$as_me:$LINENO: checking for powf declaration" >&5
34779 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34780 if test x${glibcxx_cv_func_powf_use+set} != xset; then
34781 if test "${glibcxx_cv_func_powf_use+set}" = set; then
34782 echo $ECHO_N "(cached) $ECHO_C" >&6
34783 else
34787 ac_ext=cc
34788 ac_cpp='$CXXCPP $CPPFLAGS'
34789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34793 cat >conftest.$ac_ext <<_ACEOF
34794 #line $LINENO "configure"
34795 /* confdefs.h. */
34796 _ACEOF
34797 cat confdefs.h >>conftest.$ac_ext
34798 cat >>conftest.$ac_ext <<_ACEOF
34799 /* end confdefs.h. */
34800 #include <math.h>
34802 main ()
34804 powf(0, 0);
34806 return 0;
34808 _ACEOF
34809 rm -f conftest.$ac_objext
34810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34811 (eval $ac_compile) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); } &&
34815 { ac_try='test -s conftest.$ac_objext'
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821 glibcxx_cv_func_powf_use=yes
34822 else
34823 echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34826 glibcxx_cv_func_powf_use=no
34828 rm -f conftest.$ac_objext conftest.$ac_ext
34829 ac_ext=c
34830 ac_cpp='$CPP $CPPFLAGS'
34831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34839 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34840 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34842 if test x$glibcxx_cv_func_powf_use = x"yes"; then
34844 for ac_func in powf
34846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34847 echo "$as_me:$LINENO: checking for $ac_func" >&5
34848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34849 if eval "test \"\${$as_ac_var+set}\" = set"; then
34850 echo $ECHO_N "(cached) $ECHO_C" >&6
34851 else
34852 if test x$gcc_no_link = xyes; then
34853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34855 { (exit 1); exit 1; }; }
34857 cat >conftest.$ac_ext <<_ACEOF
34858 #line $LINENO "configure"
34859 /* confdefs.h. */
34860 _ACEOF
34861 cat confdefs.h >>conftest.$ac_ext
34862 cat >>conftest.$ac_ext <<_ACEOF
34863 /* end confdefs.h. */
34864 /* System header to define __stub macros and hopefully few prototypes,
34865 which can conflict with char $ac_func (); below.
34866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34867 <limits.h> exists even on freestanding compilers. */
34868 #ifdef __STDC__
34869 # include <limits.h>
34870 #else
34871 # include <assert.h>
34872 #endif
34873 /* Override any gcc2 internal prototype to avoid an error. */
34874 #ifdef __cplusplus
34875 extern "C"
34877 #endif
34878 /* We use char because int might match the return type of a gcc2
34879 builtin and then its argument prototype would still apply. */
34880 char $ac_func ();
34881 /* The GNU C library defines this for functions which it implements
34882 to always fail with ENOSYS. Some functions are actually named
34883 something starting with __ and the normal name is an alias. */
34884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34885 choke me
34886 #else
34887 char (*f) () = $ac_func;
34888 #endif
34889 #ifdef __cplusplus
34891 #endif
34894 main ()
34896 return f != $ac_func;
34898 return 0;
34900 _ACEOF
34901 rm -f conftest.$ac_objext conftest$ac_exeext
34902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34903 (eval $ac_link) 2>&5
34904 ac_status=$?
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); } &&
34907 { ac_try='test -s conftest$ac_exeext'
34908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34909 (eval $ac_try) 2>&5
34910 ac_status=$?
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); }; }; then
34913 eval "$as_ac_var=yes"
34914 else
34915 echo "$as_me: failed program was:" >&5
34916 sed 's/^/| /' conftest.$ac_ext >&5
34918 eval "$as_ac_var=no"
34920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34924 if test `eval echo '${'$as_ac_var'}'` = yes; then
34925 cat >>confdefs.h <<_ACEOF
34926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34927 _ACEOF
34930 done
34932 else
34934 echo "$as_me:$LINENO: checking for _powf declaration" >&5
34935 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34936 if test x${glibcxx_cv_func__powf_use+set} != xset; then
34937 if test "${glibcxx_cv_func__powf_use+set}" = set; then
34938 echo $ECHO_N "(cached) $ECHO_C" >&6
34939 else
34943 ac_ext=cc
34944 ac_cpp='$CXXCPP $CPPFLAGS'
34945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34949 cat >conftest.$ac_ext <<_ACEOF
34950 #line $LINENO "configure"
34951 /* confdefs.h. */
34952 _ACEOF
34953 cat confdefs.h >>conftest.$ac_ext
34954 cat >>conftest.$ac_ext <<_ACEOF
34955 /* end confdefs.h. */
34956 #include <math.h>
34958 main ()
34960 _powf(0, 0);
34962 return 0;
34964 _ACEOF
34965 rm -f conftest.$ac_objext
34966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34967 (eval $ac_compile) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); } &&
34971 { ac_try='test -s conftest.$ac_objext'
34972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973 (eval $ac_try) 2>&5
34974 ac_status=$?
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; }; then
34977 glibcxx_cv_func__powf_use=yes
34978 else
34979 echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.$ac_ext >&5
34982 glibcxx_cv_func__powf_use=no
34984 rm -f conftest.$ac_objext conftest.$ac_ext
34985 ac_ext=c
34986 ac_cpp='$CPP $CPPFLAGS'
34987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34995 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34996 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34998 if test x$glibcxx_cv_func__powf_use = x"yes"; then
35000 for ac_func in _powf
35002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35003 echo "$as_me:$LINENO: checking for $ac_func" >&5
35004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35005 if eval "test \"\${$as_ac_var+set}\" = set"; then
35006 echo $ECHO_N "(cached) $ECHO_C" >&6
35007 else
35008 if test x$gcc_no_link = xyes; then
35009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35011 { (exit 1); exit 1; }; }
35013 cat >conftest.$ac_ext <<_ACEOF
35014 #line $LINENO "configure"
35015 /* confdefs.h. */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35020 /* System header to define __stub macros and hopefully few prototypes,
35021 which can conflict with char $ac_func (); below.
35022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35023 <limits.h> exists even on freestanding compilers. */
35024 #ifdef __STDC__
35025 # include <limits.h>
35026 #else
35027 # include <assert.h>
35028 #endif
35029 /* Override any gcc2 internal prototype to avoid an error. */
35030 #ifdef __cplusplus
35031 extern "C"
35033 #endif
35034 /* We use char because int might match the return type of a gcc2
35035 builtin and then its argument prototype would still apply. */
35036 char $ac_func ();
35037 /* The GNU C library defines this for functions which it implements
35038 to always fail with ENOSYS. Some functions are actually named
35039 something starting with __ and the normal name is an alias. */
35040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35041 choke me
35042 #else
35043 char (*f) () = $ac_func;
35044 #endif
35045 #ifdef __cplusplus
35047 #endif
35050 main ()
35052 return f != $ac_func;
35054 return 0;
35056 _ACEOF
35057 rm -f conftest.$ac_objext conftest$ac_exeext
35058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35059 (eval $ac_link) 2>&5
35060 ac_status=$?
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } &&
35063 { ac_try='test -s conftest$ac_exeext'
35064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065 (eval $ac_try) 2>&5
35066 ac_status=$?
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); }; }; then
35069 eval "$as_ac_var=yes"
35070 else
35071 echo "$as_me: failed program was:" >&5
35072 sed 's/^/| /' conftest.$ac_ext >&5
35074 eval "$as_ac_var=no"
35076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35080 if test `eval echo '${'$as_ac_var'}'` = yes; then
35081 cat >>confdefs.h <<_ACEOF
35082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35083 _ACEOF
35086 done
35093 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
35094 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
35095 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
35096 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
35097 echo $ECHO_N "(cached) $ECHO_C" >&6
35098 else
35102 ac_ext=cc
35103 ac_cpp='$CXXCPP $CPPFLAGS'
35104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35108 cat >conftest.$ac_ext <<_ACEOF
35109 #line $LINENO "configure"
35110 /* confdefs.h. */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h. */
35115 #include <math.h>
35116 #ifdef HAVE_IEEEFP_H
35117 #include <ieeefp.h>
35118 #endif
35121 main ()
35123 sqrtf(0);
35125 return 0;
35127 _ACEOF
35128 rm -f conftest.$ac_objext
35129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35130 (eval $ac_compile) 2>&5
35131 ac_status=$?
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); } &&
35134 { ac_try='test -s conftest.$ac_objext'
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; }; then
35140 glibcxx_cv_func_sqrtf_use=yes
35141 else
35142 echo "$as_me: failed program was:" >&5
35143 sed 's/^/| /' conftest.$ac_ext >&5
35145 glibcxx_cv_func_sqrtf_use=no
35147 rm -f conftest.$ac_objext conftest.$ac_ext
35148 ac_ext=c
35149 ac_cpp='$CPP $CPPFLAGS'
35150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35158 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
35159 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
35161 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
35163 for ac_func in sqrtf
35165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35166 echo "$as_me:$LINENO: checking for $ac_func" >&5
35167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35168 if eval "test \"\${$as_ac_var+set}\" = set"; then
35169 echo $ECHO_N "(cached) $ECHO_C" >&6
35170 else
35171 if test x$gcc_no_link = xyes; then
35172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35174 { (exit 1); exit 1; }; }
35176 cat >conftest.$ac_ext <<_ACEOF
35177 #line $LINENO "configure"
35178 /* confdefs.h. */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35183 /* System header to define __stub macros and hopefully few prototypes,
35184 which can conflict with char $ac_func (); below.
35185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35186 <limits.h> exists even on freestanding compilers. */
35187 #ifdef __STDC__
35188 # include <limits.h>
35189 #else
35190 # include <assert.h>
35191 #endif
35192 /* Override any gcc2 internal prototype to avoid an error. */
35193 #ifdef __cplusplus
35194 extern "C"
35196 #endif
35197 /* We use char because int might match the return type of a gcc2
35198 builtin and then its argument prototype would still apply. */
35199 char $ac_func ();
35200 /* The GNU C library defines this for functions which it implements
35201 to always fail with ENOSYS. Some functions are actually named
35202 something starting with __ and the normal name is an alias. */
35203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35204 choke me
35205 #else
35206 char (*f) () = $ac_func;
35207 #endif
35208 #ifdef __cplusplus
35210 #endif
35213 main ()
35215 return f != $ac_func;
35217 return 0;
35219 _ACEOF
35220 rm -f conftest.$ac_objext conftest$ac_exeext
35221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35222 (eval $ac_link) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); } &&
35226 { ac_try='test -s conftest$ac_exeext'
35227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35228 (eval $ac_try) 2>&5
35229 ac_status=$?
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); }; }; then
35232 eval "$as_ac_var=yes"
35233 else
35234 echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35237 eval "$as_ac_var=no"
35239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35243 if test `eval echo '${'$as_ac_var'}'` = yes; then
35244 cat >>confdefs.h <<_ACEOF
35245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35246 _ACEOF
35249 done
35251 else
35253 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
35254 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
35255 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
35256 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
35257 echo $ECHO_N "(cached) $ECHO_C" >&6
35258 else
35262 ac_ext=cc
35263 ac_cpp='$CXXCPP $CPPFLAGS'
35264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35268 cat >conftest.$ac_ext <<_ACEOF
35269 #line $LINENO "configure"
35270 /* confdefs.h. */
35271 _ACEOF
35272 cat confdefs.h >>conftest.$ac_ext
35273 cat >>conftest.$ac_ext <<_ACEOF
35274 /* end confdefs.h. */
35275 #include <math.h>
35276 #ifdef HAVE_IEEEFP_H
35277 #include <ieeefp.h>
35278 #endif
35281 main ()
35283 _sqrtf(0);
35285 return 0;
35287 _ACEOF
35288 rm -f conftest.$ac_objext
35289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35290 (eval $ac_compile) 2>&5
35291 ac_status=$?
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); } &&
35294 { ac_try='test -s conftest.$ac_objext'
35295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35296 (eval $ac_try) 2>&5
35297 ac_status=$?
35298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299 (exit $ac_status); }; }; then
35300 glibcxx_cv_func__sqrtf_use=yes
35301 else
35302 echo "$as_me: failed program was:" >&5
35303 sed 's/^/| /' conftest.$ac_ext >&5
35305 glibcxx_cv_func__sqrtf_use=no
35307 rm -f conftest.$ac_objext conftest.$ac_ext
35308 ac_ext=c
35309 ac_cpp='$CPP $CPPFLAGS'
35310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35318 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35319 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35321 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35323 for ac_func in _sqrtf
35325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35326 echo "$as_me:$LINENO: checking for $ac_func" >&5
35327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35328 if eval "test \"\${$as_ac_var+set}\" = set"; then
35329 echo $ECHO_N "(cached) $ECHO_C" >&6
35330 else
35331 if test x$gcc_no_link = xyes; then
35332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35334 { (exit 1); exit 1; }; }
35336 cat >conftest.$ac_ext <<_ACEOF
35337 #line $LINENO "configure"
35338 /* confdefs.h. */
35339 _ACEOF
35340 cat confdefs.h >>conftest.$ac_ext
35341 cat >>conftest.$ac_ext <<_ACEOF
35342 /* end confdefs.h. */
35343 /* System header to define __stub macros and hopefully few prototypes,
35344 which can conflict with char $ac_func (); below.
35345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35346 <limits.h> exists even on freestanding compilers. */
35347 #ifdef __STDC__
35348 # include <limits.h>
35349 #else
35350 # include <assert.h>
35351 #endif
35352 /* Override any gcc2 internal prototype to avoid an error. */
35353 #ifdef __cplusplus
35354 extern "C"
35356 #endif
35357 /* We use char because int might match the return type of a gcc2
35358 builtin and then its argument prototype would still apply. */
35359 char $ac_func ();
35360 /* The GNU C library defines this for functions which it implements
35361 to always fail with ENOSYS. Some functions are actually named
35362 something starting with __ and the normal name is an alias. */
35363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35364 choke me
35365 #else
35366 char (*f) () = $ac_func;
35367 #endif
35368 #ifdef __cplusplus
35370 #endif
35373 main ()
35375 return f != $ac_func;
35377 return 0;
35379 _ACEOF
35380 rm -f conftest.$ac_objext conftest$ac_exeext
35381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35382 (eval $ac_link) 2>&5
35383 ac_status=$?
35384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385 (exit $ac_status); } &&
35386 { ac_try='test -s conftest$ac_exeext'
35387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388 (eval $ac_try) 2>&5
35389 ac_status=$?
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); }; }; then
35392 eval "$as_ac_var=yes"
35393 else
35394 echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.$ac_ext >&5
35397 eval "$as_ac_var=no"
35399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35403 if test `eval echo '${'$as_ac_var'}'` = yes; then
35404 cat >>confdefs.h <<_ACEOF
35405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35406 _ACEOF
35409 done
35416 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35417 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35418 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35419 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35420 echo $ECHO_N "(cached) $ECHO_C" >&6
35421 else
35425 ac_ext=cc
35426 ac_cpp='$CXXCPP $CPPFLAGS'
35427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35431 cat >conftest.$ac_ext <<_ACEOF
35432 #line $LINENO "configure"
35433 /* confdefs.h. */
35434 _ACEOF
35435 cat confdefs.h >>conftest.$ac_ext
35436 cat >>conftest.$ac_ext <<_ACEOF
35437 /* end confdefs.h. */
35438 #include <math.h>
35440 main ()
35442 sincosf(0, 0, 0);
35444 return 0;
35446 _ACEOF
35447 rm -f conftest.$ac_objext
35448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35449 (eval $ac_compile) 2>&5
35450 ac_status=$?
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } &&
35453 { ac_try='test -s conftest.$ac_objext'
35454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35455 (eval $ac_try) 2>&5
35456 ac_status=$?
35457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458 (exit $ac_status); }; }; then
35459 glibcxx_cv_func_sincosf_use=yes
35460 else
35461 echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35464 glibcxx_cv_func_sincosf_use=no
35466 rm -f conftest.$ac_objext conftest.$ac_ext
35467 ac_ext=c
35468 ac_cpp='$CPP $CPPFLAGS'
35469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35477 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35478 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35480 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35482 for ac_func in sincosf
35484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35485 echo "$as_me:$LINENO: checking for $ac_func" >&5
35486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35487 if eval "test \"\${$as_ac_var+set}\" = set"; then
35488 echo $ECHO_N "(cached) $ECHO_C" >&6
35489 else
35490 if test x$gcc_no_link = xyes; then
35491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35493 { (exit 1); exit 1; }; }
35495 cat >conftest.$ac_ext <<_ACEOF
35496 #line $LINENO "configure"
35497 /* confdefs.h. */
35498 _ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h. */
35502 /* System header to define __stub macros and hopefully few prototypes,
35503 which can conflict with char $ac_func (); below.
35504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35505 <limits.h> exists even on freestanding compilers. */
35506 #ifdef __STDC__
35507 # include <limits.h>
35508 #else
35509 # include <assert.h>
35510 #endif
35511 /* Override any gcc2 internal prototype to avoid an error. */
35512 #ifdef __cplusplus
35513 extern "C"
35515 #endif
35516 /* We use char because int might match the return type of a gcc2
35517 builtin and then its argument prototype would still apply. */
35518 char $ac_func ();
35519 /* The GNU C library defines this for functions which it implements
35520 to always fail with ENOSYS. Some functions are actually named
35521 something starting with __ and the normal name is an alias. */
35522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35523 choke me
35524 #else
35525 char (*f) () = $ac_func;
35526 #endif
35527 #ifdef __cplusplus
35529 #endif
35532 main ()
35534 return f != $ac_func;
35536 return 0;
35538 _ACEOF
35539 rm -f conftest.$ac_objext conftest$ac_exeext
35540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35541 (eval $ac_link) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
35545 { ac_try='test -s conftest$ac_exeext'
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35548 ac_status=$?
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; }; then
35551 eval "$as_ac_var=yes"
35552 else
35553 echo "$as_me: failed program was:" >&5
35554 sed 's/^/| /' conftest.$ac_ext >&5
35556 eval "$as_ac_var=no"
35558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35562 if test `eval echo '${'$as_ac_var'}'` = yes; then
35563 cat >>confdefs.h <<_ACEOF
35564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35565 _ACEOF
35568 done
35570 else
35572 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35573 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35574 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35575 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35576 echo $ECHO_N "(cached) $ECHO_C" >&6
35577 else
35581 ac_ext=cc
35582 ac_cpp='$CXXCPP $CPPFLAGS'
35583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35587 cat >conftest.$ac_ext <<_ACEOF
35588 #line $LINENO "configure"
35589 /* confdefs.h. */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h. */
35594 #include <math.h>
35596 main ()
35598 _sincosf(0, 0, 0);
35600 return 0;
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>&5
35606 ac_status=$?
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); } &&
35609 { ac_try='test -s conftest.$ac_objext'
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; }; then
35615 glibcxx_cv_func__sincosf_use=yes
35616 else
35617 echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35620 glibcxx_cv_func__sincosf_use=no
35622 rm -f conftest.$ac_objext conftest.$ac_ext
35623 ac_ext=c
35624 ac_cpp='$CPP $CPPFLAGS'
35625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35633 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35634 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35636 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35638 for ac_func in _sincosf
35640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35641 echo "$as_me:$LINENO: checking for $ac_func" >&5
35642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35643 if eval "test \"\${$as_ac_var+set}\" = set"; then
35644 echo $ECHO_N "(cached) $ECHO_C" >&6
35645 else
35646 if test x$gcc_no_link = xyes; then
35647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35649 { (exit 1); exit 1; }; }
35651 cat >conftest.$ac_ext <<_ACEOF
35652 #line $LINENO "configure"
35653 /* confdefs.h. */
35654 _ACEOF
35655 cat confdefs.h >>conftest.$ac_ext
35656 cat >>conftest.$ac_ext <<_ACEOF
35657 /* end confdefs.h. */
35658 /* System header to define __stub macros and hopefully few prototypes,
35659 which can conflict with char $ac_func (); below.
35660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35661 <limits.h> exists even on freestanding compilers. */
35662 #ifdef __STDC__
35663 # include <limits.h>
35664 #else
35665 # include <assert.h>
35666 #endif
35667 /* Override any gcc2 internal prototype to avoid an error. */
35668 #ifdef __cplusplus
35669 extern "C"
35671 #endif
35672 /* We use char because int might match the return type of a gcc2
35673 builtin and then its argument prototype would still apply. */
35674 char $ac_func ();
35675 /* The GNU C library defines this for functions which it implements
35676 to always fail with ENOSYS. Some functions are actually named
35677 something starting with __ and the normal name is an alias. */
35678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35679 choke me
35680 #else
35681 char (*f) () = $ac_func;
35682 #endif
35683 #ifdef __cplusplus
35685 #endif
35688 main ()
35690 return f != $ac_func;
35692 return 0;
35694 _ACEOF
35695 rm -f conftest.$ac_objext conftest$ac_exeext
35696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35697 (eval $ac_link) 2>&5
35698 ac_status=$?
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
35701 { ac_try='test -s conftest$ac_exeext'
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; }; then
35707 eval "$as_ac_var=yes"
35708 else
35709 echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35712 eval "$as_ac_var=no"
35714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35718 if test `eval echo '${'$as_ac_var'}'` = yes; then
35719 cat >>confdefs.h <<_ACEOF
35720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35721 _ACEOF
35724 done
35731 echo "$as_me:$LINENO: checking for finitef declaration" >&5
35732 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35733 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35734 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35735 echo $ECHO_N "(cached) $ECHO_C" >&6
35736 else
35740 ac_ext=cc
35741 ac_cpp='$CXXCPP $CPPFLAGS'
35742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35746 cat >conftest.$ac_ext <<_ACEOF
35747 #line $LINENO "configure"
35748 /* confdefs.h. */
35749 _ACEOF
35750 cat confdefs.h >>conftest.$ac_ext
35751 cat >>conftest.$ac_ext <<_ACEOF
35752 /* end confdefs.h. */
35753 #include <math.h>
35754 #ifdef HAVE_IEEEFP_H
35755 #include <ieeefp.h>
35756 #endif
35759 main ()
35761 finitef(0);
35763 return 0;
35765 _ACEOF
35766 rm -f conftest.$ac_objext
35767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35768 (eval $ac_compile) 2>&5
35769 ac_status=$?
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); } &&
35772 { ac_try='test -s conftest.$ac_objext'
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35775 ac_status=$?
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; }; then
35778 glibcxx_cv_func_finitef_use=yes
35779 else
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35783 glibcxx_cv_func_finitef_use=no
35785 rm -f conftest.$ac_objext conftest.$ac_ext
35786 ac_ext=c
35787 ac_cpp='$CPP $CPPFLAGS'
35788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35796 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35797 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35799 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35801 for ac_func in finitef
35803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35804 echo "$as_me:$LINENO: checking for $ac_func" >&5
35805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35806 if eval "test \"\${$as_ac_var+set}\" = set"; then
35807 echo $ECHO_N "(cached) $ECHO_C" >&6
35808 else
35809 if test x$gcc_no_link = xyes; then
35810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35812 { (exit 1); exit 1; }; }
35814 cat >conftest.$ac_ext <<_ACEOF
35815 #line $LINENO "configure"
35816 /* confdefs.h. */
35817 _ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h. */
35821 /* System header to define __stub macros and hopefully few prototypes,
35822 which can conflict with char $ac_func (); below.
35823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35824 <limits.h> exists even on freestanding compilers. */
35825 #ifdef __STDC__
35826 # include <limits.h>
35827 #else
35828 # include <assert.h>
35829 #endif
35830 /* Override any gcc2 internal prototype to avoid an error. */
35831 #ifdef __cplusplus
35832 extern "C"
35834 #endif
35835 /* We use char because int might match the return type of a gcc2
35836 builtin and then its argument prototype would still apply. */
35837 char $ac_func ();
35838 /* The GNU C library defines this for functions which it implements
35839 to always fail with ENOSYS. Some functions are actually named
35840 something starting with __ and the normal name is an alias. */
35841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35842 choke me
35843 #else
35844 char (*f) () = $ac_func;
35845 #endif
35846 #ifdef __cplusplus
35848 #endif
35851 main ()
35853 return f != $ac_func;
35855 return 0;
35857 _ACEOF
35858 rm -f conftest.$ac_objext conftest$ac_exeext
35859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35860 (eval $ac_link) 2>&5
35861 ac_status=$?
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); } &&
35864 { ac_try='test -s conftest$ac_exeext'
35865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866 (eval $ac_try) 2>&5
35867 ac_status=$?
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); }; }; then
35870 eval "$as_ac_var=yes"
35871 else
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 eval "$as_ac_var=no"
35877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35881 if test `eval echo '${'$as_ac_var'}'` = yes; then
35882 cat >>confdefs.h <<_ACEOF
35883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35884 _ACEOF
35887 done
35889 else
35891 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35892 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35893 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35894 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35895 echo $ECHO_N "(cached) $ECHO_C" >&6
35896 else
35900 ac_ext=cc
35901 ac_cpp='$CXXCPP $CPPFLAGS'
35902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35906 cat >conftest.$ac_ext <<_ACEOF
35907 #line $LINENO "configure"
35908 /* confdefs.h. */
35909 _ACEOF
35910 cat confdefs.h >>conftest.$ac_ext
35911 cat >>conftest.$ac_ext <<_ACEOF
35912 /* end confdefs.h. */
35913 #include <math.h>
35914 #ifdef HAVE_IEEEFP_H
35915 #include <ieeefp.h>
35916 #endif
35919 main ()
35921 _finitef(0);
35923 return 0;
35925 _ACEOF
35926 rm -f conftest.$ac_objext
35927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35928 (eval $ac_compile) 2>&5
35929 ac_status=$?
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); } &&
35932 { ac_try='test -s conftest.$ac_objext'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35938 glibcxx_cv_func__finitef_use=yes
35939 else
35940 echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35943 glibcxx_cv_func__finitef_use=no
35945 rm -f conftest.$ac_objext conftest.$ac_ext
35946 ac_ext=c
35947 ac_cpp='$CPP $CPPFLAGS'
35948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35956 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35957 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35959 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35961 for ac_func in _finitef
35963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35964 echo "$as_me:$LINENO: checking for $ac_func" >&5
35965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35966 if eval "test \"\${$as_ac_var+set}\" = set"; then
35967 echo $ECHO_N "(cached) $ECHO_C" >&6
35968 else
35969 if test x$gcc_no_link = xyes; then
35970 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35972 { (exit 1); exit 1; }; }
35974 cat >conftest.$ac_ext <<_ACEOF
35975 #line $LINENO "configure"
35976 /* confdefs.h. */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35981 /* System header to define __stub macros and hopefully few prototypes,
35982 which can conflict with char $ac_func (); below.
35983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35984 <limits.h> exists even on freestanding compilers. */
35985 #ifdef __STDC__
35986 # include <limits.h>
35987 #else
35988 # include <assert.h>
35989 #endif
35990 /* Override any gcc2 internal prototype to avoid an error. */
35991 #ifdef __cplusplus
35992 extern "C"
35994 #endif
35995 /* We use char because int might match the return type of a gcc2
35996 builtin and then its argument prototype would still apply. */
35997 char $ac_func ();
35998 /* The GNU C library defines this for functions which it implements
35999 to always fail with ENOSYS. Some functions are actually named
36000 something starting with __ and the normal name is an alias. */
36001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36002 choke me
36003 #else
36004 char (*f) () = $ac_func;
36005 #endif
36006 #ifdef __cplusplus
36008 #endif
36011 main ()
36013 return f != $ac_func;
36015 return 0;
36017 _ACEOF
36018 rm -f conftest.$ac_objext conftest$ac_exeext
36019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36020 (eval $ac_link) 2>&5
36021 ac_status=$?
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); } &&
36024 { ac_try='test -s conftest$ac_exeext'
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; }; then
36030 eval "$as_ac_var=yes"
36031 else
36032 echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36035 eval "$as_ac_var=no"
36037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36041 if test `eval echo '${'$as_ac_var'}'` = yes; then
36042 cat >>confdefs.h <<_ACEOF
36043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36044 _ACEOF
36047 done
36054 echo "$as_me:$LINENO: checking for long double trig functions" >&5
36055 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
36056 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
36057 echo $ECHO_N "(cached) $ECHO_C" >&6
36058 else
36062 ac_ext=cc
36063 ac_cpp='$CXXCPP $CPPFLAGS'
36064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36068 cat >conftest.$ac_ext <<_ACEOF
36069 #line $LINENO "configure"
36070 /* confdefs.h. */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h. */
36075 #include <math.h>
36077 main ()
36079 `for x in acosl asinl atanl \
36080 cosl sinl tanl \
36081 coshl sinhl tanhl; do echo "$x (0);"; done`
36083 return 0;
36085 _ACEOF
36086 rm -f conftest.$ac_objext
36087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36088 (eval $ac_compile) 2>&5
36089 ac_status=$?
36090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091 (exit $ac_status); } &&
36092 { ac_try='test -s conftest.$ac_objext'
36093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094 (eval $ac_try) 2>&5
36095 ac_status=$?
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); }; }; then
36098 glibcxx_cv_func_long_double_trig_use=yes
36099 else
36100 echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36103 glibcxx_cv_func_long_double_trig_use=no
36105 rm -f conftest.$ac_objext conftest.$ac_ext
36106 ac_ext=c
36107 ac_cpp='$CPP $CPPFLAGS'
36108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36114 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
36115 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
36116 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
36126 for ac_func in acosl asinl atanl \
36127 cosl sinl tanl \
36128 coshl sinhl tanhl
36130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36131 echo "$as_me:$LINENO: checking for $ac_func" >&5
36132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36133 if eval "test \"\${$as_ac_var+set}\" = set"; then
36134 echo $ECHO_N "(cached) $ECHO_C" >&6
36135 else
36136 if test x$gcc_no_link = xyes; then
36137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36139 { (exit 1); exit 1; }; }
36141 cat >conftest.$ac_ext <<_ACEOF
36142 #line $LINENO "configure"
36143 /* confdefs.h. */
36144 _ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h. */
36148 /* System header to define __stub macros and hopefully few prototypes,
36149 which can conflict with char $ac_func (); below.
36150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36151 <limits.h> exists even on freestanding compilers. */
36152 #ifdef __STDC__
36153 # include <limits.h>
36154 #else
36155 # include <assert.h>
36156 #endif
36157 /* Override any gcc2 internal prototype to avoid an error. */
36158 #ifdef __cplusplus
36159 extern "C"
36161 #endif
36162 /* We use char because int might match the return type of a gcc2
36163 builtin and then its argument prototype would still apply. */
36164 char $ac_func ();
36165 /* The GNU C library defines this for functions which it implements
36166 to always fail with ENOSYS. Some functions are actually named
36167 something starting with __ and the normal name is an alias. */
36168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36169 choke me
36170 #else
36171 char (*f) () = $ac_func;
36172 #endif
36173 #ifdef __cplusplus
36175 #endif
36178 main ()
36180 return f != $ac_func;
36182 return 0;
36184 _ACEOF
36185 rm -f conftest.$ac_objext conftest$ac_exeext
36186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36187 (eval $ac_link) 2>&5
36188 ac_status=$?
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); } &&
36191 { ac_try='test -s conftest$ac_exeext'
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36194 ac_status=$?
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; }; then
36197 eval "$as_ac_var=yes"
36198 else
36199 echo "$as_me: failed program was:" >&5
36200 sed 's/^/| /' conftest.$ac_ext >&5
36202 eval "$as_ac_var=no"
36204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36208 if test `eval echo '${'$as_ac_var'}'` = yes; then
36209 cat >>confdefs.h <<_ACEOF
36210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36211 _ACEOF
36214 done
36219 echo "$as_me:$LINENO: checking for long double round functions" >&5
36220 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
36221 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
36222 echo $ECHO_N "(cached) $ECHO_C" >&6
36223 else
36227 ac_ext=cc
36228 ac_cpp='$CXXCPP $CPPFLAGS'
36229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36233 cat >conftest.$ac_ext <<_ACEOF
36234 #line $LINENO "configure"
36235 /* confdefs.h. */
36236 _ACEOF
36237 cat confdefs.h >>conftest.$ac_ext
36238 cat >>conftest.$ac_ext <<_ACEOF
36239 /* end confdefs.h. */
36240 #include <math.h>
36242 main ()
36244 `for x in ceill floorl; do echo "$x (0);"; done`
36246 return 0;
36248 _ACEOF
36249 rm -f conftest.$ac_objext
36250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36251 (eval $ac_compile) 2>&5
36252 ac_status=$?
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); } &&
36255 { ac_try='test -s conftest.$ac_objext'
36256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257 (eval $ac_try) 2>&5
36258 ac_status=$?
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); }; }; then
36261 glibcxx_cv_func_long_double_round_use=yes
36262 else
36263 echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36266 glibcxx_cv_func_long_double_round_use=no
36268 rm -f conftest.$ac_objext conftest.$ac_ext
36269 ac_ext=c
36270 ac_cpp='$CPP $CPPFLAGS'
36271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36277 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
36278 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
36279 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36282 for ac_func in ceill floorl
36284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36285 echo "$as_me:$LINENO: checking for $ac_func" >&5
36286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36287 if eval "test \"\${$as_ac_var+set}\" = set"; then
36288 echo $ECHO_N "(cached) $ECHO_C" >&6
36289 else
36290 if test x$gcc_no_link = xyes; then
36291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36293 { (exit 1); exit 1; }; }
36295 cat >conftest.$ac_ext <<_ACEOF
36296 #line $LINENO "configure"
36297 /* confdefs.h. */
36298 _ACEOF
36299 cat confdefs.h >>conftest.$ac_ext
36300 cat >>conftest.$ac_ext <<_ACEOF
36301 /* end confdefs.h. */
36302 /* System header to define __stub macros and hopefully few prototypes,
36303 which can conflict with char $ac_func (); below.
36304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36305 <limits.h> exists even on freestanding compilers. */
36306 #ifdef __STDC__
36307 # include <limits.h>
36308 #else
36309 # include <assert.h>
36310 #endif
36311 /* Override any gcc2 internal prototype to avoid an error. */
36312 #ifdef __cplusplus
36313 extern "C"
36315 #endif
36316 /* We use char because int might match the return type of a gcc2
36317 builtin and then its argument prototype would still apply. */
36318 char $ac_func ();
36319 /* The GNU C library defines this for functions which it implements
36320 to always fail with ENOSYS. Some functions are actually named
36321 something starting with __ and the normal name is an alias. */
36322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36323 choke me
36324 #else
36325 char (*f) () = $ac_func;
36326 #endif
36327 #ifdef __cplusplus
36329 #endif
36332 main ()
36334 return f != $ac_func;
36336 return 0;
36338 _ACEOF
36339 rm -f conftest.$ac_objext conftest$ac_exeext
36340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36341 (eval $ac_link) 2>&5
36342 ac_status=$?
36343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36344 (exit $ac_status); } &&
36345 { ac_try='test -s conftest$ac_exeext'
36346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36347 (eval $ac_try) 2>&5
36348 ac_status=$?
36349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350 (exit $ac_status); }; }; then
36351 eval "$as_ac_var=yes"
36352 else
36353 echo "$as_me: failed program was:" >&5
36354 sed 's/^/| /' conftest.$ac_ext >&5
36356 eval "$as_ac_var=no"
36358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36362 if test `eval echo '${'$as_ac_var'}'` = yes; then
36363 cat >>confdefs.h <<_ACEOF
36364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36365 _ACEOF
36368 done
36374 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36375 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36376 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36377 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36378 echo $ECHO_N "(cached) $ECHO_C" >&6
36379 else
36383 ac_ext=cc
36384 ac_cpp='$CXXCPP $CPPFLAGS'
36385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36389 cat >conftest.$ac_ext <<_ACEOF
36390 #line $LINENO "configure"
36391 /* confdefs.h. */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 #include <math.h>
36397 #ifdef HAVE_IEEEFP_H
36398 #include <ieeefp.h>
36399 #endif
36402 main ()
36404 isnanl(0);
36406 return 0;
36408 _ACEOF
36409 rm -f conftest.$ac_objext
36410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36411 (eval $ac_compile) 2>&5
36412 ac_status=$?
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } &&
36415 { ac_try='test -s conftest.$ac_objext'
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36421 glibcxx_cv_func_isnanl_use=yes
36422 else
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 glibcxx_cv_func_isnanl_use=no
36428 rm -f conftest.$ac_objext conftest.$ac_ext
36429 ac_ext=c
36430 ac_cpp='$CPP $CPPFLAGS'
36431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36439 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36440 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36442 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36444 for ac_func in isnanl
36446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36447 echo "$as_me:$LINENO: checking for $ac_func" >&5
36448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36449 if eval "test \"\${$as_ac_var+set}\" = set"; then
36450 echo $ECHO_N "(cached) $ECHO_C" >&6
36451 else
36452 if test x$gcc_no_link = xyes; then
36453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36455 { (exit 1); exit 1; }; }
36457 cat >conftest.$ac_ext <<_ACEOF
36458 #line $LINENO "configure"
36459 /* confdefs.h. */
36460 _ACEOF
36461 cat confdefs.h >>conftest.$ac_ext
36462 cat >>conftest.$ac_ext <<_ACEOF
36463 /* end confdefs.h. */
36464 /* System header to define __stub macros and hopefully few prototypes,
36465 which can conflict with char $ac_func (); below.
36466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36467 <limits.h> exists even on freestanding compilers. */
36468 #ifdef __STDC__
36469 # include <limits.h>
36470 #else
36471 # include <assert.h>
36472 #endif
36473 /* Override any gcc2 internal prototype to avoid an error. */
36474 #ifdef __cplusplus
36475 extern "C"
36477 #endif
36478 /* We use char because int might match the return type of a gcc2
36479 builtin and then its argument prototype would still apply. */
36480 char $ac_func ();
36481 /* The GNU C library defines this for functions which it implements
36482 to always fail with ENOSYS. Some functions are actually named
36483 something starting with __ and the normal name is an alias. */
36484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36485 choke me
36486 #else
36487 char (*f) () = $ac_func;
36488 #endif
36489 #ifdef __cplusplus
36491 #endif
36494 main ()
36496 return f != $ac_func;
36498 return 0;
36500 _ACEOF
36501 rm -f conftest.$ac_objext conftest$ac_exeext
36502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36503 (eval $ac_link) 2>&5
36504 ac_status=$?
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); } &&
36507 { ac_try='test -s conftest$ac_exeext'
36508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36509 (eval $ac_try) 2>&5
36510 ac_status=$?
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); }; }; then
36513 eval "$as_ac_var=yes"
36514 else
36515 echo "$as_me: failed program was:" >&5
36516 sed 's/^/| /' conftest.$ac_ext >&5
36518 eval "$as_ac_var=no"
36520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36524 if test `eval echo '${'$as_ac_var'}'` = yes; then
36525 cat >>confdefs.h <<_ACEOF
36526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36527 _ACEOF
36530 done
36532 else
36534 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36535 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36536 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36537 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36538 echo $ECHO_N "(cached) $ECHO_C" >&6
36539 else
36543 ac_ext=cc
36544 ac_cpp='$CXXCPP $CPPFLAGS'
36545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36549 cat >conftest.$ac_ext <<_ACEOF
36550 #line $LINENO "configure"
36551 /* confdefs.h. */
36552 _ACEOF
36553 cat confdefs.h >>conftest.$ac_ext
36554 cat >>conftest.$ac_ext <<_ACEOF
36555 /* end confdefs.h. */
36556 #include <math.h>
36557 #ifdef HAVE_IEEEFP_H
36558 #include <ieeefp.h>
36559 #endif
36562 main ()
36564 _isnanl(0);
36566 return 0;
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36571 (eval $ac_compile) 2>&5
36572 ac_status=$?
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); } &&
36575 { ac_try='test -s conftest.$ac_objext'
36576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577 (eval $ac_try) 2>&5
36578 ac_status=$?
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); }; }; then
36581 glibcxx_cv_func__isnanl_use=yes
36582 else
36583 echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36586 glibcxx_cv_func__isnanl_use=no
36588 rm -f conftest.$ac_objext conftest.$ac_ext
36589 ac_ext=c
36590 ac_cpp='$CPP $CPPFLAGS'
36591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36599 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36600 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36602 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36604 for ac_func in _isnanl
36606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36607 echo "$as_me:$LINENO: checking for $ac_func" >&5
36608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36609 if eval "test \"\${$as_ac_var+set}\" = set"; then
36610 echo $ECHO_N "(cached) $ECHO_C" >&6
36611 else
36612 if test x$gcc_no_link = xyes; then
36613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36615 { (exit 1); exit 1; }; }
36617 cat >conftest.$ac_ext <<_ACEOF
36618 #line $LINENO "configure"
36619 /* confdefs.h. */
36620 _ACEOF
36621 cat confdefs.h >>conftest.$ac_ext
36622 cat >>conftest.$ac_ext <<_ACEOF
36623 /* end confdefs.h. */
36624 /* System header to define __stub macros and hopefully few prototypes,
36625 which can conflict with char $ac_func (); below.
36626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36627 <limits.h> exists even on freestanding compilers. */
36628 #ifdef __STDC__
36629 # include <limits.h>
36630 #else
36631 # include <assert.h>
36632 #endif
36633 /* Override any gcc2 internal prototype to avoid an error. */
36634 #ifdef __cplusplus
36635 extern "C"
36637 #endif
36638 /* We use char because int might match the return type of a gcc2
36639 builtin and then its argument prototype would still apply. */
36640 char $ac_func ();
36641 /* The GNU C library defines this for functions which it implements
36642 to always fail with ENOSYS. Some functions are actually named
36643 something starting with __ and the normal name is an alias. */
36644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36645 choke me
36646 #else
36647 char (*f) () = $ac_func;
36648 #endif
36649 #ifdef __cplusplus
36651 #endif
36654 main ()
36656 return f != $ac_func;
36658 return 0;
36660 _ACEOF
36661 rm -f conftest.$ac_objext conftest$ac_exeext
36662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36663 (eval $ac_link) 2>&5
36664 ac_status=$?
36665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36666 (exit $ac_status); } &&
36667 { ac_try='test -s conftest$ac_exeext'
36668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36669 (eval $ac_try) 2>&5
36670 ac_status=$?
36671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672 (exit $ac_status); }; }; then
36673 eval "$as_ac_var=yes"
36674 else
36675 echo "$as_me: failed program was:" >&5
36676 sed 's/^/| /' conftest.$ac_ext >&5
36678 eval "$as_ac_var=no"
36680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36684 if test `eval echo '${'$as_ac_var'}'` = yes; then
36685 cat >>confdefs.h <<_ACEOF
36686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36687 _ACEOF
36690 done
36697 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36698 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36699 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36700 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36701 echo $ECHO_N "(cached) $ECHO_C" >&6
36702 else
36706 ac_ext=cc
36707 ac_cpp='$CXXCPP $CPPFLAGS'
36708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36712 cat >conftest.$ac_ext <<_ACEOF
36713 #line $LINENO "configure"
36714 /* confdefs.h. */
36715 _ACEOF
36716 cat confdefs.h >>conftest.$ac_ext
36717 cat >>conftest.$ac_ext <<_ACEOF
36718 /* end confdefs.h. */
36719 #include <math.h>
36720 #ifdef HAVE_IEEEFP_H
36721 #include <ieeefp.h>
36722 #endif
36725 main ()
36727 isinfl(0);
36729 return 0;
36731 _ACEOF
36732 rm -f conftest.$ac_objext
36733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36734 (eval $ac_compile) 2>&5
36735 ac_status=$?
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); } &&
36738 { ac_try='test -s conftest.$ac_objext'
36739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36740 (eval $ac_try) 2>&5
36741 ac_status=$?
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); }; }; then
36744 glibcxx_cv_func_isinfl_use=yes
36745 else
36746 echo "$as_me: failed program was:" >&5
36747 sed 's/^/| /' conftest.$ac_ext >&5
36749 glibcxx_cv_func_isinfl_use=no
36751 rm -f conftest.$ac_objext conftest.$ac_ext
36752 ac_ext=c
36753 ac_cpp='$CPP $CPPFLAGS'
36754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36762 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36763 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36765 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36767 for ac_func in isinfl
36769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36770 echo "$as_me:$LINENO: checking for $ac_func" >&5
36771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36772 if eval "test \"\${$as_ac_var+set}\" = set"; then
36773 echo $ECHO_N "(cached) $ECHO_C" >&6
36774 else
36775 if test x$gcc_no_link = xyes; then
36776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36778 { (exit 1); exit 1; }; }
36780 cat >conftest.$ac_ext <<_ACEOF
36781 #line $LINENO "configure"
36782 /* confdefs.h. */
36783 _ACEOF
36784 cat confdefs.h >>conftest.$ac_ext
36785 cat >>conftest.$ac_ext <<_ACEOF
36786 /* end confdefs.h. */
36787 /* System header to define __stub macros and hopefully few prototypes,
36788 which can conflict with char $ac_func (); below.
36789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36790 <limits.h> exists even on freestanding compilers. */
36791 #ifdef __STDC__
36792 # include <limits.h>
36793 #else
36794 # include <assert.h>
36795 #endif
36796 /* Override any gcc2 internal prototype to avoid an error. */
36797 #ifdef __cplusplus
36798 extern "C"
36800 #endif
36801 /* We use char because int might match the return type of a gcc2
36802 builtin and then its argument prototype would still apply. */
36803 char $ac_func ();
36804 /* The GNU C library defines this for functions which it implements
36805 to always fail with ENOSYS. Some functions are actually named
36806 something starting with __ and the normal name is an alias. */
36807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36808 choke me
36809 #else
36810 char (*f) () = $ac_func;
36811 #endif
36812 #ifdef __cplusplus
36814 #endif
36817 main ()
36819 return f != $ac_func;
36821 return 0;
36823 _ACEOF
36824 rm -f conftest.$ac_objext conftest$ac_exeext
36825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36826 (eval $ac_link) 2>&5
36827 ac_status=$?
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } &&
36830 { ac_try='test -s conftest$ac_exeext'
36831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832 (eval $ac_try) 2>&5
36833 ac_status=$?
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); }; }; then
36836 eval "$as_ac_var=yes"
36837 else
36838 echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36841 eval "$as_ac_var=no"
36843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36847 if test `eval echo '${'$as_ac_var'}'` = yes; then
36848 cat >>confdefs.h <<_ACEOF
36849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36850 _ACEOF
36853 done
36855 else
36857 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36858 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36859 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36860 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36861 echo $ECHO_N "(cached) $ECHO_C" >&6
36862 else
36866 ac_ext=cc
36867 ac_cpp='$CXXCPP $CPPFLAGS'
36868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36872 cat >conftest.$ac_ext <<_ACEOF
36873 #line $LINENO "configure"
36874 /* confdefs.h. */
36875 _ACEOF
36876 cat confdefs.h >>conftest.$ac_ext
36877 cat >>conftest.$ac_ext <<_ACEOF
36878 /* end confdefs.h. */
36879 #include <math.h>
36880 #ifdef HAVE_IEEEFP_H
36881 #include <ieeefp.h>
36882 #endif
36885 main ()
36887 _isinfl(0);
36889 return 0;
36891 _ACEOF
36892 rm -f conftest.$ac_objext
36893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36894 (eval $ac_compile) 2>&5
36895 ac_status=$?
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); } &&
36898 { ac_try='test -s conftest.$ac_objext'
36899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900 (eval $ac_try) 2>&5
36901 ac_status=$?
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); }; }; then
36904 glibcxx_cv_func__isinfl_use=yes
36905 else
36906 echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36909 glibcxx_cv_func__isinfl_use=no
36911 rm -f conftest.$ac_objext conftest.$ac_ext
36912 ac_ext=c
36913 ac_cpp='$CPP $CPPFLAGS'
36914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36922 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36923 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36925 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36927 for ac_func in _isinfl
36929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36930 echo "$as_me:$LINENO: checking for $ac_func" >&5
36931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36932 if eval "test \"\${$as_ac_var+set}\" = set"; then
36933 echo $ECHO_N "(cached) $ECHO_C" >&6
36934 else
36935 if test x$gcc_no_link = xyes; then
36936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36938 { (exit 1); exit 1; }; }
36940 cat >conftest.$ac_ext <<_ACEOF
36941 #line $LINENO "configure"
36942 /* confdefs.h. */
36943 _ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 /* System header to define __stub macros and hopefully few prototypes,
36948 which can conflict with char $ac_func (); below.
36949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36950 <limits.h> exists even on freestanding compilers. */
36951 #ifdef __STDC__
36952 # include <limits.h>
36953 #else
36954 # include <assert.h>
36955 #endif
36956 /* Override any gcc2 internal prototype to avoid an error. */
36957 #ifdef __cplusplus
36958 extern "C"
36960 #endif
36961 /* We use char because int might match the return type of a gcc2
36962 builtin and then its argument prototype would still apply. */
36963 char $ac_func ();
36964 /* The GNU C library defines this for functions which it implements
36965 to always fail with ENOSYS. Some functions are actually named
36966 something starting with __ and the normal name is an alias. */
36967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36968 choke me
36969 #else
36970 char (*f) () = $ac_func;
36971 #endif
36972 #ifdef __cplusplus
36974 #endif
36977 main ()
36979 return f != $ac_func;
36981 return 0;
36983 _ACEOF
36984 rm -f conftest.$ac_objext conftest$ac_exeext
36985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36986 (eval $ac_link) 2>&5
36987 ac_status=$?
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); } &&
36990 { ac_try='test -s conftest$ac_exeext'
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36993 ac_status=$?
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; }; then
36996 eval "$as_ac_var=yes"
36997 else
36998 echo "$as_me: failed program was:" >&5
36999 sed 's/^/| /' conftest.$ac_ext >&5
37001 eval "$as_ac_var=no"
37003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37007 if test `eval echo '${'$as_ac_var'}'` = yes; then
37008 cat >>confdefs.h <<_ACEOF
37009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37010 _ACEOF
37013 done
37020 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
37021 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
37022 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
37023 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
37024 echo $ECHO_N "(cached) $ECHO_C" >&6
37025 else
37029 ac_ext=cc
37030 ac_cpp='$CXXCPP $CPPFLAGS'
37031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37035 cat >conftest.$ac_ext <<_ACEOF
37036 #line $LINENO "configure"
37037 /* confdefs.h. */
37038 _ACEOF
37039 cat confdefs.h >>conftest.$ac_ext
37040 cat >>conftest.$ac_ext <<_ACEOF
37041 /* end confdefs.h. */
37042 #include <math.h>
37044 main ()
37046 copysignl(0, 0);
37048 return 0;
37050 _ACEOF
37051 rm -f conftest.$ac_objext
37052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37053 (eval $ac_compile) 2>&5
37054 ac_status=$?
37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); } &&
37057 { ac_try='test -s conftest.$ac_objext'
37058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059 (eval $ac_try) 2>&5
37060 ac_status=$?
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); }; }; then
37063 glibcxx_cv_func_copysignl_use=yes
37064 else
37065 echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37068 glibcxx_cv_func_copysignl_use=no
37070 rm -f conftest.$ac_objext conftest.$ac_ext
37071 ac_ext=c
37072 ac_cpp='$CPP $CPPFLAGS'
37073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37081 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
37082 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
37084 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
37086 for ac_func in copysignl
37088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37089 echo "$as_me:$LINENO: checking for $ac_func" >&5
37090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37091 if eval "test \"\${$as_ac_var+set}\" = set"; then
37092 echo $ECHO_N "(cached) $ECHO_C" >&6
37093 else
37094 if test x$gcc_no_link = xyes; then
37095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37097 { (exit 1); exit 1; }; }
37099 cat >conftest.$ac_ext <<_ACEOF
37100 #line $LINENO "configure"
37101 /* confdefs.h. */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 /* System header to define __stub macros and hopefully few prototypes,
37107 which can conflict with char $ac_func (); below.
37108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37109 <limits.h> exists even on freestanding compilers. */
37110 #ifdef __STDC__
37111 # include <limits.h>
37112 #else
37113 # include <assert.h>
37114 #endif
37115 /* Override any gcc2 internal prototype to avoid an error. */
37116 #ifdef __cplusplus
37117 extern "C"
37119 #endif
37120 /* We use char because int might match the return type of a gcc2
37121 builtin and then its argument prototype would still apply. */
37122 char $ac_func ();
37123 /* The GNU C library defines this for functions which it implements
37124 to always fail with ENOSYS. Some functions are actually named
37125 something starting with __ and the normal name is an alias. */
37126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37127 choke me
37128 #else
37129 char (*f) () = $ac_func;
37130 #endif
37131 #ifdef __cplusplus
37133 #endif
37136 main ()
37138 return f != $ac_func;
37140 return 0;
37142 _ACEOF
37143 rm -f conftest.$ac_objext conftest$ac_exeext
37144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37145 (eval $ac_link) 2>&5
37146 ac_status=$?
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); } &&
37149 { ac_try='test -s conftest$ac_exeext'
37150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37151 (eval $ac_try) 2>&5
37152 ac_status=$?
37153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154 (exit $ac_status); }; }; then
37155 eval "$as_ac_var=yes"
37156 else
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37160 eval "$as_ac_var=no"
37162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37166 if test `eval echo '${'$as_ac_var'}'` = yes; then
37167 cat >>confdefs.h <<_ACEOF
37168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37169 _ACEOF
37172 done
37174 else
37176 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
37177 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
37178 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
37179 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37181 else
37185 ac_ext=cc
37186 ac_cpp='$CXXCPP $CPPFLAGS'
37187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37191 cat >conftest.$ac_ext <<_ACEOF
37192 #line $LINENO "configure"
37193 /* confdefs.h. */
37194 _ACEOF
37195 cat confdefs.h >>conftest.$ac_ext
37196 cat >>conftest.$ac_ext <<_ACEOF
37197 /* end confdefs.h. */
37198 #include <math.h>
37200 main ()
37202 _copysignl(0, 0);
37204 return 0;
37206 _ACEOF
37207 rm -f conftest.$ac_objext
37208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37209 (eval $ac_compile) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); } &&
37213 { ac_try='test -s conftest.$ac_objext'
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 glibcxx_cv_func__copysignl_use=yes
37220 else
37221 echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37224 glibcxx_cv_func__copysignl_use=no
37226 rm -f conftest.$ac_objext conftest.$ac_ext
37227 ac_ext=c
37228 ac_cpp='$CPP $CPPFLAGS'
37229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37237 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
37238 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
37240 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
37242 for ac_func in _copysignl
37244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37245 echo "$as_me:$LINENO: checking for $ac_func" >&5
37246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37247 if eval "test \"\${$as_ac_var+set}\" = set"; then
37248 echo $ECHO_N "(cached) $ECHO_C" >&6
37249 else
37250 if test x$gcc_no_link = xyes; then
37251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37253 { (exit 1); exit 1; }; }
37255 cat >conftest.$ac_ext <<_ACEOF
37256 #line $LINENO "configure"
37257 /* confdefs.h. */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h. */
37262 /* System header to define __stub macros and hopefully few prototypes,
37263 which can conflict with char $ac_func (); below.
37264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37265 <limits.h> exists even on freestanding compilers. */
37266 #ifdef __STDC__
37267 # include <limits.h>
37268 #else
37269 # include <assert.h>
37270 #endif
37271 /* Override any gcc2 internal prototype to avoid an error. */
37272 #ifdef __cplusplus
37273 extern "C"
37275 #endif
37276 /* We use char because int might match the return type of a gcc2
37277 builtin and then its argument prototype would still apply. */
37278 char $ac_func ();
37279 /* The GNU C library defines this for functions which it implements
37280 to always fail with ENOSYS. Some functions are actually named
37281 something starting with __ and the normal name is an alias. */
37282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37283 choke me
37284 #else
37285 char (*f) () = $ac_func;
37286 #endif
37287 #ifdef __cplusplus
37289 #endif
37292 main ()
37294 return f != $ac_func;
37296 return 0;
37298 _ACEOF
37299 rm -f conftest.$ac_objext conftest$ac_exeext
37300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37301 (eval $ac_link) 2>&5
37302 ac_status=$?
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); } &&
37305 { ac_try='test -s conftest$ac_exeext'
37306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307 (eval $ac_try) 2>&5
37308 ac_status=$?
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); }; }; then
37311 eval "$as_ac_var=yes"
37312 else
37313 echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37316 eval "$as_ac_var=no"
37318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37322 if test `eval echo '${'$as_ac_var'}'` = yes; then
37323 cat >>confdefs.h <<_ACEOF
37324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37325 _ACEOF
37328 done
37335 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37336 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37337 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37338 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37339 echo $ECHO_N "(cached) $ECHO_C" >&6
37340 else
37344 ac_ext=cc
37345 ac_cpp='$CXXCPP $CPPFLAGS'
37346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37350 cat >conftest.$ac_ext <<_ACEOF
37351 #line $LINENO "configure"
37352 /* confdefs.h. */
37353 _ACEOF
37354 cat confdefs.h >>conftest.$ac_ext
37355 cat >>conftest.$ac_ext <<_ACEOF
37356 /* end confdefs.h. */
37357 #include <math.h>
37359 main ()
37361 atan2l(0, 0);
37363 return 0;
37365 _ACEOF
37366 rm -f conftest.$ac_objext
37367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37368 (eval $ac_compile) 2>&5
37369 ac_status=$?
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } &&
37372 { ac_try='test -s conftest.$ac_objext'
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37375 ac_status=$?
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 glibcxx_cv_func_atan2l_use=yes
37379 else
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 glibcxx_cv_func_atan2l_use=no
37385 rm -f conftest.$ac_objext conftest.$ac_ext
37386 ac_ext=c
37387 ac_cpp='$CPP $CPPFLAGS'
37388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37396 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37397 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37399 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37401 for ac_func in atan2l
37403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37404 echo "$as_me:$LINENO: checking for $ac_func" >&5
37405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37406 if eval "test \"\${$as_ac_var+set}\" = set"; then
37407 echo $ECHO_N "(cached) $ECHO_C" >&6
37408 else
37409 if test x$gcc_no_link = xyes; then
37410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37412 { (exit 1); exit 1; }; }
37414 cat >conftest.$ac_ext <<_ACEOF
37415 #line $LINENO "configure"
37416 /* confdefs.h. */
37417 _ACEOF
37418 cat confdefs.h >>conftest.$ac_ext
37419 cat >>conftest.$ac_ext <<_ACEOF
37420 /* end confdefs.h. */
37421 /* System header to define __stub macros and hopefully few prototypes,
37422 which can conflict with char $ac_func (); below.
37423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37424 <limits.h> exists even on freestanding compilers. */
37425 #ifdef __STDC__
37426 # include <limits.h>
37427 #else
37428 # include <assert.h>
37429 #endif
37430 /* Override any gcc2 internal prototype to avoid an error. */
37431 #ifdef __cplusplus
37432 extern "C"
37434 #endif
37435 /* We use char because int might match the return type of a gcc2
37436 builtin and then its argument prototype would still apply. */
37437 char $ac_func ();
37438 /* The GNU C library defines this for functions which it implements
37439 to always fail with ENOSYS. Some functions are actually named
37440 something starting with __ and the normal name is an alias. */
37441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37442 choke me
37443 #else
37444 char (*f) () = $ac_func;
37445 #endif
37446 #ifdef __cplusplus
37448 #endif
37451 main ()
37453 return f != $ac_func;
37455 return 0;
37457 _ACEOF
37458 rm -f conftest.$ac_objext conftest$ac_exeext
37459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37460 (eval $ac_link) 2>&5
37461 ac_status=$?
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); } &&
37464 { ac_try='test -s conftest$ac_exeext'
37465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37466 (eval $ac_try) 2>&5
37467 ac_status=$?
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); }; }; then
37470 eval "$as_ac_var=yes"
37471 else
37472 echo "$as_me: failed program was:" >&5
37473 sed 's/^/| /' conftest.$ac_ext >&5
37475 eval "$as_ac_var=no"
37477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37481 if test `eval echo '${'$as_ac_var'}'` = yes; then
37482 cat >>confdefs.h <<_ACEOF
37483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37484 _ACEOF
37487 done
37489 else
37491 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37492 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37493 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37494 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37495 echo $ECHO_N "(cached) $ECHO_C" >&6
37496 else
37500 ac_ext=cc
37501 ac_cpp='$CXXCPP $CPPFLAGS'
37502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37506 cat >conftest.$ac_ext <<_ACEOF
37507 #line $LINENO "configure"
37508 /* confdefs.h. */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h. */
37513 #include <math.h>
37515 main ()
37517 _atan2l(0, 0);
37519 return 0;
37521 _ACEOF
37522 rm -f conftest.$ac_objext
37523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37524 (eval $ac_compile) 2>&5
37525 ac_status=$?
37526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); } &&
37528 { ac_try='test -s conftest.$ac_objext'
37529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530 (eval $ac_try) 2>&5
37531 ac_status=$?
37532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); }; }; then
37534 glibcxx_cv_func__atan2l_use=yes
37535 else
37536 echo "$as_me: failed program was:" >&5
37537 sed 's/^/| /' conftest.$ac_ext >&5
37539 glibcxx_cv_func__atan2l_use=no
37541 rm -f conftest.$ac_objext conftest.$ac_ext
37542 ac_ext=c
37543 ac_cpp='$CPP $CPPFLAGS'
37544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37552 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37553 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37555 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37557 for ac_func in _atan2l
37559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37560 echo "$as_me:$LINENO: checking for $ac_func" >&5
37561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37562 if eval "test \"\${$as_ac_var+set}\" = set"; then
37563 echo $ECHO_N "(cached) $ECHO_C" >&6
37564 else
37565 if test x$gcc_no_link = xyes; then
37566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37568 { (exit 1); exit 1; }; }
37570 cat >conftest.$ac_ext <<_ACEOF
37571 #line $LINENO "configure"
37572 /* confdefs.h. */
37573 _ACEOF
37574 cat confdefs.h >>conftest.$ac_ext
37575 cat >>conftest.$ac_ext <<_ACEOF
37576 /* end confdefs.h. */
37577 /* System header to define __stub macros and hopefully few prototypes,
37578 which can conflict with char $ac_func (); below.
37579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37580 <limits.h> exists even on freestanding compilers. */
37581 #ifdef __STDC__
37582 # include <limits.h>
37583 #else
37584 # include <assert.h>
37585 #endif
37586 /* Override any gcc2 internal prototype to avoid an error. */
37587 #ifdef __cplusplus
37588 extern "C"
37590 #endif
37591 /* We use char because int might match the return type of a gcc2
37592 builtin and then its argument prototype would still apply. */
37593 char $ac_func ();
37594 /* The GNU C library defines this for functions which it implements
37595 to always fail with ENOSYS. Some functions are actually named
37596 something starting with __ and the normal name is an alias. */
37597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37598 choke me
37599 #else
37600 char (*f) () = $ac_func;
37601 #endif
37602 #ifdef __cplusplus
37604 #endif
37607 main ()
37609 return f != $ac_func;
37611 return 0;
37613 _ACEOF
37614 rm -f conftest.$ac_objext conftest$ac_exeext
37615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37616 (eval $ac_link) 2>&5
37617 ac_status=$?
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); } &&
37620 { ac_try='test -s conftest$ac_exeext'
37621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37622 (eval $ac_try) 2>&5
37623 ac_status=$?
37624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625 (exit $ac_status); }; }; then
37626 eval "$as_ac_var=yes"
37627 else
37628 echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37631 eval "$as_ac_var=no"
37633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37637 if test `eval echo '${'$as_ac_var'}'` = yes; then
37638 cat >>confdefs.h <<_ACEOF
37639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37640 _ACEOF
37643 done
37650 echo "$as_me:$LINENO: checking for expl declaration" >&5
37651 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37652 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37653 if test "${glibcxx_cv_func_expl_use+set}" = set; then
37654 echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37659 ac_ext=cc
37660 ac_cpp='$CXXCPP $CPPFLAGS'
37661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37665 cat >conftest.$ac_ext <<_ACEOF
37666 #line $LINENO "configure"
37667 /* confdefs.h. */
37668 _ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h. */
37672 #include <math.h>
37673 #ifdef HAVE_IEEEFP_H
37674 #include <ieeefp.h>
37675 #endif
37678 main ()
37680 expl(0);
37682 return 0;
37684 _ACEOF
37685 rm -f conftest.$ac_objext
37686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37687 (eval $ac_compile) 2>&5
37688 ac_status=$?
37689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690 (exit $ac_status); } &&
37691 { ac_try='test -s conftest.$ac_objext'
37692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37693 (eval $ac_try) 2>&5
37694 ac_status=$?
37695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); }; }; then
37697 glibcxx_cv_func_expl_use=yes
37698 else
37699 echo "$as_me: failed program was:" >&5
37700 sed 's/^/| /' conftest.$ac_ext >&5
37702 glibcxx_cv_func_expl_use=no
37704 rm -f conftest.$ac_objext conftest.$ac_ext
37705 ac_ext=c
37706 ac_cpp='$CPP $CPPFLAGS'
37707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37715 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37716 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37718 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37720 for ac_func in expl
37722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37723 echo "$as_me:$LINENO: checking for $ac_func" >&5
37724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37725 if eval "test \"\${$as_ac_var+set}\" = set"; then
37726 echo $ECHO_N "(cached) $ECHO_C" >&6
37727 else
37728 if test x$gcc_no_link = xyes; then
37729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37731 { (exit 1); exit 1; }; }
37733 cat >conftest.$ac_ext <<_ACEOF
37734 #line $LINENO "configure"
37735 /* confdefs.h. */
37736 _ACEOF
37737 cat confdefs.h >>conftest.$ac_ext
37738 cat >>conftest.$ac_ext <<_ACEOF
37739 /* end confdefs.h. */
37740 /* System header to define __stub macros and hopefully few prototypes,
37741 which can conflict with char $ac_func (); below.
37742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37743 <limits.h> exists even on freestanding compilers. */
37744 #ifdef __STDC__
37745 # include <limits.h>
37746 #else
37747 # include <assert.h>
37748 #endif
37749 /* Override any gcc2 internal prototype to avoid an error. */
37750 #ifdef __cplusplus
37751 extern "C"
37753 #endif
37754 /* We use char because int might match the return type of a gcc2
37755 builtin and then its argument prototype would still apply. */
37756 char $ac_func ();
37757 /* The GNU C library defines this for functions which it implements
37758 to always fail with ENOSYS. Some functions are actually named
37759 something starting with __ and the normal name is an alias. */
37760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37761 choke me
37762 #else
37763 char (*f) () = $ac_func;
37764 #endif
37765 #ifdef __cplusplus
37767 #endif
37770 main ()
37772 return f != $ac_func;
37774 return 0;
37776 _ACEOF
37777 rm -f conftest.$ac_objext conftest$ac_exeext
37778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37779 (eval $ac_link) 2>&5
37780 ac_status=$?
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); } &&
37783 { ac_try='test -s conftest$ac_exeext'
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; }; then
37789 eval "$as_ac_var=yes"
37790 else
37791 echo "$as_me: failed program was:" >&5
37792 sed 's/^/| /' conftest.$ac_ext >&5
37794 eval "$as_ac_var=no"
37796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37800 if test `eval echo '${'$as_ac_var'}'` = yes; then
37801 cat >>confdefs.h <<_ACEOF
37802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37803 _ACEOF
37806 done
37808 else
37810 echo "$as_me:$LINENO: checking for _expl declaration" >&5
37811 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37812 if test x${glibcxx_cv_func__expl_use+set} != xset; then
37813 if test "${glibcxx_cv_func__expl_use+set}" = set; then
37814 echo $ECHO_N "(cached) $ECHO_C" >&6
37815 else
37819 ac_ext=cc
37820 ac_cpp='$CXXCPP $CPPFLAGS'
37821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37825 cat >conftest.$ac_ext <<_ACEOF
37826 #line $LINENO "configure"
37827 /* confdefs.h. */
37828 _ACEOF
37829 cat confdefs.h >>conftest.$ac_ext
37830 cat >>conftest.$ac_ext <<_ACEOF
37831 /* end confdefs.h. */
37832 #include <math.h>
37833 #ifdef HAVE_IEEEFP_H
37834 #include <ieeefp.h>
37835 #endif
37838 main ()
37840 _expl(0);
37842 return 0;
37844 _ACEOF
37845 rm -f conftest.$ac_objext
37846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37847 (eval $ac_compile) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); } &&
37851 { ac_try='test -s conftest.$ac_objext'
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853 (eval $ac_try) 2>&5
37854 ac_status=$?
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); }; }; then
37857 glibcxx_cv_func__expl_use=yes
37858 else
37859 echo "$as_me: failed program was:" >&5
37860 sed 's/^/| /' conftest.$ac_ext >&5
37862 glibcxx_cv_func__expl_use=no
37864 rm -f conftest.$ac_objext conftest.$ac_ext
37865 ac_ext=c
37866 ac_cpp='$CPP $CPPFLAGS'
37867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37875 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37876 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37878 if test x$glibcxx_cv_func__expl_use = x"yes"; then
37880 for ac_func in _expl
37882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37883 echo "$as_me:$LINENO: checking for $ac_func" >&5
37884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37885 if eval "test \"\${$as_ac_var+set}\" = set"; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
37887 else
37888 if test x$gcc_no_link = xyes; then
37889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37891 { (exit 1); exit 1; }; }
37893 cat >conftest.$ac_ext <<_ACEOF
37894 #line $LINENO "configure"
37895 /* confdefs.h. */
37896 _ACEOF
37897 cat confdefs.h >>conftest.$ac_ext
37898 cat >>conftest.$ac_ext <<_ACEOF
37899 /* end confdefs.h. */
37900 /* System header to define __stub macros and hopefully few prototypes,
37901 which can conflict with char $ac_func (); below.
37902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37903 <limits.h> exists even on freestanding compilers. */
37904 #ifdef __STDC__
37905 # include <limits.h>
37906 #else
37907 # include <assert.h>
37908 #endif
37909 /* Override any gcc2 internal prototype to avoid an error. */
37910 #ifdef __cplusplus
37911 extern "C"
37913 #endif
37914 /* We use char because int might match the return type of a gcc2
37915 builtin and then its argument prototype would still apply. */
37916 char $ac_func ();
37917 /* The GNU C library defines this for functions which it implements
37918 to always fail with ENOSYS. Some functions are actually named
37919 something starting with __ and the normal name is an alias. */
37920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37921 choke me
37922 #else
37923 char (*f) () = $ac_func;
37924 #endif
37925 #ifdef __cplusplus
37927 #endif
37930 main ()
37932 return f != $ac_func;
37934 return 0;
37936 _ACEOF
37937 rm -f conftest.$ac_objext conftest$ac_exeext
37938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37939 (eval $ac_link) 2>&5
37940 ac_status=$?
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } &&
37943 { ac_try='test -s conftest$ac_exeext'
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37946 ac_status=$?
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; }; then
37949 eval "$as_ac_var=yes"
37950 else
37951 echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37954 eval "$as_ac_var=no"
37956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37960 if test `eval echo '${'$as_ac_var'}'` = yes; then
37961 cat >>confdefs.h <<_ACEOF
37962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37963 _ACEOF
37966 done
37973 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37974 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37975 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37976 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37977 echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37982 ac_ext=cc
37983 ac_cpp='$CXXCPP $CPPFLAGS'
37984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37988 cat >conftest.$ac_ext <<_ACEOF
37989 #line $LINENO "configure"
37990 /* confdefs.h. */
37991 _ACEOF
37992 cat confdefs.h >>conftest.$ac_ext
37993 cat >>conftest.$ac_ext <<_ACEOF
37994 /* end confdefs.h. */
37995 #include <math.h>
37996 #ifdef HAVE_IEEEFP_H
37997 #include <ieeefp.h>
37998 #endif
38001 main ()
38003 fabsl(0);
38005 return 0;
38007 _ACEOF
38008 rm -f conftest.$ac_objext
38009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38010 (eval $ac_compile) 2>&5
38011 ac_status=$?
38012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38013 (exit $ac_status); } &&
38014 { ac_try='test -s conftest.$ac_objext'
38015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38016 (eval $ac_try) 2>&5
38017 ac_status=$?
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); }; }; then
38020 glibcxx_cv_func_fabsl_use=yes
38021 else
38022 echo "$as_me: failed program was:" >&5
38023 sed 's/^/| /' conftest.$ac_ext >&5
38025 glibcxx_cv_func_fabsl_use=no
38027 rm -f conftest.$ac_objext conftest.$ac_ext
38028 ac_ext=c
38029 ac_cpp='$CPP $CPPFLAGS'
38030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38038 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
38039 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
38041 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
38043 for ac_func in fabsl
38045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38046 echo "$as_me:$LINENO: checking for $ac_func" >&5
38047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38048 if eval "test \"\${$as_ac_var+set}\" = set"; then
38049 echo $ECHO_N "(cached) $ECHO_C" >&6
38050 else
38051 if test x$gcc_no_link = xyes; then
38052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38054 { (exit 1); exit 1; }; }
38056 cat >conftest.$ac_ext <<_ACEOF
38057 #line $LINENO "configure"
38058 /* confdefs.h. */
38059 _ACEOF
38060 cat confdefs.h >>conftest.$ac_ext
38061 cat >>conftest.$ac_ext <<_ACEOF
38062 /* end confdefs.h. */
38063 /* System header to define __stub macros and hopefully few prototypes,
38064 which can conflict with char $ac_func (); below.
38065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38066 <limits.h> exists even on freestanding compilers. */
38067 #ifdef __STDC__
38068 # include <limits.h>
38069 #else
38070 # include <assert.h>
38071 #endif
38072 /* Override any gcc2 internal prototype to avoid an error. */
38073 #ifdef __cplusplus
38074 extern "C"
38076 #endif
38077 /* We use char because int might match the return type of a gcc2
38078 builtin and then its argument prototype would still apply. */
38079 char $ac_func ();
38080 /* The GNU C library defines this for functions which it implements
38081 to always fail with ENOSYS. Some functions are actually named
38082 something starting with __ and the normal name is an alias. */
38083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38084 choke me
38085 #else
38086 char (*f) () = $ac_func;
38087 #endif
38088 #ifdef __cplusplus
38090 #endif
38093 main ()
38095 return f != $ac_func;
38097 return 0;
38099 _ACEOF
38100 rm -f conftest.$ac_objext conftest$ac_exeext
38101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38102 (eval $ac_link) 2>&5
38103 ac_status=$?
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); } &&
38106 { ac_try='test -s conftest$ac_exeext'
38107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38108 (eval $ac_try) 2>&5
38109 ac_status=$?
38110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111 (exit $ac_status); }; }; then
38112 eval "$as_ac_var=yes"
38113 else
38114 echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38117 eval "$as_ac_var=no"
38119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38123 if test `eval echo '${'$as_ac_var'}'` = yes; then
38124 cat >>confdefs.h <<_ACEOF
38125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38126 _ACEOF
38129 done
38131 else
38133 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
38134 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
38135 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
38136 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
38137 echo $ECHO_N "(cached) $ECHO_C" >&6
38138 else
38142 ac_ext=cc
38143 ac_cpp='$CXXCPP $CPPFLAGS'
38144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38148 cat >conftest.$ac_ext <<_ACEOF
38149 #line $LINENO "configure"
38150 /* confdefs.h. */
38151 _ACEOF
38152 cat confdefs.h >>conftest.$ac_ext
38153 cat >>conftest.$ac_ext <<_ACEOF
38154 /* end confdefs.h. */
38155 #include <math.h>
38156 #ifdef HAVE_IEEEFP_H
38157 #include <ieeefp.h>
38158 #endif
38161 main ()
38163 _fabsl(0);
38165 return 0;
38167 _ACEOF
38168 rm -f conftest.$ac_objext
38169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38170 (eval $ac_compile) 2>&5
38171 ac_status=$?
38172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173 (exit $ac_status); } &&
38174 { ac_try='test -s conftest.$ac_objext'
38175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38176 (eval $ac_try) 2>&5
38177 ac_status=$?
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); }; }; then
38180 glibcxx_cv_func__fabsl_use=yes
38181 else
38182 echo "$as_me: failed program was:" >&5
38183 sed 's/^/| /' conftest.$ac_ext >&5
38185 glibcxx_cv_func__fabsl_use=no
38187 rm -f conftest.$ac_objext conftest.$ac_ext
38188 ac_ext=c
38189 ac_cpp='$CPP $CPPFLAGS'
38190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38198 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
38199 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
38201 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
38203 for ac_func in _fabsl
38205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38206 echo "$as_me:$LINENO: checking for $ac_func" >&5
38207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38208 if eval "test \"\${$as_ac_var+set}\" = set"; then
38209 echo $ECHO_N "(cached) $ECHO_C" >&6
38210 else
38211 if test x$gcc_no_link = xyes; then
38212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38214 { (exit 1); exit 1; }; }
38216 cat >conftest.$ac_ext <<_ACEOF
38217 #line $LINENO "configure"
38218 /* confdefs.h. */
38219 _ACEOF
38220 cat confdefs.h >>conftest.$ac_ext
38221 cat >>conftest.$ac_ext <<_ACEOF
38222 /* end confdefs.h. */
38223 /* System header to define __stub macros and hopefully few prototypes,
38224 which can conflict with char $ac_func (); below.
38225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38226 <limits.h> exists even on freestanding compilers. */
38227 #ifdef __STDC__
38228 # include <limits.h>
38229 #else
38230 # include <assert.h>
38231 #endif
38232 /* Override any gcc2 internal prototype to avoid an error. */
38233 #ifdef __cplusplus
38234 extern "C"
38236 #endif
38237 /* We use char because int might match the return type of a gcc2
38238 builtin and then its argument prototype would still apply. */
38239 char $ac_func ();
38240 /* The GNU C library defines this for functions which it implements
38241 to always fail with ENOSYS. Some functions are actually named
38242 something starting with __ and the normal name is an alias. */
38243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38244 choke me
38245 #else
38246 char (*f) () = $ac_func;
38247 #endif
38248 #ifdef __cplusplus
38250 #endif
38253 main ()
38255 return f != $ac_func;
38257 return 0;
38259 _ACEOF
38260 rm -f conftest.$ac_objext conftest$ac_exeext
38261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38262 (eval $ac_link) 2>&5
38263 ac_status=$?
38264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); } &&
38266 { ac_try='test -s conftest$ac_exeext'
38267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38268 (eval $ac_try) 2>&5
38269 ac_status=$?
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); }; }; then
38272 eval "$as_ac_var=yes"
38273 else
38274 echo "$as_me: failed program was:" >&5
38275 sed 's/^/| /' conftest.$ac_ext >&5
38277 eval "$as_ac_var=no"
38279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38283 if test `eval echo '${'$as_ac_var'}'` = yes; then
38284 cat >>confdefs.h <<_ACEOF
38285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38286 _ACEOF
38289 done
38296 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
38297 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
38298 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
38299 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38301 else
38305 ac_ext=cc
38306 ac_cpp='$CXXCPP $CPPFLAGS'
38307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38311 cat >conftest.$ac_ext <<_ACEOF
38312 #line $LINENO "configure"
38313 /* confdefs.h. */
38314 _ACEOF
38315 cat confdefs.h >>conftest.$ac_ext
38316 cat >>conftest.$ac_ext <<_ACEOF
38317 /* end confdefs.h. */
38318 #include <math.h>
38320 main ()
38322 fmodl(0, 0);
38324 return 0;
38326 _ACEOF
38327 rm -f conftest.$ac_objext
38328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38329 (eval $ac_compile) 2>&5
38330 ac_status=$?
38331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332 (exit $ac_status); } &&
38333 { ac_try='test -s conftest.$ac_objext'
38334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38335 (eval $ac_try) 2>&5
38336 ac_status=$?
38337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338 (exit $ac_status); }; }; then
38339 glibcxx_cv_func_fmodl_use=yes
38340 else
38341 echo "$as_me: failed program was:" >&5
38342 sed 's/^/| /' conftest.$ac_ext >&5
38344 glibcxx_cv_func_fmodl_use=no
38346 rm -f conftest.$ac_objext conftest.$ac_ext
38347 ac_ext=c
38348 ac_cpp='$CPP $CPPFLAGS'
38349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38357 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38358 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38360 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38362 for ac_func in fmodl
38364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38365 echo "$as_me:$LINENO: checking for $ac_func" >&5
38366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38367 if eval "test \"\${$as_ac_var+set}\" = set"; then
38368 echo $ECHO_N "(cached) $ECHO_C" >&6
38369 else
38370 if test x$gcc_no_link = xyes; then
38371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38373 { (exit 1); exit 1; }; }
38375 cat >conftest.$ac_ext <<_ACEOF
38376 #line $LINENO "configure"
38377 /* confdefs.h. */
38378 _ACEOF
38379 cat confdefs.h >>conftest.$ac_ext
38380 cat >>conftest.$ac_ext <<_ACEOF
38381 /* end confdefs.h. */
38382 /* System header to define __stub macros and hopefully few prototypes,
38383 which can conflict with char $ac_func (); below.
38384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38385 <limits.h> exists even on freestanding compilers. */
38386 #ifdef __STDC__
38387 # include <limits.h>
38388 #else
38389 # include <assert.h>
38390 #endif
38391 /* Override any gcc2 internal prototype to avoid an error. */
38392 #ifdef __cplusplus
38393 extern "C"
38395 #endif
38396 /* We use char because int might match the return type of a gcc2
38397 builtin and then its argument prototype would still apply. */
38398 char $ac_func ();
38399 /* The GNU C library defines this for functions which it implements
38400 to always fail with ENOSYS. Some functions are actually named
38401 something starting with __ and the normal name is an alias. */
38402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38403 choke me
38404 #else
38405 char (*f) () = $ac_func;
38406 #endif
38407 #ifdef __cplusplus
38409 #endif
38412 main ()
38414 return f != $ac_func;
38416 return 0;
38418 _ACEOF
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38421 (eval $ac_link) 2>&5
38422 ac_status=$?
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); } &&
38425 { ac_try='test -s conftest$ac_exeext'
38426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427 (eval $ac_try) 2>&5
38428 ac_status=$?
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); }; }; then
38431 eval "$as_ac_var=yes"
38432 else
38433 echo "$as_me: failed program was:" >&5
38434 sed 's/^/| /' conftest.$ac_ext >&5
38436 eval "$as_ac_var=no"
38438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38442 if test `eval echo '${'$as_ac_var'}'` = yes; then
38443 cat >>confdefs.h <<_ACEOF
38444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38445 _ACEOF
38448 done
38450 else
38452 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38453 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38454 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38455 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38457 else
38461 ac_ext=cc
38462 ac_cpp='$CXXCPP $CPPFLAGS'
38463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38467 cat >conftest.$ac_ext <<_ACEOF
38468 #line $LINENO "configure"
38469 /* confdefs.h. */
38470 _ACEOF
38471 cat confdefs.h >>conftest.$ac_ext
38472 cat >>conftest.$ac_ext <<_ACEOF
38473 /* end confdefs.h. */
38474 #include <math.h>
38476 main ()
38478 _fmodl(0, 0);
38480 return 0;
38482 _ACEOF
38483 rm -f conftest.$ac_objext
38484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38485 (eval $ac_compile) 2>&5
38486 ac_status=$?
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); } &&
38489 { ac_try='test -s conftest.$ac_objext'
38490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491 (eval $ac_try) 2>&5
38492 ac_status=$?
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); }; }; then
38495 glibcxx_cv_func__fmodl_use=yes
38496 else
38497 echo "$as_me: failed program was:" >&5
38498 sed 's/^/| /' conftest.$ac_ext >&5
38500 glibcxx_cv_func__fmodl_use=no
38502 rm -f conftest.$ac_objext conftest.$ac_ext
38503 ac_ext=c
38504 ac_cpp='$CPP $CPPFLAGS'
38505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38513 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38514 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38516 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38518 for ac_func in _fmodl
38520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38521 echo "$as_me:$LINENO: checking for $ac_func" >&5
38522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38523 if eval "test \"\${$as_ac_var+set}\" = set"; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526 if test x$gcc_no_link = xyes; then
38527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38529 { (exit 1); exit 1; }; }
38531 cat >conftest.$ac_ext <<_ACEOF
38532 #line $LINENO "configure"
38533 /* confdefs.h. */
38534 _ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h. */
38538 /* System header to define __stub macros and hopefully few prototypes,
38539 which can conflict with char $ac_func (); below.
38540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38541 <limits.h> exists even on freestanding compilers. */
38542 #ifdef __STDC__
38543 # include <limits.h>
38544 #else
38545 # include <assert.h>
38546 #endif
38547 /* Override any gcc2 internal prototype to avoid an error. */
38548 #ifdef __cplusplus
38549 extern "C"
38551 #endif
38552 /* We use char because int might match the return type of a gcc2
38553 builtin and then its argument prototype would still apply. */
38554 char $ac_func ();
38555 /* The GNU C library defines this for functions which it implements
38556 to always fail with ENOSYS. Some functions are actually named
38557 something starting with __ and the normal name is an alias. */
38558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38559 choke me
38560 #else
38561 char (*f) () = $ac_func;
38562 #endif
38563 #ifdef __cplusplus
38565 #endif
38568 main ()
38570 return f != $ac_func;
38572 return 0;
38574 _ACEOF
38575 rm -f conftest.$ac_objext conftest$ac_exeext
38576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38577 (eval $ac_link) 2>&5
38578 ac_status=$?
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); } &&
38581 { ac_try='test -s conftest$ac_exeext'
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38584 ac_status=$?
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; }; then
38587 eval "$as_ac_var=yes"
38588 else
38589 echo "$as_me: failed program was:" >&5
38590 sed 's/^/| /' conftest.$ac_ext >&5
38592 eval "$as_ac_var=no"
38594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38598 if test `eval echo '${'$as_ac_var'}'` = yes; then
38599 cat >>confdefs.h <<_ACEOF
38600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38601 _ACEOF
38604 done
38611 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38612 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38613 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38614 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38615 echo $ECHO_N "(cached) $ECHO_C" >&6
38616 else
38620 ac_ext=cc
38621 ac_cpp='$CXXCPP $CPPFLAGS'
38622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38626 cat >conftest.$ac_ext <<_ACEOF
38627 #line $LINENO "configure"
38628 /* confdefs.h. */
38629 _ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h. */
38633 #include <math.h>
38635 main ()
38637 frexpl(0, 0);
38639 return 0;
38641 _ACEOF
38642 rm -f conftest.$ac_objext
38643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38644 (eval $ac_compile) 2>&5
38645 ac_status=$?
38646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38647 (exit $ac_status); } &&
38648 { ac_try='test -s conftest.$ac_objext'
38649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38650 (eval $ac_try) 2>&5
38651 ac_status=$?
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); }; }; then
38654 glibcxx_cv_func_frexpl_use=yes
38655 else
38656 echo "$as_me: failed program was:" >&5
38657 sed 's/^/| /' conftest.$ac_ext >&5
38659 glibcxx_cv_func_frexpl_use=no
38661 rm -f conftest.$ac_objext conftest.$ac_ext
38662 ac_ext=c
38663 ac_cpp='$CPP $CPPFLAGS'
38664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38672 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38673 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38675 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38677 for ac_func in frexpl
38679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38680 echo "$as_me:$LINENO: checking for $ac_func" >&5
38681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38682 if eval "test \"\${$as_ac_var+set}\" = set"; then
38683 echo $ECHO_N "(cached) $ECHO_C" >&6
38684 else
38685 if test x$gcc_no_link = xyes; then
38686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38688 { (exit 1); exit 1; }; }
38690 cat >conftest.$ac_ext <<_ACEOF
38691 #line $LINENO "configure"
38692 /* confdefs.h. */
38693 _ACEOF
38694 cat confdefs.h >>conftest.$ac_ext
38695 cat >>conftest.$ac_ext <<_ACEOF
38696 /* end confdefs.h. */
38697 /* System header to define __stub macros and hopefully few prototypes,
38698 which can conflict with char $ac_func (); below.
38699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38700 <limits.h> exists even on freestanding compilers. */
38701 #ifdef __STDC__
38702 # include <limits.h>
38703 #else
38704 # include <assert.h>
38705 #endif
38706 /* Override any gcc2 internal prototype to avoid an error. */
38707 #ifdef __cplusplus
38708 extern "C"
38710 #endif
38711 /* We use char because int might match the return type of a gcc2
38712 builtin and then its argument prototype would still apply. */
38713 char $ac_func ();
38714 /* The GNU C library defines this for functions which it implements
38715 to always fail with ENOSYS. Some functions are actually named
38716 something starting with __ and the normal name is an alias. */
38717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38718 choke me
38719 #else
38720 char (*f) () = $ac_func;
38721 #endif
38722 #ifdef __cplusplus
38724 #endif
38727 main ()
38729 return f != $ac_func;
38731 return 0;
38733 _ACEOF
38734 rm -f conftest.$ac_objext conftest$ac_exeext
38735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38736 (eval $ac_link) 2>&5
38737 ac_status=$?
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); } &&
38740 { ac_try='test -s conftest$ac_exeext'
38741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742 (eval $ac_try) 2>&5
38743 ac_status=$?
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); }; }; then
38746 eval "$as_ac_var=yes"
38747 else
38748 echo "$as_me: failed program was:" >&5
38749 sed 's/^/| /' conftest.$ac_ext >&5
38751 eval "$as_ac_var=no"
38753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38757 if test `eval echo '${'$as_ac_var'}'` = yes; then
38758 cat >>confdefs.h <<_ACEOF
38759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38760 _ACEOF
38763 done
38765 else
38767 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38768 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38769 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38770 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38776 ac_ext=cc
38777 ac_cpp='$CXXCPP $CPPFLAGS'
38778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38782 cat >conftest.$ac_ext <<_ACEOF
38783 #line $LINENO "configure"
38784 /* confdefs.h. */
38785 _ACEOF
38786 cat confdefs.h >>conftest.$ac_ext
38787 cat >>conftest.$ac_ext <<_ACEOF
38788 /* end confdefs.h. */
38789 #include <math.h>
38791 main ()
38793 _frexpl(0, 0);
38795 return 0;
38797 _ACEOF
38798 rm -f conftest.$ac_objext
38799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38800 (eval $ac_compile) 2>&5
38801 ac_status=$?
38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803 (exit $ac_status); } &&
38804 { ac_try='test -s conftest.$ac_objext'
38805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38806 (eval $ac_try) 2>&5
38807 ac_status=$?
38808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809 (exit $ac_status); }; }; then
38810 glibcxx_cv_func__frexpl_use=yes
38811 else
38812 echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.$ac_ext >&5
38815 glibcxx_cv_func__frexpl_use=no
38817 rm -f conftest.$ac_objext conftest.$ac_ext
38818 ac_ext=c
38819 ac_cpp='$CPP $CPPFLAGS'
38820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38828 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38829 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38831 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38833 for ac_func in _frexpl
38835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38836 echo "$as_me:$LINENO: checking for $ac_func" >&5
38837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38838 if eval "test \"\${$as_ac_var+set}\" = set"; then
38839 echo $ECHO_N "(cached) $ECHO_C" >&6
38840 else
38841 if test x$gcc_no_link = xyes; then
38842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38844 { (exit 1); exit 1; }; }
38846 cat >conftest.$ac_ext <<_ACEOF
38847 #line $LINENO "configure"
38848 /* confdefs.h. */
38849 _ACEOF
38850 cat confdefs.h >>conftest.$ac_ext
38851 cat >>conftest.$ac_ext <<_ACEOF
38852 /* end confdefs.h. */
38853 /* System header to define __stub macros and hopefully few prototypes,
38854 which can conflict with char $ac_func (); below.
38855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38856 <limits.h> exists even on freestanding compilers. */
38857 #ifdef __STDC__
38858 # include <limits.h>
38859 #else
38860 # include <assert.h>
38861 #endif
38862 /* Override any gcc2 internal prototype to avoid an error. */
38863 #ifdef __cplusplus
38864 extern "C"
38866 #endif
38867 /* We use char because int might match the return type of a gcc2
38868 builtin and then its argument prototype would still apply. */
38869 char $ac_func ();
38870 /* The GNU C library defines this for functions which it implements
38871 to always fail with ENOSYS. Some functions are actually named
38872 something starting with __ and the normal name is an alias. */
38873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38874 choke me
38875 #else
38876 char (*f) () = $ac_func;
38877 #endif
38878 #ifdef __cplusplus
38880 #endif
38883 main ()
38885 return f != $ac_func;
38887 return 0;
38889 _ACEOF
38890 rm -f conftest.$ac_objext conftest$ac_exeext
38891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38892 (eval $ac_link) 2>&5
38893 ac_status=$?
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895 (exit $ac_status); } &&
38896 { ac_try='test -s conftest$ac_exeext'
38897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898 (eval $ac_try) 2>&5
38899 ac_status=$?
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); }; }; then
38902 eval "$as_ac_var=yes"
38903 else
38904 echo "$as_me: failed program was:" >&5
38905 sed 's/^/| /' conftest.$ac_ext >&5
38907 eval "$as_ac_var=no"
38909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38913 if test `eval echo '${'$as_ac_var'}'` = yes; then
38914 cat >>confdefs.h <<_ACEOF
38915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38916 _ACEOF
38919 done
38926 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38927 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38928 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38929 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38930 echo $ECHO_N "(cached) $ECHO_C" >&6
38931 else
38935 ac_ext=cc
38936 ac_cpp='$CXXCPP $CPPFLAGS'
38937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38941 cat >conftest.$ac_ext <<_ACEOF
38942 #line $LINENO "configure"
38943 /* confdefs.h. */
38944 _ACEOF
38945 cat confdefs.h >>conftest.$ac_ext
38946 cat >>conftest.$ac_ext <<_ACEOF
38947 /* end confdefs.h. */
38948 #include <math.h>
38950 main ()
38952 hypotl(0, 0);
38954 return 0;
38956 _ACEOF
38957 rm -f conftest.$ac_objext
38958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38959 (eval $ac_compile) 2>&5
38960 ac_status=$?
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); } &&
38963 { ac_try='test -s conftest.$ac_objext'
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 glibcxx_cv_func_hypotl_use=yes
38970 else
38971 echo "$as_me: failed program was:" >&5
38972 sed 's/^/| /' conftest.$ac_ext >&5
38974 glibcxx_cv_func_hypotl_use=no
38976 rm -f conftest.$ac_objext conftest.$ac_ext
38977 ac_ext=c
38978 ac_cpp='$CPP $CPPFLAGS'
38979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38987 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38988 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38990 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38992 for ac_func in hypotl
38994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38995 echo "$as_me:$LINENO: checking for $ac_func" >&5
38996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38997 if eval "test \"\${$as_ac_var+set}\" = set"; then
38998 echo $ECHO_N "(cached) $ECHO_C" >&6
38999 else
39000 if test x$gcc_no_link = xyes; then
39001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39003 { (exit 1); exit 1; }; }
39005 cat >conftest.$ac_ext <<_ACEOF
39006 #line $LINENO "configure"
39007 /* confdefs.h. */
39008 _ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39012 /* System header to define __stub macros and hopefully few prototypes,
39013 which can conflict with char $ac_func (); below.
39014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39015 <limits.h> exists even on freestanding compilers. */
39016 #ifdef __STDC__
39017 # include <limits.h>
39018 #else
39019 # include <assert.h>
39020 #endif
39021 /* Override any gcc2 internal prototype to avoid an error. */
39022 #ifdef __cplusplus
39023 extern "C"
39025 #endif
39026 /* We use char because int might match the return type of a gcc2
39027 builtin and then its argument prototype would still apply. */
39028 char $ac_func ();
39029 /* The GNU C library defines this for functions which it implements
39030 to always fail with ENOSYS. Some functions are actually named
39031 something starting with __ and the normal name is an alias. */
39032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39033 choke me
39034 #else
39035 char (*f) () = $ac_func;
39036 #endif
39037 #ifdef __cplusplus
39039 #endif
39042 main ()
39044 return f != $ac_func;
39046 return 0;
39048 _ACEOF
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051 (eval $ac_link) 2>&5
39052 ac_status=$?
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } &&
39055 { ac_try='test -s conftest$ac_exeext'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39058 ac_status=$?
39059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; }; then
39061 eval "$as_ac_var=yes"
39062 else
39063 echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39066 eval "$as_ac_var=no"
39068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39072 if test `eval echo '${'$as_ac_var'}'` = yes; then
39073 cat >>confdefs.h <<_ACEOF
39074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39075 _ACEOF
39078 done
39080 else
39082 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
39083 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
39084 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
39085 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
39086 echo $ECHO_N "(cached) $ECHO_C" >&6
39087 else
39091 ac_ext=cc
39092 ac_cpp='$CXXCPP $CPPFLAGS'
39093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39097 cat >conftest.$ac_ext <<_ACEOF
39098 #line $LINENO "configure"
39099 /* confdefs.h. */
39100 _ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h. */
39104 #include <math.h>
39106 main ()
39108 _hypotl(0, 0);
39110 return 0;
39112 _ACEOF
39113 rm -f conftest.$ac_objext
39114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39115 (eval $ac_compile) 2>&5
39116 ac_status=$?
39117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); } &&
39119 { ac_try='test -s conftest.$ac_objext'
39120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121 (eval $ac_try) 2>&5
39122 ac_status=$?
39123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 (exit $ac_status); }; }; then
39125 glibcxx_cv_func__hypotl_use=yes
39126 else
39127 echo "$as_me: failed program was:" >&5
39128 sed 's/^/| /' conftest.$ac_ext >&5
39130 glibcxx_cv_func__hypotl_use=no
39132 rm -f conftest.$ac_objext conftest.$ac_ext
39133 ac_ext=c
39134 ac_cpp='$CPP $CPPFLAGS'
39135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39143 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
39144 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
39146 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
39148 for ac_func in _hypotl
39150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39151 echo "$as_me:$LINENO: checking for $ac_func" >&5
39152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39153 if eval "test \"\${$as_ac_var+set}\" = set"; then
39154 echo $ECHO_N "(cached) $ECHO_C" >&6
39155 else
39156 if test x$gcc_no_link = xyes; then
39157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39159 { (exit 1); exit 1; }; }
39161 cat >conftest.$ac_ext <<_ACEOF
39162 #line $LINENO "configure"
39163 /* confdefs.h. */
39164 _ACEOF
39165 cat confdefs.h >>conftest.$ac_ext
39166 cat >>conftest.$ac_ext <<_ACEOF
39167 /* end confdefs.h. */
39168 /* System header to define __stub macros and hopefully few prototypes,
39169 which can conflict with char $ac_func (); below.
39170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39171 <limits.h> exists even on freestanding compilers. */
39172 #ifdef __STDC__
39173 # include <limits.h>
39174 #else
39175 # include <assert.h>
39176 #endif
39177 /* Override any gcc2 internal prototype to avoid an error. */
39178 #ifdef __cplusplus
39179 extern "C"
39181 #endif
39182 /* We use char because int might match the return type of a gcc2
39183 builtin and then its argument prototype would still apply. */
39184 char $ac_func ();
39185 /* The GNU C library defines this for functions which it implements
39186 to always fail with ENOSYS. Some functions are actually named
39187 something starting with __ and the normal name is an alias. */
39188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39189 choke me
39190 #else
39191 char (*f) () = $ac_func;
39192 #endif
39193 #ifdef __cplusplus
39195 #endif
39198 main ()
39200 return f != $ac_func;
39202 return 0;
39204 _ACEOF
39205 rm -f conftest.$ac_objext conftest$ac_exeext
39206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39207 (eval $ac_link) 2>&5
39208 ac_status=$?
39209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210 (exit $ac_status); } &&
39211 { ac_try='test -s conftest$ac_exeext'
39212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39213 (eval $ac_try) 2>&5
39214 ac_status=$?
39215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39216 (exit $ac_status); }; }; then
39217 eval "$as_ac_var=yes"
39218 else
39219 echo "$as_me: failed program was:" >&5
39220 sed 's/^/| /' conftest.$ac_ext >&5
39222 eval "$as_ac_var=no"
39224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39228 if test `eval echo '${'$as_ac_var'}'` = yes; then
39229 cat >>confdefs.h <<_ACEOF
39230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39231 _ACEOF
39234 done
39241 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
39242 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
39243 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
39244 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
39245 echo $ECHO_N "(cached) $ECHO_C" >&6
39246 else
39250 ac_ext=cc
39251 ac_cpp='$CXXCPP $CPPFLAGS'
39252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39256 cat >conftest.$ac_ext <<_ACEOF
39257 #line $LINENO "configure"
39258 /* confdefs.h. */
39259 _ACEOF
39260 cat confdefs.h >>conftest.$ac_ext
39261 cat >>conftest.$ac_ext <<_ACEOF
39262 /* end confdefs.h. */
39263 #include <math.h>
39265 main ()
39267 ldexpl(0, 0);
39269 return 0;
39271 _ACEOF
39272 rm -f conftest.$ac_objext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39274 (eval $ac_compile) 2>&5
39275 ac_status=$?
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -s conftest.$ac_objext'
39279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39280 (eval $ac_try) 2>&5
39281 ac_status=$?
39282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); }; }; then
39284 glibcxx_cv_func_ldexpl_use=yes
39285 else
39286 echo "$as_me: failed program was:" >&5
39287 sed 's/^/| /' conftest.$ac_ext >&5
39289 glibcxx_cv_func_ldexpl_use=no
39291 rm -f conftest.$ac_objext conftest.$ac_ext
39292 ac_ext=c
39293 ac_cpp='$CPP $CPPFLAGS'
39294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39302 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
39303 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39305 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39307 for ac_func in ldexpl
39309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39310 echo "$as_me:$LINENO: checking for $ac_func" >&5
39311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39312 if eval "test \"\${$as_ac_var+set}\" = set"; then
39313 echo $ECHO_N "(cached) $ECHO_C" >&6
39314 else
39315 if test x$gcc_no_link = xyes; then
39316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39318 { (exit 1); exit 1; }; }
39320 cat >conftest.$ac_ext <<_ACEOF
39321 #line $LINENO "configure"
39322 /* confdefs.h. */
39323 _ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h. */
39327 /* System header to define __stub macros and hopefully few prototypes,
39328 which can conflict with char $ac_func (); below.
39329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39330 <limits.h> exists even on freestanding compilers. */
39331 #ifdef __STDC__
39332 # include <limits.h>
39333 #else
39334 # include <assert.h>
39335 #endif
39336 /* Override any gcc2 internal prototype to avoid an error. */
39337 #ifdef __cplusplus
39338 extern "C"
39340 #endif
39341 /* We use char because int might match the return type of a gcc2
39342 builtin and then its argument prototype would still apply. */
39343 char $ac_func ();
39344 /* The GNU C library defines this for functions which it implements
39345 to always fail with ENOSYS. Some functions are actually named
39346 something starting with __ and the normal name is an alias. */
39347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39348 choke me
39349 #else
39350 char (*f) () = $ac_func;
39351 #endif
39352 #ifdef __cplusplus
39354 #endif
39357 main ()
39359 return f != $ac_func;
39361 return 0;
39363 _ACEOF
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39366 (eval $ac_link) 2>&5
39367 ac_status=$?
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); } &&
39370 { ac_try='test -s conftest$ac_exeext'
39371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39372 (eval $ac_try) 2>&5
39373 ac_status=$?
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); }; }; then
39376 eval "$as_ac_var=yes"
39377 else
39378 echo "$as_me: failed program was:" >&5
39379 sed 's/^/| /' conftest.$ac_ext >&5
39381 eval "$as_ac_var=no"
39383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39387 if test `eval echo '${'$as_ac_var'}'` = yes; then
39388 cat >>confdefs.h <<_ACEOF
39389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39390 _ACEOF
39393 done
39395 else
39397 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39398 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39399 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39400 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39402 else
39406 ac_ext=cc
39407 ac_cpp='$CXXCPP $CPPFLAGS'
39408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39412 cat >conftest.$ac_ext <<_ACEOF
39413 #line $LINENO "configure"
39414 /* confdefs.h. */
39415 _ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h. */
39419 #include <math.h>
39421 main ()
39423 _ldexpl(0, 0);
39425 return 0;
39427 _ACEOF
39428 rm -f conftest.$ac_objext
39429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39430 (eval $ac_compile) 2>&5
39431 ac_status=$?
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); } &&
39434 { ac_try='test -s conftest.$ac_objext'
39435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39436 (eval $ac_try) 2>&5
39437 ac_status=$?
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); }; }; then
39440 glibcxx_cv_func__ldexpl_use=yes
39441 else
39442 echo "$as_me: failed program was:" >&5
39443 sed 's/^/| /' conftest.$ac_ext >&5
39445 glibcxx_cv_func__ldexpl_use=no
39447 rm -f conftest.$ac_objext conftest.$ac_ext
39448 ac_ext=c
39449 ac_cpp='$CPP $CPPFLAGS'
39450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39458 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39459 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39461 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39463 for ac_func in _ldexpl
39465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39466 echo "$as_me:$LINENO: checking for $ac_func" >&5
39467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39468 if eval "test \"\${$as_ac_var+set}\" = set"; then
39469 echo $ECHO_N "(cached) $ECHO_C" >&6
39470 else
39471 if test x$gcc_no_link = xyes; then
39472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39474 { (exit 1); exit 1; }; }
39476 cat >conftest.$ac_ext <<_ACEOF
39477 #line $LINENO "configure"
39478 /* confdefs.h. */
39479 _ACEOF
39480 cat confdefs.h >>conftest.$ac_ext
39481 cat >>conftest.$ac_ext <<_ACEOF
39482 /* end confdefs.h. */
39483 /* System header to define __stub macros and hopefully few prototypes,
39484 which can conflict with char $ac_func (); below.
39485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39486 <limits.h> exists even on freestanding compilers. */
39487 #ifdef __STDC__
39488 # include <limits.h>
39489 #else
39490 # include <assert.h>
39491 #endif
39492 /* Override any gcc2 internal prototype to avoid an error. */
39493 #ifdef __cplusplus
39494 extern "C"
39496 #endif
39497 /* We use char because int might match the return type of a gcc2
39498 builtin and then its argument prototype would still apply. */
39499 char $ac_func ();
39500 /* The GNU C library defines this for functions which it implements
39501 to always fail with ENOSYS. Some functions are actually named
39502 something starting with __ and the normal name is an alias. */
39503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39504 choke me
39505 #else
39506 char (*f) () = $ac_func;
39507 #endif
39508 #ifdef __cplusplus
39510 #endif
39513 main ()
39515 return f != $ac_func;
39517 return 0;
39519 _ACEOF
39520 rm -f conftest.$ac_objext conftest$ac_exeext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39522 (eval $ac_link) 2>&5
39523 ac_status=$?
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); } &&
39526 { ac_try='test -s conftest$ac_exeext'
39527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39528 (eval $ac_try) 2>&5
39529 ac_status=$?
39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); }; }; then
39532 eval "$as_ac_var=yes"
39533 else
39534 echo "$as_me: failed program was:" >&5
39535 sed 's/^/| /' conftest.$ac_ext >&5
39537 eval "$as_ac_var=no"
39539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39543 if test `eval echo '${'$as_ac_var'}'` = yes; then
39544 cat >>confdefs.h <<_ACEOF
39545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39546 _ACEOF
39549 done
39556 echo "$as_me:$LINENO: checking for logl declaration" >&5
39557 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39558 if test x${glibcxx_cv_func_logl_use+set} != xset; then
39559 if test "${glibcxx_cv_func_logl_use+set}" = set; then
39560 echo $ECHO_N "(cached) $ECHO_C" >&6
39561 else
39565 ac_ext=cc
39566 ac_cpp='$CXXCPP $CPPFLAGS'
39567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39571 cat >conftest.$ac_ext <<_ACEOF
39572 #line $LINENO "configure"
39573 /* confdefs.h. */
39574 _ACEOF
39575 cat confdefs.h >>conftest.$ac_ext
39576 cat >>conftest.$ac_ext <<_ACEOF
39577 /* end confdefs.h. */
39578 #include <math.h>
39579 #ifdef HAVE_IEEEFP_H
39580 #include <ieeefp.h>
39581 #endif
39584 main ()
39586 logl(0);
39588 return 0;
39590 _ACEOF
39591 rm -f conftest.$ac_objext
39592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39593 (eval $ac_compile) 2>&5
39594 ac_status=$?
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); } &&
39597 { ac_try='test -s conftest.$ac_objext'
39598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39599 (eval $ac_try) 2>&5
39600 ac_status=$?
39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); }; }; then
39603 glibcxx_cv_func_logl_use=yes
39604 else
39605 echo "$as_me: failed program was:" >&5
39606 sed 's/^/| /' conftest.$ac_ext >&5
39608 glibcxx_cv_func_logl_use=no
39610 rm -f conftest.$ac_objext conftest.$ac_ext
39611 ac_ext=c
39612 ac_cpp='$CPP $CPPFLAGS'
39613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39621 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39622 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39624 if test x$glibcxx_cv_func_logl_use = x"yes"; then
39626 for ac_func in logl
39628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39629 echo "$as_me:$LINENO: checking for $ac_func" >&5
39630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39631 if eval "test \"\${$as_ac_var+set}\" = set"; then
39632 echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39634 if test x$gcc_no_link = xyes; then
39635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39637 { (exit 1); exit 1; }; }
39639 cat >conftest.$ac_ext <<_ACEOF
39640 #line $LINENO "configure"
39641 /* confdefs.h. */
39642 _ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h. */
39646 /* System header to define __stub macros and hopefully few prototypes,
39647 which can conflict with char $ac_func (); below.
39648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39649 <limits.h> exists even on freestanding compilers. */
39650 #ifdef __STDC__
39651 # include <limits.h>
39652 #else
39653 # include <assert.h>
39654 #endif
39655 /* Override any gcc2 internal prototype to avoid an error. */
39656 #ifdef __cplusplus
39657 extern "C"
39659 #endif
39660 /* We use char because int might match the return type of a gcc2
39661 builtin and then its argument prototype would still apply. */
39662 char $ac_func ();
39663 /* The GNU C library defines this for functions which it implements
39664 to always fail with ENOSYS. Some functions are actually named
39665 something starting with __ and the normal name is an alias. */
39666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39667 choke me
39668 #else
39669 char (*f) () = $ac_func;
39670 #endif
39671 #ifdef __cplusplus
39673 #endif
39676 main ()
39678 return f != $ac_func;
39680 return 0;
39682 _ACEOF
39683 rm -f conftest.$ac_objext conftest$ac_exeext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39685 (eval $ac_link) 2>&5
39686 ac_status=$?
39687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688 (exit $ac_status); } &&
39689 { ac_try='test -s conftest$ac_exeext'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39692 ac_status=$?
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; }; then
39695 eval "$as_ac_var=yes"
39696 else
39697 echo "$as_me: failed program was:" >&5
39698 sed 's/^/| /' conftest.$ac_ext >&5
39700 eval "$as_ac_var=no"
39702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39706 if test `eval echo '${'$as_ac_var'}'` = yes; then
39707 cat >>confdefs.h <<_ACEOF
39708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39709 _ACEOF
39712 done
39714 else
39716 echo "$as_me:$LINENO: checking for _logl declaration" >&5
39717 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39718 if test x${glibcxx_cv_func__logl_use+set} != xset; then
39719 if test "${glibcxx_cv_func__logl_use+set}" = set; then
39720 echo $ECHO_N "(cached) $ECHO_C" >&6
39721 else
39725 ac_ext=cc
39726 ac_cpp='$CXXCPP $CPPFLAGS'
39727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39731 cat >conftest.$ac_ext <<_ACEOF
39732 #line $LINENO "configure"
39733 /* confdefs.h. */
39734 _ACEOF
39735 cat confdefs.h >>conftest.$ac_ext
39736 cat >>conftest.$ac_ext <<_ACEOF
39737 /* end confdefs.h. */
39738 #include <math.h>
39739 #ifdef HAVE_IEEEFP_H
39740 #include <ieeefp.h>
39741 #endif
39744 main ()
39746 _logl(0);
39748 return 0;
39750 _ACEOF
39751 rm -f conftest.$ac_objext
39752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39753 (eval $ac_compile) 2>&5
39754 ac_status=$?
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); } &&
39757 { ac_try='test -s conftest.$ac_objext'
39758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759 (eval $ac_try) 2>&5
39760 ac_status=$?
39761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); }; }; then
39763 glibcxx_cv_func__logl_use=yes
39764 else
39765 echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39768 glibcxx_cv_func__logl_use=no
39770 rm -f conftest.$ac_objext conftest.$ac_ext
39771 ac_ext=c
39772 ac_cpp='$CPP $CPPFLAGS'
39773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39781 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39782 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39784 if test x$glibcxx_cv_func__logl_use = x"yes"; then
39786 for ac_func in _logl
39788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39789 echo "$as_me:$LINENO: checking for $ac_func" >&5
39790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39791 if eval "test \"\${$as_ac_var+set}\" = set"; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39793 else
39794 if test x$gcc_no_link = xyes; then
39795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39797 { (exit 1); exit 1; }; }
39799 cat >conftest.$ac_ext <<_ACEOF
39800 #line $LINENO "configure"
39801 /* confdefs.h. */
39802 _ACEOF
39803 cat confdefs.h >>conftest.$ac_ext
39804 cat >>conftest.$ac_ext <<_ACEOF
39805 /* end confdefs.h. */
39806 /* System header to define __stub macros and hopefully few prototypes,
39807 which can conflict with char $ac_func (); below.
39808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39809 <limits.h> exists even on freestanding compilers. */
39810 #ifdef __STDC__
39811 # include <limits.h>
39812 #else
39813 # include <assert.h>
39814 #endif
39815 /* Override any gcc2 internal prototype to avoid an error. */
39816 #ifdef __cplusplus
39817 extern "C"
39819 #endif
39820 /* We use char because int might match the return type of a gcc2
39821 builtin and then its argument prototype would still apply. */
39822 char $ac_func ();
39823 /* The GNU C library defines this for functions which it implements
39824 to always fail with ENOSYS. Some functions are actually named
39825 something starting with __ and the normal name is an alias. */
39826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39827 choke me
39828 #else
39829 char (*f) () = $ac_func;
39830 #endif
39831 #ifdef __cplusplus
39833 #endif
39836 main ()
39838 return f != $ac_func;
39840 return 0;
39842 _ACEOF
39843 rm -f conftest.$ac_objext conftest$ac_exeext
39844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39845 (eval $ac_link) 2>&5
39846 ac_status=$?
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); } &&
39849 { ac_try='test -s conftest$ac_exeext'
39850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39851 (eval $ac_try) 2>&5
39852 ac_status=$?
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); }; }; then
39855 eval "$as_ac_var=yes"
39856 else
39857 echo "$as_me: failed program was:" >&5
39858 sed 's/^/| /' conftest.$ac_ext >&5
39860 eval "$as_ac_var=no"
39862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39866 if test `eval echo '${'$as_ac_var'}'` = yes; then
39867 cat >>confdefs.h <<_ACEOF
39868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39869 _ACEOF
39872 done
39879 echo "$as_me:$LINENO: checking for log10l declaration" >&5
39880 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39881 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39882 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39883 echo $ECHO_N "(cached) $ECHO_C" >&6
39884 else
39888 ac_ext=cc
39889 ac_cpp='$CXXCPP $CPPFLAGS'
39890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39894 cat >conftest.$ac_ext <<_ACEOF
39895 #line $LINENO "configure"
39896 /* confdefs.h. */
39897 _ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h. */
39901 #include <math.h>
39902 #ifdef HAVE_IEEEFP_H
39903 #include <ieeefp.h>
39904 #endif
39907 main ()
39909 log10l(0);
39911 return 0;
39913 _ACEOF
39914 rm -f conftest.$ac_objext
39915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39916 (eval $ac_compile) 2>&5
39917 ac_status=$?
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); } &&
39920 { ac_try='test -s conftest.$ac_objext'
39921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39922 (eval $ac_try) 2>&5
39923 ac_status=$?
39924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925 (exit $ac_status); }; }; then
39926 glibcxx_cv_func_log10l_use=yes
39927 else
39928 echo "$as_me: failed program was:" >&5
39929 sed 's/^/| /' conftest.$ac_ext >&5
39931 glibcxx_cv_func_log10l_use=no
39933 rm -f conftest.$ac_objext conftest.$ac_ext
39934 ac_ext=c
39935 ac_cpp='$CPP $CPPFLAGS'
39936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39944 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39945 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39947 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39949 for ac_func in log10l
39951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39952 echo "$as_me:$LINENO: checking for $ac_func" >&5
39953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39954 if eval "test \"\${$as_ac_var+set}\" = set"; then
39955 echo $ECHO_N "(cached) $ECHO_C" >&6
39956 else
39957 if test x$gcc_no_link = xyes; then
39958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39960 { (exit 1); exit 1; }; }
39962 cat >conftest.$ac_ext <<_ACEOF
39963 #line $LINENO "configure"
39964 /* confdefs.h. */
39965 _ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h. */
39969 /* System header to define __stub macros and hopefully few prototypes,
39970 which can conflict with char $ac_func (); below.
39971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39972 <limits.h> exists even on freestanding compilers. */
39973 #ifdef __STDC__
39974 # include <limits.h>
39975 #else
39976 # include <assert.h>
39977 #endif
39978 /* Override any gcc2 internal prototype to avoid an error. */
39979 #ifdef __cplusplus
39980 extern "C"
39982 #endif
39983 /* We use char because int might match the return type of a gcc2
39984 builtin and then its argument prototype would still apply. */
39985 char $ac_func ();
39986 /* The GNU C library defines this for functions which it implements
39987 to always fail with ENOSYS. Some functions are actually named
39988 something starting with __ and the normal name is an alias. */
39989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39990 choke me
39991 #else
39992 char (*f) () = $ac_func;
39993 #endif
39994 #ifdef __cplusplus
39996 #endif
39999 main ()
40001 return f != $ac_func;
40003 return 0;
40005 _ACEOF
40006 rm -f conftest.$ac_objext conftest$ac_exeext
40007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40008 (eval $ac_link) 2>&5
40009 ac_status=$?
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); } &&
40012 { ac_try='test -s conftest$ac_exeext'
40013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014 (eval $ac_try) 2>&5
40015 ac_status=$?
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); }; }; then
40018 eval "$as_ac_var=yes"
40019 else
40020 echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40023 eval "$as_ac_var=no"
40025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40029 if test `eval echo '${'$as_ac_var'}'` = yes; then
40030 cat >>confdefs.h <<_ACEOF
40031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40032 _ACEOF
40035 done
40037 else
40039 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
40040 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
40041 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
40042 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
40043 echo $ECHO_N "(cached) $ECHO_C" >&6
40044 else
40048 ac_ext=cc
40049 ac_cpp='$CXXCPP $CPPFLAGS'
40050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40054 cat >conftest.$ac_ext <<_ACEOF
40055 #line $LINENO "configure"
40056 /* confdefs.h. */
40057 _ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h. */
40061 #include <math.h>
40062 #ifdef HAVE_IEEEFP_H
40063 #include <ieeefp.h>
40064 #endif
40067 main ()
40069 _log10l(0);
40071 return 0;
40073 _ACEOF
40074 rm -f conftest.$ac_objext
40075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40076 (eval $ac_compile) 2>&5
40077 ac_status=$?
40078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079 (exit $ac_status); } &&
40080 { ac_try='test -s conftest.$ac_objext'
40081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40082 (eval $ac_try) 2>&5
40083 ac_status=$?
40084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40085 (exit $ac_status); }; }; then
40086 glibcxx_cv_func__log10l_use=yes
40087 else
40088 echo "$as_me: failed program was:" >&5
40089 sed 's/^/| /' conftest.$ac_ext >&5
40091 glibcxx_cv_func__log10l_use=no
40093 rm -f conftest.$ac_objext conftest.$ac_ext
40094 ac_ext=c
40095 ac_cpp='$CPP $CPPFLAGS'
40096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40104 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
40105 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
40107 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
40109 for ac_func in _log10l
40111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40112 echo "$as_me:$LINENO: checking for $ac_func" >&5
40113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40114 if eval "test \"\${$as_ac_var+set}\" = set"; then
40115 echo $ECHO_N "(cached) $ECHO_C" >&6
40116 else
40117 if test x$gcc_no_link = xyes; then
40118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40120 { (exit 1); exit 1; }; }
40122 cat >conftest.$ac_ext <<_ACEOF
40123 #line $LINENO "configure"
40124 /* confdefs.h. */
40125 _ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h. */
40129 /* System header to define __stub macros and hopefully few prototypes,
40130 which can conflict with char $ac_func (); below.
40131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40132 <limits.h> exists even on freestanding compilers. */
40133 #ifdef __STDC__
40134 # include <limits.h>
40135 #else
40136 # include <assert.h>
40137 #endif
40138 /* Override any gcc2 internal prototype to avoid an error. */
40139 #ifdef __cplusplus
40140 extern "C"
40142 #endif
40143 /* We use char because int might match the return type of a gcc2
40144 builtin and then its argument prototype would still apply. */
40145 char $ac_func ();
40146 /* The GNU C library defines this for functions which it implements
40147 to always fail with ENOSYS. Some functions are actually named
40148 something starting with __ and the normal name is an alias. */
40149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40150 choke me
40151 #else
40152 char (*f) () = $ac_func;
40153 #endif
40154 #ifdef __cplusplus
40156 #endif
40159 main ()
40161 return f != $ac_func;
40163 return 0;
40165 _ACEOF
40166 rm -f conftest.$ac_objext conftest$ac_exeext
40167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40168 (eval $ac_link) 2>&5
40169 ac_status=$?
40170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171 (exit $ac_status); } &&
40172 { ac_try='test -s conftest$ac_exeext'
40173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174 (eval $ac_try) 2>&5
40175 ac_status=$?
40176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177 (exit $ac_status); }; }; then
40178 eval "$as_ac_var=yes"
40179 else
40180 echo "$as_me: failed program was:" >&5
40181 sed 's/^/| /' conftest.$ac_ext >&5
40183 eval "$as_ac_var=no"
40185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40189 if test `eval echo '${'$as_ac_var'}'` = yes; then
40190 cat >>confdefs.h <<_ACEOF
40191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40192 _ACEOF
40195 done
40202 echo "$as_me:$LINENO: checking for modfl declaration" >&5
40203 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
40204 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
40205 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
40206 echo $ECHO_N "(cached) $ECHO_C" >&6
40207 else
40211 ac_ext=cc
40212 ac_cpp='$CXXCPP $CPPFLAGS'
40213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40217 cat >conftest.$ac_ext <<_ACEOF
40218 #line $LINENO "configure"
40219 /* confdefs.h. */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h. */
40224 #include <math.h>
40226 main ()
40228 modfl(0, 0);
40230 return 0;
40232 _ACEOF
40233 rm -f conftest.$ac_objext
40234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40235 (eval $ac_compile) 2>&5
40236 ac_status=$?
40237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 (exit $ac_status); } &&
40239 { ac_try='test -s conftest.$ac_objext'
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 (eval $ac_try) 2>&5
40242 ac_status=$?
40243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40245 glibcxx_cv_func_modfl_use=yes
40246 else
40247 echo "$as_me: failed program was:" >&5
40248 sed 's/^/| /' conftest.$ac_ext >&5
40250 glibcxx_cv_func_modfl_use=no
40252 rm -f conftest.$ac_objext conftest.$ac_ext
40253 ac_ext=c
40254 ac_cpp='$CPP $CPPFLAGS'
40255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40263 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
40264 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
40266 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
40268 for ac_func in modfl
40270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40271 echo "$as_me:$LINENO: checking for $ac_func" >&5
40272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40273 if eval "test \"\${$as_ac_var+set}\" = set"; then
40274 echo $ECHO_N "(cached) $ECHO_C" >&6
40275 else
40276 if test x$gcc_no_link = xyes; then
40277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40279 { (exit 1); exit 1; }; }
40281 cat >conftest.$ac_ext <<_ACEOF
40282 #line $LINENO "configure"
40283 /* confdefs.h. */
40284 _ACEOF
40285 cat confdefs.h >>conftest.$ac_ext
40286 cat >>conftest.$ac_ext <<_ACEOF
40287 /* end confdefs.h. */
40288 /* System header to define __stub macros and hopefully few prototypes,
40289 which can conflict with char $ac_func (); below.
40290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40291 <limits.h> exists even on freestanding compilers. */
40292 #ifdef __STDC__
40293 # include <limits.h>
40294 #else
40295 # include <assert.h>
40296 #endif
40297 /* Override any gcc2 internal prototype to avoid an error. */
40298 #ifdef __cplusplus
40299 extern "C"
40301 #endif
40302 /* We use char because int might match the return type of a gcc2
40303 builtin and then its argument prototype would still apply. */
40304 char $ac_func ();
40305 /* The GNU C library defines this for functions which it implements
40306 to always fail with ENOSYS. Some functions are actually named
40307 something starting with __ and the normal name is an alias. */
40308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40309 choke me
40310 #else
40311 char (*f) () = $ac_func;
40312 #endif
40313 #ifdef __cplusplus
40315 #endif
40318 main ()
40320 return f != $ac_func;
40322 return 0;
40324 _ACEOF
40325 rm -f conftest.$ac_objext conftest$ac_exeext
40326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40327 (eval $ac_link) 2>&5
40328 ac_status=$?
40329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330 (exit $ac_status); } &&
40331 { ac_try='test -s conftest$ac_exeext'
40332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333 (eval $ac_try) 2>&5
40334 ac_status=$?
40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336 (exit $ac_status); }; }; then
40337 eval "$as_ac_var=yes"
40338 else
40339 echo "$as_me: failed program was:" >&5
40340 sed 's/^/| /' conftest.$ac_ext >&5
40342 eval "$as_ac_var=no"
40344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40348 if test `eval echo '${'$as_ac_var'}'` = yes; then
40349 cat >>confdefs.h <<_ACEOF
40350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40351 _ACEOF
40354 done
40356 else
40358 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40359 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40360 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40361 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40362 echo $ECHO_N "(cached) $ECHO_C" >&6
40363 else
40367 ac_ext=cc
40368 ac_cpp='$CXXCPP $CPPFLAGS'
40369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40373 cat >conftest.$ac_ext <<_ACEOF
40374 #line $LINENO "configure"
40375 /* confdefs.h. */
40376 _ACEOF
40377 cat confdefs.h >>conftest.$ac_ext
40378 cat >>conftest.$ac_ext <<_ACEOF
40379 /* end confdefs.h. */
40380 #include <math.h>
40382 main ()
40384 _modfl(0, 0);
40386 return 0;
40388 _ACEOF
40389 rm -f conftest.$ac_objext
40390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40391 (eval $ac_compile) 2>&5
40392 ac_status=$?
40393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40394 (exit $ac_status); } &&
40395 { ac_try='test -s conftest.$ac_objext'
40396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40397 (eval $ac_try) 2>&5
40398 ac_status=$?
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); }; }; then
40401 glibcxx_cv_func__modfl_use=yes
40402 else
40403 echo "$as_me: failed program was:" >&5
40404 sed 's/^/| /' conftest.$ac_ext >&5
40406 glibcxx_cv_func__modfl_use=no
40408 rm -f conftest.$ac_objext conftest.$ac_ext
40409 ac_ext=c
40410 ac_cpp='$CPP $CPPFLAGS'
40411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40419 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40420 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40422 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40424 for ac_func in _modfl
40426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40427 echo "$as_me:$LINENO: checking for $ac_func" >&5
40428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40429 if eval "test \"\${$as_ac_var+set}\" = set"; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40431 else
40432 if test x$gcc_no_link = xyes; then
40433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40435 { (exit 1); exit 1; }; }
40437 cat >conftest.$ac_ext <<_ACEOF
40438 #line $LINENO "configure"
40439 /* confdefs.h. */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h. */
40444 /* System header to define __stub macros and hopefully few prototypes,
40445 which can conflict with char $ac_func (); below.
40446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40447 <limits.h> exists even on freestanding compilers. */
40448 #ifdef __STDC__
40449 # include <limits.h>
40450 #else
40451 # include <assert.h>
40452 #endif
40453 /* Override any gcc2 internal prototype to avoid an error. */
40454 #ifdef __cplusplus
40455 extern "C"
40457 #endif
40458 /* We use char because int might match the return type of a gcc2
40459 builtin and then its argument prototype would still apply. */
40460 char $ac_func ();
40461 /* The GNU C library defines this for functions which it implements
40462 to always fail with ENOSYS. Some functions are actually named
40463 something starting with __ and the normal name is an alias. */
40464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40465 choke me
40466 #else
40467 char (*f) () = $ac_func;
40468 #endif
40469 #ifdef __cplusplus
40471 #endif
40474 main ()
40476 return f != $ac_func;
40478 return 0;
40480 _ACEOF
40481 rm -f conftest.$ac_objext conftest$ac_exeext
40482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40483 (eval $ac_link) 2>&5
40484 ac_status=$?
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); } &&
40487 { ac_try='test -s conftest$ac_exeext'
40488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40489 (eval $ac_try) 2>&5
40490 ac_status=$?
40491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); }; }; then
40493 eval "$as_ac_var=yes"
40494 else
40495 echo "$as_me: failed program was:" >&5
40496 sed 's/^/| /' conftest.$ac_ext >&5
40498 eval "$as_ac_var=no"
40500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40504 if test `eval echo '${'$as_ac_var'}'` = yes; then
40505 cat >>confdefs.h <<_ACEOF
40506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40507 _ACEOF
40510 done
40517 echo "$as_me:$LINENO: checking for powl declaration" >&5
40518 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40519 if test x${glibcxx_cv_func_powl_use+set} != xset; then
40520 if test "${glibcxx_cv_func_powl_use+set}" = set; then
40521 echo $ECHO_N "(cached) $ECHO_C" >&6
40522 else
40526 ac_ext=cc
40527 ac_cpp='$CXXCPP $CPPFLAGS'
40528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40532 cat >conftest.$ac_ext <<_ACEOF
40533 #line $LINENO "configure"
40534 /* confdefs.h. */
40535 _ACEOF
40536 cat confdefs.h >>conftest.$ac_ext
40537 cat >>conftest.$ac_ext <<_ACEOF
40538 /* end confdefs.h. */
40539 #include <math.h>
40541 main ()
40543 powl(0, 0);
40545 return 0;
40547 _ACEOF
40548 rm -f conftest.$ac_objext
40549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40550 (eval $ac_compile) 2>&5
40551 ac_status=$?
40552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553 (exit $ac_status); } &&
40554 { ac_try='test -s conftest.$ac_objext'
40555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556 (eval $ac_try) 2>&5
40557 ac_status=$?
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); }; }; then
40560 glibcxx_cv_func_powl_use=yes
40561 else
40562 echo "$as_me: failed program was:" >&5
40563 sed 's/^/| /' conftest.$ac_ext >&5
40565 glibcxx_cv_func_powl_use=no
40567 rm -f conftest.$ac_objext conftest.$ac_ext
40568 ac_ext=c
40569 ac_cpp='$CPP $CPPFLAGS'
40570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40578 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40579 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40581 if test x$glibcxx_cv_func_powl_use = x"yes"; then
40583 for ac_func in powl
40585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40586 echo "$as_me:$LINENO: checking for $ac_func" >&5
40587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40588 if eval "test \"\${$as_ac_var+set}\" = set"; then
40589 echo $ECHO_N "(cached) $ECHO_C" >&6
40590 else
40591 if test x$gcc_no_link = xyes; then
40592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40594 { (exit 1); exit 1; }; }
40596 cat >conftest.$ac_ext <<_ACEOF
40597 #line $LINENO "configure"
40598 /* confdefs.h. */
40599 _ACEOF
40600 cat confdefs.h >>conftest.$ac_ext
40601 cat >>conftest.$ac_ext <<_ACEOF
40602 /* end confdefs.h. */
40603 /* System header to define __stub macros and hopefully few prototypes,
40604 which can conflict with char $ac_func (); below.
40605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40606 <limits.h> exists even on freestanding compilers. */
40607 #ifdef __STDC__
40608 # include <limits.h>
40609 #else
40610 # include <assert.h>
40611 #endif
40612 /* Override any gcc2 internal prototype to avoid an error. */
40613 #ifdef __cplusplus
40614 extern "C"
40616 #endif
40617 /* We use char because int might match the return type of a gcc2
40618 builtin and then its argument prototype would still apply. */
40619 char $ac_func ();
40620 /* The GNU C library defines this for functions which it implements
40621 to always fail with ENOSYS. Some functions are actually named
40622 something starting with __ and the normal name is an alias. */
40623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40624 choke me
40625 #else
40626 char (*f) () = $ac_func;
40627 #endif
40628 #ifdef __cplusplus
40630 #endif
40633 main ()
40635 return f != $ac_func;
40637 return 0;
40639 _ACEOF
40640 rm -f conftest.$ac_objext conftest$ac_exeext
40641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40642 (eval $ac_link) 2>&5
40643 ac_status=$?
40644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40645 (exit $ac_status); } &&
40646 { ac_try='test -s conftest$ac_exeext'
40647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40648 (eval $ac_try) 2>&5
40649 ac_status=$?
40650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40651 (exit $ac_status); }; }; then
40652 eval "$as_ac_var=yes"
40653 else
40654 echo "$as_me: failed program was:" >&5
40655 sed 's/^/| /' conftest.$ac_ext >&5
40657 eval "$as_ac_var=no"
40659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40663 if test `eval echo '${'$as_ac_var'}'` = yes; then
40664 cat >>confdefs.h <<_ACEOF
40665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40666 _ACEOF
40669 done
40671 else
40673 echo "$as_me:$LINENO: checking for _powl declaration" >&5
40674 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40675 if test x${glibcxx_cv_func__powl_use+set} != xset; then
40676 if test "${glibcxx_cv_func__powl_use+set}" = set; then
40677 echo $ECHO_N "(cached) $ECHO_C" >&6
40678 else
40682 ac_ext=cc
40683 ac_cpp='$CXXCPP $CPPFLAGS'
40684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40688 cat >conftest.$ac_ext <<_ACEOF
40689 #line $LINENO "configure"
40690 /* confdefs.h. */
40691 _ACEOF
40692 cat confdefs.h >>conftest.$ac_ext
40693 cat >>conftest.$ac_ext <<_ACEOF
40694 /* end confdefs.h. */
40695 #include <math.h>
40697 main ()
40699 _powl(0, 0);
40701 return 0;
40703 _ACEOF
40704 rm -f conftest.$ac_objext
40705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40706 (eval $ac_compile) 2>&5
40707 ac_status=$?
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); } &&
40710 { ac_try='test -s conftest.$ac_objext'
40711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40712 (eval $ac_try) 2>&5
40713 ac_status=$?
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); }; }; then
40716 glibcxx_cv_func__powl_use=yes
40717 else
40718 echo "$as_me: failed program was:" >&5
40719 sed 's/^/| /' conftest.$ac_ext >&5
40721 glibcxx_cv_func__powl_use=no
40723 rm -f conftest.$ac_objext conftest.$ac_ext
40724 ac_ext=c
40725 ac_cpp='$CPP $CPPFLAGS'
40726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40734 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40735 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40737 if test x$glibcxx_cv_func__powl_use = x"yes"; then
40739 for ac_func in _powl
40741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40742 echo "$as_me:$LINENO: checking for $ac_func" >&5
40743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40744 if eval "test \"\${$as_ac_var+set}\" = set"; then
40745 echo $ECHO_N "(cached) $ECHO_C" >&6
40746 else
40747 if test x$gcc_no_link = xyes; then
40748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40750 { (exit 1); exit 1; }; }
40752 cat >conftest.$ac_ext <<_ACEOF
40753 #line $LINENO "configure"
40754 /* confdefs.h. */
40755 _ACEOF
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h. */
40759 /* System header to define __stub macros and hopefully few prototypes,
40760 which can conflict with char $ac_func (); below.
40761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40762 <limits.h> exists even on freestanding compilers. */
40763 #ifdef __STDC__
40764 # include <limits.h>
40765 #else
40766 # include <assert.h>
40767 #endif
40768 /* Override any gcc2 internal prototype to avoid an error. */
40769 #ifdef __cplusplus
40770 extern "C"
40772 #endif
40773 /* We use char because int might match the return type of a gcc2
40774 builtin and then its argument prototype would still apply. */
40775 char $ac_func ();
40776 /* The GNU C library defines this for functions which it implements
40777 to always fail with ENOSYS. Some functions are actually named
40778 something starting with __ and the normal name is an alias. */
40779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40780 choke me
40781 #else
40782 char (*f) () = $ac_func;
40783 #endif
40784 #ifdef __cplusplus
40786 #endif
40789 main ()
40791 return f != $ac_func;
40793 return 0;
40795 _ACEOF
40796 rm -f conftest.$ac_objext conftest$ac_exeext
40797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40798 (eval $ac_link) 2>&5
40799 ac_status=$?
40800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801 (exit $ac_status); } &&
40802 { ac_try='test -s conftest$ac_exeext'
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; }; then
40808 eval "$as_ac_var=yes"
40809 else
40810 echo "$as_me: failed program was:" >&5
40811 sed 's/^/| /' conftest.$ac_ext >&5
40813 eval "$as_ac_var=no"
40815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40819 if test `eval echo '${'$as_ac_var'}'` = yes; then
40820 cat >>confdefs.h <<_ACEOF
40821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40822 _ACEOF
40825 done
40832 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40833 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40834 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40835 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40836 echo $ECHO_N "(cached) $ECHO_C" >&6
40837 else
40841 ac_ext=cc
40842 ac_cpp='$CXXCPP $CPPFLAGS'
40843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40847 cat >conftest.$ac_ext <<_ACEOF
40848 #line $LINENO "configure"
40849 /* confdefs.h. */
40850 _ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h. */
40854 #include <math.h>
40855 #ifdef HAVE_IEEEFP_H
40856 #include <ieeefp.h>
40857 #endif
40860 main ()
40862 sqrtl(0);
40864 return 0;
40866 _ACEOF
40867 rm -f conftest.$ac_objext
40868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40869 (eval $ac_compile) 2>&5
40870 ac_status=$?
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } &&
40873 { ac_try='test -s conftest.$ac_objext'
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40876 ac_status=$?
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; }; then
40879 glibcxx_cv_func_sqrtl_use=yes
40880 else
40881 echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40884 glibcxx_cv_func_sqrtl_use=no
40886 rm -f conftest.$ac_objext conftest.$ac_ext
40887 ac_ext=c
40888 ac_cpp='$CPP $CPPFLAGS'
40889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40897 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40898 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40900 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40902 for ac_func in sqrtl
40904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40905 echo "$as_me:$LINENO: checking for $ac_func" >&5
40906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40907 if eval "test \"\${$as_ac_var+set}\" = set"; then
40908 echo $ECHO_N "(cached) $ECHO_C" >&6
40909 else
40910 if test x$gcc_no_link = xyes; then
40911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40913 { (exit 1); exit 1; }; }
40915 cat >conftest.$ac_ext <<_ACEOF
40916 #line $LINENO "configure"
40917 /* confdefs.h. */
40918 _ACEOF
40919 cat confdefs.h >>conftest.$ac_ext
40920 cat >>conftest.$ac_ext <<_ACEOF
40921 /* end confdefs.h. */
40922 /* System header to define __stub macros and hopefully few prototypes,
40923 which can conflict with char $ac_func (); below.
40924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40925 <limits.h> exists even on freestanding compilers. */
40926 #ifdef __STDC__
40927 # include <limits.h>
40928 #else
40929 # include <assert.h>
40930 #endif
40931 /* Override any gcc2 internal prototype to avoid an error. */
40932 #ifdef __cplusplus
40933 extern "C"
40935 #endif
40936 /* We use char because int might match the return type of a gcc2
40937 builtin and then its argument prototype would still apply. */
40938 char $ac_func ();
40939 /* The GNU C library defines this for functions which it implements
40940 to always fail with ENOSYS. Some functions are actually named
40941 something starting with __ and the normal name is an alias. */
40942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40943 choke me
40944 #else
40945 char (*f) () = $ac_func;
40946 #endif
40947 #ifdef __cplusplus
40949 #endif
40952 main ()
40954 return f != $ac_func;
40956 return 0;
40958 _ACEOF
40959 rm -f conftest.$ac_objext conftest$ac_exeext
40960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40961 (eval $ac_link) 2>&5
40962 ac_status=$?
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } &&
40965 { ac_try='test -s conftest$ac_exeext'
40966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40967 (eval $ac_try) 2>&5
40968 ac_status=$?
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); }; }; then
40971 eval "$as_ac_var=yes"
40972 else
40973 echo "$as_me: failed program was:" >&5
40974 sed 's/^/| /' conftest.$ac_ext >&5
40976 eval "$as_ac_var=no"
40978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40982 if test `eval echo '${'$as_ac_var'}'` = yes; then
40983 cat >>confdefs.h <<_ACEOF
40984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40985 _ACEOF
40988 done
40990 else
40992 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40993 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40994 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40995 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40996 echo $ECHO_N "(cached) $ECHO_C" >&6
40997 else
41001 ac_ext=cc
41002 ac_cpp='$CXXCPP $CPPFLAGS'
41003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41007 cat >conftest.$ac_ext <<_ACEOF
41008 #line $LINENO "configure"
41009 /* confdefs.h. */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h. */
41014 #include <math.h>
41015 #ifdef HAVE_IEEEFP_H
41016 #include <ieeefp.h>
41017 #endif
41020 main ()
41022 _sqrtl(0);
41024 return 0;
41026 _ACEOF
41027 rm -f conftest.$ac_objext
41028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41029 (eval $ac_compile) 2>&5
41030 ac_status=$?
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } &&
41033 { ac_try='test -s conftest.$ac_objext'
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; }; then
41039 glibcxx_cv_func__sqrtl_use=yes
41040 else
41041 echo "$as_me: failed program was:" >&5
41042 sed 's/^/| /' conftest.$ac_ext >&5
41044 glibcxx_cv_func__sqrtl_use=no
41046 rm -f conftest.$ac_objext conftest.$ac_ext
41047 ac_ext=c
41048 ac_cpp='$CPP $CPPFLAGS'
41049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41057 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
41058 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
41060 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
41062 for ac_func in _sqrtl
41064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41065 echo "$as_me:$LINENO: checking for $ac_func" >&5
41066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41067 if eval "test \"\${$as_ac_var+set}\" = set"; then
41068 echo $ECHO_N "(cached) $ECHO_C" >&6
41069 else
41070 if test x$gcc_no_link = xyes; then
41071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41073 { (exit 1); exit 1; }; }
41075 cat >conftest.$ac_ext <<_ACEOF
41076 #line $LINENO "configure"
41077 /* confdefs.h. */
41078 _ACEOF
41079 cat confdefs.h >>conftest.$ac_ext
41080 cat >>conftest.$ac_ext <<_ACEOF
41081 /* end confdefs.h. */
41082 /* System header to define __stub macros and hopefully few prototypes,
41083 which can conflict with char $ac_func (); below.
41084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41085 <limits.h> exists even on freestanding compilers. */
41086 #ifdef __STDC__
41087 # include <limits.h>
41088 #else
41089 # include <assert.h>
41090 #endif
41091 /* Override any gcc2 internal prototype to avoid an error. */
41092 #ifdef __cplusplus
41093 extern "C"
41095 #endif
41096 /* We use char because int might match the return type of a gcc2
41097 builtin and then its argument prototype would still apply. */
41098 char $ac_func ();
41099 /* The GNU C library defines this for functions which it implements
41100 to always fail with ENOSYS. Some functions are actually named
41101 something starting with __ and the normal name is an alias. */
41102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41103 choke me
41104 #else
41105 char (*f) () = $ac_func;
41106 #endif
41107 #ifdef __cplusplus
41109 #endif
41112 main ()
41114 return f != $ac_func;
41116 return 0;
41118 _ACEOF
41119 rm -f conftest.$ac_objext conftest$ac_exeext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41121 (eval $ac_link) 2>&5
41122 ac_status=$?
41123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124 (exit $ac_status); } &&
41125 { ac_try='test -s conftest$ac_exeext'
41126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127 (eval $ac_try) 2>&5
41128 ac_status=$?
41129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130 (exit $ac_status); }; }; then
41131 eval "$as_ac_var=yes"
41132 else
41133 echo "$as_me: failed program was:" >&5
41134 sed 's/^/| /' conftest.$ac_ext >&5
41136 eval "$as_ac_var=no"
41138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41142 if test `eval echo '${'$as_ac_var'}'` = yes; then
41143 cat >>confdefs.h <<_ACEOF
41144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41145 _ACEOF
41148 done
41155 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
41156 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
41157 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41158 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
41159 echo $ECHO_N "(cached) $ECHO_C" >&6
41160 else
41164 ac_ext=cc
41165 ac_cpp='$CXXCPP $CPPFLAGS'
41166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41170 cat >conftest.$ac_ext <<_ACEOF
41171 #line $LINENO "configure"
41172 /* confdefs.h. */
41173 _ACEOF
41174 cat confdefs.h >>conftest.$ac_ext
41175 cat >>conftest.$ac_ext <<_ACEOF
41176 /* end confdefs.h. */
41177 #include <math.h>
41179 main ()
41181 sincosl(0, 0, 0);
41183 return 0;
41185 _ACEOF
41186 rm -f conftest.$ac_objext
41187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41188 (eval $ac_compile) 2>&5
41189 ac_status=$?
41190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191 (exit $ac_status); } &&
41192 { ac_try='test -s conftest.$ac_objext'
41193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41194 (eval $ac_try) 2>&5
41195 ac_status=$?
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); }; }; then
41198 glibcxx_cv_func_sincosl_use=yes
41199 else
41200 echo "$as_me: failed program was:" >&5
41201 sed 's/^/| /' conftest.$ac_ext >&5
41203 glibcxx_cv_func_sincosl_use=no
41205 rm -f conftest.$ac_objext conftest.$ac_ext
41206 ac_ext=c
41207 ac_cpp='$CPP $CPPFLAGS'
41208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41216 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
41217 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
41219 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41221 for ac_func in sincosl
41223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41224 echo "$as_me:$LINENO: checking for $ac_func" >&5
41225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41226 if eval "test \"\${$as_ac_var+set}\" = set"; then
41227 echo $ECHO_N "(cached) $ECHO_C" >&6
41228 else
41229 if test x$gcc_no_link = xyes; then
41230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41232 { (exit 1); exit 1; }; }
41234 cat >conftest.$ac_ext <<_ACEOF
41235 #line $LINENO "configure"
41236 /* confdefs.h. */
41237 _ACEOF
41238 cat confdefs.h >>conftest.$ac_ext
41239 cat >>conftest.$ac_ext <<_ACEOF
41240 /* end confdefs.h. */
41241 /* System header to define __stub macros and hopefully few prototypes,
41242 which can conflict with char $ac_func (); below.
41243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41244 <limits.h> exists even on freestanding compilers. */
41245 #ifdef __STDC__
41246 # include <limits.h>
41247 #else
41248 # include <assert.h>
41249 #endif
41250 /* Override any gcc2 internal prototype to avoid an error. */
41251 #ifdef __cplusplus
41252 extern "C"
41254 #endif
41255 /* We use char because int might match the return type of a gcc2
41256 builtin and then its argument prototype would still apply. */
41257 char $ac_func ();
41258 /* The GNU C library defines this for functions which it implements
41259 to always fail with ENOSYS. Some functions are actually named
41260 something starting with __ and the normal name is an alias. */
41261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41262 choke me
41263 #else
41264 char (*f) () = $ac_func;
41265 #endif
41266 #ifdef __cplusplus
41268 #endif
41271 main ()
41273 return f != $ac_func;
41275 return 0;
41277 _ACEOF
41278 rm -f conftest.$ac_objext conftest$ac_exeext
41279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41280 (eval $ac_link) 2>&5
41281 ac_status=$?
41282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41283 (exit $ac_status); } &&
41284 { ac_try='test -s conftest$ac_exeext'
41285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41286 (eval $ac_try) 2>&5
41287 ac_status=$?
41288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); }; }; then
41290 eval "$as_ac_var=yes"
41291 else
41292 echo "$as_me: failed program was:" >&5
41293 sed 's/^/| /' conftest.$ac_ext >&5
41295 eval "$as_ac_var=no"
41297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41301 if test `eval echo '${'$as_ac_var'}'` = yes; then
41302 cat >>confdefs.h <<_ACEOF
41303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41304 _ACEOF
41307 done
41309 else
41311 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41312 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41313 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41314 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41315 echo $ECHO_N "(cached) $ECHO_C" >&6
41316 else
41320 ac_ext=cc
41321 ac_cpp='$CXXCPP $CPPFLAGS'
41322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41326 cat >conftest.$ac_ext <<_ACEOF
41327 #line $LINENO "configure"
41328 /* confdefs.h. */
41329 _ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h. */
41333 #include <math.h>
41335 main ()
41337 _sincosl(0, 0, 0);
41339 return 0;
41341 _ACEOF
41342 rm -f conftest.$ac_objext
41343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41344 (eval $ac_compile) 2>&5
41345 ac_status=$?
41346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41347 (exit $ac_status); } &&
41348 { ac_try='test -s conftest.$ac_objext'
41349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41350 (eval $ac_try) 2>&5
41351 ac_status=$?
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); }; }; then
41354 glibcxx_cv_func__sincosl_use=yes
41355 else
41356 echo "$as_me: failed program was:" >&5
41357 sed 's/^/| /' conftest.$ac_ext >&5
41359 glibcxx_cv_func__sincosl_use=no
41361 rm -f conftest.$ac_objext conftest.$ac_ext
41362 ac_ext=c
41363 ac_cpp='$CPP $CPPFLAGS'
41364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41372 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41373 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41375 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41377 for ac_func in _sincosl
41379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41380 echo "$as_me:$LINENO: checking for $ac_func" >&5
41381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41382 if eval "test \"\${$as_ac_var+set}\" = set"; then
41383 echo $ECHO_N "(cached) $ECHO_C" >&6
41384 else
41385 if test x$gcc_no_link = xyes; then
41386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41388 { (exit 1); exit 1; }; }
41390 cat >conftest.$ac_ext <<_ACEOF
41391 #line $LINENO "configure"
41392 /* confdefs.h. */
41393 _ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h. */
41397 /* System header to define __stub macros and hopefully few prototypes,
41398 which can conflict with char $ac_func (); below.
41399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41400 <limits.h> exists even on freestanding compilers. */
41401 #ifdef __STDC__
41402 # include <limits.h>
41403 #else
41404 # include <assert.h>
41405 #endif
41406 /* Override any gcc2 internal prototype to avoid an error. */
41407 #ifdef __cplusplus
41408 extern "C"
41410 #endif
41411 /* We use char because int might match the return type of a gcc2
41412 builtin and then its argument prototype would still apply. */
41413 char $ac_func ();
41414 /* The GNU C library defines this for functions which it implements
41415 to always fail with ENOSYS. Some functions are actually named
41416 something starting with __ and the normal name is an alias. */
41417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41418 choke me
41419 #else
41420 char (*f) () = $ac_func;
41421 #endif
41422 #ifdef __cplusplus
41424 #endif
41427 main ()
41429 return f != $ac_func;
41431 return 0;
41433 _ACEOF
41434 rm -f conftest.$ac_objext conftest$ac_exeext
41435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41436 (eval $ac_link) 2>&5
41437 ac_status=$?
41438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 (exit $ac_status); } &&
41440 { ac_try='test -s conftest$ac_exeext'
41441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41442 (eval $ac_try) 2>&5
41443 ac_status=$?
41444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41445 (exit $ac_status); }; }; then
41446 eval "$as_ac_var=yes"
41447 else
41448 echo "$as_me: failed program was:" >&5
41449 sed 's/^/| /' conftest.$ac_ext >&5
41451 eval "$as_ac_var=no"
41453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41457 if test `eval echo '${'$as_ac_var'}'` = yes; then
41458 cat >>confdefs.h <<_ACEOF
41459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41460 _ACEOF
41463 done
41470 echo "$as_me:$LINENO: checking for finitel declaration" >&5
41471 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41472 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41473 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41474 echo $ECHO_N "(cached) $ECHO_C" >&6
41475 else
41479 ac_ext=cc
41480 ac_cpp='$CXXCPP $CPPFLAGS'
41481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41485 cat >conftest.$ac_ext <<_ACEOF
41486 #line $LINENO "configure"
41487 /* confdefs.h. */
41488 _ACEOF
41489 cat confdefs.h >>conftest.$ac_ext
41490 cat >>conftest.$ac_ext <<_ACEOF
41491 /* end confdefs.h. */
41492 #include <math.h>
41493 #ifdef HAVE_IEEEFP_H
41494 #include <ieeefp.h>
41495 #endif
41498 main ()
41500 finitel(0);
41502 return 0;
41504 _ACEOF
41505 rm -f conftest.$ac_objext
41506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41507 (eval $ac_compile) 2>&5
41508 ac_status=$?
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); } &&
41511 { ac_try='test -s conftest.$ac_objext'
41512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513 (eval $ac_try) 2>&5
41514 ac_status=$?
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); }; }; then
41517 glibcxx_cv_func_finitel_use=yes
41518 else
41519 echo "$as_me: failed program was:" >&5
41520 sed 's/^/| /' conftest.$ac_ext >&5
41522 glibcxx_cv_func_finitel_use=no
41524 rm -f conftest.$ac_objext conftest.$ac_ext
41525 ac_ext=c
41526 ac_cpp='$CPP $CPPFLAGS'
41527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41535 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41536 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41538 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41540 for ac_func in finitel
41542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41543 echo "$as_me:$LINENO: checking for $ac_func" >&5
41544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41545 if eval "test \"\${$as_ac_var+set}\" = set"; then
41546 echo $ECHO_N "(cached) $ECHO_C" >&6
41547 else
41548 if test x$gcc_no_link = xyes; then
41549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41551 { (exit 1); exit 1; }; }
41553 cat >conftest.$ac_ext <<_ACEOF
41554 #line $LINENO "configure"
41555 /* confdefs.h. */
41556 _ACEOF
41557 cat confdefs.h >>conftest.$ac_ext
41558 cat >>conftest.$ac_ext <<_ACEOF
41559 /* end confdefs.h. */
41560 /* System header to define __stub macros and hopefully few prototypes,
41561 which can conflict with char $ac_func (); below.
41562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41563 <limits.h> exists even on freestanding compilers. */
41564 #ifdef __STDC__
41565 # include <limits.h>
41566 #else
41567 # include <assert.h>
41568 #endif
41569 /* Override any gcc2 internal prototype to avoid an error. */
41570 #ifdef __cplusplus
41571 extern "C"
41573 #endif
41574 /* We use char because int might match the return type of a gcc2
41575 builtin and then its argument prototype would still apply. */
41576 char $ac_func ();
41577 /* The GNU C library defines this for functions which it implements
41578 to always fail with ENOSYS. Some functions are actually named
41579 something starting with __ and the normal name is an alias. */
41580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41581 choke me
41582 #else
41583 char (*f) () = $ac_func;
41584 #endif
41585 #ifdef __cplusplus
41587 #endif
41590 main ()
41592 return f != $ac_func;
41594 return 0;
41596 _ACEOF
41597 rm -f conftest.$ac_objext conftest$ac_exeext
41598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41599 (eval $ac_link) 2>&5
41600 ac_status=$?
41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); } &&
41603 { ac_try='test -s conftest$ac_exeext'
41604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41605 (eval $ac_try) 2>&5
41606 ac_status=$?
41607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41608 (exit $ac_status); }; }; then
41609 eval "$as_ac_var=yes"
41610 else
41611 echo "$as_me: failed program was:" >&5
41612 sed 's/^/| /' conftest.$ac_ext >&5
41614 eval "$as_ac_var=no"
41616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41620 if test `eval echo '${'$as_ac_var'}'` = yes; then
41621 cat >>confdefs.h <<_ACEOF
41622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41623 _ACEOF
41626 done
41628 else
41630 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41631 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41632 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41633 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41634 echo $ECHO_N "(cached) $ECHO_C" >&6
41635 else
41639 ac_ext=cc
41640 ac_cpp='$CXXCPP $CPPFLAGS'
41641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41645 cat >conftest.$ac_ext <<_ACEOF
41646 #line $LINENO "configure"
41647 /* confdefs.h. */
41648 _ACEOF
41649 cat confdefs.h >>conftest.$ac_ext
41650 cat >>conftest.$ac_ext <<_ACEOF
41651 /* end confdefs.h. */
41652 #include <math.h>
41653 #ifdef HAVE_IEEEFP_H
41654 #include <ieeefp.h>
41655 #endif
41658 main ()
41660 _finitel(0);
41662 return 0;
41664 _ACEOF
41665 rm -f conftest.$ac_objext
41666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41667 (eval $ac_compile) 2>&5
41668 ac_status=$?
41669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670 (exit $ac_status); } &&
41671 { ac_try='test -s conftest.$ac_objext'
41672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41673 (eval $ac_try) 2>&5
41674 ac_status=$?
41675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41676 (exit $ac_status); }; }; then
41677 glibcxx_cv_func__finitel_use=yes
41678 else
41679 echo "$as_me: failed program was:" >&5
41680 sed 's/^/| /' conftest.$ac_ext >&5
41682 glibcxx_cv_func__finitel_use=no
41684 rm -f conftest.$ac_objext conftest.$ac_ext
41685 ac_ext=c
41686 ac_cpp='$CPP $CPPFLAGS'
41687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41695 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41696 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41698 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41700 for ac_func in _finitel
41702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41703 echo "$as_me:$LINENO: checking for $ac_func" >&5
41704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41705 if eval "test \"\${$as_ac_var+set}\" = set"; then
41706 echo $ECHO_N "(cached) $ECHO_C" >&6
41707 else
41708 if test x$gcc_no_link = xyes; then
41709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41711 { (exit 1); exit 1; }; }
41713 cat >conftest.$ac_ext <<_ACEOF
41714 #line $LINENO "configure"
41715 /* confdefs.h. */
41716 _ACEOF
41717 cat confdefs.h >>conftest.$ac_ext
41718 cat >>conftest.$ac_ext <<_ACEOF
41719 /* end confdefs.h. */
41720 /* System header to define __stub macros and hopefully few prototypes,
41721 which can conflict with char $ac_func (); below.
41722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41723 <limits.h> exists even on freestanding compilers. */
41724 #ifdef __STDC__
41725 # include <limits.h>
41726 #else
41727 # include <assert.h>
41728 #endif
41729 /* Override any gcc2 internal prototype to avoid an error. */
41730 #ifdef __cplusplus
41731 extern "C"
41733 #endif
41734 /* We use char because int might match the return type of a gcc2
41735 builtin and then its argument prototype would still apply. */
41736 char $ac_func ();
41737 /* The GNU C library defines this for functions which it implements
41738 to always fail with ENOSYS. Some functions are actually named
41739 something starting with __ and the normal name is an alias. */
41740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41741 choke me
41742 #else
41743 char (*f) () = $ac_func;
41744 #endif
41745 #ifdef __cplusplus
41747 #endif
41750 main ()
41752 return f != $ac_func;
41754 return 0;
41756 _ACEOF
41757 rm -f conftest.$ac_objext conftest$ac_exeext
41758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41759 (eval $ac_link) 2>&5
41760 ac_status=$?
41761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762 (exit $ac_status); } &&
41763 { ac_try='test -s conftest$ac_exeext'
41764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41765 (eval $ac_try) 2>&5
41766 ac_status=$?
41767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41768 (exit $ac_status); }; }; then
41769 eval "$as_ac_var=yes"
41770 else
41771 echo "$as_me: failed program was:" >&5
41772 sed 's/^/| /' conftest.$ac_ext >&5
41774 eval "$as_ac_var=no"
41776 rm -f conftest.$ac_objext 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
41794 echo "$as_me:$LINENO: checking for _float trig functions" >&5
41795 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41796 if test "${glibcxx_cv_func__float_trig_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 #line $LINENO "configure"
41810 /* confdefs.h. */
41811 _ACEOF
41812 cat confdefs.h >>conftest.$ac_ext
41813 cat >>conftest.$ac_ext <<_ACEOF
41814 /* end confdefs.h. */
41815 #include <math.h>
41817 main ()
41819 `for x in _acosf _asinf _atanf \
41820 _cosf _sinf _tanf \
41821 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41823 return 0;
41825 _ACEOF
41826 rm -f conftest.$ac_objext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41828 (eval $ac_compile) 2>&5
41829 ac_status=$?
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); } &&
41832 { ac_try='test -s conftest.$ac_objext'
41833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41834 (eval $ac_try) 2>&5
41835 ac_status=$?
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); }; }; then
41838 glibcxx_cv_func__float_trig_use=yes
41839 else
41840 echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41843 glibcxx_cv_func__float_trig_use=no
41845 rm -f conftest.$ac_objext conftest.$ac_ext
41846 ac_ext=c
41847 ac_cpp='$CPP $CPPFLAGS'
41848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41854 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41855 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41856 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41866 for ac_func in _acosf _asinf _atanf \
41867 _cosf _sinf _tanf \
41868 _coshf _sinhf _tanhf
41870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41871 echo "$as_me:$LINENO: checking for $ac_func" >&5
41872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41873 if eval "test \"\${$as_ac_var+set}\" = set"; then
41874 echo $ECHO_N "(cached) $ECHO_C" >&6
41875 else
41876 if test x$gcc_no_link = xyes; then
41877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41879 { (exit 1); exit 1; }; }
41881 cat >conftest.$ac_ext <<_ACEOF
41882 #line $LINENO "configure"
41883 /* confdefs.h. */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h. */
41888 /* System header to define __stub macros and hopefully few prototypes,
41889 which can conflict with char $ac_func (); below.
41890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41891 <limits.h> exists even on freestanding compilers. */
41892 #ifdef __STDC__
41893 # include <limits.h>
41894 #else
41895 # include <assert.h>
41896 #endif
41897 /* Override any gcc2 internal prototype to avoid an error. */
41898 #ifdef __cplusplus
41899 extern "C"
41901 #endif
41902 /* We use char because int might match the return type of a gcc2
41903 builtin and then its argument prototype would still apply. */
41904 char $ac_func ();
41905 /* The GNU C library defines this for functions which it implements
41906 to always fail with ENOSYS. Some functions are actually named
41907 something starting with __ and the normal name is an alias. */
41908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41909 choke me
41910 #else
41911 char (*f) () = $ac_func;
41912 #endif
41913 #ifdef __cplusplus
41915 #endif
41918 main ()
41920 return f != $ac_func;
41922 return 0;
41924 _ACEOF
41925 rm -f conftest.$ac_objext conftest$ac_exeext
41926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41927 (eval $ac_link) 2>&5
41928 ac_status=$?
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); } &&
41931 { ac_try='test -s conftest$ac_exeext'
41932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41933 (eval $ac_try) 2>&5
41934 ac_status=$?
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); }; }; then
41937 eval "$as_ac_var=yes"
41938 else
41939 echo "$as_me: failed program was:" >&5
41940 sed 's/^/| /' conftest.$ac_ext >&5
41942 eval "$as_ac_var=no"
41944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41948 if test `eval echo '${'$as_ac_var'}'` = yes; then
41949 cat >>confdefs.h <<_ACEOF
41950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41951 _ACEOF
41954 done
41959 echo "$as_me:$LINENO: checking for _float round functions" >&5
41960 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41961 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41962 echo $ECHO_N "(cached) $ECHO_C" >&6
41963 else
41967 ac_ext=cc
41968 ac_cpp='$CXXCPP $CPPFLAGS'
41969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41973 cat >conftest.$ac_ext <<_ACEOF
41974 #line $LINENO "configure"
41975 /* confdefs.h. */
41976 _ACEOF
41977 cat confdefs.h >>conftest.$ac_ext
41978 cat >>conftest.$ac_ext <<_ACEOF
41979 /* end confdefs.h. */
41980 #include <math.h>
41982 main ()
41984 `for x in _ceilf _floorf; do echo "$x (0);"; done`
41986 return 0;
41988 _ACEOF
41989 rm -f conftest.$ac_objext
41990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41991 (eval $ac_compile) 2>&5
41992 ac_status=$?
41993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); } &&
41995 { ac_try='test -s conftest.$ac_objext'
41996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41997 (eval $ac_try) 2>&5
41998 ac_status=$?
41999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42000 (exit $ac_status); }; }; then
42001 glibcxx_cv_func__float_round_use=yes
42002 else
42003 echo "$as_me: failed program was:" >&5
42004 sed 's/^/| /' conftest.$ac_ext >&5
42006 glibcxx_cv_func__float_round_use=no
42008 rm -f conftest.$ac_objext conftest.$ac_ext
42009 ac_ext=c
42010 ac_cpp='$CPP $CPPFLAGS'
42011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42017 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
42018 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
42019 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
42022 for ac_func in _ceilf _floorf
42024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42025 echo "$as_me:$LINENO: checking for $ac_func" >&5
42026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42027 if eval "test \"\${$as_ac_var+set}\" = set"; then
42028 echo $ECHO_N "(cached) $ECHO_C" >&6
42029 else
42030 if test x$gcc_no_link = xyes; then
42031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42033 { (exit 1); exit 1; }; }
42035 cat >conftest.$ac_ext <<_ACEOF
42036 #line $LINENO "configure"
42037 /* confdefs.h. */
42038 _ACEOF
42039 cat confdefs.h >>conftest.$ac_ext
42040 cat >>conftest.$ac_ext <<_ACEOF
42041 /* end confdefs.h. */
42042 /* System header to define __stub macros and hopefully few prototypes,
42043 which can conflict with char $ac_func (); below.
42044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42045 <limits.h> exists even on freestanding compilers. */
42046 #ifdef __STDC__
42047 # include <limits.h>
42048 #else
42049 # include <assert.h>
42050 #endif
42051 /* Override any gcc2 internal prototype to avoid an error. */
42052 #ifdef __cplusplus
42053 extern "C"
42055 #endif
42056 /* We use char because int might match the return type of a gcc2
42057 builtin and then its argument prototype would still apply. */
42058 char $ac_func ();
42059 /* The GNU C library defines this for functions which it implements
42060 to always fail with ENOSYS. Some functions are actually named
42061 something starting with __ and the normal name is an alias. */
42062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42063 choke me
42064 #else
42065 char (*f) () = $ac_func;
42066 #endif
42067 #ifdef __cplusplus
42069 #endif
42072 main ()
42074 return f != $ac_func;
42076 return 0;
42078 _ACEOF
42079 rm -f conftest.$ac_objext conftest$ac_exeext
42080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42081 (eval $ac_link) 2>&5
42082 ac_status=$?
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); } &&
42085 { ac_try='test -s conftest$ac_exeext'
42086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087 (eval $ac_try) 2>&5
42088 ac_status=$?
42089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); }; }; then
42091 eval "$as_ac_var=yes"
42092 else
42093 echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42096 eval "$as_ac_var=no"
42098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42102 if test `eval echo '${'$as_ac_var'}'` = yes; then
42103 cat >>confdefs.h <<_ACEOF
42104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42105 _ACEOF
42108 done
42114 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
42115 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
42116 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
42117 echo $ECHO_N "(cached) $ECHO_C" >&6
42118 else
42122 ac_ext=cc
42123 ac_cpp='$CXXCPP $CPPFLAGS'
42124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42128 cat >conftest.$ac_ext <<_ACEOF
42129 #line $LINENO "configure"
42130 /* confdefs.h. */
42131 _ACEOF
42132 cat confdefs.h >>conftest.$ac_ext
42133 cat >>conftest.$ac_ext <<_ACEOF
42134 /* end confdefs.h. */
42135 #include <math.h>
42137 main ()
42139 `for x in _acosl _asinl _atanl \
42140 _cosl _sinl _tanl \
42141 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
42143 return 0;
42145 _ACEOF
42146 rm -f conftest.$ac_objext
42147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42148 (eval $ac_compile) 2>&5
42149 ac_status=$?
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); } &&
42152 { ac_try='test -s conftest.$ac_objext'
42153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42154 (eval $ac_try) 2>&5
42155 ac_status=$?
42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157 (exit $ac_status); }; }; then
42158 glibcxx_cv_func__long_double_trig_use=yes
42159 else
42160 echo "$as_me: failed program was:" >&5
42161 sed 's/^/| /' conftest.$ac_ext >&5
42163 glibcxx_cv_func__long_double_trig_use=no
42165 rm -f conftest.$ac_objext conftest.$ac_ext
42166 ac_ext=c
42167 ac_cpp='$CPP $CPPFLAGS'
42168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42174 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
42175 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
42176 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
42186 for ac_func in _acosl _asinl _atanl \
42187 _cosl _sinl _tanl \
42188 _coshl _sinhl _tanhl
42190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42191 echo "$as_me:$LINENO: checking for $ac_func" >&5
42192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42193 if eval "test \"\${$as_ac_var+set}\" = set"; then
42194 echo $ECHO_N "(cached) $ECHO_C" >&6
42195 else
42196 if test x$gcc_no_link = xyes; then
42197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42199 { (exit 1); exit 1; }; }
42201 cat >conftest.$ac_ext <<_ACEOF
42202 #line $LINENO "configure"
42203 /* confdefs.h. */
42204 _ACEOF
42205 cat confdefs.h >>conftest.$ac_ext
42206 cat >>conftest.$ac_ext <<_ACEOF
42207 /* end confdefs.h. */
42208 /* System header to define __stub macros and hopefully few prototypes,
42209 which can conflict with char $ac_func (); below.
42210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42211 <limits.h> exists even on freestanding compilers. */
42212 #ifdef __STDC__
42213 # include <limits.h>
42214 #else
42215 # include <assert.h>
42216 #endif
42217 /* Override any gcc2 internal prototype to avoid an error. */
42218 #ifdef __cplusplus
42219 extern "C"
42221 #endif
42222 /* We use char because int might match the return type of a gcc2
42223 builtin and then its argument prototype would still apply. */
42224 char $ac_func ();
42225 /* The GNU C library defines this for functions which it implements
42226 to always fail with ENOSYS. Some functions are actually named
42227 something starting with __ and the normal name is an alias. */
42228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42229 choke me
42230 #else
42231 char (*f) () = $ac_func;
42232 #endif
42233 #ifdef __cplusplus
42235 #endif
42238 main ()
42240 return f != $ac_func;
42242 return 0;
42244 _ACEOF
42245 rm -f conftest.$ac_objext conftest$ac_exeext
42246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42247 (eval $ac_link) 2>&5
42248 ac_status=$?
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); } &&
42251 { ac_try='test -s conftest$ac_exeext'
42252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42253 (eval $ac_try) 2>&5
42254 ac_status=$?
42255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256 (exit $ac_status); }; }; then
42257 eval "$as_ac_var=yes"
42258 else
42259 echo "$as_me: failed program was:" >&5
42260 sed 's/^/| /' conftest.$ac_ext >&5
42262 eval "$as_ac_var=no"
42264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42268 if test `eval echo '${'$as_ac_var'}'` = yes; then
42269 cat >>confdefs.h <<_ACEOF
42270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42271 _ACEOF
42274 done
42279 echo "$as_me:$LINENO: checking for _long double round functions" >&5
42280 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
42281 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
42282 echo $ECHO_N "(cached) $ECHO_C" >&6
42283 else
42287 ac_ext=cc
42288 ac_cpp='$CXXCPP $CPPFLAGS'
42289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42293 cat >conftest.$ac_ext <<_ACEOF
42294 #line $LINENO "configure"
42295 /* confdefs.h. */
42296 _ACEOF
42297 cat confdefs.h >>conftest.$ac_ext
42298 cat >>conftest.$ac_ext <<_ACEOF
42299 /* end confdefs.h. */
42300 #include <math.h>
42302 main ()
42304 `for x in _ceill _floorl; do echo "$x (0);"; done`
42306 return 0;
42308 _ACEOF
42309 rm -f conftest.$ac_objext
42310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42311 (eval $ac_compile) 2>&5
42312 ac_status=$?
42313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42314 (exit $ac_status); } &&
42315 { ac_try='test -s conftest.$ac_objext'
42316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42317 (eval $ac_try) 2>&5
42318 ac_status=$?
42319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320 (exit $ac_status); }; }; then
42321 glibcxx_cv_func__long_double_round_use=yes
42322 else
42323 echo "$as_me: failed program was:" >&5
42324 sed 's/^/| /' conftest.$ac_ext >&5
42326 glibcxx_cv_func__long_double_round_use=no
42328 rm -f conftest.$ac_objext conftest.$ac_ext
42329 ac_ext=c
42330 ac_cpp='$CPP $CPPFLAGS'
42331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42337 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42338 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42339 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42342 for ac_func in _ceill _floorl
42344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42345 echo "$as_me:$LINENO: checking for $ac_func" >&5
42346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42347 if eval "test \"\${$as_ac_var+set}\" = set"; then
42348 echo $ECHO_N "(cached) $ECHO_C" >&6
42349 else
42350 if test x$gcc_no_link = xyes; then
42351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42353 { (exit 1); exit 1; }; }
42355 cat >conftest.$ac_ext <<_ACEOF
42356 #line $LINENO "configure"
42357 /* confdefs.h. */
42358 _ACEOF
42359 cat confdefs.h >>conftest.$ac_ext
42360 cat >>conftest.$ac_ext <<_ACEOF
42361 /* end confdefs.h. */
42362 /* System header to define __stub macros and hopefully few prototypes,
42363 which can conflict with char $ac_func (); below.
42364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42365 <limits.h> exists even on freestanding compilers. */
42366 #ifdef __STDC__
42367 # include <limits.h>
42368 #else
42369 # include <assert.h>
42370 #endif
42371 /* Override any gcc2 internal prototype to avoid an error. */
42372 #ifdef __cplusplus
42373 extern "C"
42375 #endif
42376 /* We use char because int might match the return type of a gcc2
42377 builtin and then its argument prototype would still apply. */
42378 char $ac_func ();
42379 /* The GNU C library defines this for functions which it implements
42380 to always fail with ENOSYS. Some functions are actually named
42381 something starting with __ and the normal name is an alias. */
42382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42383 choke me
42384 #else
42385 char (*f) () = $ac_func;
42386 #endif
42387 #ifdef __cplusplus
42389 #endif
42392 main ()
42394 return f != $ac_func;
42396 return 0;
42398 _ACEOF
42399 rm -f conftest.$ac_objext conftest$ac_exeext
42400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42401 (eval $ac_link) 2>&5
42402 ac_status=$?
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); } &&
42405 { ac_try='test -s conftest$ac_exeext'
42406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42407 (eval $ac_try) 2>&5
42408 ac_status=$?
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); }; }; then
42411 eval "$as_ac_var=yes"
42412 else
42413 echo "$as_me: failed program was:" >&5
42414 sed 's/^/| /' conftest.$ac_ext >&5
42416 eval "$as_ac_var=no"
42418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42422 if test `eval echo '${'$as_ac_var'}'` = yes; then
42423 cat >>confdefs.h <<_ACEOF
42424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42425 _ACEOF
42428 done
42433 LIBS="$ac_save_LIBS"
42434 CXXFLAGS="$ac_save_CXXFLAGS"
42438 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42439 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42440 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42441 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42442 echo $ECHO_N "(cached) $ECHO_C" >&6
42443 else
42447 ac_ext=cc
42448 ac_cpp='$CXXCPP $CPPFLAGS'
42449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42453 cat >conftest.$ac_ext <<_ACEOF
42454 #line $LINENO "configure"
42455 /* confdefs.h. */
42456 _ACEOF
42457 cat confdefs.h >>conftest.$ac_ext
42458 cat >>conftest.$ac_ext <<_ACEOF
42459 /* end confdefs.h. */
42460 #include <math.h>
42462 main ()
42464 __builtin_abs(0);
42466 return 0;
42468 _ACEOF
42469 rm -f conftest.$ac_objext
42470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42471 (eval $ac_compile) 2>&5
42472 ac_status=$?
42473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474 (exit $ac_status); } &&
42475 { ac_try='test -s conftest.$ac_objext'
42476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42477 (eval $ac_try) 2>&5
42478 ac_status=$?
42479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 (exit $ac_status); }; }; then
42481 glibcxx_cv_func___builtin_abs_use=yes
42482 else
42483 echo "$as_me: failed program was:" >&5
42484 sed 's/^/| /' conftest.$ac_ext >&5
42486 glibcxx_cv_func___builtin_abs_use=no
42488 rm -f conftest.$ac_objext conftest.$ac_ext
42489 ac_ext=c
42490 ac_cpp='$CPP $CPPFLAGS'
42491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42499 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42500 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42501 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42502 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42503 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42504 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42505 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42506 echo $ECHO_N "(cached) $ECHO_C" >&6
42507 else
42509 if test x$gcc_no_link = xyes; then
42510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42512 { (exit 1); exit 1; }; }
42514 cat >conftest.$ac_ext <<_ACEOF
42515 #line $LINENO "configure"
42516 /* confdefs.h. */
42517 _ACEOF
42518 cat confdefs.h >>conftest.$ac_ext
42519 cat >>conftest.$ac_ext <<_ACEOF
42520 /* end confdefs.h. */
42521 #include <math.h>
42523 main ()
42525 __builtin_abs(0);
42527 return 0;
42529 _ACEOF
42530 rm -f conftest.$ac_objext conftest$ac_exeext
42531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42532 (eval $ac_link) 2>&5
42533 ac_status=$?
42534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535 (exit $ac_status); } &&
42536 { ac_try='test -s conftest$ac_exeext'
42537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42538 (eval $ac_try) 2>&5
42539 ac_status=$?
42540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541 (exit $ac_status); }; }; then
42542 glibcxx_cv_func___builtin_abs_link=yes
42543 else
42544 echo "$as_me: failed program was:" >&5
42545 sed 's/^/| /' conftest.$ac_ext >&5
42547 glibcxx_cv_func___builtin_abs_link=no
42549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42554 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42555 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42556 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42557 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42558 cat >>confdefs.h <<_ACEOF
42559 #define ${ac_tr_func} 1
42560 _ACEOF
42566 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42567 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42568 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42569 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42570 echo $ECHO_N "(cached) $ECHO_C" >&6
42571 else
42575 ac_ext=cc
42576 ac_cpp='$CXXCPP $CPPFLAGS'
42577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42581 cat >conftest.$ac_ext <<_ACEOF
42582 #line $LINENO "configure"
42583 /* confdefs.h. */
42584 _ACEOF
42585 cat confdefs.h >>conftest.$ac_ext
42586 cat >>conftest.$ac_ext <<_ACEOF
42587 /* end confdefs.h. */
42588 #include <math.h>
42590 main ()
42592 __builtin_fabsf(0);
42594 return 0;
42596 _ACEOF
42597 rm -f conftest.$ac_objext
42598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42599 (eval $ac_compile) 2>&5
42600 ac_status=$?
42601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42602 (exit $ac_status); } &&
42603 { ac_try='test -s conftest.$ac_objext'
42604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42605 (eval $ac_try) 2>&5
42606 ac_status=$?
42607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608 (exit $ac_status); }; }; then
42609 glibcxx_cv_func___builtin_fabsf_use=yes
42610 else
42611 echo "$as_me: failed program was:" >&5
42612 sed 's/^/| /' conftest.$ac_ext >&5
42614 glibcxx_cv_func___builtin_fabsf_use=no
42616 rm -f conftest.$ac_objext conftest.$ac_ext
42617 ac_ext=c
42618 ac_cpp='$CPP $CPPFLAGS'
42619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42627 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42628 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42629 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42630 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42631 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42632 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42633 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42634 echo $ECHO_N "(cached) $ECHO_C" >&6
42635 else
42637 if test x$gcc_no_link = xyes; then
42638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42640 { (exit 1); exit 1; }; }
42642 cat >conftest.$ac_ext <<_ACEOF
42643 #line $LINENO "configure"
42644 /* confdefs.h. */
42645 _ACEOF
42646 cat confdefs.h >>conftest.$ac_ext
42647 cat >>conftest.$ac_ext <<_ACEOF
42648 /* end confdefs.h. */
42649 #include <math.h>
42651 main ()
42653 __builtin_fabsf(0);
42655 return 0;
42657 _ACEOF
42658 rm -f conftest.$ac_objext conftest$ac_exeext
42659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42660 (eval $ac_link) 2>&5
42661 ac_status=$?
42662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663 (exit $ac_status); } &&
42664 { ac_try='test -s conftest$ac_exeext'
42665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42666 (eval $ac_try) 2>&5
42667 ac_status=$?
42668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669 (exit $ac_status); }; }; then
42670 glibcxx_cv_func___builtin_fabsf_link=yes
42671 else
42672 echo "$as_me: failed program was:" >&5
42673 sed 's/^/| /' conftest.$ac_ext >&5
42675 glibcxx_cv_func___builtin_fabsf_link=no
42677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42682 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42683 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42684 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42685 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42686 cat >>confdefs.h <<_ACEOF
42687 #define ${ac_tr_func} 1
42688 _ACEOF
42694 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42695 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42696 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42697 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42698 echo $ECHO_N "(cached) $ECHO_C" >&6
42699 else
42703 ac_ext=cc
42704 ac_cpp='$CXXCPP $CPPFLAGS'
42705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42709 cat >conftest.$ac_ext <<_ACEOF
42710 #line $LINENO "configure"
42711 /* confdefs.h. */
42712 _ACEOF
42713 cat confdefs.h >>conftest.$ac_ext
42714 cat >>conftest.$ac_ext <<_ACEOF
42715 /* end confdefs.h. */
42716 #include <math.h>
42718 main ()
42720 __builtin_fabs(0);
42722 return 0;
42724 _ACEOF
42725 rm -f conftest.$ac_objext
42726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42727 (eval $ac_compile) 2>&5
42728 ac_status=$?
42729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42730 (exit $ac_status); } &&
42731 { ac_try='test -s conftest.$ac_objext'
42732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42733 (eval $ac_try) 2>&5
42734 ac_status=$?
42735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42736 (exit $ac_status); }; }; then
42737 glibcxx_cv_func___builtin_fabs_use=yes
42738 else
42739 echo "$as_me: failed program was:" >&5
42740 sed 's/^/| /' conftest.$ac_ext >&5
42742 glibcxx_cv_func___builtin_fabs_use=no
42744 rm -f conftest.$ac_objext conftest.$ac_ext
42745 ac_ext=c
42746 ac_cpp='$CPP $CPPFLAGS'
42747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42755 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42756 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42757 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42758 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42759 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42760 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42761 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42762 echo $ECHO_N "(cached) $ECHO_C" >&6
42763 else
42765 if test x$gcc_no_link = xyes; then
42766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42768 { (exit 1); exit 1; }; }
42770 cat >conftest.$ac_ext <<_ACEOF
42771 #line $LINENO "configure"
42772 /* confdefs.h. */
42773 _ACEOF
42774 cat confdefs.h >>conftest.$ac_ext
42775 cat >>conftest.$ac_ext <<_ACEOF
42776 /* end confdefs.h. */
42777 #include <math.h>
42779 main ()
42781 __builtin_fabs(0);
42783 return 0;
42785 _ACEOF
42786 rm -f conftest.$ac_objext conftest$ac_exeext
42787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42788 (eval $ac_link) 2>&5
42789 ac_status=$?
42790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791 (exit $ac_status); } &&
42792 { ac_try='test -s conftest$ac_exeext'
42793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42794 (eval $ac_try) 2>&5
42795 ac_status=$?
42796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); }; }; then
42798 glibcxx_cv_func___builtin_fabs_link=yes
42799 else
42800 echo "$as_me: failed program was:" >&5
42801 sed 's/^/| /' conftest.$ac_ext >&5
42803 glibcxx_cv_func___builtin_fabs_link=no
42805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42810 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42811 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42812 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42813 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42814 cat >>confdefs.h <<_ACEOF
42815 #define ${ac_tr_func} 1
42816 _ACEOF
42822 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42823 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42824 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42825 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42826 echo $ECHO_N "(cached) $ECHO_C" >&6
42827 else
42831 ac_ext=cc
42832 ac_cpp='$CXXCPP $CPPFLAGS'
42833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42837 cat >conftest.$ac_ext <<_ACEOF
42838 #line $LINENO "configure"
42839 /* confdefs.h. */
42840 _ACEOF
42841 cat confdefs.h >>conftest.$ac_ext
42842 cat >>conftest.$ac_ext <<_ACEOF
42843 /* end confdefs.h. */
42844 #include <math.h>
42846 main ()
42848 __builtin_fabsl(0);
42850 return 0;
42852 _ACEOF
42853 rm -f conftest.$ac_objext
42854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42855 (eval $ac_compile) 2>&5
42856 ac_status=$?
42857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42858 (exit $ac_status); } &&
42859 { ac_try='test -s conftest.$ac_objext'
42860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42861 (eval $ac_try) 2>&5
42862 ac_status=$?
42863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42864 (exit $ac_status); }; }; then
42865 glibcxx_cv_func___builtin_fabsl_use=yes
42866 else
42867 echo "$as_me: failed program was:" >&5
42868 sed 's/^/| /' conftest.$ac_ext >&5
42870 glibcxx_cv_func___builtin_fabsl_use=no
42872 rm -f conftest.$ac_objext conftest.$ac_ext
42873 ac_ext=c
42874 ac_cpp='$CPP $CPPFLAGS'
42875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42883 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42884 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42885 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42886 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42887 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42888 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42889 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42890 echo $ECHO_N "(cached) $ECHO_C" >&6
42891 else
42893 if test x$gcc_no_link = xyes; then
42894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42896 { (exit 1); exit 1; }; }
42898 cat >conftest.$ac_ext <<_ACEOF
42899 #line $LINENO "configure"
42900 /* confdefs.h. */
42901 _ACEOF
42902 cat confdefs.h >>conftest.$ac_ext
42903 cat >>conftest.$ac_ext <<_ACEOF
42904 /* end confdefs.h. */
42905 #include <math.h>
42907 main ()
42909 __builtin_fabsl(0);
42911 return 0;
42913 _ACEOF
42914 rm -f conftest.$ac_objext conftest$ac_exeext
42915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42916 (eval $ac_link) 2>&5
42917 ac_status=$?
42918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919 (exit $ac_status); } &&
42920 { ac_try='test -s conftest$ac_exeext'
42921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42922 (eval $ac_try) 2>&5
42923 ac_status=$?
42924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925 (exit $ac_status); }; }; then
42926 glibcxx_cv_func___builtin_fabsl_link=yes
42927 else
42928 echo "$as_me: failed program was:" >&5
42929 sed 's/^/| /' conftest.$ac_ext >&5
42931 glibcxx_cv_func___builtin_fabsl_link=no
42933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42938 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42939 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42940 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42941 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42942 cat >>confdefs.h <<_ACEOF
42943 #define ${ac_tr_func} 1
42944 _ACEOF
42950 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42951 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42952 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42953 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42954 echo $ECHO_N "(cached) $ECHO_C" >&6
42955 else
42959 ac_ext=cc
42960 ac_cpp='$CXXCPP $CPPFLAGS'
42961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42965 cat >conftest.$ac_ext <<_ACEOF
42966 #line $LINENO "configure"
42967 /* confdefs.h. */
42968 _ACEOF
42969 cat confdefs.h >>conftest.$ac_ext
42970 cat >>conftest.$ac_ext <<_ACEOF
42971 /* end confdefs.h. */
42972 #include <math.h>
42974 main ()
42976 __builtin_labs(0);
42978 return 0;
42980 _ACEOF
42981 rm -f conftest.$ac_objext
42982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42983 (eval $ac_compile) 2>&5
42984 ac_status=$?
42985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); } &&
42987 { ac_try='test -s conftest.$ac_objext'
42988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42989 (eval $ac_try) 2>&5
42990 ac_status=$?
42991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42992 (exit $ac_status); }; }; then
42993 glibcxx_cv_func___builtin_labs_use=yes
42994 else
42995 echo "$as_me: failed program was:" >&5
42996 sed 's/^/| /' conftest.$ac_ext >&5
42998 glibcxx_cv_func___builtin_labs_use=no
43000 rm -f conftest.$ac_objext conftest.$ac_ext
43001 ac_ext=c
43002 ac_cpp='$CPP $CPPFLAGS'
43003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43011 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
43012 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
43013 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
43014 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
43015 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
43016 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
43017 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
43018 echo $ECHO_N "(cached) $ECHO_C" >&6
43019 else
43021 if test x$gcc_no_link = xyes; then
43022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43024 { (exit 1); exit 1; }; }
43026 cat >conftest.$ac_ext <<_ACEOF
43027 #line $LINENO "configure"
43028 /* confdefs.h. */
43029 _ACEOF
43030 cat confdefs.h >>conftest.$ac_ext
43031 cat >>conftest.$ac_ext <<_ACEOF
43032 /* end confdefs.h. */
43033 #include <math.h>
43035 main ()
43037 __builtin_labs(0);
43039 return 0;
43041 _ACEOF
43042 rm -f conftest.$ac_objext conftest$ac_exeext
43043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43044 (eval $ac_link) 2>&5
43045 ac_status=$?
43046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43047 (exit $ac_status); } &&
43048 { ac_try='test -s conftest$ac_exeext'
43049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43050 (eval $ac_try) 2>&5
43051 ac_status=$?
43052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43053 (exit $ac_status); }; }; then
43054 glibcxx_cv_func___builtin_labs_link=yes
43055 else
43056 echo "$as_me: failed program was:" >&5
43057 sed 's/^/| /' conftest.$ac_ext >&5
43059 glibcxx_cv_func___builtin_labs_link=no
43061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43066 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
43067 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
43068 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
43069 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43070 cat >>confdefs.h <<_ACEOF
43071 #define ${ac_tr_func} 1
43072 _ACEOF
43079 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
43080 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
43081 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
43082 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
43083 echo $ECHO_N "(cached) $ECHO_C" >&6
43084 else
43088 ac_ext=cc
43089 ac_cpp='$CXXCPP $CPPFLAGS'
43090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43094 cat >conftest.$ac_ext <<_ACEOF
43095 #line $LINENO "configure"
43096 /* confdefs.h. */
43097 _ACEOF
43098 cat confdefs.h >>conftest.$ac_ext
43099 cat >>conftest.$ac_ext <<_ACEOF
43100 /* end confdefs.h. */
43101 #include <math.h>
43103 main ()
43105 __builtin_sqrtf(0);
43107 return 0;
43109 _ACEOF
43110 rm -f conftest.$ac_objext
43111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43112 (eval $ac_compile) 2>&5
43113 ac_status=$?
43114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43115 (exit $ac_status); } &&
43116 { ac_try='test -s conftest.$ac_objext'
43117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43118 (eval $ac_try) 2>&5
43119 ac_status=$?
43120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43121 (exit $ac_status); }; }; then
43122 glibcxx_cv_func___builtin_sqrtf_use=yes
43123 else
43124 echo "$as_me: failed program was:" >&5
43125 sed 's/^/| /' conftest.$ac_ext >&5
43127 glibcxx_cv_func___builtin_sqrtf_use=no
43129 rm -f conftest.$ac_objext conftest.$ac_ext
43130 ac_ext=c
43131 ac_cpp='$CPP $CPPFLAGS'
43132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43140 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
43141 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
43142 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
43143 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
43144 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
43145 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
43146 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
43147 echo $ECHO_N "(cached) $ECHO_C" >&6
43148 else
43150 if test x$gcc_no_link = xyes; then
43151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43153 { (exit 1); exit 1; }; }
43155 cat >conftest.$ac_ext <<_ACEOF
43156 #line $LINENO "configure"
43157 /* confdefs.h. */
43158 _ACEOF
43159 cat confdefs.h >>conftest.$ac_ext
43160 cat >>conftest.$ac_ext <<_ACEOF
43161 /* end confdefs.h. */
43162 #include <math.h>
43164 main ()
43166 __builtin_sqrtf(0);
43168 return 0;
43170 _ACEOF
43171 rm -f conftest.$ac_objext conftest$ac_exeext
43172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43173 (eval $ac_link) 2>&5
43174 ac_status=$?
43175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176 (exit $ac_status); } &&
43177 { ac_try='test -s conftest$ac_exeext'
43178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43179 (eval $ac_try) 2>&5
43180 ac_status=$?
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); }; }; then
43183 glibcxx_cv_func___builtin_sqrtf_link=yes
43184 else
43185 echo "$as_me: failed program was:" >&5
43186 sed 's/^/| /' conftest.$ac_ext >&5
43188 glibcxx_cv_func___builtin_sqrtf_link=no
43190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43195 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
43196 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
43197 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
43198 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43199 cat >>confdefs.h <<_ACEOF
43200 #define ${ac_tr_func} 1
43201 _ACEOF
43207 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
43208 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
43209 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
43210 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
43211 echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43216 ac_ext=cc
43217 ac_cpp='$CXXCPP $CPPFLAGS'
43218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43222 cat >conftest.$ac_ext <<_ACEOF
43223 #line $LINENO "configure"
43224 /* confdefs.h. */
43225 _ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h. */
43229 #include <math.h>
43231 main ()
43233 __builtin_sqrt(0);
43235 return 0;
43237 _ACEOF
43238 rm -f conftest.$ac_objext
43239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43240 (eval $ac_compile) 2>&5
43241 ac_status=$?
43242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243 (exit $ac_status); } &&
43244 { ac_try='test -s conftest.$ac_objext'
43245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246 (eval $ac_try) 2>&5
43247 ac_status=$?
43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249 (exit $ac_status); }; }; then
43250 glibcxx_cv_func___builtin_sqrt_use=yes
43251 else
43252 echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43255 glibcxx_cv_func___builtin_sqrt_use=no
43257 rm -f conftest.$ac_objext conftest.$ac_ext
43258 ac_ext=c
43259 ac_cpp='$CPP $CPPFLAGS'
43260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43268 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
43269 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
43270 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
43271 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
43272 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
43273 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
43274 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
43275 echo $ECHO_N "(cached) $ECHO_C" >&6
43276 else
43278 if test x$gcc_no_link = xyes; then
43279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43281 { (exit 1); exit 1; }; }
43283 cat >conftest.$ac_ext <<_ACEOF
43284 #line $LINENO "configure"
43285 /* confdefs.h. */
43286 _ACEOF
43287 cat confdefs.h >>conftest.$ac_ext
43288 cat >>conftest.$ac_ext <<_ACEOF
43289 /* end confdefs.h. */
43290 #include <math.h>
43292 main ()
43294 __builtin_sqrt(0);
43296 return 0;
43298 _ACEOF
43299 rm -f conftest.$ac_objext conftest$ac_exeext
43300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43301 (eval $ac_link) 2>&5
43302 ac_status=$?
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); } &&
43305 { ac_try='test -s conftest$ac_exeext'
43306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43307 (eval $ac_try) 2>&5
43308 ac_status=$?
43309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310 (exit $ac_status); }; }; then
43311 glibcxx_cv_func___builtin_sqrt_link=yes
43312 else
43313 echo "$as_me: failed program was:" >&5
43314 sed 's/^/| /' conftest.$ac_ext >&5
43316 glibcxx_cv_func___builtin_sqrt_link=no
43318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43323 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43324 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43325 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43326 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43327 cat >>confdefs.h <<_ACEOF
43328 #define ${ac_tr_func} 1
43329 _ACEOF
43335 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43336 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43337 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43338 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43339 echo $ECHO_N "(cached) $ECHO_C" >&6
43340 else
43344 ac_ext=cc
43345 ac_cpp='$CXXCPP $CPPFLAGS'
43346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43350 cat >conftest.$ac_ext <<_ACEOF
43351 #line $LINENO "configure"
43352 /* confdefs.h. */
43353 _ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h. */
43357 #include <math.h>
43359 main ()
43361 __builtin_sqrtl(0);
43363 return 0;
43365 _ACEOF
43366 rm -f conftest.$ac_objext
43367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43368 (eval $ac_compile) 2>&5
43369 ac_status=$?
43370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371 (exit $ac_status); } &&
43372 { ac_try='test -s conftest.$ac_objext'
43373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43374 (eval $ac_try) 2>&5
43375 ac_status=$?
43376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377 (exit $ac_status); }; }; then
43378 glibcxx_cv_func___builtin_sqrtl_use=yes
43379 else
43380 echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43383 glibcxx_cv_func___builtin_sqrtl_use=no
43385 rm -f conftest.$ac_objext conftest.$ac_ext
43386 ac_ext=c
43387 ac_cpp='$CPP $CPPFLAGS'
43388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43396 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43397 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43398 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43399 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43400 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43401 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43402 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43403 echo $ECHO_N "(cached) $ECHO_C" >&6
43404 else
43406 if test x$gcc_no_link = xyes; then
43407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43409 { (exit 1); exit 1; }; }
43411 cat >conftest.$ac_ext <<_ACEOF
43412 #line $LINENO "configure"
43413 /* confdefs.h. */
43414 _ACEOF
43415 cat confdefs.h >>conftest.$ac_ext
43416 cat >>conftest.$ac_ext <<_ACEOF
43417 /* end confdefs.h. */
43418 #include <math.h>
43420 main ()
43422 __builtin_sqrtl(0);
43424 return 0;
43426 _ACEOF
43427 rm -f conftest.$ac_objext conftest$ac_exeext
43428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43429 (eval $ac_link) 2>&5
43430 ac_status=$?
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); } &&
43433 { ac_try='test -s conftest$ac_exeext'
43434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435 (eval $ac_try) 2>&5
43436 ac_status=$?
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); }; }; then
43439 glibcxx_cv_func___builtin_sqrtl_link=yes
43440 else
43441 echo "$as_me: failed program was:" >&5
43442 sed 's/^/| /' conftest.$ac_ext >&5
43444 glibcxx_cv_func___builtin_sqrtl_link=no
43446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43451 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43452 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43453 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43454 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43455 cat >>confdefs.h <<_ACEOF
43456 #define ${ac_tr_func} 1
43457 _ACEOF
43464 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43465 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43466 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43467 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43468 echo $ECHO_N "(cached) $ECHO_C" >&6
43469 else
43473 ac_ext=cc
43474 ac_cpp='$CXXCPP $CPPFLAGS'
43475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43479 cat >conftest.$ac_ext <<_ACEOF
43480 #line $LINENO "configure"
43481 /* confdefs.h. */
43482 _ACEOF
43483 cat confdefs.h >>conftest.$ac_ext
43484 cat >>conftest.$ac_ext <<_ACEOF
43485 /* end confdefs.h. */
43486 #include <math.h>
43488 main ()
43490 __builtin_sinf(0);
43492 return 0;
43494 _ACEOF
43495 rm -f conftest.$ac_objext
43496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43497 (eval $ac_compile) 2>&5
43498 ac_status=$?
43499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500 (exit $ac_status); } &&
43501 { ac_try='test -s conftest.$ac_objext'
43502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503 (eval $ac_try) 2>&5
43504 ac_status=$?
43505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506 (exit $ac_status); }; }; then
43507 glibcxx_cv_func___builtin_sinf_use=yes
43508 else
43509 echo "$as_me: failed program was:" >&5
43510 sed 's/^/| /' conftest.$ac_ext >&5
43512 glibcxx_cv_func___builtin_sinf_use=no
43514 rm -f conftest.$ac_objext conftest.$ac_ext
43515 ac_ext=c
43516 ac_cpp='$CPP $CPPFLAGS'
43517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43525 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43526 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43527 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43528 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43529 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43530 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43531 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43532 echo $ECHO_N "(cached) $ECHO_C" >&6
43533 else
43535 if test x$gcc_no_link = xyes; then
43536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43538 { (exit 1); exit 1; }; }
43540 cat >conftest.$ac_ext <<_ACEOF
43541 #line $LINENO "configure"
43542 /* confdefs.h. */
43543 _ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h. */
43547 #include <math.h>
43549 main ()
43551 __builtin_sinf(0);
43553 return 0;
43555 _ACEOF
43556 rm -f conftest.$ac_objext conftest$ac_exeext
43557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43558 (eval $ac_link) 2>&5
43559 ac_status=$?
43560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43561 (exit $ac_status); } &&
43562 { ac_try='test -s conftest$ac_exeext'
43563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43564 (eval $ac_try) 2>&5
43565 ac_status=$?
43566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567 (exit $ac_status); }; }; then
43568 glibcxx_cv_func___builtin_sinf_link=yes
43569 else
43570 echo "$as_me: failed program was:" >&5
43571 sed 's/^/| /' conftest.$ac_ext >&5
43573 glibcxx_cv_func___builtin_sinf_link=no
43575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43580 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43581 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43582 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43583 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43584 cat >>confdefs.h <<_ACEOF
43585 #define ${ac_tr_func} 1
43586 _ACEOF
43592 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43593 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43594 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43595 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43596 echo $ECHO_N "(cached) $ECHO_C" >&6
43597 else
43601 ac_ext=cc
43602 ac_cpp='$CXXCPP $CPPFLAGS'
43603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43607 cat >conftest.$ac_ext <<_ACEOF
43608 #line $LINENO "configure"
43609 /* confdefs.h. */
43610 _ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h. */
43614 #include <math.h>
43616 main ()
43618 __builtin_sin(0);
43620 return 0;
43622 _ACEOF
43623 rm -f conftest.$ac_objext
43624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43625 (eval $ac_compile) 2>&5
43626 ac_status=$?
43627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43628 (exit $ac_status); } &&
43629 { ac_try='test -s conftest.$ac_objext'
43630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43631 (eval $ac_try) 2>&5
43632 ac_status=$?
43633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43634 (exit $ac_status); }; }; then
43635 glibcxx_cv_func___builtin_sin_use=yes
43636 else
43637 echo "$as_me: failed program was:" >&5
43638 sed 's/^/| /' conftest.$ac_ext >&5
43640 glibcxx_cv_func___builtin_sin_use=no
43642 rm -f conftest.$ac_objext conftest.$ac_ext
43643 ac_ext=c
43644 ac_cpp='$CPP $CPPFLAGS'
43645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43653 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43654 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43655 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43656 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43657 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43658 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43659 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43660 echo $ECHO_N "(cached) $ECHO_C" >&6
43661 else
43663 if test x$gcc_no_link = xyes; then
43664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43666 { (exit 1); exit 1; }; }
43668 cat >conftest.$ac_ext <<_ACEOF
43669 #line $LINENO "configure"
43670 /* confdefs.h. */
43671 _ACEOF
43672 cat confdefs.h >>conftest.$ac_ext
43673 cat >>conftest.$ac_ext <<_ACEOF
43674 /* end confdefs.h. */
43675 #include <math.h>
43677 main ()
43679 __builtin_sin(0);
43681 return 0;
43683 _ACEOF
43684 rm -f conftest.$ac_objext conftest$ac_exeext
43685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43686 (eval $ac_link) 2>&5
43687 ac_status=$?
43688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689 (exit $ac_status); } &&
43690 { ac_try='test -s conftest$ac_exeext'
43691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43692 (eval $ac_try) 2>&5
43693 ac_status=$?
43694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43695 (exit $ac_status); }; }; then
43696 glibcxx_cv_func___builtin_sin_link=yes
43697 else
43698 echo "$as_me: failed program was:" >&5
43699 sed 's/^/| /' conftest.$ac_ext >&5
43701 glibcxx_cv_func___builtin_sin_link=no
43703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43708 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43709 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43710 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43711 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43712 cat >>confdefs.h <<_ACEOF
43713 #define ${ac_tr_func} 1
43714 _ACEOF
43720 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43721 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43722 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43723 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43724 echo $ECHO_N "(cached) $ECHO_C" >&6
43725 else
43729 ac_ext=cc
43730 ac_cpp='$CXXCPP $CPPFLAGS'
43731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43735 cat >conftest.$ac_ext <<_ACEOF
43736 #line $LINENO "configure"
43737 /* confdefs.h. */
43738 _ACEOF
43739 cat confdefs.h >>conftest.$ac_ext
43740 cat >>conftest.$ac_ext <<_ACEOF
43741 /* end confdefs.h. */
43742 #include <math.h>
43744 main ()
43746 __builtin_sinl(0);
43748 return 0;
43750 _ACEOF
43751 rm -f conftest.$ac_objext
43752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43753 (eval $ac_compile) 2>&5
43754 ac_status=$?
43755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43756 (exit $ac_status); } &&
43757 { ac_try='test -s conftest.$ac_objext'
43758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43759 (eval $ac_try) 2>&5
43760 ac_status=$?
43761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43762 (exit $ac_status); }; }; then
43763 glibcxx_cv_func___builtin_sinl_use=yes
43764 else
43765 echo "$as_me: failed program was:" >&5
43766 sed 's/^/| /' conftest.$ac_ext >&5
43768 glibcxx_cv_func___builtin_sinl_use=no
43770 rm -f conftest.$ac_objext conftest.$ac_ext
43771 ac_ext=c
43772 ac_cpp='$CPP $CPPFLAGS'
43773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43781 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43782 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43783 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43784 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43785 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43786 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43787 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43788 echo $ECHO_N "(cached) $ECHO_C" >&6
43789 else
43791 if test x$gcc_no_link = xyes; then
43792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43794 { (exit 1); exit 1; }; }
43796 cat >conftest.$ac_ext <<_ACEOF
43797 #line $LINENO "configure"
43798 /* confdefs.h. */
43799 _ACEOF
43800 cat confdefs.h >>conftest.$ac_ext
43801 cat >>conftest.$ac_ext <<_ACEOF
43802 /* end confdefs.h. */
43803 #include <math.h>
43805 main ()
43807 __builtin_sinl(0);
43809 return 0;
43811 _ACEOF
43812 rm -f conftest.$ac_objext conftest$ac_exeext
43813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43814 (eval $ac_link) 2>&5
43815 ac_status=$?
43816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43817 (exit $ac_status); } &&
43818 { ac_try='test -s conftest$ac_exeext'
43819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43820 (eval $ac_try) 2>&5
43821 ac_status=$?
43822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43823 (exit $ac_status); }; }; then
43824 glibcxx_cv_func___builtin_sinl_link=yes
43825 else
43826 echo "$as_me: failed program was:" >&5
43827 sed 's/^/| /' conftest.$ac_ext >&5
43829 glibcxx_cv_func___builtin_sinl_link=no
43831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43836 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43837 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43838 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43839 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43840 cat >>confdefs.h <<_ACEOF
43841 #define ${ac_tr_func} 1
43842 _ACEOF
43849 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43850 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43851 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43852 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43853 echo $ECHO_N "(cached) $ECHO_C" >&6
43854 else
43858 ac_ext=cc
43859 ac_cpp='$CXXCPP $CPPFLAGS'
43860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43864 cat >conftest.$ac_ext <<_ACEOF
43865 #line $LINENO "configure"
43866 /* confdefs.h. */
43867 _ACEOF
43868 cat confdefs.h >>conftest.$ac_ext
43869 cat >>conftest.$ac_ext <<_ACEOF
43870 /* end confdefs.h. */
43871 #include <math.h>
43873 main ()
43875 __builtin_cosf(0);
43877 return 0;
43879 _ACEOF
43880 rm -f conftest.$ac_objext
43881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43882 (eval $ac_compile) 2>&5
43883 ac_status=$?
43884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43885 (exit $ac_status); } &&
43886 { ac_try='test -s conftest.$ac_objext'
43887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888 (eval $ac_try) 2>&5
43889 ac_status=$?
43890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 (exit $ac_status); }; }; then
43892 glibcxx_cv_func___builtin_cosf_use=yes
43893 else
43894 echo "$as_me: failed program was:" >&5
43895 sed 's/^/| /' conftest.$ac_ext >&5
43897 glibcxx_cv_func___builtin_cosf_use=no
43899 rm -f conftest.$ac_objext conftest.$ac_ext
43900 ac_ext=c
43901 ac_cpp='$CPP $CPPFLAGS'
43902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43910 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43911 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43912 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43913 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43914 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43915 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43916 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43917 echo $ECHO_N "(cached) $ECHO_C" >&6
43918 else
43920 if test x$gcc_no_link = xyes; then
43921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43923 { (exit 1); exit 1; }; }
43925 cat >conftest.$ac_ext <<_ACEOF
43926 #line $LINENO "configure"
43927 /* confdefs.h. */
43928 _ACEOF
43929 cat confdefs.h >>conftest.$ac_ext
43930 cat >>conftest.$ac_ext <<_ACEOF
43931 /* end confdefs.h. */
43932 #include <math.h>
43934 main ()
43936 __builtin_cosf(0);
43938 return 0;
43940 _ACEOF
43941 rm -f conftest.$ac_objext conftest$ac_exeext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43943 (eval $ac_link) 2>&5
43944 ac_status=$?
43945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); } &&
43947 { ac_try='test -s conftest$ac_exeext'
43948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43949 (eval $ac_try) 2>&5
43950 ac_status=$?
43951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43952 (exit $ac_status); }; }; then
43953 glibcxx_cv_func___builtin_cosf_link=yes
43954 else
43955 echo "$as_me: failed program was:" >&5
43956 sed 's/^/| /' conftest.$ac_ext >&5
43958 glibcxx_cv_func___builtin_cosf_link=no
43960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43965 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43966 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43967 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43968 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43969 cat >>confdefs.h <<_ACEOF
43970 #define ${ac_tr_func} 1
43971 _ACEOF
43977 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43978 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43979 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43980 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43981 echo $ECHO_N "(cached) $ECHO_C" >&6
43982 else
43986 ac_ext=cc
43987 ac_cpp='$CXXCPP $CPPFLAGS'
43988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43992 cat >conftest.$ac_ext <<_ACEOF
43993 #line $LINENO "configure"
43994 /* confdefs.h. */
43995 _ACEOF
43996 cat confdefs.h >>conftest.$ac_ext
43997 cat >>conftest.$ac_ext <<_ACEOF
43998 /* end confdefs.h. */
43999 #include <math.h>
44001 main ()
44003 __builtin_cos(0);
44005 return 0;
44007 _ACEOF
44008 rm -f conftest.$ac_objext
44009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44010 (eval $ac_compile) 2>&5
44011 ac_status=$?
44012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44013 (exit $ac_status); } &&
44014 { ac_try='test -s conftest.$ac_objext'
44015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44016 (eval $ac_try) 2>&5
44017 ac_status=$?
44018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44019 (exit $ac_status); }; }; then
44020 glibcxx_cv_func___builtin_cos_use=yes
44021 else
44022 echo "$as_me: failed program was:" >&5
44023 sed 's/^/| /' conftest.$ac_ext >&5
44025 glibcxx_cv_func___builtin_cos_use=no
44027 rm -f conftest.$ac_objext conftest.$ac_ext
44028 ac_ext=c
44029 ac_cpp='$CPP $CPPFLAGS'
44030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44038 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
44039 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
44040 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
44041 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
44042 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
44043 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
44044 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
44045 echo $ECHO_N "(cached) $ECHO_C" >&6
44046 else
44048 if test x$gcc_no_link = xyes; then
44049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44051 { (exit 1); exit 1; }; }
44053 cat >conftest.$ac_ext <<_ACEOF
44054 #line $LINENO "configure"
44055 /* confdefs.h. */
44056 _ACEOF
44057 cat confdefs.h >>conftest.$ac_ext
44058 cat >>conftest.$ac_ext <<_ACEOF
44059 /* end confdefs.h. */
44060 #include <math.h>
44062 main ()
44064 __builtin_cos(0);
44066 return 0;
44068 _ACEOF
44069 rm -f conftest.$ac_objext conftest$ac_exeext
44070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44071 (eval $ac_link) 2>&5
44072 ac_status=$?
44073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44074 (exit $ac_status); } &&
44075 { ac_try='test -s conftest$ac_exeext'
44076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44077 (eval $ac_try) 2>&5
44078 ac_status=$?
44079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080 (exit $ac_status); }; }; then
44081 glibcxx_cv_func___builtin_cos_link=yes
44082 else
44083 echo "$as_me: failed program was:" >&5
44084 sed 's/^/| /' conftest.$ac_ext >&5
44086 glibcxx_cv_func___builtin_cos_link=no
44088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44093 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
44094 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
44095 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
44096 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
44097 cat >>confdefs.h <<_ACEOF
44098 #define ${ac_tr_func} 1
44099 _ACEOF
44105 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
44106 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
44107 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
44108 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
44109 echo $ECHO_N "(cached) $ECHO_C" >&6
44110 else
44114 ac_ext=cc
44115 ac_cpp='$CXXCPP $CPPFLAGS'
44116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44120 cat >conftest.$ac_ext <<_ACEOF
44121 #line $LINENO "configure"
44122 /* confdefs.h. */
44123 _ACEOF
44124 cat confdefs.h >>conftest.$ac_ext
44125 cat >>conftest.$ac_ext <<_ACEOF
44126 /* end confdefs.h. */
44127 #include <math.h>
44129 main ()
44131 __builtin_cosl(0);
44133 return 0;
44135 _ACEOF
44136 rm -f conftest.$ac_objext
44137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44138 (eval $ac_compile) 2>&5
44139 ac_status=$?
44140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141 (exit $ac_status); } &&
44142 { ac_try='test -s conftest.$ac_objext'
44143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44144 (eval $ac_try) 2>&5
44145 ac_status=$?
44146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44147 (exit $ac_status); }; }; then
44148 glibcxx_cv_func___builtin_cosl_use=yes
44149 else
44150 echo "$as_me: failed program was:" >&5
44151 sed 's/^/| /' conftest.$ac_ext >&5
44153 glibcxx_cv_func___builtin_cosl_use=no
44155 rm -f conftest.$ac_objext conftest.$ac_ext
44156 ac_ext=c
44157 ac_cpp='$CPP $CPPFLAGS'
44158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44166 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
44167 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
44168 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
44169 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
44170 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
44171 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
44172 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
44173 echo $ECHO_N "(cached) $ECHO_C" >&6
44174 else
44176 if test x$gcc_no_link = xyes; then
44177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44179 { (exit 1); exit 1; }; }
44181 cat >conftest.$ac_ext <<_ACEOF
44182 #line $LINENO "configure"
44183 /* confdefs.h. */
44184 _ACEOF
44185 cat confdefs.h >>conftest.$ac_ext
44186 cat >>conftest.$ac_ext <<_ACEOF
44187 /* end confdefs.h. */
44188 #include <math.h>
44190 main ()
44192 __builtin_cosl(0);
44194 return 0;
44196 _ACEOF
44197 rm -f conftest.$ac_objext conftest$ac_exeext
44198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44199 (eval $ac_link) 2>&5
44200 ac_status=$?
44201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44202 (exit $ac_status); } &&
44203 { ac_try='test -s conftest$ac_exeext'
44204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44205 (eval $ac_try) 2>&5
44206 ac_status=$?
44207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44208 (exit $ac_status); }; }; then
44209 glibcxx_cv_func___builtin_cosl_link=yes
44210 else
44211 echo "$as_me: failed program was:" >&5
44212 sed 's/^/| /' conftest.$ac_ext >&5
44214 glibcxx_cv_func___builtin_cosl_link=no
44216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44221 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
44222 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
44223 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
44224 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
44225 cat >>confdefs.h <<_ACEOF
44226 #define ${ac_tr_func} 1
44227 _ACEOF
44233 dummyvar=no
44234 if test x$dummyvar = x"yes"; then
44235 cat >>confdefs.h <<\_ACEOF
44236 #define HAVE___BUILTIN_ABS 1
44237 _ACEOF
44239 cat >>confdefs.h <<\_ACEOF
44240 #define HAVE___BUILTIN_LABS 1
44241 _ACEOF
44243 cat >>confdefs.h <<\_ACEOF
44244 #define HAVE___BUILTIN_COS 1
44245 _ACEOF
44247 cat >>confdefs.h <<\_ACEOF
44248 #define HAVE___BUILTIN_COSF 1
44249 _ACEOF
44251 cat >>confdefs.h <<\_ACEOF
44252 #define HAVE___BUILTIN_COSL 1
44253 _ACEOF
44255 cat >>confdefs.h <<\_ACEOF
44256 #define HAVE___BUILTIN_FABS 1
44257 _ACEOF
44259 cat >>confdefs.h <<\_ACEOF
44260 #define HAVE___BUILTIN_FABSF 1
44261 _ACEOF
44263 cat >>confdefs.h <<\_ACEOF
44264 #define HAVE___BUILTIN_FABSL 1
44265 _ACEOF
44267 cat >>confdefs.h <<\_ACEOF
44268 #define HAVE___BUILTIN_SIN 1
44269 _ACEOF
44271 cat >>confdefs.h <<\_ACEOF
44272 #define HAVE___BUILTIN_SINF 1
44273 _ACEOF
44275 cat >>confdefs.h <<\_ACEOF
44276 #define HAVE___BUILTIN_SINL 1
44277 _ACEOF
44279 cat >>confdefs.h <<\_ACEOF
44280 #define HAVE___BUILTIN_SQRT 1
44281 _ACEOF
44283 cat >>confdefs.h <<\_ACEOF
44284 #define HAVE___BUILTIN_SQRTF 1
44285 _ACEOF
44287 cat >>confdefs.h <<\_ACEOF
44288 #define HAVE___BUILTIN_SQRTL 1
44289 _ACEOF
44295 echo "$as_me:$LINENO: checking for main in -lm" >&5
44296 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
44297 if test "${ac_cv_lib_m_main+set}" = set; then
44298 echo $ECHO_N "(cached) $ECHO_C" >&6
44299 else
44300 ac_check_lib_save_LIBS=$LIBS
44301 LIBS="-lm $LIBS"
44302 if test x$gcc_no_link = xyes; then
44303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44305 { (exit 1); exit 1; }; }
44307 cat >conftest.$ac_ext <<_ACEOF
44308 #line $LINENO "configure"
44309 /* confdefs.h. */
44310 _ACEOF
44311 cat confdefs.h >>conftest.$ac_ext
44312 cat >>conftest.$ac_ext <<_ACEOF
44313 /* end confdefs.h. */
44317 main ()
44319 main ();
44321 return 0;
44323 _ACEOF
44324 rm -f conftest.$ac_objext conftest$ac_exeext
44325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44326 (eval $ac_link) 2>&5
44327 ac_status=$?
44328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329 (exit $ac_status); } &&
44330 { ac_try='test -s conftest$ac_exeext'
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; }; then
44336 ac_cv_lib_m_main=yes
44337 else
44338 echo "$as_me: failed program was:" >&5
44339 sed 's/^/| /' conftest.$ac_ext >&5
44341 ac_cv_lib_m_main=no
44343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44344 LIBS=$ac_check_lib_save_LIBS
44346 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44347 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44348 if test $ac_cv_lib_m_main = yes; then
44349 cat >>confdefs.h <<_ACEOF
44350 #define HAVE_LIBM 1
44351 _ACEOF
44353 LIBS="-lm $LIBS"
44359 for ac_func in nan copysignf
44361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44362 echo "$as_me:$LINENO: checking for $ac_func" >&5
44363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44364 if eval "test \"\${$as_ac_var+set}\" = set"; then
44365 echo $ECHO_N "(cached) $ECHO_C" >&6
44366 else
44367 if test x$gcc_no_link = xyes; then
44368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44370 { (exit 1); exit 1; }; }
44372 cat >conftest.$ac_ext <<_ACEOF
44373 #line $LINENO "configure"
44374 /* confdefs.h. */
44375 _ACEOF
44376 cat confdefs.h >>conftest.$ac_ext
44377 cat >>conftest.$ac_ext <<_ACEOF
44378 /* end confdefs.h. */
44379 /* System header to define __stub macros and hopefully few prototypes,
44380 which can conflict with char $ac_func (); below.
44381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44382 <limits.h> exists even on freestanding compilers. */
44383 #ifdef __STDC__
44384 # include <limits.h>
44385 #else
44386 # include <assert.h>
44387 #endif
44388 /* Override any gcc2 internal prototype to avoid an error. */
44389 #ifdef __cplusplus
44390 extern "C"
44392 #endif
44393 /* We use char because int might match the return type of a gcc2
44394 builtin and then its argument prototype would still apply. */
44395 char $ac_func ();
44396 /* The GNU C library defines this for functions which it implements
44397 to always fail with ENOSYS. Some functions are actually named
44398 something starting with __ and the normal name is an alias. */
44399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44400 choke me
44401 #else
44402 char (*f) () = $ac_func;
44403 #endif
44404 #ifdef __cplusplus
44406 #endif
44409 main ()
44411 return f != $ac_func;
44413 return 0;
44415 _ACEOF
44416 rm -f conftest.$ac_objext conftest$ac_exeext
44417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44418 (eval $ac_link) 2>&5
44419 ac_status=$?
44420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44421 (exit $ac_status); } &&
44422 { ac_try='test -s conftest$ac_exeext'
44423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44424 (eval $ac_try) 2>&5
44425 ac_status=$?
44426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44427 (exit $ac_status); }; }; then
44428 eval "$as_ac_var=yes"
44429 else
44430 echo "$as_me: failed program was:" >&5
44431 sed 's/^/| /' conftest.$ac_ext >&5
44433 eval "$as_ac_var=no"
44435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44439 if test `eval echo '${'$as_ac_var'}'` = yes; then
44440 cat >>confdefs.h <<_ACEOF
44441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44442 _ACEOF
44444 else
44445 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44447 done
44451 for ac_func in __signbit
44453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44454 echo "$as_me:$LINENO: checking for $ac_func" >&5
44455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44456 if eval "test \"\${$as_ac_var+set}\" = set"; then
44457 echo $ECHO_N "(cached) $ECHO_C" >&6
44458 else
44459 if test x$gcc_no_link = xyes; then
44460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44462 { (exit 1); exit 1; }; }
44464 cat >conftest.$ac_ext <<_ACEOF
44465 #line $LINENO "configure"
44466 /* confdefs.h. */
44467 _ACEOF
44468 cat confdefs.h >>conftest.$ac_ext
44469 cat >>conftest.$ac_ext <<_ACEOF
44470 /* end confdefs.h. */
44471 /* System header to define __stub macros and hopefully few prototypes,
44472 which can conflict with char $ac_func (); below.
44473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44474 <limits.h> exists even on freestanding compilers. */
44475 #ifdef __STDC__
44476 # include <limits.h>
44477 #else
44478 # include <assert.h>
44479 #endif
44480 /* Override any gcc2 internal prototype to avoid an error. */
44481 #ifdef __cplusplus
44482 extern "C"
44484 #endif
44485 /* We use char because int might match the return type of a gcc2
44486 builtin and then its argument prototype would still apply. */
44487 char $ac_func ();
44488 /* The GNU C library defines this for functions which it implements
44489 to always fail with ENOSYS. Some functions are actually named
44490 something starting with __ and the normal name is an alias. */
44491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44492 choke me
44493 #else
44494 char (*f) () = $ac_func;
44495 #endif
44496 #ifdef __cplusplus
44498 #endif
44501 main ()
44503 return f != $ac_func;
44505 return 0;
44507 _ACEOF
44508 rm -f conftest.$ac_objext conftest$ac_exeext
44509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44510 (eval $ac_link) 2>&5
44511 ac_status=$?
44512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44513 (exit $ac_status); } &&
44514 { ac_try='test -s conftest$ac_exeext'
44515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44516 (eval $ac_try) 2>&5
44517 ac_status=$?
44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); }; }; then
44520 eval "$as_ac_var=yes"
44521 else
44522 echo "$as_me: failed program was:" >&5
44523 sed 's/^/| /' conftest.$ac_ext >&5
44525 eval "$as_ac_var=no"
44527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44531 if test `eval echo '${'$as_ac_var'}'` = yes; then
44532 cat >>confdefs.h <<_ACEOF
44533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44534 _ACEOF
44536 else
44537 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44539 done
44542 for ac_func in __signbitf
44544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44545 echo "$as_me:$LINENO: checking for $ac_func" >&5
44546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44547 if eval "test \"\${$as_ac_var+set}\" = set"; then
44548 echo $ECHO_N "(cached) $ECHO_C" >&6
44549 else
44550 if test x$gcc_no_link = xyes; then
44551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44553 { (exit 1); exit 1; }; }
44555 cat >conftest.$ac_ext <<_ACEOF
44556 #line $LINENO "configure"
44557 /* confdefs.h. */
44558 _ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h. */
44562 /* System header to define __stub macros and hopefully few prototypes,
44563 which can conflict with char $ac_func (); below.
44564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44565 <limits.h> exists even on freestanding compilers. */
44566 #ifdef __STDC__
44567 # include <limits.h>
44568 #else
44569 # include <assert.h>
44570 #endif
44571 /* Override any gcc2 internal prototype to avoid an error. */
44572 #ifdef __cplusplus
44573 extern "C"
44575 #endif
44576 /* We use char because int might match the return type of a gcc2
44577 builtin and then its argument prototype would still apply. */
44578 char $ac_func ();
44579 /* The GNU C library defines this for functions which it implements
44580 to always fail with ENOSYS. Some functions are actually named
44581 something starting with __ and the normal name is an alias. */
44582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44583 choke me
44584 #else
44585 char (*f) () = $ac_func;
44586 #endif
44587 #ifdef __cplusplus
44589 #endif
44592 main ()
44594 return f != $ac_func;
44596 return 0;
44598 _ACEOF
44599 rm -f conftest.$ac_objext conftest$ac_exeext
44600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44601 (eval $ac_link) 2>&5
44602 ac_status=$?
44603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44604 (exit $ac_status); } &&
44605 { ac_try='test -s conftest$ac_exeext'
44606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44607 (eval $ac_try) 2>&5
44608 ac_status=$?
44609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44610 (exit $ac_status); }; }; then
44611 eval "$as_ac_var=yes"
44612 else
44613 echo "$as_me: failed program was:" >&5
44614 sed 's/^/| /' conftest.$ac_ext >&5
44616 eval "$as_ac_var=no"
44618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44622 if test `eval echo '${'$as_ac_var'}'` = yes; then
44623 cat >>confdefs.h <<_ACEOF
44624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44625 _ACEOF
44627 else
44628 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44630 done
44633 if test x$ac_cv_func_copysignl = x"yes"; then
44635 for ac_func in __signbitl
44637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44638 echo "$as_me:$LINENO: checking for $ac_func" >&5
44639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44640 if eval "test \"\${$as_ac_var+set}\" = set"; then
44641 echo $ECHO_N "(cached) $ECHO_C" >&6
44642 else
44643 if test x$gcc_no_link = xyes; then
44644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44646 { (exit 1); exit 1; }; }
44648 cat >conftest.$ac_ext <<_ACEOF
44649 #line $LINENO "configure"
44650 /* confdefs.h. */
44651 _ACEOF
44652 cat confdefs.h >>conftest.$ac_ext
44653 cat >>conftest.$ac_ext <<_ACEOF
44654 /* end confdefs.h. */
44655 /* System header to define __stub macros and hopefully few prototypes,
44656 which can conflict with char $ac_func (); below.
44657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44658 <limits.h> exists even on freestanding compilers. */
44659 #ifdef __STDC__
44660 # include <limits.h>
44661 #else
44662 # include <assert.h>
44663 #endif
44664 /* Override any gcc2 internal prototype to avoid an error. */
44665 #ifdef __cplusplus
44666 extern "C"
44668 #endif
44669 /* We use char because int might match the return type of a gcc2
44670 builtin and then its argument prototype would still apply. */
44671 char $ac_func ();
44672 /* The GNU C library defines this for functions which it implements
44673 to always fail with ENOSYS. Some functions are actually named
44674 something starting with __ and the normal name is an alias. */
44675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44676 choke me
44677 #else
44678 char (*f) () = $ac_func;
44679 #endif
44680 #ifdef __cplusplus
44682 #endif
44685 main ()
44687 return f != $ac_func;
44689 return 0;
44691 _ACEOF
44692 rm -f conftest.$ac_objext conftest$ac_exeext
44693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44694 (eval $ac_link) 2>&5
44695 ac_status=$?
44696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44697 (exit $ac_status); } &&
44698 { ac_try='test -s conftest$ac_exeext'
44699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44700 (eval $ac_try) 2>&5
44701 ac_status=$?
44702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44703 (exit $ac_status); }; }; then
44704 eval "$as_ac_var=yes"
44705 else
44706 echo "$as_me: failed program was:" >&5
44707 sed 's/^/| /' conftest.$ac_ext >&5
44709 eval "$as_ac_var=no"
44711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44715 if test `eval echo '${'$as_ac_var'}'` = yes; then
44716 cat >>confdefs.h <<_ACEOF
44717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44718 _ACEOF
44720 else
44721 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44723 done
44727 # XXX Review this. Nothing uses it.
44728 if test -n "$LIBMATHOBJS"; then
44729 need_libmath=yes
44734 # Test wchar.h for mbstate_t, which is needed for char_traits and
44735 # others even if wchar_t support is not on.
44736 echo "$as_me:$LINENO: checking for mbstate_t" >&5
44737 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44738 cat >conftest.$ac_ext <<_ACEOF
44739 #line $LINENO "configure"
44740 /* confdefs.h. */
44741 _ACEOF
44742 cat confdefs.h >>conftest.$ac_ext
44743 cat >>conftest.$ac_ext <<_ACEOF
44744 /* end confdefs.h. */
44745 #include <wchar.h>
44747 main ()
44749 mbstate_t teststate;
44751 return 0;
44753 _ACEOF
44754 rm -f conftest.$ac_objext
44755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44756 (eval $ac_compile) 2>&5
44757 ac_status=$?
44758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44759 (exit $ac_status); } &&
44760 { ac_try='test -s conftest.$ac_objext'
44761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44762 (eval $ac_try) 2>&5
44763 ac_status=$?
44764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765 (exit $ac_status); }; }; then
44766 have_mbstate_t=yes
44767 else
44768 echo "$as_me: failed program was:" >&5
44769 sed 's/^/| /' conftest.$ac_ext >&5
44771 have_mbstate_t=no
44773 rm -f conftest.$ac_objext conftest.$ac_ext
44774 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44775 echo "${ECHO_T}$have_mbstate_t" >&6
44776 if test x"$have_mbstate_t" = xyes; then
44777 cat >>confdefs.h <<\_ACEOF
44778 #define HAVE_MBSTATE_T 1
44779 _ACEOF
44783 # Sanity check for existence of ISO C99 headers for extended encoding.
44785 for ac_header in wchar.h
44787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44789 echo "$as_me:$LINENO: checking for $ac_header" >&5
44790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44792 echo $ECHO_N "(cached) $ECHO_C" >&6
44794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44796 else
44797 # Is the header compilable?
44798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44800 cat >conftest.$ac_ext <<_ACEOF
44801 #line $LINENO "configure"
44802 /* confdefs.h. */
44803 _ACEOF
44804 cat confdefs.h >>conftest.$ac_ext
44805 cat >>conftest.$ac_ext <<_ACEOF
44806 /* end confdefs.h. */
44807 $ac_includes_default
44808 #include <$ac_header>
44809 _ACEOF
44810 rm -f conftest.$ac_objext
44811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44812 (eval $ac_compile) 2>&5
44813 ac_status=$?
44814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44815 (exit $ac_status); } &&
44816 { ac_try='test -s conftest.$ac_objext'
44817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44818 (eval $ac_try) 2>&5
44819 ac_status=$?
44820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44821 (exit $ac_status); }; }; then
44822 ac_header_compiler=yes
44823 else
44824 echo "$as_me: failed program was:" >&5
44825 sed 's/^/| /' conftest.$ac_ext >&5
44827 ac_header_compiler=no
44829 rm -f conftest.$ac_objext conftest.$ac_ext
44830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44831 echo "${ECHO_T}$ac_header_compiler" >&6
44833 # Is the header present?
44834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44836 cat >conftest.$ac_ext <<_ACEOF
44837 #line $LINENO "configure"
44838 /* confdefs.h. */
44839 _ACEOF
44840 cat confdefs.h >>conftest.$ac_ext
44841 cat >>conftest.$ac_ext <<_ACEOF
44842 /* end confdefs.h. */
44843 #include <$ac_header>
44844 _ACEOF
44845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44847 ac_status=$?
44848 grep -v '^ *+' conftest.er1 >conftest.err
44849 rm -f conftest.er1
44850 cat conftest.err >&5
44851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852 (exit $ac_status); } >/dev/null; then
44853 if test -s conftest.err; then
44854 ac_cpp_err=$ac_c_preproc_warn_flag
44855 else
44856 ac_cpp_err=
44858 else
44859 ac_cpp_err=yes
44861 if test -z "$ac_cpp_err"; then
44862 ac_header_preproc=yes
44863 else
44864 echo "$as_me: failed program was:" >&5
44865 sed 's/^/| /' conftest.$ac_ext >&5
44867 ac_header_preproc=no
44869 rm -f conftest.err conftest.$ac_ext
44870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44871 echo "${ECHO_T}$ac_header_preproc" >&6
44873 # So? What about this header?
44874 case $ac_header_compiler:$ac_header_preproc in
44875 yes:no )
44876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44881 cat <<\_ASBOX
44882 ## ------------------------------------ ##
44883 ## Report this to bug-autoconf@gnu.org. ##
44884 ## ------------------------------------ ##
44885 _ASBOX
44887 sed "s/^/$as_me: WARNING: /" >&2
44889 no:yes )
44890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44897 cat <<\_ASBOX
44898 ## ------------------------------------ ##
44899 ## Report this to bug-autoconf@gnu.org. ##
44900 ## ------------------------------------ ##
44901 _ASBOX
44903 sed "s/^/$as_me: WARNING: /" >&2
44905 esac
44906 echo "$as_me:$LINENO: checking for $ac_header" >&5
44907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44909 echo $ECHO_N "(cached) $ECHO_C" >&6
44910 else
44911 eval "$as_ac_Header=$ac_header_preproc"
44913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44918 cat >>confdefs.h <<_ACEOF
44919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44920 _ACEOF
44921 ac_has_wchar_h=yes
44922 else
44923 ac_has_wchar_h=no
44926 done
44929 for ac_header in wctype.h
44931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44933 echo "$as_me:$LINENO: checking for $ac_header" >&5
44934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44936 echo $ECHO_N "(cached) $ECHO_C" >&6
44938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44940 else
44941 # Is the header compilable?
44942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44944 cat >conftest.$ac_ext <<_ACEOF
44945 #line $LINENO "configure"
44946 /* confdefs.h. */
44947 _ACEOF
44948 cat confdefs.h >>conftest.$ac_ext
44949 cat >>conftest.$ac_ext <<_ACEOF
44950 /* end confdefs.h. */
44951 $ac_includes_default
44952 #include <$ac_header>
44953 _ACEOF
44954 rm -f conftest.$ac_objext
44955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44956 (eval $ac_compile) 2>&5
44957 ac_status=$?
44958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959 (exit $ac_status); } &&
44960 { ac_try='test -s conftest.$ac_objext'
44961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962 (eval $ac_try) 2>&5
44963 ac_status=$?
44964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965 (exit $ac_status); }; }; then
44966 ac_header_compiler=yes
44967 else
44968 echo "$as_me: failed program was:" >&5
44969 sed 's/^/| /' conftest.$ac_ext >&5
44971 ac_header_compiler=no
44973 rm -f conftest.$ac_objext conftest.$ac_ext
44974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44975 echo "${ECHO_T}$ac_header_compiler" >&6
44977 # Is the header present?
44978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44980 cat >conftest.$ac_ext <<_ACEOF
44981 #line $LINENO "configure"
44982 /* confdefs.h. */
44983 _ACEOF
44984 cat confdefs.h >>conftest.$ac_ext
44985 cat >>conftest.$ac_ext <<_ACEOF
44986 /* end confdefs.h. */
44987 #include <$ac_header>
44988 _ACEOF
44989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44991 ac_status=$?
44992 grep -v '^ *+' conftest.er1 >conftest.err
44993 rm -f conftest.er1
44994 cat conftest.err >&5
44995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44996 (exit $ac_status); } >/dev/null; then
44997 if test -s conftest.err; then
44998 ac_cpp_err=$ac_c_preproc_warn_flag
44999 else
45000 ac_cpp_err=
45002 else
45003 ac_cpp_err=yes
45005 if test -z "$ac_cpp_err"; then
45006 ac_header_preproc=yes
45007 else
45008 echo "$as_me: failed program was:" >&5
45009 sed 's/^/| /' conftest.$ac_ext >&5
45011 ac_header_preproc=no
45013 rm -f conftest.err conftest.$ac_ext
45014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45015 echo "${ECHO_T}$ac_header_preproc" >&6
45017 # So? What about this header?
45018 case $ac_header_compiler:$ac_header_preproc in
45019 yes:no )
45020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45025 cat <<\_ASBOX
45026 ## ------------------------------------ ##
45027 ## Report this to bug-autoconf@gnu.org. ##
45028 ## ------------------------------------ ##
45029 _ASBOX
45031 sed "s/^/$as_me: WARNING: /" >&2
45033 no:yes )
45034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45041 cat <<\_ASBOX
45042 ## ------------------------------------ ##
45043 ## Report this to bug-autoconf@gnu.org. ##
45044 ## ------------------------------------ ##
45045 _ASBOX
45047 sed "s/^/$as_me: WARNING: /" >&2
45049 esac
45050 echo "$as_me:$LINENO: checking for $ac_header" >&5
45051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45053 echo $ECHO_N "(cached) $ECHO_C" >&6
45054 else
45055 eval "$as_ac_Header=$ac_header_preproc"
45057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45062 cat >>confdefs.h <<_ACEOF
45063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45064 _ACEOF
45065 ac_has_wctype_h=yes
45066 else
45067 ac_has_wctype_h=no
45070 done
45073 # Only continue checking if the ISO C99 headers exist and support is on.
45074 if test x"$ac_has_wchar_h" = xyes &&
45075 test x"$ac_has_wctype_h" = xyes &&
45076 test x"$enable_c_mbchar" != xno; then
45078 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
45079 # numeric_limits can instantiate type_traits<wchar_t>
45080 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
45081 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
45082 cat >conftest.$ac_ext <<_ACEOF
45083 #line $LINENO "configure"
45084 /* confdefs.h. */
45085 _ACEOF
45086 cat confdefs.h >>conftest.$ac_ext
45087 cat >>conftest.$ac_ext <<_ACEOF
45088 /* end confdefs.h. */
45089 #include <wchar.h>
45091 main ()
45093 int i = WCHAR_MIN; int j = WCHAR_MAX;
45095 return 0;
45097 _ACEOF
45098 rm -f conftest.$ac_objext
45099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45100 (eval $ac_compile) 2>&5
45101 ac_status=$?
45102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45103 (exit $ac_status); } &&
45104 { ac_try='test -s conftest.$ac_objext'
45105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45106 (eval $ac_try) 2>&5
45107 ac_status=$?
45108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45109 (exit $ac_status); }; }; then
45110 has_wchar_minmax=yes
45111 else
45112 echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45115 has_wchar_minmax=no
45117 rm -f conftest.$ac_objext conftest.$ac_ext
45118 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
45119 echo "${ECHO_T}$has_wchar_minmax" >&6
45121 # Test wchar.h for WEOF, which is what we use to determine whether
45122 # to specialize for char_traits<wchar_t> or not.
45123 echo "$as_me:$LINENO: checking for WEOF" >&5
45124 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
45125 cat >conftest.$ac_ext <<_ACEOF
45126 #line $LINENO "configure"
45127 /* confdefs.h. */
45128 _ACEOF
45129 cat confdefs.h >>conftest.$ac_ext
45130 cat >>conftest.$ac_ext <<_ACEOF
45131 /* end confdefs.h. */
45133 #include <wchar.h>
45134 #include <stddef.h>
45136 main ()
45138 wint_t i = WEOF;
45140 return 0;
45142 _ACEOF
45143 rm -f conftest.$ac_objext
45144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45145 (eval $ac_compile) 2>&5
45146 ac_status=$?
45147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45148 (exit $ac_status); } &&
45149 { ac_try='test -s conftest.$ac_objext'
45150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45151 (eval $ac_try) 2>&5
45152 ac_status=$?
45153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45154 (exit $ac_status); }; }; then
45155 has_weof=yes
45156 else
45157 echo "$as_me: failed program was:" >&5
45158 sed 's/^/| /' conftest.$ac_ext >&5
45160 has_weof=no
45162 rm -f conftest.$ac_objext conftest.$ac_ext
45163 echo "$as_me:$LINENO: result: $has_weof" >&5
45164 echo "${ECHO_T}$has_weof" >&6
45166 # Tests for wide character functions used in char_traits<wchar_t>.
45167 ac_wfuncs=yes
45174 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
45176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45177 echo "$as_me:$LINENO: checking for $ac_func" >&5
45178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45179 if eval "test \"\${$as_ac_var+set}\" = set"; then
45180 echo $ECHO_N "(cached) $ECHO_C" >&6
45181 else
45182 if test x$gcc_no_link = xyes; then
45183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45185 { (exit 1); exit 1; }; }
45187 cat >conftest.$ac_ext <<_ACEOF
45188 #line $LINENO "configure"
45189 /* confdefs.h. */
45190 _ACEOF
45191 cat confdefs.h >>conftest.$ac_ext
45192 cat >>conftest.$ac_ext <<_ACEOF
45193 /* end confdefs.h. */
45194 /* System header to define __stub macros and hopefully few prototypes,
45195 which can conflict with char $ac_func (); below.
45196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45197 <limits.h> exists even on freestanding compilers. */
45198 #ifdef __STDC__
45199 # include <limits.h>
45200 #else
45201 # include <assert.h>
45202 #endif
45203 /* Override any gcc2 internal prototype to avoid an error. */
45204 #ifdef __cplusplus
45205 extern "C"
45207 #endif
45208 /* We use char because int might match the return type of a gcc2
45209 builtin and then its argument prototype would still apply. */
45210 char $ac_func ();
45211 /* The GNU C library defines this for functions which it implements
45212 to always fail with ENOSYS. Some functions are actually named
45213 something starting with __ and the normal name is an alias. */
45214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45215 choke me
45216 #else
45217 char (*f) () = $ac_func;
45218 #endif
45219 #ifdef __cplusplus
45221 #endif
45224 main ()
45226 return f != $ac_func;
45228 return 0;
45230 _ACEOF
45231 rm -f conftest.$ac_objext conftest$ac_exeext
45232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45233 (eval $ac_link) 2>&5
45234 ac_status=$?
45235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45236 (exit $ac_status); } &&
45237 { ac_try='test -s conftest$ac_exeext'
45238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45239 (eval $ac_try) 2>&5
45240 ac_status=$?
45241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45242 (exit $ac_status); }; }; then
45243 eval "$as_ac_var=yes"
45244 else
45245 echo "$as_me: failed program was:" >&5
45246 sed 's/^/| /' conftest.$ac_ext >&5
45248 eval "$as_ac_var=no"
45250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45254 if test `eval echo '${'$as_ac_var'}'` = yes; then
45255 cat >>confdefs.h <<_ACEOF
45256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45257 _ACEOF
45259 else
45260 ac_wfuncs=no
45262 done
45265 # Checks for names injected into std:: by the c_std headers.
45312 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45313 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
45314 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45315 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
45316 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45317 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45320 echo "$as_me:$LINENO: checking for $ac_func" >&5
45321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45322 if eval "test \"\${$as_ac_var+set}\" = set"; then
45323 echo $ECHO_N "(cached) $ECHO_C" >&6
45324 else
45325 if test x$gcc_no_link = xyes; then
45326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45328 { (exit 1); exit 1; }; }
45330 cat >conftest.$ac_ext <<_ACEOF
45331 #line $LINENO "configure"
45332 /* confdefs.h. */
45333 _ACEOF
45334 cat confdefs.h >>conftest.$ac_ext
45335 cat >>conftest.$ac_ext <<_ACEOF
45336 /* end confdefs.h. */
45337 /* System header to define __stub macros and hopefully few prototypes,
45338 which can conflict with char $ac_func (); below.
45339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45340 <limits.h> exists even on freestanding compilers. */
45341 #ifdef __STDC__
45342 # include <limits.h>
45343 #else
45344 # include <assert.h>
45345 #endif
45346 /* Override any gcc2 internal prototype to avoid an error. */
45347 #ifdef __cplusplus
45348 extern "C"
45350 #endif
45351 /* We use char because int might match the return type of a gcc2
45352 builtin and then its argument prototype would still apply. */
45353 char $ac_func ();
45354 /* The GNU C library defines this for functions which it implements
45355 to always fail with ENOSYS. Some functions are actually named
45356 something starting with __ and the normal name is an alias. */
45357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45358 choke me
45359 #else
45360 char (*f) () = $ac_func;
45361 #endif
45362 #ifdef __cplusplus
45364 #endif
45367 main ()
45369 return f != $ac_func;
45371 return 0;
45373 _ACEOF
45374 rm -f conftest.$ac_objext conftest$ac_exeext
45375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45376 (eval $ac_link) 2>&5
45377 ac_status=$?
45378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45379 (exit $ac_status); } &&
45380 { ac_try='test -s conftest$ac_exeext'
45381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45382 (eval $ac_try) 2>&5
45383 ac_status=$?
45384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385 (exit $ac_status); }; }; then
45386 eval "$as_ac_var=yes"
45387 else
45388 echo "$as_me: failed program was:" >&5
45389 sed 's/^/| /' conftest.$ac_ext >&5
45391 eval "$as_ac_var=no"
45393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45397 if test `eval echo '${'$as_ac_var'}'` = yes; then
45398 cat >>confdefs.h <<_ACEOF
45399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45400 _ACEOF
45402 else
45403 ac_wfuncs=no
45405 done
45408 # Checks for wide character functions that are not required
45409 # for basic wchar_t support. Don't disable support if they are missing.
45410 # Injection of these is wrapped with guard macros.
45416 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
45418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45419 echo "$as_me:$LINENO: checking for $ac_func" >&5
45420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45421 if eval "test \"\${$as_ac_var+set}\" = set"; then
45422 echo $ECHO_N "(cached) $ECHO_C" >&6
45423 else
45424 if test x$gcc_no_link = xyes; then
45425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45427 { (exit 1); exit 1; }; }
45429 cat >conftest.$ac_ext <<_ACEOF
45430 #line $LINENO "configure"
45431 /* confdefs.h. */
45432 _ACEOF
45433 cat confdefs.h >>conftest.$ac_ext
45434 cat >>conftest.$ac_ext <<_ACEOF
45435 /* end confdefs.h. */
45436 /* System header to define __stub macros and hopefully few prototypes,
45437 which can conflict with char $ac_func (); below.
45438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45439 <limits.h> exists even on freestanding compilers. */
45440 #ifdef __STDC__
45441 # include <limits.h>
45442 #else
45443 # include <assert.h>
45444 #endif
45445 /* Override any gcc2 internal prototype to avoid an error. */
45446 #ifdef __cplusplus
45447 extern "C"
45449 #endif
45450 /* We use char because int might match the return type of a gcc2
45451 builtin and then its argument prototype would still apply. */
45452 char $ac_func ();
45453 /* The GNU C library defines this for functions which it implements
45454 to always fail with ENOSYS. Some functions are actually named
45455 something starting with __ and the normal name is an alias. */
45456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45457 choke me
45458 #else
45459 char (*f) () = $ac_func;
45460 #endif
45461 #ifdef __cplusplus
45463 #endif
45466 main ()
45468 return f != $ac_func;
45470 return 0;
45472 _ACEOF
45473 rm -f conftest.$ac_objext conftest$ac_exeext
45474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45475 (eval $ac_link) 2>&5
45476 ac_status=$?
45477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45478 (exit $ac_status); } &&
45479 { ac_try='test -s conftest$ac_exeext'
45480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45481 (eval $ac_try) 2>&5
45482 ac_status=$?
45483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45484 (exit $ac_status); }; }; then
45485 eval "$as_ac_var=yes"
45486 else
45487 echo "$as_me: failed program was:" >&5
45488 sed 's/^/| /' conftest.$ac_ext >&5
45490 eval "$as_ac_var=no"
45492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45496 if test `eval echo '${'$as_ac_var'}'` = yes; then
45497 cat >>confdefs.h <<_ACEOF
45498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45499 _ACEOF
45502 done
45505 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45506 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45507 if test x"$has_weof" = xyes &&
45508 test x"$has_wchar_minmax" = xyes &&
45509 test x"$ac_wfuncs" = xyes;
45510 then
45511 ac_isoC99_wchar_t=yes
45512 else
45513 ac_isoC99_wchar_t=no
45515 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45516 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45518 # Use iconv for wchar_t to char conversions. As such, check for
45519 # X/Open Portability Guide, version 2 features (XPG2).
45520 if test "${ac_cv_header_iconv_h+set}" = set; then
45521 echo "$as_me:$LINENO: checking for iconv.h" >&5
45522 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45523 if test "${ac_cv_header_iconv_h+set}" = set; then
45524 echo $ECHO_N "(cached) $ECHO_C" >&6
45526 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45527 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45528 else
45529 # Is the header compilable?
45530 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45531 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45532 cat >conftest.$ac_ext <<_ACEOF
45533 #line $LINENO "configure"
45534 /* confdefs.h. */
45535 _ACEOF
45536 cat confdefs.h >>conftest.$ac_ext
45537 cat >>conftest.$ac_ext <<_ACEOF
45538 /* end confdefs.h. */
45539 $ac_includes_default
45540 #include <iconv.h>
45541 _ACEOF
45542 rm -f conftest.$ac_objext
45543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45544 (eval $ac_compile) 2>&5
45545 ac_status=$?
45546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45547 (exit $ac_status); } &&
45548 { ac_try='test -s conftest.$ac_objext'
45549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45550 (eval $ac_try) 2>&5
45551 ac_status=$?
45552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553 (exit $ac_status); }; }; then
45554 ac_header_compiler=yes
45555 else
45556 echo "$as_me: failed program was:" >&5
45557 sed 's/^/| /' conftest.$ac_ext >&5
45559 ac_header_compiler=no
45561 rm -f conftest.$ac_objext conftest.$ac_ext
45562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45563 echo "${ECHO_T}$ac_header_compiler" >&6
45565 # Is the header present?
45566 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45567 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45568 cat >conftest.$ac_ext <<_ACEOF
45569 #line $LINENO "configure"
45570 /* confdefs.h. */
45571 _ACEOF
45572 cat confdefs.h >>conftest.$ac_ext
45573 cat >>conftest.$ac_ext <<_ACEOF
45574 /* end confdefs.h. */
45575 #include <iconv.h>
45576 _ACEOF
45577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45579 ac_status=$?
45580 grep -v '^ *+' conftest.er1 >conftest.err
45581 rm -f conftest.er1
45582 cat conftest.err >&5
45583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45584 (exit $ac_status); } >/dev/null; then
45585 if test -s conftest.err; then
45586 ac_cpp_err=$ac_c_preproc_warn_flag
45587 else
45588 ac_cpp_err=
45590 else
45591 ac_cpp_err=yes
45593 if test -z "$ac_cpp_err"; then
45594 ac_header_preproc=yes
45595 else
45596 echo "$as_me: failed program was:" >&5
45597 sed 's/^/| /' conftest.$ac_ext >&5
45599 ac_header_preproc=no
45601 rm -f conftest.err conftest.$ac_ext
45602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45603 echo "${ECHO_T}$ac_header_preproc" >&6
45605 # So? What about this header?
45606 case $ac_header_compiler:$ac_header_preproc in
45607 yes:no )
45608 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45609 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45610 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45611 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45613 cat <<\_ASBOX
45614 ## ------------------------------------ ##
45615 ## Report this to bug-autoconf@gnu.org. ##
45616 ## ------------------------------------ ##
45617 _ASBOX
45619 sed "s/^/$as_me: WARNING: /" >&2
45621 no:yes )
45622 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45623 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45624 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45625 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45626 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45627 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45629 cat <<\_ASBOX
45630 ## ------------------------------------ ##
45631 ## Report this to bug-autoconf@gnu.org. ##
45632 ## ------------------------------------ ##
45633 _ASBOX
45635 sed "s/^/$as_me: WARNING: /" >&2
45637 esac
45638 echo "$as_me:$LINENO: checking for iconv.h" >&5
45639 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45640 if test "${ac_cv_header_iconv_h+set}" = set; then
45641 echo $ECHO_N "(cached) $ECHO_C" >&6
45642 else
45643 ac_cv_header_iconv_h=$ac_header_preproc
45645 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45646 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45649 if test $ac_cv_header_iconv_h = yes; then
45650 ac_has_iconv_h=yes
45651 else
45652 ac_has_iconv_h=no
45656 if test "${ac_cv_header_langinfo_h+set}" = set; then
45657 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45658 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45659 if test "${ac_cv_header_langinfo_h+set}" = set; then
45660 echo $ECHO_N "(cached) $ECHO_C" >&6
45662 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45663 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45664 else
45665 # Is the header compilable?
45666 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45667 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45668 cat >conftest.$ac_ext <<_ACEOF
45669 #line $LINENO "configure"
45670 /* confdefs.h. */
45671 _ACEOF
45672 cat confdefs.h >>conftest.$ac_ext
45673 cat >>conftest.$ac_ext <<_ACEOF
45674 /* end confdefs.h. */
45675 $ac_includes_default
45676 #include <langinfo.h>
45677 _ACEOF
45678 rm -f conftest.$ac_objext
45679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45680 (eval $ac_compile) 2>&5
45681 ac_status=$?
45682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683 (exit $ac_status); } &&
45684 { ac_try='test -s conftest.$ac_objext'
45685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686 (eval $ac_try) 2>&5
45687 ac_status=$?
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; }; then
45690 ac_header_compiler=yes
45691 else
45692 echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45695 ac_header_compiler=no
45697 rm -f conftest.$ac_objext conftest.$ac_ext
45698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45699 echo "${ECHO_T}$ac_header_compiler" >&6
45701 # Is the header present?
45702 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45703 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45704 cat >conftest.$ac_ext <<_ACEOF
45705 #line $LINENO "configure"
45706 /* confdefs.h. */
45707 _ACEOF
45708 cat confdefs.h >>conftest.$ac_ext
45709 cat >>conftest.$ac_ext <<_ACEOF
45710 /* end confdefs.h. */
45711 #include <langinfo.h>
45712 _ACEOF
45713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45715 ac_status=$?
45716 grep -v '^ *+' conftest.er1 >conftest.err
45717 rm -f conftest.er1
45718 cat conftest.err >&5
45719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45720 (exit $ac_status); } >/dev/null; then
45721 if test -s conftest.err; then
45722 ac_cpp_err=$ac_c_preproc_warn_flag
45723 else
45724 ac_cpp_err=
45726 else
45727 ac_cpp_err=yes
45729 if test -z "$ac_cpp_err"; then
45730 ac_header_preproc=yes
45731 else
45732 echo "$as_me: failed program was:" >&5
45733 sed 's/^/| /' conftest.$ac_ext >&5
45735 ac_header_preproc=no
45737 rm -f conftest.err conftest.$ac_ext
45738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45739 echo "${ECHO_T}$ac_header_preproc" >&6
45741 # So? What about this header?
45742 case $ac_header_compiler:$ac_header_preproc in
45743 yes:no )
45744 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45745 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45746 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45747 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45749 cat <<\_ASBOX
45750 ## ------------------------------------ ##
45751 ## Report this to bug-autoconf@gnu.org. ##
45752 ## ------------------------------------ ##
45753 _ASBOX
45755 sed "s/^/$as_me: WARNING: /" >&2
45757 no:yes )
45758 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45759 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45760 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45761 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45762 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45763 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45765 cat <<\_ASBOX
45766 ## ------------------------------------ ##
45767 ## Report this to bug-autoconf@gnu.org. ##
45768 ## ------------------------------------ ##
45769 _ASBOX
45771 sed "s/^/$as_me: WARNING: /" >&2
45773 esac
45774 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45775 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45776 if test "${ac_cv_header_langinfo_h+set}" = set; then
45777 echo $ECHO_N "(cached) $ECHO_C" >&6
45778 else
45779 ac_cv_header_langinfo_h=$ac_header_preproc
45781 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45782 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45785 if test $ac_cv_header_langinfo_h = yes; then
45786 ac_has_langinfo_h=yes
45787 else
45788 ac_has_langinfo_h=no
45793 # Check for existence of libiconv.a providing XPG2 wchar_t support.
45794 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45795 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45796 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45797 echo $ECHO_N "(cached) $ECHO_C" >&6
45798 else
45799 ac_check_lib_save_LIBS=$LIBS
45800 LIBS="-liconv $LIBS"
45801 if test x$gcc_no_link = xyes; then
45802 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45804 { (exit 1); exit 1; }; }
45806 cat >conftest.$ac_ext <<_ACEOF
45807 #line $LINENO "configure"
45808 /* confdefs.h. */
45809 _ACEOF
45810 cat confdefs.h >>conftest.$ac_ext
45811 cat >>conftest.$ac_ext <<_ACEOF
45812 /* end confdefs.h. */
45814 /* Override any gcc2 internal prototype to avoid an error. */
45815 #ifdef __cplusplus
45816 extern "C"
45817 #endif
45818 /* We use char because int might match the return type of a gcc2
45819 builtin and then its argument prototype would still apply. */
45820 char iconv ();
45822 main ()
45824 iconv ();
45826 return 0;
45828 _ACEOF
45829 rm -f conftest.$ac_objext conftest$ac_exeext
45830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45831 (eval $ac_link) 2>&5
45832 ac_status=$?
45833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45834 (exit $ac_status); } &&
45835 { ac_try='test -s conftest$ac_exeext'
45836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45837 (eval $ac_try) 2>&5
45838 ac_status=$?
45839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45840 (exit $ac_status); }; }; then
45841 ac_cv_lib_iconv_iconv=yes
45842 else
45843 echo "$as_me: failed program was:" >&5
45844 sed 's/^/| /' conftest.$ac_ext >&5
45846 ac_cv_lib_iconv_iconv=no
45848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45849 LIBS=$ac_check_lib_save_LIBS
45851 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45852 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45853 if test $ac_cv_lib_iconv_iconv = yes; then
45854 libiconv="-liconv"
45857 ac_save_LIBS="$LIBS"
45858 LIBS="$LIBS $libiconv"
45864 for ac_func in iconv_open iconv_close iconv nl_langinfo
45866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45867 echo "$as_me:$LINENO: checking for $ac_func" >&5
45868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45869 if eval "test \"\${$as_ac_var+set}\" = set"; then
45870 echo $ECHO_N "(cached) $ECHO_C" >&6
45871 else
45872 if test x$gcc_no_link = xyes; then
45873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45875 { (exit 1); exit 1; }; }
45877 cat >conftest.$ac_ext <<_ACEOF
45878 #line $LINENO "configure"
45879 /* confdefs.h. */
45880 _ACEOF
45881 cat confdefs.h >>conftest.$ac_ext
45882 cat >>conftest.$ac_ext <<_ACEOF
45883 /* end confdefs.h. */
45884 /* System header to define __stub macros and hopefully few prototypes,
45885 which can conflict with char $ac_func (); below.
45886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45887 <limits.h> exists even on freestanding compilers. */
45888 #ifdef __STDC__
45889 # include <limits.h>
45890 #else
45891 # include <assert.h>
45892 #endif
45893 /* Override any gcc2 internal prototype to avoid an error. */
45894 #ifdef __cplusplus
45895 extern "C"
45897 #endif
45898 /* We use char because int might match the return type of a gcc2
45899 builtin and then its argument prototype would still apply. */
45900 char $ac_func ();
45901 /* The GNU C library defines this for functions which it implements
45902 to always fail with ENOSYS. Some functions are actually named
45903 something starting with __ and the normal name is an alias. */
45904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45905 choke me
45906 #else
45907 char (*f) () = $ac_func;
45908 #endif
45909 #ifdef __cplusplus
45911 #endif
45914 main ()
45916 return f != $ac_func;
45918 return 0;
45920 _ACEOF
45921 rm -f conftest.$ac_objext conftest$ac_exeext
45922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45923 (eval $ac_link) 2>&5
45924 ac_status=$?
45925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45926 (exit $ac_status); } &&
45927 { ac_try='test -s conftest$ac_exeext'
45928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45929 (eval $ac_try) 2>&5
45930 ac_status=$?
45931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45932 (exit $ac_status); }; }; then
45933 eval "$as_ac_var=yes"
45934 else
45935 echo "$as_me: failed program was:" >&5
45936 sed 's/^/| /' conftest.$ac_ext >&5
45938 eval "$as_ac_var=no"
45940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45944 if test `eval echo '${'$as_ac_var'}'` = yes; then
45945 cat >>confdefs.h <<_ACEOF
45946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45947 _ACEOF
45948 ac_XPG2funcs=yes
45949 else
45950 ac_XPG2funcs=no
45952 done
45955 LIBS="$ac_save_LIBS"
45957 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45958 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45959 if test x"$ac_has_iconv_h" = xyes &&
45960 test x"$ac_has_langinfo_h" = xyes &&
45961 test x"$ac_XPG2funcs" = xyes;
45962 then
45963 ac_XPG2_wchar_t=yes
45964 else
45965 ac_XPG2_wchar_t=no
45967 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45968 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45970 # At the moment, only enable wchar_t specializations if all the
45971 # above support is present.
45972 if test x"$ac_isoC99_wchar_t" = xyes &&
45973 test x"$ac_XPG2_wchar_t" = xyes;
45974 then
45975 cat >>confdefs.h <<\_ACEOF
45976 #define _GLIBCXX_USE_WCHAR_T 1
45977 _ACEOF
45979 enable_wchar_t=yes
45982 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45983 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45984 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45985 echo "${ECHO_T}$enable_wchar_t" >&6
45988 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45989 ac_save_CXXFLAGS="$CXXFLAGS"
45990 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45993 echo "$as_me:$LINENO: checking for strtold declaration" >&5
45994 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45995 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45996 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45997 echo $ECHO_N "(cached) $ECHO_C" >&6
45998 else
46002 ac_ext=cc
46003 ac_cpp='$CXXCPP $CPPFLAGS'
46004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46008 cat >conftest.$ac_ext <<_ACEOF
46009 #line $LINENO "configure"
46010 /* confdefs.h. */
46011 _ACEOF
46012 cat confdefs.h >>conftest.$ac_ext
46013 cat >>conftest.$ac_ext <<_ACEOF
46014 /* end confdefs.h. */
46015 #include <stdlib.h>
46017 main ()
46019 strtold(0, 0);
46021 return 0;
46023 _ACEOF
46024 rm -f conftest.$ac_objext
46025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46026 (eval $ac_compile) 2>&5
46027 ac_status=$?
46028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029 (exit $ac_status); } &&
46030 { ac_try='test -s conftest.$ac_objext'
46031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46032 (eval $ac_try) 2>&5
46033 ac_status=$?
46034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035 (exit $ac_status); }; }; then
46036 glibcxx_cv_func_strtold_use=yes
46037 else
46038 echo "$as_me: failed program was:" >&5
46039 sed 's/^/| /' conftest.$ac_ext >&5
46041 glibcxx_cv_func_strtold_use=no
46043 rm -f conftest.$ac_objext conftest.$ac_ext
46044 ac_ext=c
46045 ac_cpp='$CPP $CPPFLAGS'
46046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46054 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
46055 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
46056 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
46058 for ac_func in strtold
46060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46061 echo "$as_me:$LINENO: checking for $ac_func" >&5
46062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46063 if eval "test \"\${$as_ac_var+set}\" = set"; then
46064 echo $ECHO_N "(cached) $ECHO_C" >&6
46065 else
46066 if test x$gcc_no_link = xyes; then
46067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46069 { (exit 1); exit 1; }; }
46071 cat >conftest.$ac_ext <<_ACEOF
46072 #line $LINENO "configure"
46073 /* confdefs.h. */
46074 _ACEOF
46075 cat confdefs.h >>conftest.$ac_ext
46076 cat >>conftest.$ac_ext <<_ACEOF
46077 /* end confdefs.h. */
46078 /* System header to define __stub macros and hopefully few prototypes,
46079 which can conflict with char $ac_func (); below.
46080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46081 <limits.h> exists even on freestanding compilers. */
46082 #ifdef __STDC__
46083 # include <limits.h>
46084 #else
46085 # include <assert.h>
46086 #endif
46087 /* Override any gcc2 internal prototype to avoid an error. */
46088 #ifdef __cplusplus
46089 extern "C"
46091 #endif
46092 /* We use char because int might match the return type of a gcc2
46093 builtin and then its argument prototype would still apply. */
46094 char $ac_func ();
46095 /* The GNU C library defines this for functions which it implements
46096 to always fail with ENOSYS. Some functions are actually named
46097 something starting with __ and the normal name is an alias. */
46098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46099 choke me
46100 #else
46101 char (*f) () = $ac_func;
46102 #endif
46103 #ifdef __cplusplus
46105 #endif
46108 main ()
46110 return f != $ac_func;
46112 return 0;
46114 _ACEOF
46115 rm -f conftest.$ac_objext conftest$ac_exeext
46116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46117 (eval $ac_link) 2>&5
46118 ac_status=$?
46119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120 (exit $ac_status); } &&
46121 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
46128 else
46129 echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46132 eval "$as_ac_var=no"
46134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46138 if test `eval echo '${'$as_ac_var'}'` = yes; then
46139 cat >>confdefs.h <<_ACEOF
46140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46141 _ACEOF
46144 done
46149 echo "$as_me:$LINENO: checking for strtof declaration" >&5
46150 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
46151 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
46152 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
46153 echo $ECHO_N "(cached) $ECHO_C" >&6
46154 else
46158 ac_ext=cc
46159 ac_cpp='$CXXCPP $CPPFLAGS'
46160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46164 cat >conftest.$ac_ext <<_ACEOF
46165 #line $LINENO "configure"
46166 /* confdefs.h. */
46167 _ACEOF
46168 cat confdefs.h >>conftest.$ac_ext
46169 cat >>conftest.$ac_ext <<_ACEOF
46170 /* end confdefs.h. */
46171 #include <stdlib.h>
46173 main ()
46175 strtof(0, 0);
46177 return 0;
46179 _ACEOF
46180 rm -f conftest.$ac_objext
46181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46182 (eval $ac_compile) 2>&5
46183 ac_status=$?
46184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185 (exit $ac_status); } &&
46186 { ac_try='test -s conftest.$ac_objext'
46187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46188 (eval $ac_try) 2>&5
46189 ac_status=$?
46190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46191 (exit $ac_status); }; }; then
46192 glibcxx_cv_func_strtof_use=yes
46193 else
46194 echo "$as_me: failed program was:" >&5
46195 sed 's/^/| /' conftest.$ac_ext >&5
46197 glibcxx_cv_func_strtof_use=no
46199 rm -f conftest.$ac_objext conftest.$ac_ext
46200 ac_ext=c
46201 ac_cpp='$CPP $CPPFLAGS'
46202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46210 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
46211 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
46212 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
46214 for ac_func in strtof
46216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46217 echo "$as_me:$LINENO: checking for $ac_func" >&5
46218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46219 if eval "test \"\${$as_ac_var+set}\" = set"; then
46220 echo $ECHO_N "(cached) $ECHO_C" >&6
46221 else
46222 if test x$gcc_no_link = xyes; then
46223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46225 { (exit 1); exit 1; }; }
46227 cat >conftest.$ac_ext <<_ACEOF
46228 #line $LINENO "configure"
46229 /* confdefs.h. */
46230 _ACEOF
46231 cat confdefs.h >>conftest.$ac_ext
46232 cat >>conftest.$ac_ext <<_ACEOF
46233 /* end confdefs.h. */
46234 /* System header to define __stub macros and hopefully few prototypes,
46235 which can conflict with char $ac_func (); below.
46236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46237 <limits.h> exists even on freestanding compilers. */
46238 #ifdef __STDC__
46239 # include <limits.h>
46240 #else
46241 # include <assert.h>
46242 #endif
46243 /* Override any gcc2 internal prototype to avoid an error. */
46244 #ifdef __cplusplus
46245 extern "C"
46247 #endif
46248 /* We use char because int might match the return type of a gcc2
46249 builtin and then its argument prototype would still apply. */
46250 char $ac_func ();
46251 /* The GNU C library defines this for functions which it implements
46252 to always fail with ENOSYS. Some functions are actually named
46253 something starting with __ and the normal name is an alias. */
46254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46255 choke me
46256 #else
46257 char (*f) () = $ac_func;
46258 #endif
46259 #ifdef __cplusplus
46261 #endif
46264 main ()
46266 return f != $ac_func;
46268 return 0;
46270 _ACEOF
46271 rm -f conftest.$ac_objext conftest$ac_exeext
46272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46273 (eval $ac_link) 2>&5
46274 ac_status=$?
46275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46276 (exit $ac_status); } &&
46277 { ac_try='test -s conftest$ac_exeext'
46278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46279 (eval $ac_try) 2>&5
46280 ac_status=$?
46281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46282 (exit $ac_status); }; }; then
46283 eval "$as_ac_var=yes"
46284 else
46285 echo "$as_me: failed program was:" >&5
46286 sed 's/^/| /' conftest.$ac_ext >&5
46288 eval "$as_ac_var=no"
46290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46294 if test `eval echo '${'$as_ac_var'}'` = yes; then
46295 cat >>confdefs.h <<_ACEOF
46296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46297 _ACEOF
46300 done
46305 echo "$as_me:$LINENO: checking for lrand48 declaration" >&5
46306 echo $ECHO_N "checking for lrand48 declaration... $ECHO_C" >&6
46307 if test x${glibcxx_cv_func_lrand48_use+set} != xset; then
46308 if test "${glibcxx_cv_func_lrand48_use+set}" = set; then
46309 echo $ECHO_N "(cached) $ECHO_C" >&6
46310 else
46314 ac_ext=cc
46315 ac_cpp='$CXXCPP $CPPFLAGS'
46316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46320 cat >conftest.$ac_ext <<_ACEOF
46321 #line $LINENO "configure"
46322 /* confdefs.h. */
46323 _ACEOF
46324 cat confdefs.h >>conftest.$ac_ext
46325 cat >>conftest.$ac_ext <<_ACEOF
46326 /* end confdefs.h. */
46327 #include <stdlib.h>
46329 main ()
46331 lrand48();
46333 return 0;
46335 _ACEOF
46336 rm -f conftest.$ac_objext
46337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46338 (eval $ac_compile) 2>&5
46339 ac_status=$?
46340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46341 (exit $ac_status); } &&
46342 { ac_try='test -s conftest.$ac_objext'
46343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46344 (eval $ac_try) 2>&5
46345 ac_status=$?
46346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46347 (exit $ac_status); }; }; then
46348 glibcxx_cv_func_lrand48_use=yes
46349 else
46350 echo "$as_me: failed program was:" >&5
46351 sed 's/^/| /' conftest.$ac_ext >&5
46353 glibcxx_cv_func_lrand48_use=no
46355 rm -f conftest.$ac_objext conftest.$ac_ext
46356 ac_ext=c
46357 ac_cpp='$CPP $CPPFLAGS'
46358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46366 echo "$as_me:$LINENO: result: $glibcxx_cv_func_lrand48_use" >&5
46367 echo "${ECHO_T}$glibcxx_cv_func_lrand48_use" >&6
46368 if test x$glibcxx_cv_func_lrand48_use = x"yes"; then
46370 for ac_func in lrand48
46372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46373 echo "$as_me:$LINENO: checking for $ac_func" >&5
46374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46375 if eval "test \"\${$as_ac_var+set}\" = set"; then
46376 echo $ECHO_N "(cached) $ECHO_C" >&6
46377 else
46378 if test x$gcc_no_link = xyes; then
46379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46381 { (exit 1); exit 1; }; }
46383 cat >conftest.$ac_ext <<_ACEOF
46384 #line $LINENO "configure"
46385 /* confdefs.h. */
46386 _ACEOF
46387 cat confdefs.h >>conftest.$ac_ext
46388 cat >>conftest.$ac_ext <<_ACEOF
46389 /* end confdefs.h. */
46390 /* System header to define __stub macros and hopefully few prototypes,
46391 which can conflict with char $ac_func (); below.
46392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46393 <limits.h> exists even on freestanding compilers. */
46394 #ifdef __STDC__
46395 # include <limits.h>
46396 #else
46397 # include <assert.h>
46398 #endif
46399 /* Override any gcc2 internal prototype to avoid an error. */
46400 #ifdef __cplusplus
46401 extern "C"
46403 #endif
46404 /* We use char because int might match the return type of a gcc2
46405 builtin and then its argument prototype would still apply. */
46406 char $ac_func ();
46407 /* The GNU C library defines this for functions which it implements
46408 to always fail with ENOSYS. Some functions are actually named
46409 something starting with __ and the normal name is an alias. */
46410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46411 choke me
46412 #else
46413 char (*f) () = $ac_func;
46414 #endif
46415 #ifdef __cplusplus
46417 #endif
46420 main ()
46422 return f != $ac_func;
46424 return 0;
46426 _ACEOF
46427 rm -f conftest.$ac_objext conftest$ac_exeext
46428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46429 (eval $ac_link) 2>&5
46430 ac_status=$?
46431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46432 (exit $ac_status); } &&
46433 { ac_try='test -s conftest$ac_exeext'
46434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46435 (eval $ac_try) 2>&5
46436 ac_status=$?
46437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46438 (exit $ac_status); }; }; then
46439 eval "$as_ac_var=yes"
46440 else
46441 echo "$as_me: failed program was:" >&5
46442 sed 's/^/| /' conftest.$ac_ext >&5
46444 eval "$as_ac_var=no"
46446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46450 if test `eval echo '${'$as_ac_var'}'` = yes; then
46451 cat >>confdefs.h <<_ACEOF
46452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46453 _ACEOF
46456 done
46461 CXXFLAGS="$ac_save_CXXFLAGS"
46464 # For showmanyc_helper().
46467 for ac_header in sys/ioctl.h sys/filio.h
46469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46471 echo "$as_me:$LINENO: checking for $ac_header" >&5
46472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46474 echo $ECHO_N "(cached) $ECHO_C" >&6
46476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46478 else
46479 # Is the header compilable?
46480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46482 cat >conftest.$ac_ext <<_ACEOF
46483 #line $LINENO "configure"
46484 /* confdefs.h. */
46485 _ACEOF
46486 cat confdefs.h >>conftest.$ac_ext
46487 cat >>conftest.$ac_ext <<_ACEOF
46488 /* end confdefs.h. */
46489 $ac_includes_default
46490 #include <$ac_header>
46491 _ACEOF
46492 rm -f conftest.$ac_objext
46493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46494 (eval $ac_compile) 2>&5
46495 ac_status=$?
46496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497 (exit $ac_status); } &&
46498 { ac_try='test -s conftest.$ac_objext'
46499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46500 (eval $ac_try) 2>&5
46501 ac_status=$?
46502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46503 (exit $ac_status); }; }; then
46504 ac_header_compiler=yes
46505 else
46506 echo "$as_me: failed program was:" >&5
46507 sed 's/^/| /' conftest.$ac_ext >&5
46509 ac_header_compiler=no
46511 rm -f conftest.$ac_objext conftest.$ac_ext
46512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46513 echo "${ECHO_T}$ac_header_compiler" >&6
46515 # Is the header present?
46516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46518 cat >conftest.$ac_ext <<_ACEOF
46519 #line $LINENO "configure"
46520 /* confdefs.h. */
46521 _ACEOF
46522 cat confdefs.h >>conftest.$ac_ext
46523 cat >>conftest.$ac_ext <<_ACEOF
46524 /* end confdefs.h. */
46525 #include <$ac_header>
46526 _ACEOF
46527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46529 ac_status=$?
46530 grep -v '^ *+' conftest.er1 >conftest.err
46531 rm -f conftest.er1
46532 cat conftest.err >&5
46533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46534 (exit $ac_status); } >/dev/null; then
46535 if test -s conftest.err; then
46536 ac_cpp_err=$ac_c_preproc_warn_flag
46537 else
46538 ac_cpp_err=
46540 else
46541 ac_cpp_err=yes
46543 if test -z "$ac_cpp_err"; then
46544 ac_header_preproc=yes
46545 else
46546 echo "$as_me: failed program was:" >&5
46547 sed 's/^/| /' conftest.$ac_ext >&5
46549 ac_header_preproc=no
46551 rm -f conftest.err conftest.$ac_ext
46552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46553 echo "${ECHO_T}$ac_header_preproc" >&6
46555 # So? What about this header?
46556 case $ac_header_compiler:$ac_header_preproc in
46557 yes:no )
46558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46563 cat <<\_ASBOX
46564 ## ------------------------------------ ##
46565 ## Report this to bug-autoconf@gnu.org. ##
46566 ## ------------------------------------ ##
46567 _ASBOX
46569 sed "s/^/$as_me: WARNING: /" >&2
46571 no:yes )
46572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46579 cat <<\_ASBOX
46580 ## ------------------------------------ ##
46581 ## Report this to bug-autoconf@gnu.org. ##
46582 ## ------------------------------------ ##
46583 _ASBOX
46585 sed "s/^/$as_me: WARNING: /" >&2
46587 esac
46588 echo "$as_me:$LINENO: checking for $ac_header" >&5
46589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46591 echo $ECHO_N "(cached) $ECHO_C" >&6
46592 else
46593 eval "$as_ac_Header=$ac_header_preproc"
46595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46600 cat >>confdefs.h <<_ACEOF
46601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46602 _ACEOF
46606 done
46609 if test "${glibcxx_cv_POLL+set}" = set; then
46610 echo $ECHO_N "(cached) $ECHO_C" >&6
46611 else
46613 if test x$gcc_no_link = xyes; then
46614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46616 { (exit 1); exit 1; }; }
46618 cat >conftest.$ac_ext <<_ACEOF
46619 #line $LINENO "configure"
46620 /* confdefs.h. */
46621 _ACEOF
46622 cat confdefs.h >>conftest.$ac_ext
46623 cat >>conftest.$ac_ext <<_ACEOF
46624 /* end confdefs.h. */
46625 #include <poll.h>
46627 main ()
46629 struct pollfd pfd[1];
46630 pfd[0].events = POLLIN;
46631 poll(pfd, 1, 0);
46633 return 0;
46635 _ACEOF
46636 rm -f conftest.$ac_objext conftest$ac_exeext
46637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46638 (eval $ac_link) 2>&5
46639 ac_status=$?
46640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46641 (exit $ac_status); } &&
46642 { ac_try='test -s conftest$ac_exeext'
46643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46644 (eval $ac_try) 2>&5
46645 ac_status=$?
46646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647 (exit $ac_status); }; }; then
46648 glibcxx_cv_POLL=yes
46649 else
46650 echo "$as_me: failed program was:" >&5
46651 sed 's/^/| /' conftest.$ac_ext >&5
46653 glibcxx_cv_POLL=no
46655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46659 if test $glibcxx_cv_POLL = yes; then
46660 cat >>confdefs.h <<\_ACEOF
46661 #define HAVE_POLL 1
46662 _ACEOF
46667 if test "${glibcxx_cv_S_ISREG+set}" = set; then
46668 echo $ECHO_N "(cached) $ECHO_C" >&6
46669 else
46671 if test x$gcc_no_link = xyes; then
46672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46674 { (exit 1); exit 1; }; }
46676 cat >conftest.$ac_ext <<_ACEOF
46677 #line $LINENO "configure"
46678 /* confdefs.h. */
46679 _ACEOF
46680 cat confdefs.h >>conftest.$ac_ext
46681 cat >>conftest.$ac_ext <<_ACEOF
46682 /* end confdefs.h. */
46683 #include <sys/stat.h>
46685 main ()
46687 struct stat buffer;
46688 fstat(0, &buffer);
46689 S_ISREG(buffer.st_mode);
46691 return 0;
46693 _ACEOF
46694 rm -f conftest.$ac_objext conftest$ac_exeext
46695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46696 (eval $ac_link) 2>&5
46697 ac_status=$?
46698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46699 (exit $ac_status); } &&
46700 { ac_try='test -s conftest$ac_exeext'
46701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46702 (eval $ac_try) 2>&5
46703 ac_status=$?
46704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46705 (exit $ac_status); }; }; then
46706 glibcxx_cv_S_ISREG=yes
46707 else
46708 echo "$as_me: failed program was:" >&5
46709 sed 's/^/| /' conftest.$ac_ext >&5
46711 glibcxx_cv_S_ISREG=no
46713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46717 if test "${glibcxx_cv_S_IFREG+set}" = set; then
46718 echo $ECHO_N "(cached) $ECHO_C" >&6
46719 else
46721 if test x$gcc_no_link = xyes; then
46722 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46723 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46724 { (exit 1); exit 1; }; }
46726 cat >conftest.$ac_ext <<_ACEOF
46727 #line $LINENO "configure"
46728 /* confdefs.h. */
46729 _ACEOF
46730 cat confdefs.h >>conftest.$ac_ext
46731 cat >>conftest.$ac_ext <<_ACEOF
46732 /* end confdefs.h. */
46733 #include <sys/stat.h>
46735 main ()
46737 struct stat buffer;
46738 fstat(0, &buffer);
46739 S_IFREG & buffer.st_mode;
46741 return 0;
46743 _ACEOF
46744 rm -f conftest.$ac_objext conftest$ac_exeext
46745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46746 (eval $ac_link) 2>&5
46747 ac_status=$?
46748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46749 (exit $ac_status); } &&
46750 { ac_try='test -s conftest$ac_exeext'
46751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46752 (eval $ac_try) 2>&5
46753 ac_status=$?
46754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46755 (exit $ac_status); }; }; then
46756 glibcxx_cv_S_IFREG=yes
46757 else
46758 echo "$as_me: failed program was:" >&5
46759 sed 's/^/| /' conftest.$ac_ext >&5
46761 glibcxx_cv_S_IFREG=no
46763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46767 if test $glibcxx_cv_S_ISREG = yes; then
46768 cat >>confdefs.h <<\_ACEOF
46769 #define HAVE_S_ISREG 1
46770 _ACEOF
46772 elif test $glibcxx_cv_S_IFREG = yes; then
46773 cat >>confdefs.h <<\_ACEOF
46774 #define HAVE_S_IFREG 1
46775 _ACEOF
46780 # For xsputn_2().
46782 for ac_header in sys/uio.h
46784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46786 echo "$as_me:$LINENO: checking for $ac_header" >&5
46787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46789 echo $ECHO_N "(cached) $ECHO_C" >&6
46791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46793 else
46794 # Is the header compilable?
46795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46797 cat >conftest.$ac_ext <<_ACEOF
46798 #line $LINENO "configure"
46799 /* confdefs.h. */
46800 _ACEOF
46801 cat confdefs.h >>conftest.$ac_ext
46802 cat >>conftest.$ac_ext <<_ACEOF
46803 /* end confdefs.h. */
46804 $ac_includes_default
46805 #include <$ac_header>
46806 _ACEOF
46807 rm -f conftest.$ac_objext
46808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46809 (eval $ac_compile) 2>&5
46810 ac_status=$?
46811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46812 (exit $ac_status); } &&
46813 { ac_try='test -s conftest.$ac_objext'
46814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46815 (eval $ac_try) 2>&5
46816 ac_status=$?
46817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818 (exit $ac_status); }; }; then
46819 ac_header_compiler=yes
46820 else
46821 echo "$as_me: failed program was:" >&5
46822 sed 's/^/| /' conftest.$ac_ext >&5
46824 ac_header_compiler=no
46826 rm -f conftest.$ac_objext conftest.$ac_ext
46827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46828 echo "${ECHO_T}$ac_header_compiler" >&6
46830 # Is the header present?
46831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46833 cat >conftest.$ac_ext <<_ACEOF
46834 #line $LINENO "configure"
46835 /* confdefs.h. */
46836 _ACEOF
46837 cat confdefs.h >>conftest.$ac_ext
46838 cat >>conftest.$ac_ext <<_ACEOF
46839 /* end confdefs.h. */
46840 #include <$ac_header>
46841 _ACEOF
46842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46844 ac_status=$?
46845 grep -v '^ *+' conftest.er1 >conftest.err
46846 rm -f conftest.er1
46847 cat conftest.err >&5
46848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46849 (exit $ac_status); } >/dev/null; then
46850 if test -s conftest.err; then
46851 ac_cpp_err=$ac_c_preproc_warn_flag
46852 else
46853 ac_cpp_err=
46855 else
46856 ac_cpp_err=yes
46858 if test -z "$ac_cpp_err"; then
46859 ac_header_preproc=yes
46860 else
46861 echo "$as_me: failed program was:" >&5
46862 sed 's/^/| /' conftest.$ac_ext >&5
46864 ac_header_preproc=no
46866 rm -f conftest.err conftest.$ac_ext
46867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46868 echo "${ECHO_T}$ac_header_preproc" >&6
46870 # So? What about this header?
46871 case $ac_header_compiler:$ac_header_preproc in
46872 yes:no )
46873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46878 cat <<\_ASBOX
46879 ## ------------------------------------ ##
46880 ## Report this to bug-autoconf@gnu.org. ##
46881 ## ------------------------------------ ##
46882 _ASBOX
46884 sed "s/^/$as_me: WARNING: /" >&2
46886 no:yes )
46887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46894 cat <<\_ASBOX
46895 ## ------------------------------------ ##
46896 ## Report this to bug-autoconf@gnu.org. ##
46897 ## ------------------------------------ ##
46898 _ASBOX
46900 sed "s/^/$as_me: WARNING: /" >&2
46902 esac
46903 echo "$as_me:$LINENO: checking for $ac_header" >&5
46904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46906 echo $ECHO_N "(cached) $ECHO_C" >&6
46907 else
46908 eval "$as_ac_Header=$ac_header_preproc"
46910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46915 cat >>confdefs.h <<_ACEOF
46916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46917 _ACEOF
46921 done
46924 if test "${glibcxx_cv_WRITEV+set}" = set; then
46925 echo $ECHO_N "(cached) $ECHO_C" >&6
46926 else
46928 if test x$gcc_no_link = xyes; then
46929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46931 { (exit 1); exit 1; }; }
46933 cat >conftest.$ac_ext <<_ACEOF
46934 #line $LINENO "configure"
46935 /* confdefs.h. */
46936 _ACEOF
46937 cat confdefs.h >>conftest.$ac_ext
46938 cat >>conftest.$ac_ext <<_ACEOF
46939 /* end confdefs.h. */
46940 #include <sys/uio.h>
46942 main ()
46944 struct iovec iov[2];
46945 writev(0, iov, 0);
46947 return 0;
46949 _ACEOF
46950 rm -f conftest.$ac_objext conftest$ac_exeext
46951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46952 (eval $ac_link) 2>&5
46953 ac_status=$?
46954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955 (exit $ac_status); } &&
46956 { ac_try='test -s conftest$ac_exeext'
46957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46958 (eval $ac_try) 2>&5
46959 ac_status=$?
46960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961 (exit $ac_status); }; }; then
46962 glibcxx_cv_WRITEV=yes
46963 else
46964 echo "$as_me: failed program was:" >&5
46965 sed 's/^/| /' conftest.$ac_ext >&5
46967 glibcxx_cv_WRITEV=no
46969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46973 if test $glibcxx_cv_WRITEV = yes; then
46974 cat >>confdefs.h <<\_ACEOF
46975 #define HAVE_WRITEV 1
46976 _ACEOF
46981 cat >>confdefs.h <<\_ACEOF
46982 #define HAVE_LC_MESSAGES 1
46983 _ACEOF
46986 cat >conftest.$ac_ext <<_ACEOF
46987 #line $LINENO "configure"
46988 /* confdefs.h. */
46989 _ACEOF
46990 cat confdefs.h >>conftest.$ac_ext
46991 cat >>conftest.$ac_ext <<_ACEOF
46992 /* end confdefs.h. */
46993 #include <setjmp.h>
46995 main ()
46997 sigjmp_buf env;
46998 while (! sigsetjmp (env, 1))
46999 siglongjmp (env, 1);
47002 return 0;
47004 _ACEOF
47005 rm -f conftest.$ac_objext
47006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47007 (eval $ac_compile) 2>&5
47008 ac_status=$?
47009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010 (exit $ac_status); } &&
47011 { ac_try='test -s conftest.$ac_objext'
47012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47013 (eval $ac_try) 2>&5
47014 ac_status=$?
47015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47016 (exit $ac_status); }; }; then
47018 cat >>confdefs.h <<\_ACEOF
47019 #define HAVE_SIGSETJMP 1
47020 _ACEOF
47022 else
47023 echo "$as_me: failed program was:" >&5
47024 sed 's/^/| /' conftest.$ac_ext >&5
47027 rm -f conftest.$ac_objext conftest.$ac_ext
47029 cat >>confdefs.h <<\_ACEOF
47030 #define HAVE_MMAP 1
47031 _ACEOF
47035 *-freebsd*)
47052 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
47053 machine/endian.h machine/param.h sys/machine.h sys/types.h \
47054 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
47055 sys/time.h unistd.h
47057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47059 echo "$as_me:$LINENO: checking for $ac_header" >&5
47060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47062 echo $ECHO_N "(cached) $ECHO_C" >&6
47064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47066 else
47067 # Is the header compilable?
47068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47070 cat >conftest.$ac_ext <<_ACEOF
47071 #line $LINENO "configure"
47072 /* confdefs.h. */
47073 _ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h. */
47077 $ac_includes_default
47078 #include <$ac_header>
47079 _ACEOF
47080 rm -f conftest.$ac_objext
47081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47082 (eval $ac_compile) 2>&5
47083 ac_status=$?
47084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47085 (exit $ac_status); } &&
47086 { ac_try='test -s conftest.$ac_objext'
47087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47088 (eval $ac_try) 2>&5
47089 ac_status=$?
47090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47091 (exit $ac_status); }; }; then
47092 ac_header_compiler=yes
47093 else
47094 echo "$as_me: failed program was:" >&5
47095 sed 's/^/| /' conftest.$ac_ext >&5
47097 ac_header_compiler=no
47099 rm -f conftest.$ac_objext conftest.$ac_ext
47100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47101 echo "${ECHO_T}$ac_header_compiler" >&6
47103 # Is the header present?
47104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47106 cat >conftest.$ac_ext <<_ACEOF
47107 #line $LINENO "configure"
47108 /* confdefs.h. */
47109 _ACEOF
47110 cat confdefs.h >>conftest.$ac_ext
47111 cat >>conftest.$ac_ext <<_ACEOF
47112 /* end confdefs.h. */
47113 #include <$ac_header>
47114 _ACEOF
47115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47117 ac_status=$?
47118 grep -v '^ *+' conftest.er1 >conftest.err
47119 rm -f conftest.er1
47120 cat conftest.err >&5
47121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47122 (exit $ac_status); } >/dev/null; then
47123 if test -s conftest.err; then
47124 ac_cpp_err=$ac_c_preproc_warn_flag
47125 else
47126 ac_cpp_err=
47128 else
47129 ac_cpp_err=yes
47131 if test -z "$ac_cpp_err"; then
47132 ac_header_preproc=yes
47133 else
47134 echo "$as_me: failed program was:" >&5
47135 sed 's/^/| /' conftest.$ac_ext >&5
47137 ac_header_preproc=no
47139 rm -f conftest.err conftest.$ac_ext
47140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47141 echo "${ECHO_T}$ac_header_preproc" >&6
47143 # So? What about this header?
47144 case $ac_header_compiler:$ac_header_preproc in
47145 yes:no )
47146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47151 cat <<\_ASBOX
47152 ## ------------------------------------ ##
47153 ## Report this to bug-autoconf@gnu.org. ##
47154 ## ------------------------------------ ##
47155 _ASBOX
47157 sed "s/^/$as_me: WARNING: /" >&2
47159 no:yes )
47160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47167 cat <<\_ASBOX
47168 ## ------------------------------------ ##
47169 ## Report this to bug-autoconf@gnu.org. ##
47170 ## ------------------------------------ ##
47171 _ASBOX
47173 sed "s/^/$as_me: WARNING: /" >&2
47175 esac
47176 echo "$as_me:$LINENO: checking for $ac_header" >&5
47177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47179 echo $ECHO_N "(cached) $ECHO_C" >&6
47180 else
47181 eval "$as_ac_Header=$ac_header_preproc"
47183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47188 cat >>confdefs.h <<_ACEOF
47189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47190 _ACEOF
47194 done
47196 SECTION_FLAGS='-ffunction-sections -fdata-sections'
47199 # If we're not using GNU ld, then there's no point in even trying these
47200 # tests. Check for that first. We should have already tested for gld
47201 # by now (in libtool), but require it now just to be safe...
47202 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
47203 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
47207 # The name set by libtool depends on the version of libtool. Shame on us
47208 # for depending on an impl detail, but c'est la vie. Older versions used
47209 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
47210 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
47211 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
47212 # set (hence we're using an older libtool), then set it.
47213 if test x${with_gnu_ld+set} != xset; then
47214 if test x${ac_cv_prog_gnu_ld+set} != xset; then
47215 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
47216 with_gnu_ld=no
47217 else
47218 with_gnu_ld=$ac_cv_prog_gnu_ld
47222 # Start by getting the version number. I think the libtool test already
47223 # does some of this, but throws away the result.
47225 ldver=`$LD --version 2>/dev/null | head -1 | \
47226 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
47228 glibcxx_gnu_ld_version=`echo $ldver | \
47229 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
47231 # Set --gc-sections.
47232 if test "$with_gnu_ld" = "notbroken"; then
47233 # GNU ld it is! Joy and bunny rabbits!
47235 # All these tests are for C++; save the language and the compiler flags.
47236 # Need to do this so that g++ won't try to link in libstdc++
47237 ac_test_CFLAGS="${CFLAGS+set}"
47238 ac_save_CFLAGS="$CFLAGS"
47239 CFLAGS='-x c++ -Wl,--gc-sections'
47241 # Check for -Wl,--gc-sections
47242 # XXX This test is broken at the moment, as symbols required for linking
47243 # are now in libsupc++ (not built yet). In addition, this test has
47244 # cored on solaris in the past. In addition, --gc-sections doesn't
47245 # really work at the moment (keeps on discarding used sections, first
47246 # .eh_frame and now some of the glibc sections for iconv).
47247 # Bzzzzt. Thanks for playing, maybe next time.
47248 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
47249 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
47250 if test "$cross_compiling" = yes; then
47251 ac_sectionLDflags=yes
47252 else
47253 cat >conftest.$ac_ext <<_ACEOF
47254 #line $LINENO "configure"
47255 /* confdefs.h. */
47256 _ACEOF
47257 cat confdefs.h >>conftest.$ac_ext
47258 cat >>conftest.$ac_ext <<_ACEOF
47259 /* end confdefs.h. */
47261 int main(void)
47263 try { throw 1; }
47264 catch (...) { };
47265 return 0;
47268 _ACEOF
47269 rm -f conftest$ac_exeext
47270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47271 (eval $ac_link) 2>&5
47272 ac_status=$?
47273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276 (eval $ac_try) 2>&5
47277 ac_status=$?
47278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); }; }; then
47280 ac_sectionLDflags=yes
47281 else
47282 echo "$as_me: program exited with status $ac_status" >&5
47283 echo "$as_me: failed program was:" >&5
47284 sed 's/^/| /' conftest.$ac_ext >&5
47286 ( exit $ac_status )
47287 ac_sectionLDflags=no
47289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47291 if test "$ac_test_CFLAGS" = set; then
47292 CFLAGS="$ac_save_CFLAGS"
47293 else
47294 # this is the suspicious part
47295 CFLAGS=''
47297 if test "$ac_sectionLDflags" = "yes"; then
47298 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
47300 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
47301 echo "${ECHO_T}$ac_sectionLDflags" >&6
47304 # Set linker optimization flags.
47305 if test x"$with_gnu_ld" = x"yes"; then
47306 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
47314 echo "$as_me:$LINENO: checking for main in -lm" >&5
47315 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
47316 if test "${ac_cv_lib_m_main+set}" = set; then
47317 echo $ECHO_N "(cached) $ECHO_C" >&6
47318 else
47319 ac_check_lib_save_LIBS=$LIBS
47320 LIBS="-lm $LIBS"
47321 if test x$gcc_no_link = xyes; then
47322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47324 { (exit 1); exit 1; }; }
47326 cat >conftest.$ac_ext <<_ACEOF
47327 #line $LINENO "configure"
47328 /* confdefs.h. */
47329 _ACEOF
47330 cat confdefs.h >>conftest.$ac_ext
47331 cat >>conftest.$ac_ext <<_ACEOF
47332 /* end confdefs.h. */
47336 main ()
47338 main ();
47340 return 0;
47342 _ACEOF
47343 rm -f conftest.$ac_objext conftest$ac_exeext
47344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47345 (eval $ac_link) 2>&5
47346 ac_status=$?
47347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47348 (exit $ac_status); } &&
47349 { ac_try='test -s conftest$ac_exeext'
47350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47351 (eval $ac_try) 2>&5
47352 ac_status=$?
47353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354 (exit $ac_status); }; }; then
47355 ac_cv_lib_m_main=yes
47356 else
47357 echo "$as_me: failed program was:" >&5
47358 sed 's/^/| /' conftest.$ac_ext >&5
47360 ac_cv_lib_m_main=no
47362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47363 LIBS=$ac_check_lib_save_LIBS
47365 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
47366 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
47367 if test $ac_cv_lib_m_main = yes; then
47368 cat >>confdefs.h <<_ACEOF
47369 #define HAVE_LIBM 1
47370 _ACEOF
47372 LIBS="-lm $LIBS"
47378 for ac_func in nan copysignf
47380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47381 echo "$as_me:$LINENO: checking for $ac_func" >&5
47382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47383 if eval "test \"\${$as_ac_var+set}\" = set"; then
47384 echo $ECHO_N "(cached) $ECHO_C" >&6
47385 else
47386 if test x$gcc_no_link = xyes; then
47387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47389 { (exit 1); exit 1; }; }
47391 cat >conftest.$ac_ext <<_ACEOF
47392 #line $LINENO "configure"
47393 /* confdefs.h. */
47394 _ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h. */
47398 /* System header to define __stub macros and hopefully few prototypes,
47399 which can conflict with char $ac_func (); below.
47400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47401 <limits.h> exists even on freestanding compilers. */
47402 #ifdef __STDC__
47403 # include <limits.h>
47404 #else
47405 # include <assert.h>
47406 #endif
47407 /* Override any gcc2 internal prototype to avoid an error. */
47408 #ifdef __cplusplus
47409 extern "C"
47411 #endif
47412 /* We use char because int might match the return type of a gcc2
47413 builtin and then its argument prototype would still apply. */
47414 char $ac_func ();
47415 /* The GNU C library defines this for functions which it implements
47416 to always fail with ENOSYS. Some functions are actually named
47417 something starting with __ and the normal name is an alias. */
47418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47419 choke me
47420 #else
47421 char (*f) () = $ac_func;
47422 #endif
47423 #ifdef __cplusplus
47425 #endif
47428 main ()
47430 return f != $ac_func;
47432 return 0;
47434 _ACEOF
47435 rm -f conftest.$ac_objext conftest$ac_exeext
47436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47437 (eval $ac_link) 2>&5
47438 ac_status=$?
47439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47440 (exit $ac_status); } &&
47441 { ac_try='test -s conftest$ac_exeext'
47442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47443 (eval $ac_try) 2>&5
47444 ac_status=$?
47445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47446 (exit $ac_status); }; }; then
47447 eval "$as_ac_var=yes"
47448 else
47449 echo "$as_me: failed program was:" >&5
47450 sed 's/^/| /' conftest.$ac_ext >&5
47452 eval "$as_ac_var=no"
47454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47458 if test `eval echo '${'$as_ac_var'}'` = yes; then
47459 cat >>confdefs.h <<_ACEOF
47460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47461 _ACEOF
47463 else
47464 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47466 done
47470 for ac_func in __signbit
47472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47473 echo "$as_me:$LINENO: checking for $ac_func" >&5
47474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47475 if eval "test \"\${$as_ac_var+set}\" = set"; then
47476 echo $ECHO_N "(cached) $ECHO_C" >&6
47477 else
47478 if test x$gcc_no_link = xyes; then
47479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47481 { (exit 1); exit 1; }; }
47483 cat >conftest.$ac_ext <<_ACEOF
47484 #line $LINENO "configure"
47485 /* confdefs.h. */
47486 _ACEOF
47487 cat confdefs.h >>conftest.$ac_ext
47488 cat >>conftest.$ac_ext <<_ACEOF
47489 /* end confdefs.h. */
47490 /* System header to define __stub macros and hopefully few prototypes,
47491 which can conflict with char $ac_func (); below.
47492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47493 <limits.h> exists even on freestanding compilers. */
47494 #ifdef __STDC__
47495 # include <limits.h>
47496 #else
47497 # include <assert.h>
47498 #endif
47499 /* Override any gcc2 internal prototype to avoid an error. */
47500 #ifdef __cplusplus
47501 extern "C"
47503 #endif
47504 /* We use char because int might match the return type of a gcc2
47505 builtin and then its argument prototype would still apply. */
47506 char $ac_func ();
47507 /* The GNU C library defines this for functions which it implements
47508 to always fail with ENOSYS. Some functions are actually named
47509 something starting with __ and the normal name is an alias. */
47510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47511 choke me
47512 #else
47513 char (*f) () = $ac_func;
47514 #endif
47515 #ifdef __cplusplus
47517 #endif
47520 main ()
47522 return f != $ac_func;
47524 return 0;
47526 _ACEOF
47527 rm -f conftest.$ac_objext conftest$ac_exeext
47528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47529 (eval $ac_link) 2>&5
47530 ac_status=$?
47531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47532 (exit $ac_status); } &&
47533 { ac_try='test -s conftest$ac_exeext'
47534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47535 (eval $ac_try) 2>&5
47536 ac_status=$?
47537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538 (exit $ac_status); }; }; then
47539 eval "$as_ac_var=yes"
47540 else
47541 echo "$as_me: failed program was:" >&5
47542 sed 's/^/| /' conftest.$ac_ext >&5
47544 eval "$as_ac_var=no"
47546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47550 if test `eval echo '${'$as_ac_var'}'` = yes; then
47551 cat >>confdefs.h <<_ACEOF
47552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47553 _ACEOF
47555 else
47556 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47558 done
47561 for ac_func in __signbitf
47563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47564 echo "$as_me:$LINENO: checking for $ac_func" >&5
47565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47566 if eval "test \"\${$as_ac_var+set}\" = set"; then
47567 echo $ECHO_N "(cached) $ECHO_C" >&6
47568 else
47569 if test x$gcc_no_link = xyes; then
47570 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47572 { (exit 1); exit 1; }; }
47574 cat >conftest.$ac_ext <<_ACEOF
47575 #line $LINENO "configure"
47576 /* confdefs.h. */
47577 _ACEOF
47578 cat confdefs.h >>conftest.$ac_ext
47579 cat >>conftest.$ac_ext <<_ACEOF
47580 /* end confdefs.h. */
47581 /* System header to define __stub macros and hopefully few prototypes,
47582 which can conflict with char $ac_func (); below.
47583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47584 <limits.h> exists even on freestanding compilers. */
47585 #ifdef __STDC__
47586 # include <limits.h>
47587 #else
47588 # include <assert.h>
47589 #endif
47590 /* Override any gcc2 internal prototype to avoid an error. */
47591 #ifdef __cplusplus
47592 extern "C"
47594 #endif
47595 /* We use char because int might match the return type of a gcc2
47596 builtin and then its argument prototype would still apply. */
47597 char $ac_func ();
47598 /* The GNU C library defines this for functions which it implements
47599 to always fail with ENOSYS. Some functions are actually named
47600 something starting with __ and the normal name is an alias. */
47601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47602 choke me
47603 #else
47604 char (*f) () = $ac_func;
47605 #endif
47606 #ifdef __cplusplus
47608 #endif
47611 main ()
47613 return f != $ac_func;
47615 return 0;
47617 _ACEOF
47618 rm -f conftest.$ac_objext conftest$ac_exeext
47619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47620 (eval $ac_link) 2>&5
47621 ac_status=$?
47622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47623 (exit $ac_status); } &&
47624 { ac_try='test -s conftest$ac_exeext'
47625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47626 (eval $ac_try) 2>&5
47627 ac_status=$?
47628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47629 (exit $ac_status); }; }; then
47630 eval "$as_ac_var=yes"
47631 else
47632 echo "$as_me: failed program was:" >&5
47633 sed 's/^/| /' conftest.$ac_ext >&5
47635 eval "$as_ac_var=no"
47637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47641 if test `eval echo '${'$as_ac_var'}'` = yes; then
47642 cat >>confdefs.h <<_ACEOF
47643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47644 _ACEOF
47646 else
47647 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47649 done
47652 if test x$ac_cv_func_copysignl = x"yes"; then
47654 for ac_func in __signbitl
47656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47657 echo "$as_me:$LINENO: checking for $ac_func" >&5
47658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47659 if eval "test \"\${$as_ac_var+set}\" = set"; then
47660 echo $ECHO_N "(cached) $ECHO_C" >&6
47661 else
47662 if test x$gcc_no_link = xyes; then
47663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47665 { (exit 1); exit 1; }; }
47667 cat >conftest.$ac_ext <<_ACEOF
47668 #line $LINENO "configure"
47669 /* confdefs.h. */
47670 _ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h. */
47674 /* System header to define __stub macros and hopefully few prototypes,
47675 which can conflict with char $ac_func (); below.
47676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47677 <limits.h> exists even on freestanding compilers. */
47678 #ifdef __STDC__
47679 # include <limits.h>
47680 #else
47681 # include <assert.h>
47682 #endif
47683 /* Override any gcc2 internal prototype to avoid an error. */
47684 #ifdef __cplusplus
47685 extern "C"
47687 #endif
47688 /* We use char because int might match the return type of a gcc2
47689 builtin and then its argument prototype would still apply. */
47690 char $ac_func ();
47691 /* The GNU C library defines this for functions which it implements
47692 to always fail with ENOSYS. Some functions are actually named
47693 something starting with __ and the normal name is an alias. */
47694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47695 choke me
47696 #else
47697 char (*f) () = $ac_func;
47698 #endif
47699 #ifdef __cplusplus
47701 #endif
47704 main ()
47706 return f != $ac_func;
47708 return 0;
47710 _ACEOF
47711 rm -f conftest.$ac_objext conftest$ac_exeext
47712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47713 (eval $ac_link) 2>&5
47714 ac_status=$?
47715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47716 (exit $ac_status); } &&
47717 { ac_try='test -s conftest$ac_exeext'
47718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47719 (eval $ac_try) 2>&5
47720 ac_status=$?
47721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47722 (exit $ac_status); }; }; then
47723 eval "$as_ac_var=yes"
47724 else
47725 echo "$as_me: failed program was:" >&5
47726 sed 's/^/| /' conftest.$ac_ext >&5
47728 eval "$as_ac_var=no"
47730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47734 if test `eval echo '${'$as_ac_var'}'` = yes; then
47735 cat >>confdefs.h <<_ACEOF
47736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47737 _ACEOF
47739 else
47740 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47742 done
47746 # XXX Review this. Nothing uses it.
47747 if test -n "$LIBMATHOBJS"; then
47748 need_libmath=yes
47753 # Test wchar.h for mbstate_t, which is needed for char_traits and
47754 # others even if wchar_t support is not on.
47755 echo "$as_me:$LINENO: checking for mbstate_t" >&5
47756 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47757 cat >conftest.$ac_ext <<_ACEOF
47758 #line $LINENO "configure"
47759 /* confdefs.h. */
47760 _ACEOF
47761 cat confdefs.h >>conftest.$ac_ext
47762 cat >>conftest.$ac_ext <<_ACEOF
47763 /* end confdefs.h. */
47764 #include <wchar.h>
47766 main ()
47768 mbstate_t teststate;
47770 return 0;
47772 _ACEOF
47773 rm -f conftest.$ac_objext
47774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47775 (eval $ac_compile) 2>&5
47776 ac_status=$?
47777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47778 (exit $ac_status); } &&
47779 { ac_try='test -s conftest.$ac_objext'
47780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47781 (eval $ac_try) 2>&5
47782 ac_status=$?
47783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47784 (exit $ac_status); }; }; then
47785 have_mbstate_t=yes
47786 else
47787 echo "$as_me: failed program was:" >&5
47788 sed 's/^/| /' conftest.$ac_ext >&5
47790 have_mbstate_t=no
47792 rm -f conftest.$ac_objext conftest.$ac_ext
47793 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47794 echo "${ECHO_T}$have_mbstate_t" >&6
47795 if test x"$have_mbstate_t" = xyes; then
47796 cat >>confdefs.h <<\_ACEOF
47797 #define HAVE_MBSTATE_T 1
47798 _ACEOF
47802 # Sanity check for existence of ISO C99 headers for extended encoding.
47804 for ac_header in wchar.h
47806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47808 echo "$as_me:$LINENO: checking for $ac_header" >&5
47809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47811 echo $ECHO_N "(cached) $ECHO_C" >&6
47813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47815 else
47816 # Is the header compilable?
47817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47819 cat >conftest.$ac_ext <<_ACEOF
47820 #line $LINENO "configure"
47821 /* confdefs.h. */
47822 _ACEOF
47823 cat confdefs.h >>conftest.$ac_ext
47824 cat >>conftest.$ac_ext <<_ACEOF
47825 /* end confdefs.h. */
47826 $ac_includes_default
47827 #include <$ac_header>
47828 _ACEOF
47829 rm -f conftest.$ac_objext
47830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47831 (eval $ac_compile) 2>&5
47832 ac_status=$?
47833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47834 (exit $ac_status); } &&
47835 { ac_try='test -s conftest.$ac_objext'
47836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47837 (eval $ac_try) 2>&5
47838 ac_status=$?
47839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47840 (exit $ac_status); }; }; then
47841 ac_header_compiler=yes
47842 else
47843 echo "$as_me: failed program was:" >&5
47844 sed 's/^/| /' conftest.$ac_ext >&5
47846 ac_header_compiler=no
47848 rm -f conftest.$ac_objext conftest.$ac_ext
47849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47850 echo "${ECHO_T}$ac_header_compiler" >&6
47852 # Is the header present?
47853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47855 cat >conftest.$ac_ext <<_ACEOF
47856 #line $LINENO "configure"
47857 /* confdefs.h. */
47858 _ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h. */
47862 #include <$ac_header>
47863 _ACEOF
47864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47866 ac_status=$?
47867 grep -v '^ *+' conftest.er1 >conftest.err
47868 rm -f conftest.er1
47869 cat conftest.err >&5
47870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47871 (exit $ac_status); } >/dev/null; then
47872 if test -s conftest.err; then
47873 ac_cpp_err=$ac_c_preproc_warn_flag
47874 else
47875 ac_cpp_err=
47877 else
47878 ac_cpp_err=yes
47880 if test -z "$ac_cpp_err"; then
47881 ac_header_preproc=yes
47882 else
47883 echo "$as_me: failed program was:" >&5
47884 sed 's/^/| /' conftest.$ac_ext >&5
47886 ac_header_preproc=no
47888 rm -f conftest.err conftest.$ac_ext
47889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47890 echo "${ECHO_T}$ac_header_preproc" >&6
47892 # So? What about this header?
47893 case $ac_header_compiler:$ac_header_preproc in
47894 yes:no )
47895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47900 cat <<\_ASBOX
47901 ## ------------------------------------ ##
47902 ## Report this to bug-autoconf@gnu.org. ##
47903 ## ------------------------------------ ##
47904 _ASBOX
47906 sed "s/^/$as_me: WARNING: /" >&2
47908 no:yes )
47909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47916 cat <<\_ASBOX
47917 ## ------------------------------------ ##
47918 ## Report this to bug-autoconf@gnu.org. ##
47919 ## ------------------------------------ ##
47920 _ASBOX
47922 sed "s/^/$as_me: WARNING: /" >&2
47924 esac
47925 echo "$as_me:$LINENO: checking for $ac_header" >&5
47926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47928 echo $ECHO_N "(cached) $ECHO_C" >&6
47929 else
47930 eval "$as_ac_Header=$ac_header_preproc"
47932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47937 cat >>confdefs.h <<_ACEOF
47938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47939 _ACEOF
47940 ac_has_wchar_h=yes
47941 else
47942 ac_has_wchar_h=no
47945 done
47948 for ac_header in wctype.h
47950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47952 echo "$as_me:$LINENO: checking for $ac_header" >&5
47953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47955 echo $ECHO_N "(cached) $ECHO_C" >&6
47957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47959 else
47960 # Is the header compilable?
47961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47963 cat >conftest.$ac_ext <<_ACEOF
47964 #line $LINENO "configure"
47965 /* confdefs.h. */
47966 _ACEOF
47967 cat confdefs.h >>conftest.$ac_ext
47968 cat >>conftest.$ac_ext <<_ACEOF
47969 /* end confdefs.h. */
47970 $ac_includes_default
47971 #include <$ac_header>
47972 _ACEOF
47973 rm -f conftest.$ac_objext
47974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47975 (eval $ac_compile) 2>&5
47976 ac_status=$?
47977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47978 (exit $ac_status); } &&
47979 { ac_try='test -s conftest.$ac_objext'
47980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47981 (eval $ac_try) 2>&5
47982 ac_status=$?
47983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47984 (exit $ac_status); }; }; then
47985 ac_header_compiler=yes
47986 else
47987 echo "$as_me: failed program was:" >&5
47988 sed 's/^/| /' conftest.$ac_ext >&5
47990 ac_header_compiler=no
47992 rm -f conftest.$ac_objext conftest.$ac_ext
47993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47994 echo "${ECHO_T}$ac_header_compiler" >&6
47996 # Is the header present?
47997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47999 cat >conftest.$ac_ext <<_ACEOF
48000 #line $LINENO "configure"
48001 /* confdefs.h. */
48002 _ACEOF
48003 cat confdefs.h >>conftest.$ac_ext
48004 cat >>conftest.$ac_ext <<_ACEOF
48005 /* end confdefs.h. */
48006 #include <$ac_header>
48007 _ACEOF
48008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48010 ac_status=$?
48011 grep -v '^ *+' conftest.er1 >conftest.err
48012 rm -f conftest.er1
48013 cat conftest.err >&5
48014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015 (exit $ac_status); } >/dev/null; then
48016 if test -s conftest.err; then
48017 ac_cpp_err=$ac_c_preproc_warn_flag
48018 else
48019 ac_cpp_err=
48021 else
48022 ac_cpp_err=yes
48024 if test -z "$ac_cpp_err"; then
48025 ac_header_preproc=yes
48026 else
48027 echo "$as_me: failed program was:" >&5
48028 sed 's/^/| /' conftest.$ac_ext >&5
48030 ac_header_preproc=no
48032 rm -f conftest.err conftest.$ac_ext
48033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48034 echo "${ECHO_T}$ac_header_preproc" >&6
48036 # So? What about this header?
48037 case $ac_header_compiler:$ac_header_preproc in
48038 yes:no )
48039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48044 cat <<\_ASBOX
48045 ## ------------------------------------ ##
48046 ## Report this to bug-autoconf@gnu.org. ##
48047 ## ------------------------------------ ##
48048 _ASBOX
48050 sed "s/^/$as_me: WARNING: /" >&2
48052 no:yes )
48053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48060 cat <<\_ASBOX
48061 ## ------------------------------------ ##
48062 ## Report this to bug-autoconf@gnu.org. ##
48063 ## ------------------------------------ ##
48064 _ASBOX
48066 sed "s/^/$as_me: WARNING: /" >&2
48068 esac
48069 echo "$as_me:$LINENO: checking for $ac_header" >&5
48070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48072 echo $ECHO_N "(cached) $ECHO_C" >&6
48073 else
48074 eval "$as_ac_Header=$ac_header_preproc"
48076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48081 cat >>confdefs.h <<_ACEOF
48082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48083 _ACEOF
48084 ac_has_wctype_h=yes
48085 else
48086 ac_has_wctype_h=no
48089 done
48092 # Only continue checking if the ISO C99 headers exist and support is on.
48093 if test x"$ac_has_wchar_h" = xyes &&
48094 test x"$ac_has_wctype_h" = xyes &&
48095 test x"$enable_c_mbchar" != xno; then
48097 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
48098 # numeric_limits can instantiate type_traits<wchar_t>
48099 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
48100 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
48101 cat >conftest.$ac_ext <<_ACEOF
48102 #line $LINENO "configure"
48103 /* confdefs.h. */
48104 _ACEOF
48105 cat confdefs.h >>conftest.$ac_ext
48106 cat >>conftest.$ac_ext <<_ACEOF
48107 /* end confdefs.h. */
48108 #include <wchar.h>
48110 main ()
48112 int i = WCHAR_MIN; int j = WCHAR_MAX;
48114 return 0;
48116 _ACEOF
48117 rm -f conftest.$ac_objext
48118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48119 (eval $ac_compile) 2>&5
48120 ac_status=$?
48121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48122 (exit $ac_status); } &&
48123 { ac_try='test -s conftest.$ac_objext'
48124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48125 (eval $ac_try) 2>&5
48126 ac_status=$?
48127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48128 (exit $ac_status); }; }; then
48129 has_wchar_minmax=yes
48130 else
48131 echo "$as_me: failed program was:" >&5
48132 sed 's/^/| /' conftest.$ac_ext >&5
48134 has_wchar_minmax=no
48136 rm -f conftest.$ac_objext conftest.$ac_ext
48137 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
48138 echo "${ECHO_T}$has_wchar_minmax" >&6
48140 # Test wchar.h for WEOF, which is what we use to determine whether
48141 # to specialize for char_traits<wchar_t> or not.
48142 echo "$as_me:$LINENO: checking for WEOF" >&5
48143 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
48144 cat >conftest.$ac_ext <<_ACEOF
48145 #line $LINENO "configure"
48146 /* confdefs.h. */
48147 _ACEOF
48148 cat confdefs.h >>conftest.$ac_ext
48149 cat >>conftest.$ac_ext <<_ACEOF
48150 /* end confdefs.h. */
48152 #include <wchar.h>
48153 #include <stddef.h>
48155 main ()
48157 wint_t i = WEOF;
48159 return 0;
48161 _ACEOF
48162 rm -f conftest.$ac_objext
48163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48164 (eval $ac_compile) 2>&5
48165 ac_status=$?
48166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167 (exit $ac_status); } &&
48168 { ac_try='test -s conftest.$ac_objext'
48169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48170 (eval $ac_try) 2>&5
48171 ac_status=$?
48172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48173 (exit $ac_status); }; }; then
48174 has_weof=yes
48175 else
48176 echo "$as_me: failed program was:" >&5
48177 sed 's/^/| /' conftest.$ac_ext >&5
48179 has_weof=no
48181 rm -f conftest.$ac_objext conftest.$ac_ext
48182 echo "$as_me:$LINENO: result: $has_weof" >&5
48183 echo "${ECHO_T}$has_weof" >&6
48185 # Tests for wide character functions used in char_traits<wchar_t>.
48186 ac_wfuncs=yes
48193 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
48195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48196 echo "$as_me:$LINENO: checking for $ac_func" >&5
48197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48198 if eval "test \"\${$as_ac_var+set}\" = set"; then
48199 echo $ECHO_N "(cached) $ECHO_C" >&6
48200 else
48201 if test x$gcc_no_link = xyes; then
48202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48204 { (exit 1); exit 1; }; }
48206 cat >conftest.$ac_ext <<_ACEOF
48207 #line $LINENO "configure"
48208 /* confdefs.h. */
48209 _ACEOF
48210 cat confdefs.h >>conftest.$ac_ext
48211 cat >>conftest.$ac_ext <<_ACEOF
48212 /* end confdefs.h. */
48213 /* System header to define __stub macros and hopefully few prototypes,
48214 which can conflict with char $ac_func (); below.
48215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48216 <limits.h> exists even on freestanding compilers. */
48217 #ifdef __STDC__
48218 # include <limits.h>
48219 #else
48220 # include <assert.h>
48221 #endif
48222 /* Override any gcc2 internal prototype to avoid an error. */
48223 #ifdef __cplusplus
48224 extern "C"
48226 #endif
48227 /* We use char because int might match the return type of a gcc2
48228 builtin and then its argument prototype would still apply. */
48229 char $ac_func ();
48230 /* The GNU C library defines this for functions which it implements
48231 to always fail with ENOSYS. Some functions are actually named
48232 something starting with __ and the normal name is an alias. */
48233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48234 choke me
48235 #else
48236 char (*f) () = $ac_func;
48237 #endif
48238 #ifdef __cplusplus
48240 #endif
48243 main ()
48245 return f != $ac_func;
48247 return 0;
48249 _ACEOF
48250 rm -f conftest.$ac_objext conftest$ac_exeext
48251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48252 (eval $ac_link) 2>&5
48253 ac_status=$?
48254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255 (exit $ac_status); } &&
48256 { ac_try='test -s conftest$ac_exeext'
48257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48258 (eval $ac_try) 2>&5
48259 ac_status=$?
48260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48261 (exit $ac_status); }; }; then
48262 eval "$as_ac_var=yes"
48263 else
48264 echo "$as_me: failed program was:" >&5
48265 sed 's/^/| /' conftest.$ac_ext >&5
48267 eval "$as_ac_var=no"
48269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48273 if test `eval echo '${'$as_ac_var'}'` = yes; then
48274 cat >>confdefs.h <<_ACEOF
48275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48276 _ACEOF
48278 else
48279 ac_wfuncs=no
48281 done
48284 # Checks for names injected into std:: by the c_std headers.
48331 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
48332 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
48333 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
48334 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
48335 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
48336 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
48338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48339 echo "$as_me:$LINENO: checking for $ac_func" >&5
48340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48341 if eval "test \"\${$as_ac_var+set}\" = set"; then
48342 echo $ECHO_N "(cached) $ECHO_C" >&6
48343 else
48344 if test x$gcc_no_link = xyes; then
48345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48347 { (exit 1); exit 1; }; }
48349 cat >conftest.$ac_ext <<_ACEOF
48350 #line $LINENO "configure"
48351 /* confdefs.h. */
48352 _ACEOF
48353 cat confdefs.h >>conftest.$ac_ext
48354 cat >>conftest.$ac_ext <<_ACEOF
48355 /* end confdefs.h. */
48356 /* System header to define __stub macros and hopefully few prototypes,
48357 which can conflict with char $ac_func (); below.
48358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48359 <limits.h> exists even on freestanding compilers. */
48360 #ifdef __STDC__
48361 # include <limits.h>
48362 #else
48363 # include <assert.h>
48364 #endif
48365 /* Override any gcc2 internal prototype to avoid an error. */
48366 #ifdef __cplusplus
48367 extern "C"
48369 #endif
48370 /* We use char because int might match the return type of a gcc2
48371 builtin and then its argument prototype would still apply. */
48372 char $ac_func ();
48373 /* The GNU C library defines this for functions which it implements
48374 to always fail with ENOSYS. Some functions are actually named
48375 something starting with __ and the normal name is an alias. */
48376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48377 choke me
48378 #else
48379 char (*f) () = $ac_func;
48380 #endif
48381 #ifdef __cplusplus
48383 #endif
48386 main ()
48388 return f != $ac_func;
48390 return 0;
48392 _ACEOF
48393 rm -f conftest.$ac_objext conftest$ac_exeext
48394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48395 (eval $ac_link) 2>&5
48396 ac_status=$?
48397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48398 (exit $ac_status); } &&
48399 { ac_try='test -s conftest$ac_exeext'
48400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48401 (eval $ac_try) 2>&5
48402 ac_status=$?
48403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48404 (exit $ac_status); }; }; then
48405 eval "$as_ac_var=yes"
48406 else
48407 echo "$as_me: failed program was:" >&5
48408 sed 's/^/| /' conftest.$ac_ext >&5
48410 eval "$as_ac_var=no"
48412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48416 if test `eval echo '${'$as_ac_var'}'` = yes; then
48417 cat >>confdefs.h <<_ACEOF
48418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48419 _ACEOF
48421 else
48422 ac_wfuncs=no
48424 done
48427 # Checks for wide character functions that are not required
48428 # for basic wchar_t support. Don't disable support if they are missing.
48429 # Injection of these is wrapped with guard macros.
48435 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
48437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48438 echo "$as_me:$LINENO: checking for $ac_func" >&5
48439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48440 if eval "test \"\${$as_ac_var+set}\" = set"; then
48441 echo $ECHO_N "(cached) $ECHO_C" >&6
48442 else
48443 if test x$gcc_no_link = xyes; then
48444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48446 { (exit 1); exit 1; }; }
48448 cat >conftest.$ac_ext <<_ACEOF
48449 #line $LINENO "configure"
48450 /* confdefs.h. */
48451 _ACEOF
48452 cat confdefs.h >>conftest.$ac_ext
48453 cat >>conftest.$ac_ext <<_ACEOF
48454 /* end confdefs.h. */
48455 /* System header to define __stub macros and hopefully few prototypes,
48456 which can conflict with char $ac_func (); below.
48457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48458 <limits.h> exists even on freestanding compilers. */
48459 #ifdef __STDC__
48460 # include <limits.h>
48461 #else
48462 # include <assert.h>
48463 #endif
48464 /* Override any gcc2 internal prototype to avoid an error. */
48465 #ifdef __cplusplus
48466 extern "C"
48468 #endif
48469 /* We use char because int might match the return type of a gcc2
48470 builtin and then its argument prototype would still apply. */
48471 char $ac_func ();
48472 /* The GNU C library defines this for functions which it implements
48473 to always fail with ENOSYS. Some functions are actually named
48474 something starting with __ and the normal name is an alias. */
48475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48476 choke me
48477 #else
48478 char (*f) () = $ac_func;
48479 #endif
48480 #ifdef __cplusplus
48482 #endif
48485 main ()
48487 return f != $ac_func;
48489 return 0;
48491 _ACEOF
48492 rm -f conftest.$ac_objext conftest$ac_exeext
48493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48494 (eval $ac_link) 2>&5
48495 ac_status=$?
48496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48497 (exit $ac_status); } &&
48498 { ac_try='test -s conftest$ac_exeext'
48499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48500 (eval $ac_try) 2>&5
48501 ac_status=$?
48502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48503 (exit $ac_status); }; }; then
48504 eval "$as_ac_var=yes"
48505 else
48506 echo "$as_me: failed program was:" >&5
48507 sed 's/^/| /' conftest.$ac_ext >&5
48509 eval "$as_ac_var=no"
48511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48515 if test `eval echo '${'$as_ac_var'}'` = yes; then
48516 cat >>confdefs.h <<_ACEOF
48517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48518 _ACEOF
48521 done
48524 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
48525 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
48526 if test x"$has_weof" = xyes &&
48527 test x"$has_wchar_minmax" = xyes &&
48528 test x"$ac_wfuncs" = xyes;
48529 then
48530 ac_isoC99_wchar_t=yes
48531 else
48532 ac_isoC99_wchar_t=no
48534 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
48535 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
48537 # Use iconv for wchar_t to char conversions. As such, check for
48538 # X/Open Portability Guide, version 2 features (XPG2).
48539 if test "${ac_cv_header_iconv_h+set}" = set; then
48540 echo "$as_me:$LINENO: checking for iconv.h" >&5
48541 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48542 if test "${ac_cv_header_iconv_h+set}" = set; then
48543 echo $ECHO_N "(cached) $ECHO_C" >&6
48545 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48546 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48547 else
48548 # Is the header compilable?
48549 echo "$as_me:$LINENO: checking iconv.h usability" >&5
48550 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
48551 cat >conftest.$ac_ext <<_ACEOF
48552 #line $LINENO "configure"
48553 /* confdefs.h. */
48554 _ACEOF
48555 cat confdefs.h >>conftest.$ac_ext
48556 cat >>conftest.$ac_ext <<_ACEOF
48557 /* end confdefs.h. */
48558 $ac_includes_default
48559 #include <iconv.h>
48560 _ACEOF
48561 rm -f conftest.$ac_objext
48562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48563 (eval $ac_compile) 2>&5
48564 ac_status=$?
48565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48566 (exit $ac_status); } &&
48567 { ac_try='test -s conftest.$ac_objext'
48568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48569 (eval $ac_try) 2>&5
48570 ac_status=$?
48571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48572 (exit $ac_status); }; }; then
48573 ac_header_compiler=yes
48574 else
48575 echo "$as_me: failed program was:" >&5
48576 sed 's/^/| /' conftest.$ac_ext >&5
48578 ac_header_compiler=no
48580 rm -f conftest.$ac_objext conftest.$ac_ext
48581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48582 echo "${ECHO_T}$ac_header_compiler" >&6
48584 # Is the header present?
48585 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48586 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48587 cat >conftest.$ac_ext <<_ACEOF
48588 #line $LINENO "configure"
48589 /* confdefs.h. */
48590 _ACEOF
48591 cat confdefs.h >>conftest.$ac_ext
48592 cat >>conftest.$ac_ext <<_ACEOF
48593 /* end confdefs.h. */
48594 #include <iconv.h>
48595 _ACEOF
48596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48598 ac_status=$?
48599 grep -v '^ *+' conftest.er1 >conftest.err
48600 rm -f conftest.er1
48601 cat conftest.err >&5
48602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48603 (exit $ac_status); } >/dev/null; then
48604 if test -s conftest.err; then
48605 ac_cpp_err=$ac_c_preproc_warn_flag
48606 else
48607 ac_cpp_err=
48609 else
48610 ac_cpp_err=yes
48612 if test -z "$ac_cpp_err"; then
48613 ac_header_preproc=yes
48614 else
48615 echo "$as_me: failed program was:" >&5
48616 sed 's/^/| /' conftest.$ac_ext >&5
48618 ac_header_preproc=no
48620 rm -f conftest.err conftest.$ac_ext
48621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48622 echo "${ECHO_T}$ac_header_preproc" >&6
48624 # So? What about this header?
48625 case $ac_header_compiler:$ac_header_preproc in
48626 yes:no )
48627 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48628 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48629 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48630 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48632 cat <<\_ASBOX
48633 ## ------------------------------------ ##
48634 ## Report this to bug-autoconf@gnu.org. ##
48635 ## ------------------------------------ ##
48636 _ASBOX
48638 sed "s/^/$as_me: WARNING: /" >&2
48640 no:yes )
48641 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48642 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48643 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48644 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48645 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48646 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48648 cat <<\_ASBOX
48649 ## ------------------------------------ ##
48650 ## Report this to bug-autoconf@gnu.org. ##
48651 ## ------------------------------------ ##
48652 _ASBOX
48654 sed "s/^/$as_me: WARNING: /" >&2
48656 esac
48657 echo "$as_me:$LINENO: checking for iconv.h" >&5
48658 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48659 if test "${ac_cv_header_iconv_h+set}" = set; then
48660 echo $ECHO_N "(cached) $ECHO_C" >&6
48661 else
48662 ac_cv_header_iconv_h=$ac_header_preproc
48664 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48665 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48668 if test $ac_cv_header_iconv_h = yes; then
48669 ac_has_iconv_h=yes
48670 else
48671 ac_has_iconv_h=no
48675 if test "${ac_cv_header_langinfo_h+set}" = set; then
48676 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48677 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48678 if test "${ac_cv_header_langinfo_h+set}" = set; then
48679 echo $ECHO_N "(cached) $ECHO_C" >&6
48681 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48682 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48683 else
48684 # Is the header compilable?
48685 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48686 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48687 cat >conftest.$ac_ext <<_ACEOF
48688 #line $LINENO "configure"
48689 /* confdefs.h. */
48690 _ACEOF
48691 cat confdefs.h >>conftest.$ac_ext
48692 cat >>conftest.$ac_ext <<_ACEOF
48693 /* end confdefs.h. */
48694 $ac_includes_default
48695 #include <langinfo.h>
48696 _ACEOF
48697 rm -f conftest.$ac_objext
48698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48699 (eval $ac_compile) 2>&5
48700 ac_status=$?
48701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48702 (exit $ac_status); } &&
48703 { ac_try='test -s conftest.$ac_objext'
48704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48705 (eval $ac_try) 2>&5
48706 ac_status=$?
48707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48708 (exit $ac_status); }; }; then
48709 ac_header_compiler=yes
48710 else
48711 echo "$as_me: failed program was:" >&5
48712 sed 's/^/| /' conftest.$ac_ext >&5
48714 ac_header_compiler=no
48716 rm -f conftest.$ac_objext conftest.$ac_ext
48717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48718 echo "${ECHO_T}$ac_header_compiler" >&6
48720 # Is the header present?
48721 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48722 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48723 cat >conftest.$ac_ext <<_ACEOF
48724 #line $LINENO "configure"
48725 /* confdefs.h. */
48726 _ACEOF
48727 cat confdefs.h >>conftest.$ac_ext
48728 cat >>conftest.$ac_ext <<_ACEOF
48729 /* end confdefs.h. */
48730 #include <langinfo.h>
48731 _ACEOF
48732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48734 ac_status=$?
48735 grep -v '^ *+' conftest.er1 >conftest.err
48736 rm -f conftest.er1
48737 cat conftest.err >&5
48738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739 (exit $ac_status); } >/dev/null; then
48740 if test -s conftest.err; then
48741 ac_cpp_err=$ac_c_preproc_warn_flag
48742 else
48743 ac_cpp_err=
48745 else
48746 ac_cpp_err=yes
48748 if test -z "$ac_cpp_err"; then
48749 ac_header_preproc=yes
48750 else
48751 echo "$as_me: failed program was:" >&5
48752 sed 's/^/| /' conftest.$ac_ext >&5
48754 ac_header_preproc=no
48756 rm -f conftest.err conftest.$ac_ext
48757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48758 echo "${ECHO_T}$ac_header_preproc" >&6
48760 # So? What about this header?
48761 case $ac_header_compiler:$ac_header_preproc in
48762 yes:no )
48763 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48764 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48765 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48766 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48768 cat <<\_ASBOX
48769 ## ------------------------------------ ##
48770 ## Report this to bug-autoconf@gnu.org. ##
48771 ## ------------------------------------ ##
48772 _ASBOX
48774 sed "s/^/$as_me: WARNING: /" >&2
48776 no:yes )
48777 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48778 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48779 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48780 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48781 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48782 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48784 cat <<\_ASBOX
48785 ## ------------------------------------ ##
48786 ## Report this to bug-autoconf@gnu.org. ##
48787 ## ------------------------------------ ##
48788 _ASBOX
48790 sed "s/^/$as_me: WARNING: /" >&2
48792 esac
48793 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48794 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48795 if test "${ac_cv_header_langinfo_h+set}" = set; then
48796 echo $ECHO_N "(cached) $ECHO_C" >&6
48797 else
48798 ac_cv_header_langinfo_h=$ac_header_preproc
48800 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48801 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48804 if test $ac_cv_header_langinfo_h = yes; then
48805 ac_has_langinfo_h=yes
48806 else
48807 ac_has_langinfo_h=no
48812 # Check for existence of libiconv.a providing XPG2 wchar_t support.
48813 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48814 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48815 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48816 echo $ECHO_N "(cached) $ECHO_C" >&6
48817 else
48818 ac_check_lib_save_LIBS=$LIBS
48819 LIBS="-liconv $LIBS"
48820 if test x$gcc_no_link = xyes; then
48821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48823 { (exit 1); exit 1; }; }
48825 cat >conftest.$ac_ext <<_ACEOF
48826 #line $LINENO "configure"
48827 /* confdefs.h. */
48828 _ACEOF
48829 cat confdefs.h >>conftest.$ac_ext
48830 cat >>conftest.$ac_ext <<_ACEOF
48831 /* end confdefs.h. */
48833 /* Override any gcc2 internal prototype to avoid an error. */
48834 #ifdef __cplusplus
48835 extern "C"
48836 #endif
48837 /* We use char because int might match the return type of a gcc2
48838 builtin and then its argument prototype would still apply. */
48839 char iconv ();
48841 main ()
48843 iconv ();
48845 return 0;
48847 _ACEOF
48848 rm -f conftest.$ac_objext conftest$ac_exeext
48849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48850 (eval $ac_link) 2>&5
48851 ac_status=$?
48852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48853 (exit $ac_status); } &&
48854 { ac_try='test -s conftest$ac_exeext'
48855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48856 (eval $ac_try) 2>&5
48857 ac_status=$?
48858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48859 (exit $ac_status); }; }; then
48860 ac_cv_lib_iconv_iconv=yes
48861 else
48862 echo "$as_me: failed program was:" >&5
48863 sed 's/^/| /' conftest.$ac_ext >&5
48865 ac_cv_lib_iconv_iconv=no
48867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48868 LIBS=$ac_check_lib_save_LIBS
48870 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48871 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48872 if test $ac_cv_lib_iconv_iconv = yes; then
48873 libiconv="-liconv"
48876 ac_save_LIBS="$LIBS"
48877 LIBS="$LIBS $libiconv"
48883 for ac_func in iconv_open iconv_close iconv nl_langinfo
48885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48886 echo "$as_me:$LINENO: checking for $ac_func" >&5
48887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48888 if eval "test \"\${$as_ac_var+set}\" = set"; then
48889 echo $ECHO_N "(cached) $ECHO_C" >&6
48890 else
48891 if test x$gcc_no_link = xyes; then
48892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48894 { (exit 1); exit 1; }; }
48896 cat >conftest.$ac_ext <<_ACEOF
48897 #line $LINENO "configure"
48898 /* confdefs.h. */
48899 _ACEOF
48900 cat confdefs.h >>conftest.$ac_ext
48901 cat >>conftest.$ac_ext <<_ACEOF
48902 /* end confdefs.h. */
48903 /* System header to define __stub macros and hopefully few prototypes,
48904 which can conflict with char $ac_func (); below.
48905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48906 <limits.h> exists even on freestanding compilers. */
48907 #ifdef __STDC__
48908 # include <limits.h>
48909 #else
48910 # include <assert.h>
48911 #endif
48912 /* Override any gcc2 internal prototype to avoid an error. */
48913 #ifdef __cplusplus
48914 extern "C"
48916 #endif
48917 /* We use char because int might match the return type of a gcc2
48918 builtin and then its argument prototype would still apply. */
48919 char $ac_func ();
48920 /* The GNU C library defines this for functions which it implements
48921 to always fail with ENOSYS. Some functions are actually named
48922 something starting with __ and the normal name is an alias. */
48923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48924 choke me
48925 #else
48926 char (*f) () = $ac_func;
48927 #endif
48928 #ifdef __cplusplus
48930 #endif
48933 main ()
48935 return f != $ac_func;
48937 return 0;
48939 _ACEOF
48940 rm -f conftest.$ac_objext conftest$ac_exeext
48941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48942 (eval $ac_link) 2>&5
48943 ac_status=$?
48944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } &&
48946 { ac_try='test -s conftest$ac_exeext'
48947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48948 (eval $ac_try) 2>&5
48949 ac_status=$?
48950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48951 (exit $ac_status); }; }; then
48952 eval "$as_ac_var=yes"
48953 else
48954 echo "$as_me: failed program was:" >&5
48955 sed 's/^/| /' conftest.$ac_ext >&5
48957 eval "$as_ac_var=no"
48959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48963 if test `eval echo '${'$as_ac_var'}'` = yes; then
48964 cat >>confdefs.h <<_ACEOF
48965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48966 _ACEOF
48967 ac_XPG2funcs=yes
48968 else
48969 ac_XPG2funcs=no
48971 done
48974 LIBS="$ac_save_LIBS"
48976 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48977 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48978 if test x"$ac_has_iconv_h" = xyes &&
48979 test x"$ac_has_langinfo_h" = xyes &&
48980 test x"$ac_XPG2funcs" = xyes;
48981 then
48982 ac_XPG2_wchar_t=yes
48983 else
48984 ac_XPG2_wchar_t=no
48986 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48987 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48989 # At the moment, only enable wchar_t specializations if all the
48990 # above support is present.
48991 if test x"$ac_isoC99_wchar_t" = xyes &&
48992 test x"$ac_XPG2_wchar_t" = xyes;
48993 then
48994 cat >>confdefs.h <<\_ACEOF
48995 #define _GLIBCXX_USE_WCHAR_T 1
48996 _ACEOF
48998 enable_wchar_t=yes
49001 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
49002 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
49003 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
49004 echo "${ECHO_T}$enable_wchar_t" >&6
49006 cat >>confdefs.h <<\_ACEOF
49007 #define HAVE_LC_MESSAGES 1
49008 _ACEOF
49010 cat >>confdefs.h <<\_ACEOF
49011 #define HAVE_LRAND48 1
49012 _ACEOF
49014 cat >>confdefs.h <<\_ACEOF
49015 #define HAVE_GETPAGESIZE 1
49016 _ACEOF
49018 cat >>confdefs.h <<\_ACEOF
49019 #define HAVE_SETENV 1
49020 _ACEOF
49022 cat >>confdefs.h <<\_ACEOF
49023 #define HAVE_SIGSETJMP 1
49024 _ACEOF
49026 cat >>confdefs.h <<\_ACEOF
49027 #define HAVE_COPYSIGN 1
49028 _ACEOF
49030 cat >>confdefs.h <<\_ACEOF
49031 #define HAVE_COPYSIGNF 1
49032 _ACEOF
49034 cat >>confdefs.h <<\_ACEOF
49035 #define HAVE_FINITEF 1
49036 _ACEOF
49038 cat >>confdefs.h <<\_ACEOF
49039 #define HAVE_FINITE 1
49040 _ACEOF
49042 cat >>confdefs.h <<\_ACEOF
49043 #define HAVE_FREXPF 1
49044 _ACEOF
49046 cat >>confdefs.h <<\_ACEOF
49047 #define HAVE_HYPOT 1
49048 _ACEOF
49050 cat >>confdefs.h <<\_ACEOF
49051 #define HAVE_HYPOTF 1
49052 _ACEOF
49054 cat >>confdefs.h <<\_ACEOF
49055 #define HAVE_ISINF 1
49056 _ACEOF
49058 cat >>confdefs.h <<\_ACEOF
49059 #define HAVE_ISNAN 1
49060 _ACEOF
49062 cat >>confdefs.h <<\_ACEOF
49063 #define HAVE_ISNANF 1
49064 _ACEOF
49067 cat >>confdefs.h <<\_ACEOF
49068 #define HAVE_MMAP 1
49069 _ACEOF
49071 cat >>confdefs.h <<\_ACEOF
49072 #define HAVE_ACOSF 1
49073 _ACEOF
49075 cat >>confdefs.h <<\_ACEOF
49076 #define HAVE_ASINF 1
49077 _ACEOF
49079 cat >>confdefs.h <<\_ACEOF
49080 #define HAVE_ATAN2F 1
49081 _ACEOF
49083 cat >>confdefs.h <<\_ACEOF
49084 #define HAVE_ATANF 1
49085 _ACEOF
49087 cat >>confdefs.h <<\_ACEOF
49088 #define HAVE_CEILF 1
49089 _ACEOF
49091 cat >>confdefs.h <<\_ACEOF
49092 #define HAVE_COPYSIGN 1
49093 _ACEOF
49095 cat >>confdefs.h <<\_ACEOF
49096 #define HAVE_COPYSIGNF 1
49097 _ACEOF
49099 cat >>confdefs.h <<\_ACEOF
49100 #define HAVE_COSF 1
49101 _ACEOF
49103 cat >>confdefs.h <<\_ACEOF
49104 #define HAVE_COSHF 1
49105 _ACEOF
49107 cat >>confdefs.h <<\_ACEOF
49108 #define HAVE_EXPF 1
49109 _ACEOF
49111 cat >>confdefs.h <<\_ACEOF
49112 #define HAVE_FABSF 1
49113 _ACEOF
49115 cat >>confdefs.h <<\_ACEOF
49116 #define HAVE_FLOORF 1
49117 _ACEOF
49119 cat >>confdefs.h <<\_ACEOF
49120 #define HAVE_FMODF 1
49121 _ACEOF
49123 cat >>confdefs.h <<\_ACEOF
49124 #define HAVE_FREXPF 1
49125 _ACEOF
49127 cat >>confdefs.h <<\_ACEOF
49128 #define HAVE_LDEXPF 1
49129 _ACEOF
49131 cat >>confdefs.h <<\_ACEOF
49132 #define HAVE_LOG10F 1
49133 _ACEOF
49135 cat >>confdefs.h <<\_ACEOF
49136 #define HAVE_LOGF 1
49137 _ACEOF
49139 cat >>confdefs.h <<\_ACEOF
49140 #define HAVE_MODFF 1
49141 _ACEOF
49143 cat >>confdefs.h <<\_ACEOF
49144 #define HAVE_POWF 1
49145 _ACEOF
49147 cat >>confdefs.h <<\_ACEOF
49148 #define HAVE_SINF 1
49149 _ACEOF
49151 cat >>confdefs.h <<\_ACEOF
49152 #define HAVE_SINHF 1
49153 _ACEOF
49155 cat >>confdefs.h <<\_ACEOF
49156 #define HAVE_SQRTF 1
49157 _ACEOF
49159 cat >>confdefs.h <<\_ACEOF
49160 #define HAVE_TANF 1
49161 _ACEOF
49163 cat >>confdefs.h <<\_ACEOF
49164 #define HAVE_TANHF 1
49165 _ACEOF
49167 if test x"long_double_math_on_this_cpu" = x"yes"; then
49168 cat >>confdefs.h <<\_ACEOF
49169 #define HAVE_FINITEL 1
49170 _ACEOF
49172 cat >>confdefs.h <<\_ACEOF
49173 #define HAVE_ISINFL 1
49174 _ACEOF
49176 cat >>confdefs.h <<\_ACEOF
49177 #define HAVE_ISNANL 1
49178 _ACEOF
49182 *-hpux*)
49195 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
49196 machine/endian.h machine/param.h sys/machine.h sys/types.h \
49197 fp.h locale.h float.h inttypes.h
49199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49201 echo "$as_me:$LINENO: checking for $ac_header" >&5
49202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49204 echo $ECHO_N "(cached) $ECHO_C" >&6
49206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49208 else
49209 # Is the header compilable?
49210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49212 cat >conftest.$ac_ext <<_ACEOF
49213 #line $LINENO "configure"
49214 /* confdefs.h. */
49215 _ACEOF
49216 cat confdefs.h >>conftest.$ac_ext
49217 cat >>conftest.$ac_ext <<_ACEOF
49218 /* end confdefs.h. */
49219 $ac_includes_default
49220 #include <$ac_header>
49221 _ACEOF
49222 rm -f conftest.$ac_objext
49223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49224 (eval $ac_compile) 2>&5
49225 ac_status=$?
49226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227 (exit $ac_status); } &&
49228 { ac_try='test -s conftest.$ac_objext'
49229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49230 (eval $ac_try) 2>&5
49231 ac_status=$?
49232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49233 (exit $ac_status); }; }; then
49234 ac_header_compiler=yes
49235 else
49236 echo "$as_me: failed program was:" >&5
49237 sed 's/^/| /' conftest.$ac_ext >&5
49239 ac_header_compiler=no
49241 rm -f conftest.$ac_objext conftest.$ac_ext
49242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49243 echo "${ECHO_T}$ac_header_compiler" >&6
49245 # Is the header present?
49246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49248 cat >conftest.$ac_ext <<_ACEOF
49249 #line $LINENO "configure"
49250 /* confdefs.h. */
49251 _ACEOF
49252 cat confdefs.h >>conftest.$ac_ext
49253 cat >>conftest.$ac_ext <<_ACEOF
49254 /* end confdefs.h. */
49255 #include <$ac_header>
49256 _ACEOF
49257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49259 ac_status=$?
49260 grep -v '^ *+' conftest.er1 >conftest.err
49261 rm -f conftest.er1
49262 cat conftest.err >&5
49263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49264 (exit $ac_status); } >/dev/null; then
49265 if test -s conftest.err; then
49266 ac_cpp_err=$ac_c_preproc_warn_flag
49267 else
49268 ac_cpp_err=
49270 else
49271 ac_cpp_err=yes
49273 if test -z "$ac_cpp_err"; then
49274 ac_header_preproc=yes
49275 else
49276 echo "$as_me: failed program was:" >&5
49277 sed 's/^/| /' conftest.$ac_ext >&5
49279 ac_header_preproc=no
49281 rm -f conftest.err conftest.$ac_ext
49282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49283 echo "${ECHO_T}$ac_header_preproc" >&6
49285 # So? What about this header?
49286 case $ac_header_compiler:$ac_header_preproc in
49287 yes:no )
49288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49293 cat <<\_ASBOX
49294 ## ------------------------------------ ##
49295 ## Report this to bug-autoconf@gnu.org. ##
49296 ## ------------------------------------ ##
49297 _ASBOX
49299 sed "s/^/$as_me: WARNING: /" >&2
49301 no:yes )
49302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49309 cat <<\_ASBOX
49310 ## ------------------------------------ ##
49311 ## Report this to bug-autoconf@gnu.org. ##
49312 ## ------------------------------------ ##
49313 _ASBOX
49315 sed "s/^/$as_me: WARNING: /" >&2
49317 esac
49318 echo "$as_me:$LINENO: checking for $ac_header" >&5
49319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49321 echo $ECHO_N "(cached) $ECHO_C" >&6
49322 else
49323 eval "$as_ac_Header=$ac_header_preproc"
49325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49330 cat >>confdefs.h <<_ACEOF
49331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49332 _ACEOF
49336 done
49338 SECTION_FLAGS='-ffunction-sections -fdata-sections'
49341 # If we're not using GNU ld, then there's no point in even trying these
49342 # tests. Check for that first. We should have already tested for gld
49343 # by now (in libtool), but require it now just to be safe...
49344 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
49345 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
49349 # The name set by libtool depends on the version of libtool. Shame on us
49350 # for depending on an impl detail, but c'est la vie. Older versions used
49351 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
49352 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
49353 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
49354 # set (hence we're using an older libtool), then set it.
49355 if test x${with_gnu_ld+set} != xset; then
49356 if test x${ac_cv_prog_gnu_ld+set} != xset; then
49357 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
49358 with_gnu_ld=no
49359 else
49360 with_gnu_ld=$ac_cv_prog_gnu_ld
49364 # Start by getting the version number. I think the libtool test already
49365 # does some of this, but throws away the result.
49367 ldver=`$LD --version 2>/dev/null | head -1 | \
49368 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
49370 glibcxx_gnu_ld_version=`echo $ldver | \
49371 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
49373 # Set --gc-sections.
49374 if test "$with_gnu_ld" = "notbroken"; then
49375 # GNU ld it is! Joy and bunny rabbits!
49377 # All these tests are for C++; save the language and the compiler flags.
49378 # Need to do this so that g++ won't try to link in libstdc++
49379 ac_test_CFLAGS="${CFLAGS+set}"
49380 ac_save_CFLAGS="$CFLAGS"
49381 CFLAGS='-x c++ -Wl,--gc-sections'
49383 # Check for -Wl,--gc-sections
49384 # XXX This test is broken at the moment, as symbols required for linking
49385 # are now in libsupc++ (not built yet). In addition, this test has
49386 # cored on solaris in the past. In addition, --gc-sections doesn't
49387 # really work at the moment (keeps on discarding used sections, first
49388 # .eh_frame and now some of the glibc sections for iconv).
49389 # Bzzzzt. Thanks for playing, maybe next time.
49390 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
49391 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
49392 if test "$cross_compiling" = yes; then
49393 ac_sectionLDflags=yes
49394 else
49395 cat >conftest.$ac_ext <<_ACEOF
49396 #line $LINENO "configure"
49397 /* confdefs.h. */
49398 _ACEOF
49399 cat confdefs.h >>conftest.$ac_ext
49400 cat >>conftest.$ac_ext <<_ACEOF
49401 /* end confdefs.h. */
49403 int main(void)
49405 try { throw 1; }
49406 catch (...) { };
49407 return 0;
49410 _ACEOF
49411 rm -f conftest$ac_exeext
49412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49413 (eval $ac_link) 2>&5
49414 ac_status=$?
49415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49418 (eval $ac_try) 2>&5
49419 ac_status=$?
49420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49421 (exit $ac_status); }; }; then
49422 ac_sectionLDflags=yes
49423 else
49424 echo "$as_me: program exited with status $ac_status" >&5
49425 echo "$as_me: failed program was:" >&5
49426 sed 's/^/| /' conftest.$ac_ext >&5
49428 ( exit $ac_status )
49429 ac_sectionLDflags=no
49431 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49433 if test "$ac_test_CFLAGS" = set; then
49434 CFLAGS="$ac_save_CFLAGS"
49435 else
49436 # this is the suspicious part
49437 CFLAGS=''
49439 if test "$ac_sectionLDflags" = "yes"; then
49440 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
49442 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
49443 echo "${ECHO_T}$ac_sectionLDflags" >&6
49446 # Set linker optimization flags.
49447 if test x"$with_gnu_ld" = x"yes"; then
49448 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
49456 echo "$as_me:$LINENO: checking for main in -lm" >&5
49457 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
49458 if test "${ac_cv_lib_m_main+set}" = set; then
49459 echo $ECHO_N "(cached) $ECHO_C" >&6
49460 else
49461 ac_check_lib_save_LIBS=$LIBS
49462 LIBS="-lm $LIBS"
49463 if test x$gcc_no_link = xyes; then
49464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49466 { (exit 1); exit 1; }; }
49468 cat >conftest.$ac_ext <<_ACEOF
49469 #line $LINENO "configure"
49470 /* confdefs.h. */
49471 _ACEOF
49472 cat confdefs.h >>conftest.$ac_ext
49473 cat >>conftest.$ac_ext <<_ACEOF
49474 /* end confdefs.h. */
49478 main ()
49480 main ();
49482 return 0;
49484 _ACEOF
49485 rm -f conftest.$ac_objext conftest$ac_exeext
49486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49487 (eval $ac_link) 2>&5
49488 ac_status=$?
49489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49490 (exit $ac_status); } &&
49491 { ac_try='test -s conftest$ac_exeext'
49492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49493 (eval $ac_try) 2>&5
49494 ac_status=$?
49495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49496 (exit $ac_status); }; }; then
49497 ac_cv_lib_m_main=yes
49498 else
49499 echo "$as_me: failed program was:" >&5
49500 sed 's/^/| /' conftest.$ac_ext >&5
49502 ac_cv_lib_m_main=no
49504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49505 LIBS=$ac_check_lib_save_LIBS
49507 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
49508 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
49509 if test $ac_cv_lib_m_main = yes; then
49510 cat >>confdefs.h <<_ACEOF
49511 #define HAVE_LIBM 1
49512 _ACEOF
49514 LIBS="-lm $LIBS"
49520 for ac_func in nan copysignf
49522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49523 echo "$as_me:$LINENO: checking for $ac_func" >&5
49524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49525 if eval "test \"\${$as_ac_var+set}\" = set"; then
49526 echo $ECHO_N "(cached) $ECHO_C" >&6
49527 else
49528 if test x$gcc_no_link = xyes; then
49529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49531 { (exit 1); exit 1; }; }
49533 cat >conftest.$ac_ext <<_ACEOF
49534 #line $LINENO "configure"
49535 /* confdefs.h. */
49536 _ACEOF
49537 cat confdefs.h >>conftest.$ac_ext
49538 cat >>conftest.$ac_ext <<_ACEOF
49539 /* end confdefs.h. */
49540 /* System header to define __stub macros and hopefully few prototypes,
49541 which can conflict with char $ac_func (); below.
49542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49543 <limits.h> exists even on freestanding compilers. */
49544 #ifdef __STDC__
49545 # include <limits.h>
49546 #else
49547 # include <assert.h>
49548 #endif
49549 /* Override any gcc2 internal prototype to avoid an error. */
49550 #ifdef __cplusplus
49551 extern "C"
49553 #endif
49554 /* We use char because int might match the return type of a gcc2
49555 builtin and then its argument prototype would still apply. */
49556 char $ac_func ();
49557 /* The GNU C library defines this for functions which it implements
49558 to always fail with ENOSYS. Some functions are actually named
49559 something starting with __ and the normal name is an alias. */
49560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49561 choke me
49562 #else
49563 char (*f) () = $ac_func;
49564 #endif
49565 #ifdef __cplusplus
49567 #endif
49570 main ()
49572 return f != $ac_func;
49574 return 0;
49576 _ACEOF
49577 rm -f conftest.$ac_objext conftest$ac_exeext
49578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49579 (eval $ac_link) 2>&5
49580 ac_status=$?
49581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49582 (exit $ac_status); } &&
49583 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
49589 eval "$as_ac_var=yes"
49590 else
49591 echo "$as_me: failed program was:" >&5
49592 sed 's/^/| /' conftest.$ac_ext >&5
49594 eval "$as_ac_var=no"
49596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49600 if test `eval echo '${'$as_ac_var'}'` = yes; then
49601 cat >>confdefs.h <<_ACEOF
49602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49603 _ACEOF
49605 else
49606 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49608 done
49612 for ac_func in __signbit
49614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49615 echo "$as_me:$LINENO: checking for $ac_func" >&5
49616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49617 if eval "test \"\${$as_ac_var+set}\" = set"; then
49618 echo $ECHO_N "(cached) $ECHO_C" >&6
49619 else
49620 if test x$gcc_no_link = xyes; then
49621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49623 { (exit 1); exit 1; }; }
49625 cat >conftest.$ac_ext <<_ACEOF
49626 #line $LINENO "configure"
49627 /* confdefs.h. */
49628 _ACEOF
49629 cat confdefs.h >>conftest.$ac_ext
49630 cat >>conftest.$ac_ext <<_ACEOF
49631 /* end confdefs.h. */
49632 /* System header to define __stub macros and hopefully few prototypes,
49633 which can conflict with char $ac_func (); below.
49634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49635 <limits.h> exists even on freestanding compilers. */
49636 #ifdef __STDC__
49637 # include <limits.h>
49638 #else
49639 # include <assert.h>
49640 #endif
49641 /* Override any gcc2 internal prototype to avoid an error. */
49642 #ifdef __cplusplus
49643 extern "C"
49645 #endif
49646 /* We use char because int might match the return type of a gcc2
49647 builtin and then its argument prototype would still apply. */
49648 char $ac_func ();
49649 /* The GNU C library defines this for functions which it implements
49650 to always fail with ENOSYS. Some functions are actually named
49651 something starting with __ and the normal name is an alias. */
49652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49653 choke me
49654 #else
49655 char (*f) () = $ac_func;
49656 #endif
49657 #ifdef __cplusplus
49659 #endif
49662 main ()
49664 return f != $ac_func;
49666 return 0;
49668 _ACEOF
49669 rm -f conftest.$ac_objext conftest$ac_exeext
49670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49671 (eval $ac_link) 2>&5
49672 ac_status=$?
49673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49674 (exit $ac_status); } &&
49675 { ac_try='test -s conftest$ac_exeext'
49676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49677 (eval $ac_try) 2>&5
49678 ac_status=$?
49679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49680 (exit $ac_status); }; }; then
49681 eval "$as_ac_var=yes"
49682 else
49683 echo "$as_me: failed program was:" >&5
49684 sed 's/^/| /' conftest.$ac_ext >&5
49686 eval "$as_ac_var=no"
49688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49692 if test `eval echo '${'$as_ac_var'}'` = yes; then
49693 cat >>confdefs.h <<_ACEOF
49694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49695 _ACEOF
49697 else
49698 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49700 done
49703 for ac_func in __signbitf
49705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49706 echo "$as_me:$LINENO: checking for $ac_func" >&5
49707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49708 if eval "test \"\${$as_ac_var+set}\" = set"; then
49709 echo $ECHO_N "(cached) $ECHO_C" >&6
49710 else
49711 if test x$gcc_no_link = xyes; then
49712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49714 { (exit 1); exit 1; }; }
49716 cat >conftest.$ac_ext <<_ACEOF
49717 #line $LINENO "configure"
49718 /* confdefs.h. */
49719 _ACEOF
49720 cat confdefs.h >>conftest.$ac_ext
49721 cat >>conftest.$ac_ext <<_ACEOF
49722 /* end confdefs.h. */
49723 /* System header to define __stub macros and hopefully few prototypes,
49724 which can conflict with char $ac_func (); below.
49725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49726 <limits.h> exists even on freestanding compilers. */
49727 #ifdef __STDC__
49728 # include <limits.h>
49729 #else
49730 # include <assert.h>
49731 #endif
49732 /* Override any gcc2 internal prototype to avoid an error. */
49733 #ifdef __cplusplus
49734 extern "C"
49736 #endif
49737 /* We use char because int might match the return type of a gcc2
49738 builtin and then its argument prototype would still apply. */
49739 char $ac_func ();
49740 /* The GNU C library defines this for functions which it implements
49741 to always fail with ENOSYS. Some functions are actually named
49742 something starting with __ and the normal name is an alias. */
49743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49744 choke me
49745 #else
49746 char (*f) () = $ac_func;
49747 #endif
49748 #ifdef __cplusplus
49750 #endif
49753 main ()
49755 return f != $ac_func;
49757 return 0;
49759 _ACEOF
49760 rm -f conftest.$ac_objext conftest$ac_exeext
49761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49762 (eval $ac_link) 2>&5
49763 ac_status=$?
49764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49765 (exit $ac_status); } &&
49766 { ac_try='test -s conftest$ac_exeext'
49767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49768 (eval $ac_try) 2>&5
49769 ac_status=$?
49770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49771 (exit $ac_status); }; }; then
49772 eval "$as_ac_var=yes"
49773 else
49774 echo "$as_me: failed program was:" >&5
49775 sed 's/^/| /' conftest.$ac_ext >&5
49777 eval "$as_ac_var=no"
49779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49783 if test `eval echo '${'$as_ac_var'}'` = yes; then
49784 cat >>confdefs.h <<_ACEOF
49785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49786 _ACEOF
49788 else
49789 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49791 done
49794 if test x$ac_cv_func_copysignl = x"yes"; then
49796 for ac_func in __signbitl
49798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49799 echo "$as_me:$LINENO: checking for $ac_func" >&5
49800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49801 if eval "test \"\${$as_ac_var+set}\" = set"; then
49802 echo $ECHO_N "(cached) $ECHO_C" >&6
49803 else
49804 if test x$gcc_no_link = xyes; then
49805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49807 { (exit 1); exit 1; }; }
49809 cat >conftest.$ac_ext <<_ACEOF
49810 #line $LINENO "configure"
49811 /* confdefs.h. */
49812 _ACEOF
49813 cat confdefs.h >>conftest.$ac_ext
49814 cat >>conftest.$ac_ext <<_ACEOF
49815 /* end confdefs.h. */
49816 /* System header to define __stub macros and hopefully few prototypes,
49817 which can conflict with char $ac_func (); below.
49818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49819 <limits.h> exists even on freestanding compilers. */
49820 #ifdef __STDC__
49821 # include <limits.h>
49822 #else
49823 # include <assert.h>
49824 #endif
49825 /* Override any gcc2 internal prototype to avoid an error. */
49826 #ifdef __cplusplus
49827 extern "C"
49829 #endif
49830 /* We use char because int might match the return type of a gcc2
49831 builtin and then its argument prototype would still apply. */
49832 char $ac_func ();
49833 /* The GNU C library defines this for functions which it implements
49834 to always fail with ENOSYS. Some functions are actually named
49835 something starting with __ and the normal name is an alias. */
49836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49837 choke me
49838 #else
49839 char (*f) () = $ac_func;
49840 #endif
49841 #ifdef __cplusplus
49843 #endif
49846 main ()
49848 return f != $ac_func;
49850 return 0;
49852 _ACEOF
49853 rm -f conftest.$ac_objext conftest$ac_exeext
49854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49855 (eval $ac_link) 2>&5
49856 ac_status=$?
49857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49858 (exit $ac_status); } &&
49859 { ac_try='test -s conftest$ac_exeext'
49860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49861 (eval $ac_try) 2>&5
49862 ac_status=$?
49863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49864 (exit $ac_status); }; }; then
49865 eval "$as_ac_var=yes"
49866 else
49867 echo "$as_me: failed program was:" >&5
49868 sed 's/^/| /' conftest.$ac_ext >&5
49870 eval "$as_ac_var=no"
49872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49876 if test `eval echo '${'$as_ac_var'}'` = yes; then
49877 cat >>confdefs.h <<_ACEOF
49878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49879 _ACEOF
49881 else
49882 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49884 done
49888 # XXX Review this. Nothing uses it.
49889 if test -n "$LIBMATHOBJS"; then
49890 need_libmath=yes
49895 # Test wchar.h for mbstate_t, which is needed for char_traits and
49896 # others even if wchar_t support is not on.
49897 echo "$as_me:$LINENO: checking for mbstate_t" >&5
49898 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49899 cat >conftest.$ac_ext <<_ACEOF
49900 #line $LINENO "configure"
49901 /* confdefs.h. */
49902 _ACEOF
49903 cat confdefs.h >>conftest.$ac_ext
49904 cat >>conftest.$ac_ext <<_ACEOF
49905 /* end confdefs.h. */
49906 #include <wchar.h>
49908 main ()
49910 mbstate_t teststate;
49912 return 0;
49914 _ACEOF
49915 rm -f conftest.$ac_objext
49916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49917 (eval $ac_compile) 2>&5
49918 ac_status=$?
49919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920 (exit $ac_status); } &&
49921 { ac_try='test -s conftest.$ac_objext'
49922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49923 (eval $ac_try) 2>&5
49924 ac_status=$?
49925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49926 (exit $ac_status); }; }; then
49927 have_mbstate_t=yes
49928 else
49929 echo "$as_me: failed program was:" >&5
49930 sed 's/^/| /' conftest.$ac_ext >&5
49932 have_mbstate_t=no
49934 rm -f conftest.$ac_objext conftest.$ac_ext
49935 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49936 echo "${ECHO_T}$have_mbstate_t" >&6
49937 if test x"$have_mbstate_t" = xyes; then
49938 cat >>confdefs.h <<\_ACEOF
49939 #define HAVE_MBSTATE_T 1
49940 _ACEOF
49944 # Sanity check for existence of ISO C99 headers for extended encoding.
49946 for ac_header in wchar.h
49948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49950 echo "$as_me:$LINENO: checking for $ac_header" >&5
49951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49953 echo $ECHO_N "(cached) $ECHO_C" >&6
49955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49957 else
49958 # Is the header compilable?
49959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49961 cat >conftest.$ac_ext <<_ACEOF
49962 #line $LINENO "configure"
49963 /* confdefs.h. */
49964 _ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h. */
49968 $ac_includes_default
49969 #include <$ac_header>
49970 _ACEOF
49971 rm -f conftest.$ac_objext
49972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49973 (eval $ac_compile) 2>&5
49974 ac_status=$?
49975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976 (exit $ac_status); } &&
49977 { ac_try='test -s conftest.$ac_objext'
49978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49979 (eval $ac_try) 2>&5
49980 ac_status=$?
49981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49982 (exit $ac_status); }; }; then
49983 ac_header_compiler=yes
49984 else
49985 echo "$as_me: failed program was:" >&5
49986 sed 's/^/| /' conftest.$ac_ext >&5
49988 ac_header_compiler=no
49990 rm -f conftest.$ac_objext conftest.$ac_ext
49991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49992 echo "${ECHO_T}$ac_header_compiler" >&6
49994 # Is the header present?
49995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49997 cat >conftest.$ac_ext <<_ACEOF
49998 #line $LINENO "configure"
49999 /* confdefs.h. */
50000 _ACEOF
50001 cat confdefs.h >>conftest.$ac_ext
50002 cat >>conftest.$ac_ext <<_ACEOF
50003 /* end confdefs.h. */
50004 #include <$ac_header>
50005 _ACEOF
50006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50008 ac_status=$?
50009 grep -v '^ *+' conftest.er1 >conftest.err
50010 rm -f conftest.er1
50011 cat conftest.err >&5
50012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50013 (exit $ac_status); } >/dev/null; then
50014 if test -s conftest.err; then
50015 ac_cpp_err=$ac_c_preproc_warn_flag
50016 else
50017 ac_cpp_err=
50019 else
50020 ac_cpp_err=yes
50022 if test -z "$ac_cpp_err"; then
50023 ac_header_preproc=yes
50024 else
50025 echo "$as_me: failed program was:" >&5
50026 sed 's/^/| /' conftest.$ac_ext >&5
50028 ac_header_preproc=no
50030 rm -f conftest.err conftest.$ac_ext
50031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50032 echo "${ECHO_T}$ac_header_preproc" >&6
50034 # So? What about this header?
50035 case $ac_header_compiler:$ac_header_preproc in
50036 yes:no )
50037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50042 cat <<\_ASBOX
50043 ## ------------------------------------ ##
50044 ## Report this to bug-autoconf@gnu.org. ##
50045 ## ------------------------------------ ##
50046 _ASBOX
50048 sed "s/^/$as_me: WARNING: /" >&2
50050 no:yes )
50051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50058 cat <<\_ASBOX
50059 ## ------------------------------------ ##
50060 ## Report this to bug-autoconf@gnu.org. ##
50061 ## ------------------------------------ ##
50062 _ASBOX
50064 sed "s/^/$as_me: WARNING: /" >&2
50066 esac
50067 echo "$as_me:$LINENO: checking for $ac_header" >&5
50068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50070 echo $ECHO_N "(cached) $ECHO_C" >&6
50071 else
50072 eval "$as_ac_Header=$ac_header_preproc"
50074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50079 cat >>confdefs.h <<_ACEOF
50080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50081 _ACEOF
50082 ac_has_wchar_h=yes
50083 else
50084 ac_has_wchar_h=no
50087 done
50090 for ac_header in wctype.h
50092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50094 echo "$as_me:$LINENO: checking for $ac_header" >&5
50095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50097 echo $ECHO_N "(cached) $ECHO_C" >&6
50099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50101 else
50102 # Is the header compilable?
50103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50105 cat >conftest.$ac_ext <<_ACEOF
50106 #line $LINENO "configure"
50107 /* confdefs.h. */
50108 _ACEOF
50109 cat confdefs.h >>conftest.$ac_ext
50110 cat >>conftest.$ac_ext <<_ACEOF
50111 /* end confdefs.h. */
50112 $ac_includes_default
50113 #include <$ac_header>
50114 _ACEOF
50115 rm -f conftest.$ac_objext
50116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50117 (eval $ac_compile) 2>&5
50118 ac_status=$?
50119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50120 (exit $ac_status); } &&
50121 { ac_try='test -s conftest.$ac_objext'
50122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50123 (eval $ac_try) 2>&5
50124 ac_status=$?
50125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50126 (exit $ac_status); }; }; then
50127 ac_header_compiler=yes
50128 else
50129 echo "$as_me: failed program was:" >&5
50130 sed 's/^/| /' conftest.$ac_ext >&5
50132 ac_header_compiler=no
50134 rm -f conftest.$ac_objext conftest.$ac_ext
50135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50136 echo "${ECHO_T}$ac_header_compiler" >&6
50138 # Is the header present?
50139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50141 cat >conftest.$ac_ext <<_ACEOF
50142 #line $LINENO "configure"
50143 /* confdefs.h. */
50144 _ACEOF
50145 cat confdefs.h >>conftest.$ac_ext
50146 cat >>conftest.$ac_ext <<_ACEOF
50147 /* end confdefs.h. */
50148 #include <$ac_header>
50149 _ACEOF
50150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50152 ac_status=$?
50153 grep -v '^ *+' conftest.er1 >conftest.err
50154 rm -f conftest.er1
50155 cat conftest.err >&5
50156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50157 (exit $ac_status); } >/dev/null; then
50158 if test -s conftest.err; then
50159 ac_cpp_err=$ac_c_preproc_warn_flag
50160 else
50161 ac_cpp_err=
50163 else
50164 ac_cpp_err=yes
50166 if test -z "$ac_cpp_err"; then
50167 ac_header_preproc=yes
50168 else
50169 echo "$as_me: failed program was:" >&5
50170 sed 's/^/| /' conftest.$ac_ext >&5
50172 ac_header_preproc=no
50174 rm -f conftest.err conftest.$ac_ext
50175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50176 echo "${ECHO_T}$ac_header_preproc" >&6
50178 # So? What about this header?
50179 case $ac_header_compiler:$ac_header_preproc in
50180 yes:no )
50181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50186 cat <<\_ASBOX
50187 ## ------------------------------------ ##
50188 ## Report this to bug-autoconf@gnu.org. ##
50189 ## ------------------------------------ ##
50190 _ASBOX
50192 sed "s/^/$as_me: WARNING: /" >&2
50194 no:yes )
50195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50202 cat <<\_ASBOX
50203 ## ------------------------------------ ##
50204 ## Report this to bug-autoconf@gnu.org. ##
50205 ## ------------------------------------ ##
50206 _ASBOX
50208 sed "s/^/$as_me: WARNING: /" >&2
50210 esac
50211 echo "$as_me:$LINENO: checking for $ac_header" >&5
50212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50214 echo $ECHO_N "(cached) $ECHO_C" >&6
50215 else
50216 eval "$as_ac_Header=$ac_header_preproc"
50218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50223 cat >>confdefs.h <<_ACEOF
50224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50225 _ACEOF
50226 ac_has_wctype_h=yes
50227 else
50228 ac_has_wctype_h=no
50231 done
50234 # Only continue checking if the ISO C99 headers exist and support is on.
50235 if test x"$ac_has_wchar_h" = xyes &&
50236 test x"$ac_has_wctype_h" = xyes &&
50237 test x"$enable_c_mbchar" != xno; then
50239 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
50240 # numeric_limits can instantiate type_traits<wchar_t>
50241 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
50242 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
50243 cat >conftest.$ac_ext <<_ACEOF
50244 #line $LINENO "configure"
50245 /* confdefs.h. */
50246 _ACEOF
50247 cat confdefs.h >>conftest.$ac_ext
50248 cat >>conftest.$ac_ext <<_ACEOF
50249 /* end confdefs.h. */
50250 #include <wchar.h>
50252 main ()
50254 int i = WCHAR_MIN; int j = WCHAR_MAX;
50256 return 0;
50258 _ACEOF
50259 rm -f conftest.$ac_objext
50260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50261 (eval $ac_compile) 2>&5
50262 ac_status=$?
50263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50264 (exit $ac_status); } &&
50265 { ac_try='test -s conftest.$ac_objext'
50266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50267 (eval $ac_try) 2>&5
50268 ac_status=$?
50269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50270 (exit $ac_status); }; }; then
50271 has_wchar_minmax=yes
50272 else
50273 echo "$as_me: failed program was:" >&5
50274 sed 's/^/| /' conftest.$ac_ext >&5
50276 has_wchar_minmax=no
50278 rm -f conftest.$ac_objext conftest.$ac_ext
50279 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
50280 echo "${ECHO_T}$has_wchar_minmax" >&6
50282 # Test wchar.h for WEOF, which is what we use to determine whether
50283 # to specialize for char_traits<wchar_t> or not.
50284 echo "$as_me:$LINENO: checking for WEOF" >&5
50285 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
50286 cat >conftest.$ac_ext <<_ACEOF
50287 #line $LINENO "configure"
50288 /* confdefs.h. */
50289 _ACEOF
50290 cat confdefs.h >>conftest.$ac_ext
50291 cat >>conftest.$ac_ext <<_ACEOF
50292 /* end confdefs.h. */
50294 #include <wchar.h>
50295 #include <stddef.h>
50297 main ()
50299 wint_t i = WEOF;
50301 return 0;
50303 _ACEOF
50304 rm -f conftest.$ac_objext
50305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50306 (eval $ac_compile) 2>&5
50307 ac_status=$?
50308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50309 (exit $ac_status); } &&
50310 { ac_try='test -s conftest.$ac_objext'
50311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50312 (eval $ac_try) 2>&5
50313 ac_status=$?
50314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50315 (exit $ac_status); }; }; then
50316 has_weof=yes
50317 else
50318 echo "$as_me: failed program was:" >&5
50319 sed 's/^/| /' conftest.$ac_ext >&5
50321 has_weof=no
50323 rm -f conftest.$ac_objext conftest.$ac_ext
50324 echo "$as_me:$LINENO: result: $has_weof" >&5
50325 echo "${ECHO_T}$has_weof" >&6
50327 # Tests for wide character functions used in char_traits<wchar_t>.
50328 ac_wfuncs=yes
50335 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
50337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50338 echo "$as_me:$LINENO: checking for $ac_func" >&5
50339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50340 if eval "test \"\${$as_ac_var+set}\" = set"; then
50341 echo $ECHO_N "(cached) $ECHO_C" >&6
50342 else
50343 if test x$gcc_no_link = xyes; then
50344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50346 { (exit 1); exit 1; }; }
50348 cat >conftest.$ac_ext <<_ACEOF
50349 #line $LINENO "configure"
50350 /* confdefs.h. */
50351 _ACEOF
50352 cat confdefs.h >>conftest.$ac_ext
50353 cat >>conftest.$ac_ext <<_ACEOF
50354 /* end confdefs.h. */
50355 /* System header to define __stub macros and hopefully few prototypes,
50356 which can conflict with char $ac_func (); below.
50357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50358 <limits.h> exists even on freestanding compilers. */
50359 #ifdef __STDC__
50360 # include <limits.h>
50361 #else
50362 # include <assert.h>
50363 #endif
50364 /* Override any gcc2 internal prototype to avoid an error. */
50365 #ifdef __cplusplus
50366 extern "C"
50368 #endif
50369 /* We use char because int might match the return type of a gcc2
50370 builtin and then its argument prototype would still apply. */
50371 char $ac_func ();
50372 /* The GNU C library defines this for functions which it implements
50373 to always fail with ENOSYS. Some functions are actually named
50374 something starting with __ and the normal name is an alias. */
50375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50376 choke me
50377 #else
50378 char (*f) () = $ac_func;
50379 #endif
50380 #ifdef __cplusplus
50382 #endif
50385 main ()
50387 return f != $ac_func;
50389 return 0;
50391 _ACEOF
50392 rm -f conftest.$ac_objext conftest$ac_exeext
50393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50394 (eval $ac_link) 2>&5
50395 ac_status=$?
50396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50397 (exit $ac_status); } &&
50398 { ac_try='test -s conftest$ac_exeext'
50399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50400 (eval $ac_try) 2>&5
50401 ac_status=$?
50402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50403 (exit $ac_status); }; }; then
50404 eval "$as_ac_var=yes"
50405 else
50406 echo "$as_me: failed program was:" >&5
50407 sed 's/^/| /' conftest.$ac_ext >&5
50409 eval "$as_ac_var=no"
50411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50415 if test `eval echo '${'$as_ac_var'}'` = yes; then
50416 cat >>confdefs.h <<_ACEOF
50417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50418 _ACEOF
50420 else
50421 ac_wfuncs=no
50423 done
50426 # Checks for names injected into std:: by the c_std headers.
50473 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
50474 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
50475 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
50476 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
50477 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
50478 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
50480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50481 echo "$as_me:$LINENO: checking for $ac_func" >&5
50482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50483 if eval "test \"\${$as_ac_var+set}\" = set"; then
50484 echo $ECHO_N "(cached) $ECHO_C" >&6
50485 else
50486 if test x$gcc_no_link = xyes; then
50487 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50489 { (exit 1); exit 1; }; }
50491 cat >conftest.$ac_ext <<_ACEOF
50492 #line $LINENO "configure"
50493 /* confdefs.h. */
50494 _ACEOF
50495 cat confdefs.h >>conftest.$ac_ext
50496 cat >>conftest.$ac_ext <<_ACEOF
50497 /* end confdefs.h. */
50498 /* System header to define __stub macros and hopefully few prototypes,
50499 which can conflict with char $ac_func (); below.
50500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50501 <limits.h> exists even on freestanding compilers. */
50502 #ifdef __STDC__
50503 # include <limits.h>
50504 #else
50505 # include <assert.h>
50506 #endif
50507 /* Override any gcc2 internal prototype to avoid an error. */
50508 #ifdef __cplusplus
50509 extern "C"
50511 #endif
50512 /* We use char because int might match the return type of a gcc2
50513 builtin and then its argument prototype would still apply. */
50514 char $ac_func ();
50515 /* The GNU C library defines this for functions which it implements
50516 to always fail with ENOSYS. Some functions are actually named
50517 something starting with __ and the normal name is an alias. */
50518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50519 choke me
50520 #else
50521 char (*f) () = $ac_func;
50522 #endif
50523 #ifdef __cplusplus
50525 #endif
50528 main ()
50530 return f != $ac_func;
50532 return 0;
50534 _ACEOF
50535 rm -f conftest.$ac_objext conftest$ac_exeext
50536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50537 (eval $ac_link) 2>&5
50538 ac_status=$?
50539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50540 (exit $ac_status); } &&
50541 { ac_try='test -s conftest$ac_exeext'
50542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50543 (eval $ac_try) 2>&5
50544 ac_status=$?
50545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50546 (exit $ac_status); }; }; then
50547 eval "$as_ac_var=yes"
50548 else
50549 echo "$as_me: failed program was:" >&5
50550 sed 's/^/| /' conftest.$ac_ext >&5
50552 eval "$as_ac_var=no"
50554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50558 if test `eval echo '${'$as_ac_var'}'` = yes; then
50559 cat >>confdefs.h <<_ACEOF
50560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50561 _ACEOF
50563 else
50564 ac_wfuncs=no
50566 done
50569 # Checks for wide character functions that are not required
50570 # for basic wchar_t support. Don't disable support if they are missing.
50571 # Injection of these is wrapped with guard macros.
50577 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
50579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50580 echo "$as_me:$LINENO: checking for $ac_func" >&5
50581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50582 if eval "test \"\${$as_ac_var+set}\" = set"; then
50583 echo $ECHO_N "(cached) $ECHO_C" >&6
50584 else
50585 if test x$gcc_no_link = xyes; then
50586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50588 { (exit 1); exit 1; }; }
50590 cat >conftest.$ac_ext <<_ACEOF
50591 #line $LINENO "configure"
50592 /* confdefs.h. */
50593 _ACEOF
50594 cat confdefs.h >>conftest.$ac_ext
50595 cat >>conftest.$ac_ext <<_ACEOF
50596 /* end confdefs.h. */
50597 /* System header to define __stub macros and hopefully few prototypes,
50598 which can conflict with char $ac_func (); below.
50599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50600 <limits.h> exists even on freestanding compilers. */
50601 #ifdef __STDC__
50602 # include <limits.h>
50603 #else
50604 # include <assert.h>
50605 #endif
50606 /* Override any gcc2 internal prototype to avoid an error. */
50607 #ifdef __cplusplus
50608 extern "C"
50610 #endif
50611 /* We use char because int might match the return type of a gcc2
50612 builtin and then its argument prototype would still apply. */
50613 char $ac_func ();
50614 /* The GNU C library defines this for functions which it implements
50615 to always fail with ENOSYS. Some functions are actually named
50616 something starting with __ and the normal name is an alias. */
50617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50618 choke me
50619 #else
50620 char (*f) () = $ac_func;
50621 #endif
50622 #ifdef __cplusplus
50624 #endif
50627 main ()
50629 return f != $ac_func;
50631 return 0;
50633 _ACEOF
50634 rm -f conftest.$ac_objext conftest$ac_exeext
50635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50636 (eval $ac_link) 2>&5
50637 ac_status=$?
50638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50639 (exit $ac_status); } &&
50640 { ac_try='test -s conftest$ac_exeext'
50641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50642 (eval $ac_try) 2>&5
50643 ac_status=$?
50644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50645 (exit $ac_status); }; }; then
50646 eval "$as_ac_var=yes"
50647 else
50648 echo "$as_me: failed program was:" >&5
50649 sed 's/^/| /' conftest.$ac_ext >&5
50651 eval "$as_ac_var=no"
50653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50657 if test `eval echo '${'$as_ac_var'}'` = yes; then
50658 cat >>confdefs.h <<_ACEOF
50659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50660 _ACEOF
50663 done
50666 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50667 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50668 if test x"$has_weof" = xyes &&
50669 test x"$has_wchar_minmax" = xyes &&
50670 test x"$ac_wfuncs" = xyes;
50671 then
50672 ac_isoC99_wchar_t=yes
50673 else
50674 ac_isoC99_wchar_t=no
50676 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50677 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50679 # Use iconv for wchar_t to char conversions. As such, check for
50680 # X/Open Portability Guide, version 2 features (XPG2).
50681 if test "${ac_cv_header_iconv_h+set}" = set; then
50682 echo "$as_me:$LINENO: checking for iconv.h" >&5
50683 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50684 if test "${ac_cv_header_iconv_h+set}" = set; then
50685 echo $ECHO_N "(cached) $ECHO_C" >&6
50687 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50688 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50689 else
50690 # Is the header compilable?
50691 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50692 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50693 cat >conftest.$ac_ext <<_ACEOF
50694 #line $LINENO "configure"
50695 /* confdefs.h. */
50696 _ACEOF
50697 cat confdefs.h >>conftest.$ac_ext
50698 cat >>conftest.$ac_ext <<_ACEOF
50699 /* end confdefs.h. */
50700 $ac_includes_default
50701 #include <iconv.h>
50702 _ACEOF
50703 rm -f conftest.$ac_objext
50704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50705 (eval $ac_compile) 2>&5
50706 ac_status=$?
50707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50708 (exit $ac_status); } &&
50709 { ac_try='test -s conftest.$ac_objext'
50710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50711 (eval $ac_try) 2>&5
50712 ac_status=$?
50713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50714 (exit $ac_status); }; }; then
50715 ac_header_compiler=yes
50716 else
50717 echo "$as_me: failed program was:" >&5
50718 sed 's/^/| /' conftest.$ac_ext >&5
50720 ac_header_compiler=no
50722 rm -f conftest.$ac_objext conftest.$ac_ext
50723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50724 echo "${ECHO_T}$ac_header_compiler" >&6
50726 # Is the header present?
50727 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50728 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50729 cat >conftest.$ac_ext <<_ACEOF
50730 #line $LINENO "configure"
50731 /* confdefs.h. */
50732 _ACEOF
50733 cat confdefs.h >>conftest.$ac_ext
50734 cat >>conftest.$ac_ext <<_ACEOF
50735 /* end confdefs.h. */
50736 #include <iconv.h>
50737 _ACEOF
50738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50740 ac_status=$?
50741 grep -v '^ *+' conftest.er1 >conftest.err
50742 rm -f conftest.er1
50743 cat conftest.err >&5
50744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50745 (exit $ac_status); } >/dev/null; then
50746 if test -s conftest.err; then
50747 ac_cpp_err=$ac_c_preproc_warn_flag
50748 else
50749 ac_cpp_err=
50751 else
50752 ac_cpp_err=yes
50754 if test -z "$ac_cpp_err"; then
50755 ac_header_preproc=yes
50756 else
50757 echo "$as_me: failed program was:" >&5
50758 sed 's/^/| /' conftest.$ac_ext >&5
50760 ac_header_preproc=no
50762 rm -f conftest.err conftest.$ac_ext
50763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50764 echo "${ECHO_T}$ac_header_preproc" >&6
50766 # So? What about this header?
50767 case $ac_header_compiler:$ac_header_preproc in
50768 yes:no )
50769 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50770 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50771 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50772 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50774 cat <<\_ASBOX
50775 ## ------------------------------------ ##
50776 ## Report this to bug-autoconf@gnu.org. ##
50777 ## ------------------------------------ ##
50778 _ASBOX
50780 sed "s/^/$as_me: WARNING: /" >&2
50782 no:yes )
50783 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50784 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50785 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50786 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50787 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50788 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50790 cat <<\_ASBOX
50791 ## ------------------------------------ ##
50792 ## Report this to bug-autoconf@gnu.org. ##
50793 ## ------------------------------------ ##
50794 _ASBOX
50796 sed "s/^/$as_me: WARNING: /" >&2
50798 esac
50799 echo "$as_me:$LINENO: checking for iconv.h" >&5
50800 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50801 if test "${ac_cv_header_iconv_h+set}" = set; then
50802 echo $ECHO_N "(cached) $ECHO_C" >&6
50803 else
50804 ac_cv_header_iconv_h=$ac_header_preproc
50806 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50807 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50810 if test $ac_cv_header_iconv_h = yes; then
50811 ac_has_iconv_h=yes
50812 else
50813 ac_has_iconv_h=no
50817 if test "${ac_cv_header_langinfo_h+set}" = set; then
50818 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50819 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50820 if test "${ac_cv_header_langinfo_h+set}" = set; then
50821 echo $ECHO_N "(cached) $ECHO_C" >&6
50823 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50824 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50825 else
50826 # Is the header compilable?
50827 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50828 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50829 cat >conftest.$ac_ext <<_ACEOF
50830 #line $LINENO "configure"
50831 /* confdefs.h. */
50832 _ACEOF
50833 cat confdefs.h >>conftest.$ac_ext
50834 cat >>conftest.$ac_ext <<_ACEOF
50835 /* end confdefs.h. */
50836 $ac_includes_default
50837 #include <langinfo.h>
50838 _ACEOF
50839 rm -f conftest.$ac_objext
50840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50841 (eval $ac_compile) 2>&5
50842 ac_status=$?
50843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50844 (exit $ac_status); } &&
50845 { ac_try='test -s conftest.$ac_objext'
50846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50847 (eval $ac_try) 2>&5
50848 ac_status=$?
50849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50850 (exit $ac_status); }; }; then
50851 ac_header_compiler=yes
50852 else
50853 echo "$as_me: failed program was:" >&5
50854 sed 's/^/| /' conftest.$ac_ext >&5
50856 ac_header_compiler=no
50858 rm -f conftest.$ac_objext conftest.$ac_ext
50859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50860 echo "${ECHO_T}$ac_header_compiler" >&6
50862 # Is the header present?
50863 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50864 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50865 cat >conftest.$ac_ext <<_ACEOF
50866 #line $LINENO "configure"
50867 /* confdefs.h. */
50868 _ACEOF
50869 cat confdefs.h >>conftest.$ac_ext
50870 cat >>conftest.$ac_ext <<_ACEOF
50871 /* end confdefs.h. */
50872 #include <langinfo.h>
50873 _ACEOF
50874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50876 ac_status=$?
50877 grep -v '^ *+' conftest.er1 >conftest.err
50878 rm -f conftest.er1
50879 cat conftest.err >&5
50880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50881 (exit $ac_status); } >/dev/null; then
50882 if test -s conftest.err; then
50883 ac_cpp_err=$ac_c_preproc_warn_flag
50884 else
50885 ac_cpp_err=
50887 else
50888 ac_cpp_err=yes
50890 if test -z "$ac_cpp_err"; then
50891 ac_header_preproc=yes
50892 else
50893 echo "$as_me: failed program was:" >&5
50894 sed 's/^/| /' conftest.$ac_ext >&5
50896 ac_header_preproc=no
50898 rm -f conftest.err conftest.$ac_ext
50899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50900 echo "${ECHO_T}$ac_header_preproc" >&6
50902 # So? What about this header?
50903 case $ac_header_compiler:$ac_header_preproc in
50904 yes:no )
50905 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50906 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50907 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50908 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50910 cat <<\_ASBOX
50911 ## ------------------------------------ ##
50912 ## Report this to bug-autoconf@gnu.org. ##
50913 ## ------------------------------------ ##
50914 _ASBOX
50916 sed "s/^/$as_me: WARNING: /" >&2
50918 no:yes )
50919 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50920 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50921 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50922 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50923 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50924 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50926 cat <<\_ASBOX
50927 ## ------------------------------------ ##
50928 ## Report this to bug-autoconf@gnu.org. ##
50929 ## ------------------------------------ ##
50930 _ASBOX
50932 sed "s/^/$as_me: WARNING: /" >&2
50934 esac
50935 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50936 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50937 if test "${ac_cv_header_langinfo_h+set}" = set; then
50938 echo $ECHO_N "(cached) $ECHO_C" >&6
50939 else
50940 ac_cv_header_langinfo_h=$ac_header_preproc
50942 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50943 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50946 if test $ac_cv_header_langinfo_h = yes; then
50947 ac_has_langinfo_h=yes
50948 else
50949 ac_has_langinfo_h=no
50954 # Check for existence of libiconv.a providing XPG2 wchar_t support.
50955 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50956 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50957 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50958 echo $ECHO_N "(cached) $ECHO_C" >&6
50959 else
50960 ac_check_lib_save_LIBS=$LIBS
50961 LIBS="-liconv $LIBS"
50962 if test x$gcc_no_link = xyes; then
50963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50965 { (exit 1); exit 1; }; }
50967 cat >conftest.$ac_ext <<_ACEOF
50968 #line $LINENO "configure"
50969 /* confdefs.h. */
50970 _ACEOF
50971 cat confdefs.h >>conftest.$ac_ext
50972 cat >>conftest.$ac_ext <<_ACEOF
50973 /* end confdefs.h. */
50975 /* Override any gcc2 internal prototype to avoid an error. */
50976 #ifdef __cplusplus
50977 extern "C"
50978 #endif
50979 /* We use char because int might match the return type of a gcc2
50980 builtin and then its argument prototype would still apply. */
50981 char iconv ();
50983 main ()
50985 iconv ();
50987 return 0;
50989 _ACEOF
50990 rm -f conftest.$ac_objext conftest$ac_exeext
50991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50992 (eval $ac_link) 2>&5
50993 ac_status=$?
50994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50995 (exit $ac_status); } &&
50996 { ac_try='test -s conftest$ac_exeext'
50997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50998 (eval $ac_try) 2>&5
50999 ac_status=$?
51000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51001 (exit $ac_status); }; }; then
51002 ac_cv_lib_iconv_iconv=yes
51003 else
51004 echo "$as_me: failed program was:" >&5
51005 sed 's/^/| /' conftest.$ac_ext >&5
51007 ac_cv_lib_iconv_iconv=no
51009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51010 LIBS=$ac_check_lib_save_LIBS
51012 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
51013 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
51014 if test $ac_cv_lib_iconv_iconv = yes; then
51015 libiconv="-liconv"
51018 ac_save_LIBS="$LIBS"
51019 LIBS="$LIBS $libiconv"
51025 for ac_func in iconv_open iconv_close iconv nl_langinfo
51027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51028 echo "$as_me:$LINENO: checking for $ac_func" >&5
51029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51030 if eval "test \"\${$as_ac_var+set}\" = set"; then
51031 echo $ECHO_N "(cached) $ECHO_C" >&6
51032 else
51033 if test x$gcc_no_link = xyes; then
51034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51036 { (exit 1); exit 1; }; }
51038 cat >conftest.$ac_ext <<_ACEOF
51039 #line $LINENO "configure"
51040 /* confdefs.h. */
51041 _ACEOF
51042 cat confdefs.h >>conftest.$ac_ext
51043 cat >>conftest.$ac_ext <<_ACEOF
51044 /* end confdefs.h. */
51045 /* System header to define __stub macros and hopefully few prototypes,
51046 which can conflict with char $ac_func (); below.
51047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51048 <limits.h> exists even on freestanding compilers. */
51049 #ifdef __STDC__
51050 # include <limits.h>
51051 #else
51052 # include <assert.h>
51053 #endif
51054 /* Override any gcc2 internal prototype to avoid an error. */
51055 #ifdef __cplusplus
51056 extern "C"
51058 #endif
51059 /* We use char because int might match the return type of a gcc2
51060 builtin and then its argument prototype would still apply. */
51061 char $ac_func ();
51062 /* The GNU C library defines this for functions which it implements
51063 to always fail with ENOSYS. Some functions are actually named
51064 something starting with __ and the normal name is an alias. */
51065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51066 choke me
51067 #else
51068 char (*f) () = $ac_func;
51069 #endif
51070 #ifdef __cplusplus
51072 #endif
51075 main ()
51077 return f != $ac_func;
51079 return 0;
51081 _ACEOF
51082 rm -f conftest.$ac_objext conftest$ac_exeext
51083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51084 (eval $ac_link) 2>&5
51085 ac_status=$?
51086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51087 (exit $ac_status); } &&
51088 { ac_try='test -s conftest$ac_exeext'
51089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51090 (eval $ac_try) 2>&5
51091 ac_status=$?
51092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51093 (exit $ac_status); }; }; then
51094 eval "$as_ac_var=yes"
51095 else
51096 echo "$as_me: failed program was:" >&5
51097 sed 's/^/| /' conftest.$ac_ext >&5
51099 eval "$as_ac_var=no"
51101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51105 if test `eval echo '${'$as_ac_var'}'` = yes; then
51106 cat >>confdefs.h <<_ACEOF
51107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51108 _ACEOF
51109 ac_XPG2funcs=yes
51110 else
51111 ac_XPG2funcs=no
51113 done
51116 LIBS="$ac_save_LIBS"
51118 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
51119 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
51120 if test x"$ac_has_iconv_h" = xyes &&
51121 test x"$ac_has_langinfo_h" = xyes &&
51122 test x"$ac_XPG2funcs" = xyes;
51123 then
51124 ac_XPG2_wchar_t=yes
51125 else
51126 ac_XPG2_wchar_t=no
51128 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
51129 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
51131 # At the moment, only enable wchar_t specializations if all the
51132 # above support is present.
51133 if test x"$ac_isoC99_wchar_t" = xyes &&
51134 test x"$ac_XPG2_wchar_t" = xyes;
51135 then
51136 cat >>confdefs.h <<\_ACEOF
51137 #define _GLIBCXX_USE_WCHAR_T 1
51138 _ACEOF
51140 enable_wchar_t=yes
51143 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
51144 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
51145 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
51146 echo "${ECHO_T}$enable_wchar_t" >&6
51148 cat >>confdefs.h <<\_ACEOF
51149 #define HAVE_COPYSIGN 1
51150 _ACEOF
51152 cat >>confdefs.h <<\_ACEOF
51153 #define HAVE_COPYSIGNF 1
51154 _ACEOF
51156 cat >>confdefs.h <<\_ACEOF
51157 #define HAVE_FREXPF 1
51158 _ACEOF
51160 cat >>confdefs.h <<\_ACEOF
51161 #define HAVE_HYPOT 1
51162 _ACEOF
51164 case "$target" in
51165 *-hpux10*)
51166 cat >>confdefs.h <<\_ACEOF
51167 #define HAVE_FINITE 1
51168 _ACEOF
51170 cat >>confdefs.h <<\_ACEOF
51171 #define HAVE_FINITEF 1
51172 _ACEOF
51174 cat >>confdefs.h <<\_ACEOF
51175 #define HAVE_ISINF 1
51176 _ACEOF
51178 cat >>confdefs.h <<\_ACEOF
51179 #define HAVE_ISINFF 1
51180 _ACEOF
51182 cat >>confdefs.h <<\_ACEOF
51183 #define HAVE_ISNAN 1
51184 _ACEOF
51186 cat >>confdefs.h <<\_ACEOF
51187 #define HAVE_ISNANF 1
51188 _ACEOF
51191 esac
51193 *-linux* | *-uclinux* | *-gnu*)
51206 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
51207 machine/endian.h machine/param.h sys/machine.h sys/types.h \
51208 fp.h locale.h float.h inttypes.h
51210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51212 echo "$as_me:$LINENO: checking for $ac_header" >&5
51213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51215 echo $ECHO_N "(cached) $ECHO_C" >&6
51217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51219 else
51220 # Is the header compilable?
51221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51223 cat >conftest.$ac_ext <<_ACEOF
51224 #line $LINENO "configure"
51225 /* confdefs.h. */
51226 _ACEOF
51227 cat confdefs.h >>conftest.$ac_ext
51228 cat >>conftest.$ac_ext <<_ACEOF
51229 /* end confdefs.h. */
51230 $ac_includes_default
51231 #include <$ac_header>
51232 _ACEOF
51233 rm -f conftest.$ac_objext
51234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51235 (eval $ac_compile) 2>&5
51236 ac_status=$?
51237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51238 (exit $ac_status); } &&
51239 { ac_try='test -s conftest.$ac_objext'
51240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51241 (eval $ac_try) 2>&5
51242 ac_status=$?
51243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51244 (exit $ac_status); }; }; then
51245 ac_header_compiler=yes
51246 else
51247 echo "$as_me: failed program was:" >&5
51248 sed 's/^/| /' conftest.$ac_ext >&5
51250 ac_header_compiler=no
51252 rm -f conftest.$ac_objext conftest.$ac_ext
51253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51254 echo "${ECHO_T}$ac_header_compiler" >&6
51256 # Is the header present?
51257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51259 cat >conftest.$ac_ext <<_ACEOF
51260 #line $LINENO "configure"
51261 /* confdefs.h. */
51262 _ACEOF
51263 cat confdefs.h >>conftest.$ac_ext
51264 cat >>conftest.$ac_ext <<_ACEOF
51265 /* end confdefs.h. */
51266 #include <$ac_header>
51267 _ACEOF
51268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51270 ac_status=$?
51271 grep -v '^ *+' conftest.er1 >conftest.err
51272 rm -f conftest.er1
51273 cat conftest.err >&5
51274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51275 (exit $ac_status); } >/dev/null; then
51276 if test -s conftest.err; then
51277 ac_cpp_err=$ac_c_preproc_warn_flag
51278 else
51279 ac_cpp_err=
51281 else
51282 ac_cpp_err=yes
51284 if test -z "$ac_cpp_err"; then
51285 ac_header_preproc=yes
51286 else
51287 echo "$as_me: failed program was:" >&5
51288 sed 's/^/| /' conftest.$ac_ext >&5
51290 ac_header_preproc=no
51292 rm -f conftest.err conftest.$ac_ext
51293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51294 echo "${ECHO_T}$ac_header_preproc" >&6
51296 # So? What about this header?
51297 case $ac_header_compiler:$ac_header_preproc in
51298 yes:no )
51299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51304 cat <<\_ASBOX
51305 ## ------------------------------------ ##
51306 ## Report this to bug-autoconf@gnu.org. ##
51307 ## ------------------------------------ ##
51308 _ASBOX
51310 sed "s/^/$as_me: WARNING: /" >&2
51312 no:yes )
51313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51320 cat <<\_ASBOX
51321 ## ------------------------------------ ##
51322 ## Report this to bug-autoconf@gnu.org. ##
51323 ## ------------------------------------ ##
51324 _ASBOX
51326 sed "s/^/$as_me: WARNING: /" >&2
51328 esac
51329 echo "$as_me:$LINENO: checking for $ac_header" >&5
51330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51332 echo $ECHO_N "(cached) $ECHO_C" >&6
51333 else
51334 eval "$as_ac_Header=$ac_header_preproc"
51336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51341 cat >>confdefs.h <<_ACEOF
51342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51343 _ACEOF
51347 done
51349 SECTION_FLAGS='-ffunction-sections -fdata-sections'
51352 # If we're not using GNU ld, then there's no point in even trying these
51353 # tests. Check for that first. We should have already tested for gld
51354 # by now (in libtool), but require it now just to be safe...
51355 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
51356 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
51360 # The name set by libtool depends on the version of libtool. Shame on us
51361 # for depending on an impl detail, but c'est la vie. Older versions used
51362 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
51363 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
51364 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
51365 # set (hence we're using an older libtool), then set it.
51366 if test x${with_gnu_ld+set} != xset; then
51367 if test x${ac_cv_prog_gnu_ld+set} != xset; then
51368 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
51369 with_gnu_ld=no
51370 else
51371 with_gnu_ld=$ac_cv_prog_gnu_ld
51375 # Start by getting the version number. I think the libtool test already
51376 # does some of this, but throws away the result.
51378 ldver=`$LD --version 2>/dev/null | head -1 | \
51379 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
51381 glibcxx_gnu_ld_version=`echo $ldver | \
51382 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
51384 # Set --gc-sections.
51385 if test "$with_gnu_ld" = "notbroken"; then
51386 # GNU ld it is! Joy and bunny rabbits!
51388 # All these tests are for C++; save the language and the compiler flags.
51389 # Need to do this so that g++ won't try to link in libstdc++
51390 ac_test_CFLAGS="${CFLAGS+set}"
51391 ac_save_CFLAGS="$CFLAGS"
51392 CFLAGS='-x c++ -Wl,--gc-sections'
51394 # Check for -Wl,--gc-sections
51395 # XXX This test is broken at the moment, as symbols required for linking
51396 # are now in libsupc++ (not built yet). In addition, this test has
51397 # cored on solaris in the past. In addition, --gc-sections doesn't
51398 # really work at the moment (keeps on discarding used sections, first
51399 # .eh_frame and now some of the glibc sections for iconv).
51400 # Bzzzzt. Thanks for playing, maybe next time.
51401 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
51402 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
51403 if test "$cross_compiling" = yes; then
51404 ac_sectionLDflags=yes
51405 else
51406 cat >conftest.$ac_ext <<_ACEOF
51407 #line $LINENO "configure"
51408 /* confdefs.h. */
51409 _ACEOF
51410 cat confdefs.h >>conftest.$ac_ext
51411 cat >>conftest.$ac_ext <<_ACEOF
51412 /* end confdefs.h. */
51414 int main(void)
51416 try { throw 1; }
51417 catch (...) { };
51418 return 0;
51421 _ACEOF
51422 rm -f conftest$ac_exeext
51423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51424 (eval $ac_link) 2>&5
51425 ac_status=$?
51426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51429 (eval $ac_try) 2>&5
51430 ac_status=$?
51431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51432 (exit $ac_status); }; }; then
51433 ac_sectionLDflags=yes
51434 else
51435 echo "$as_me: program exited with status $ac_status" >&5
51436 echo "$as_me: failed program was:" >&5
51437 sed 's/^/| /' conftest.$ac_ext >&5
51439 ( exit $ac_status )
51440 ac_sectionLDflags=no
51442 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51444 if test "$ac_test_CFLAGS" = set; then
51445 CFLAGS="$ac_save_CFLAGS"
51446 else
51447 # this is the suspicious part
51448 CFLAGS=''
51450 if test "$ac_sectionLDflags" = "yes"; then
51451 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
51453 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
51454 echo "${ECHO_T}$ac_sectionLDflags" >&6
51457 # Set linker optimization flags.
51458 if test x"$with_gnu_ld" = x"yes"; then
51459 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
51467 echo "$as_me:$LINENO: checking for main in -lm" >&5
51468 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
51469 if test "${ac_cv_lib_m_main+set}" = set; then
51470 echo $ECHO_N "(cached) $ECHO_C" >&6
51471 else
51472 ac_check_lib_save_LIBS=$LIBS
51473 LIBS="-lm $LIBS"
51474 if test x$gcc_no_link = xyes; then
51475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51477 { (exit 1); exit 1; }; }
51479 cat >conftest.$ac_ext <<_ACEOF
51480 #line $LINENO "configure"
51481 /* confdefs.h. */
51482 _ACEOF
51483 cat confdefs.h >>conftest.$ac_ext
51484 cat >>conftest.$ac_ext <<_ACEOF
51485 /* end confdefs.h. */
51489 main ()
51491 main ();
51493 return 0;
51495 _ACEOF
51496 rm -f conftest.$ac_objext conftest$ac_exeext
51497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51498 (eval $ac_link) 2>&5
51499 ac_status=$?
51500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51501 (exit $ac_status); } &&
51502 { ac_try='test -s conftest$ac_exeext'
51503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504 (eval $ac_try) 2>&5
51505 ac_status=$?
51506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507 (exit $ac_status); }; }; then
51508 ac_cv_lib_m_main=yes
51509 else
51510 echo "$as_me: failed program was:" >&5
51511 sed 's/^/| /' conftest.$ac_ext >&5
51513 ac_cv_lib_m_main=no
51515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51516 LIBS=$ac_check_lib_save_LIBS
51518 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
51519 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
51520 if test $ac_cv_lib_m_main = yes; then
51521 cat >>confdefs.h <<_ACEOF
51522 #define HAVE_LIBM 1
51523 _ACEOF
51525 LIBS="-lm $LIBS"
51531 for ac_func in nan copysignf
51533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51534 echo "$as_me:$LINENO: checking for $ac_func" >&5
51535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51536 if eval "test \"\${$as_ac_var+set}\" = set"; then
51537 echo $ECHO_N "(cached) $ECHO_C" >&6
51538 else
51539 if test x$gcc_no_link = xyes; then
51540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51542 { (exit 1); exit 1; }; }
51544 cat >conftest.$ac_ext <<_ACEOF
51545 #line $LINENO "configure"
51546 /* confdefs.h. */
51547 _ACEOF
51548 cat confdefs.h >>conftest.$ac_ext
51549 cat >>conftest.$ac_ext <<_ACEOF
51550 /* end confdefs.h. */
51551 /* System header to define __stub macros and hopefully few prototypes,
51552 which can conflict with char $ac_func (); below.
51553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51554 <limits.h> exists even on freestanding compilers. */
51555 #ifdef __STDC__
51556 # include <limits.h>
51557 #else
51558 # include <assert.h>
51559 #endif
51560 /* Override any gcc2 internal prototype to avoid an error. */
51561 #ifdef __cplusplus
51562 extern "C"
51564 #endif
51565 /* We use char because int might match the return type of a gcc2
51566 builtin and then its argument prototype would still apply. */
51567 char $ac_func ();
51568 /* The GNU C library defines this for functions which it implements
51569 to always fail with ENOSYS. Some functions are actually named
51570 something starting with __ and the normal name is an alias. */
51571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51572 choke me
51573 #else
51574 char (*f) () = $ac_func;
51575 #endif
51576 #ifdef __cplusplus
51578 #endif
51581 main ()
51583 return f != $ac_func;
51585 return 0;
51587 _ACEOF
51588 rm -f conftest.$ac_objext conftest$ac_exeext
51589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51590 (eval $ac_link) 2>&5
51591 ac_status=$?
51592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51593 (exit $ac_status); } &&
51594 { ac_try='test -s conftest$ac_exeext'
51595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51596 (eval $ac_try) 2>&5
51597 ac_status=$?
51598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51599 (exit $ac_status); }; }; then
51600 eval "$as_ac_var=yes"
51601 else
51602 echo "$as_me: failed program was:" >&5
51603 sed 's/^/| /' conftest.$ac_ext >&5
51605 eval "$as_ac_var=no"
51607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51611 if test `eval echo '${'$as_ac_var'}'` = yes; then
51612 cat >>confdefs.h <<_ACEOF
51613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51614 _ACEOF
51616 else
51617 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
51619 done
51623 for ac_func in __signbit
51625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51626 echo "$as_me:$LINENO: checking for $ac_func" >&5
51627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51628 if eval "test \"\${$as_ac_var+set}\" = set"; then
51629 echo $ECHO_N "(cached) $ECHO_C" >&6
51630 else
51631 if test x$gcc_no_link = xyes; then
51632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51634 { (exit 1); exit 1; }; }
51636 cat >conftest.$ac_ext <<_ACEOF
51637 #line $LINENO "configure"
51638 /* confdefs.h. */
51639 _ACEOF
51640 cat confdefs.h >>conftest.$ac_ext
51641 cat >>conftest.$ac_ext <<_ACEOF
51642 /* end confdefs.h. */
51643 /* System header to define __stub macros and hopefully few prototypes,
51644 which can conflict with char $ac_func (); below.
51645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51646 <limits.h> exists even on freestanding compilers. */
51647 #ifdef __STDC__
51648 # include <limits.h>
51649 #else
51650 # include <assert.h>
51651 #endif
51652 /* Override any gcc2 internal prototype to avoid an error. */
51653 #ifdef __cplusplus
51654 extern "C"
51656 #endif
51657 /* We use char because int might match the return type of a gcc2
51658 builtin and then its argument prototype would still apply. */
51659 char $ac_func ();
51660 /* The GNU C library defines this for functions which it implements
51661 to always fail with ENOSYS. Some functions are actually named
51662 something starting with __ and the normal name is an alias. */
51663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51664 choke me
51665 #else
51666 char (*f) () = $ac_func;
51667 #endif
51668 #ifdef __cplusplus
51670 #endif
51673 main ()
51675 return f != $ac_func;
51677 return 0;
51679 _ACEOF
51680 rm -f conftest.$ac_objext conftest$ac_exeext
51681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51682 (eval $ac_link) 2>&5
51683 ac_status=$?
51684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51685 (exit $ac_status); } &&
51686 { ac_try='test -s conftest$ac_exeext'
51687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51688 (eval $ac_try) 2>&5
51689 ac_status=$?
51690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51691 (exit $ac_status); }; }; then
51692 eval "$as_ac_var=yes"
51693 else
51694 echo "$as_me: failed program was:" >&5
51695 sed 's/^/| /' conftest.$ac_ext >&5
51697 eval "$as_ac_var=no"
51699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51703 if test `eval echo '${'$as_ac_var'}'` = yes; then
51704 cat >>confdefs.h <<_ACEOF
51705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51706 _ACEOF
51708 else
51709 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51711 done
51714 for ac_func in __signbitf
51716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51717 echo "$as_me:$LINENO: checking for $ac_func" >&5
51718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51719 if eval "test \"\${$as_ac_var+set}\" = set"; then
51720 echo $ECHO_N "(cached) $ECHO_C" >&6
51721 else
51722 if test x$gcc_no_link = xyes; then
51723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51725 { (exit 1); exit 1; }; }
51727 cat >conftest.$ac_ext <<_ACEOF
51728 #line $LINENO "configure"
51729 /* confdefs.h. */
51730 _ACEOF
51731 cat confdefs.h >>conftest.$ac_ext
51732 cat >>conftest.$ac_ext <<_ACEOF
51733 /* end confdefs.h. */
51734 /* System header to define __stub macros and hopefully few prototypes,
51735 which can conflict with char $ac_func (); below.
51736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51737 <limits.h> exists even on freestanding compilers. */
51738 #ifdef __STDC__
51739 # include <limits.h>
51740 #else
51741 # include <assert.h>
51742 #endif
51743 /* Override any gcc2 internal prototype to avoid an error. */
51744 #ifdef __cplusplus
51745 extern "C"
51747 #endif
51748 /* We use char because int might match the return type of a gcc2
51749 builtin and then its argument prototype would still apply. */
51750 char $ac_func ();
51751 /* The GNU C library defines this for functions which it implements
51752 to always fail with ENOSYS. Some functions are actually named
51753 something starting with __ and the normal name is an alias. */
51754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51755 choke me
51756 #else
51757 char (*f) () = $ac_func;
51758 #endif
51759 #ifdef __cplusplus
51761 #endif
51764 main ()
51766 return f != $ac_func;
51768 return 0;
51770 _ACEOF
51771 rm -f conftest.$ac_objext conftest$ac_exeext
51772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51773 (eval $ac_link) 2>&5
51774 ac_status=$?
51775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51776 (exit $ac_status); } &&
51777 { ac_try='test -s conftest$ac_exeext'
51778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51779 (eval $ac_try) 2>&5
51780 ac_status=$?
51781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51782 (exit $ac_status); }; }; then
51783 eval "$as_ac_var=yes"
51784 else
51785 echo "$as_me: failed program was:" >&5
51786 sed 's/^/| /' conftest.$ac_ext >&5
51788 eval "$as_ac_var=no"
51790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51794 if test `eval echo '${'$as_ac_var'}'` = yes; then
51795 cat >>confdefs.h <<_ACEOF
51796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51797 _ACEOF
51799 else
51800 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51802 done
51805 if test x$ac_cv_func_copysignl = x"yes"; then
51807 for ac_func in __signbitl
51809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51810 echo "$as_me:$LINENO: checking for $ac_func" >&5
51811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51812 if eval "test \"\${$as_ac_var+set}\" = set"; then
51813 echo $ECHO_N "(cached) $ECHO_C" >&6
51814 else
51815 if test x$gcc_no_link = xyes; then
51816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51818 { (exit 1); exit 1; }; }
51820 cat >conftest.$ac_ext <<_ACEOF
51821 #line $LINENO "configure"
51822 /* confdefs.h. */
51823 _ACEOF
51824 cat confdefs.h >>conftest.$ac_ext
51825 cat >>conftest.$ac_ext <<_ACEOF
51826 /* end confdefs.h. */
51827 /* System header to define __stub macros and hopefully few prototypes,
51828 which can conflict with char $ac_func (); below.
51829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51830 <limits.h> exists even on freestanding compilers. */
51831 #ifdef __STDC__
51832 # include <limits.h>
51833 #else
51834 # include <assert.h>
51835 #endif
51836 /* Override any gcc2 internal prototype to avoid an error. */
51837 #ifdef __cplusplus
51838 extern "C"
51840 #endif
51841 /* We use char because int might match the return type of a gcc2
51842 builtin and then its argument prototype would still apply. */
51843 char $ac_func ();
51844 /* The GNU C library defines this for functions which it implements
51845 to always fail with ENOSYS. Some functions are actually named
51846 something starting with __ and the normal name is an alias. */
51847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51848 choke me
51849 #else
51850 char (*f) () = $ac_func;
51851 #endif
51852 #ifdef __cplusplus
51854 #endif
51857 main ()
51859 return f != $ac_func;
51861 return 0;
51863 _ACEOF
51864 rm -f conftest.$ac_objext conftest$ac_exeext
51865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51866 (eval $ac_link) 2>&5
51867 ac_status=$?
51868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51869 (exit $ac_status); } &&
51870 { ac_try='test -s conftest$ac_exeext'
51871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51872 (eval $ac_try) 2>&5
51873 ac_status=$?
51874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51875 (exit $ac_status); }; }; then
51876 eval "$as_ac_var=yes"
51877 else
51878 echo "$as_me: failed program was:" >&5
51879 sed 's/^/| /' conftest.$ac_ext >&5
51881 eval "$as_ac_var=no"
51883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51887 if test `eval echo '${'$as_ac_var'}'` = yes; then
51888 cat >>confdefs.h <<_ACEOF
51889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51890 _ACEOF
51892 else
51893 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51895 done
51899 # XXX Review this. Nothing uses it.
51900 if test -n "$LIBMATHOBJS"; then
51901 need_libmath=yes
51906 # Test wchar.h for mbstate_t, which is needed for char_traits and
51907 # others even if wchar_t support is not on.
51908 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51909 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51910 cat >conftest.$ac_ext <<_ACEOF
51911 #line $LINENO "configure"
51912 /* confdefs.h. */
51913 _ACEOF
51914 cat confdefs.h >>conftest.$ac_ext
51915 cat >>conftest.$ac_ext <<_ACEOF
51916 /* end confdefs.h. */
51917 #include <wchar.h>
51919 main ()
51921 mbstate_t teststate;
51923 return 0;
51925 _ACEOF
51926 rm -f conftest.$ac_objext
51927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51928 (eval $ac_compile) 2>&5
51929 ac_status=$?
51930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51931 (exit $ac_status); } &&
51932 { ac_try='test -s conftest.$ac_objext'
51933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51934 (eval $ac_try) 2>&5
51935 ac_status=$?
51936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51937 (exit $ac_status); }; }; then
51938 have_mbstate_t=yes
51939 else
51940 echo "$as_me: failed program was:" >&5
51941 sed 's/^/| /' conftest.$ac_ext >&5
51943 have_mbstate_t=no
51945 rm -f conftest.$ac_objext conftest.$ac_ext
51946 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51947 echo "${ECHO_T}$have_mbstate_t" >&6
51948 if test x"$have_mbstate_t" = xyes; then
51949 cat >>confdefs.h <<\_ACEOF
51950 #define HAVE_MBSTATE_T 1
51951 _ACEOF
51955 # Sanity check for existence of ISO C99 headers for extended encoding.
51957 for ac_header in wchar.h
51959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51961 echo "$as_me:$LINENO: checking for $ac_header" >&5
51962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51964 echo $ECHO_N "(cached) $ECHO_C" >&6
51966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51968 else
51969 # Is the header compilable?
51970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51972 cat >conftest.$ac_ext <<_ACEOF
51973 #line $LINENO "configure"
51974 /* confdefs.h. */
51975 _ACEOF
51976 cat confdefs.h >>conftest.$ac_ext
51977 cat >>conftest.$ac_ext <<_ACEOF
51978 /* end confdefs.h. */
51979 $ac_includes_default
51980 #include <$ac_header>
51981 _ACEOF
51982 rm -f conftest.$ac_objext
51983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51984 (eval $ac_compile) 2>&5
51985 ac_status=$?
51986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987 (exit $ac_status); } &&
51988 { ac_try='test -s conftest.$ac_objext'
51989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51990 (eval $ac_try) 2>&5
51991 ac_status=$?
51992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51993 (exit $ac_status); }; }; then
51994 ac_header_compiler=yes
51995 else
51996 echo "$as_me: failed program was:" >&5
51997 sed 's/^/| /' conftest.$ac_ext >&5
51999 ac_header_compiler=no
52001 rm -f conftest.$ac_objext conftest.$ac_ext
52002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52003 echo "${ECHO_T}$ac_header_compiler" >&6
52005 # Is the header present?
52006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52008 cat >conftest.$ac_ext <<_ACEOF
52009 #line $LINENO "configure"
52010 /* confdefs.h. */
52011 _ACEOF
52012 cat confdefs.h >>conftest.$ac_ext
52013 cat >>conftest.$ac_ext <<_ACEOF
52014 /* end confdefs.h. */
52015 #include <$ac_header>
52016 _ACEOF
52017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52019 ac_status=$?
52020 grep -v '^ *+' conftest.er1 >conftest.err
52021 rm -f conftest.er1
52022 cat conftest.err >&5
52023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52024 (exit $ac_status); } >/dev/null; then
52025 if test -s conftest.err; then
52026 ac_cpp_err=$ac_c_preproc_warn_flag
52027 else
52028 ac_cpp_err=
52030 else
52031 ac_cpp_err=yes
52033 if test -z "$ac_cpp_err"; then
52034 ac_header_preproc=yes
52035 else
52036 echo "$as_me: failed program was:" >&5
52037 sed 's/^/| /' conftest.$ac_ext >&5
52039 ac_header_preproc=no
52041 rm -f conftest.err conftest.$ac_ext
52042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52043 echo "${ECHO_T}$ac_header_preproc" >&6
52045 # So? What about this header?
52046 case $ac_header_compiler:$ac_header_preproc in
52047 yes:no )
52048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52053 cat <<\_ASBOX
52054 ## ------------------------------------ ##
52055 ## Report this to bug-autoconf@gnu.org. ##
52056 ## ------------------------------------ ##
52057 _ASBOX
52059 sed "s/^/$as_me: WARNING: /" >&2
52061 no:yes )
52062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52069 cat <<\_ASBOX
52070 ## ------------------------------------ ##
52071 ## Report this to bug-autoconf@gnu.org. ##
52072 ## ------------------------------------ ##
52073 _ASBOX
52075 sed "s/^/$as_me: WARNING: /" >&2
52077 esac
52078 echo "$as_me:$LINENO: checking for $ac_header" >&5
52079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52081 echo $ECHO_N "(cached) $ECHO_C" >&6
52082 else
52083 eval "$as_ac_Header=$ac_header_preproc"
52085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52090 cat >>confdefs.h <<_ACEOF
52091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52092 _ACEOF
52093 ac_has_wchar_h=yes
52094 else
52095 ac_has_wchar_h=no
52098 done
52101 for ac_header in wctype.h
52103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52105 echo "$as_me:$LINENO: checking for $ac_header" >&5
52106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52108 echo $ECHO_N "(cached) $ECHO_C" >&6
52110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52112 else
52113 # Is the header compilable?
52114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52116 cat >conftest.$ac_ext <<_ACEOF
52117 #line $LINENO "configure"
52118 /* confdefs.h. */
52119 _ACEOF
52120 cat confdefs.h >>conftest.$ac_ext
52121 cat >>conftest.$ac_ext <<_ACEOF
52122 /* end confdefs.h. */
52123 $ac_includes_default
52124 #include <$ac_header>
52125 _ACEOF
52126 rm -f conftest.$ac_objext
52127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52128 (eval $ac_compile) 2>&5
52129 ac_status=$?
52130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52131 (exit $ac_status); } &&
52132 { ac_try='test -s conftest.$ac_objext'
52133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52134 (eval $ac_try) 2>&5
52135 ac_status=$?
52136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52137 (exit $ac_status); }; }; then
52138 ac_header_compiler=yes
52139 else
52140 echo "$as_me: failed program was:" >&5
52141 sed 's/^/| /' conftest.$ac_ext >&5
52143 ac_header_compiler=no
52145 rm -f conftest.$ac_objext conftest.$ac_ext
52146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52147 echo "${ECHO_T}$ac_header_compiler" >&6
52149 # Is the header present?
52150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52152 cat >conftest.$ac_ext <<_ACEOF
52153 #line $LINENO "configure"
52154 /* confdefs.h. */
52155 _ACEOF
52156 cat confdefs.h >>conftest.$ac_ext
52157 cat >>conftest.$ac_ext <<_ACEOF
52158 /* end confdefs.h. */
52159 #include <$ac_header>
52160 _ACEOF
52161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52163 ac_status=$?
52164 grep -v '^ *+' conftest.er1 >conftest.err
52165 rm -f conftest.er1
52166 cat conftest.err >&5
52167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52168 (exit $ac_status); } >/dev/null; then
52169 if test -s conftest.err; then
52170 ac_cpp_err=$ac_c_preproc_warn_flag
52171 else
52172 ac_cpp_err=
52174 else
52175 ac_cpp_err=yes
52177 if test -z "$ac_cpp_err"; then
52178 ac_header_preproc=yes
52179 else
52180 echo "$as_me: failed program was:" >&5
52181 sed 's/^/| /' conftest.$ac_ext >&5
52183 ac_header_preproc=no
52185 rm -f conftest.err conftest.$ac_ext
52186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52187 echo "${ECHO_T}$ac_header_preproc" >&6
52189 # So? What about this header?
52190 case $ac_header_compiler:$ac_header_preproc in
52191 yes:no )
52192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52197 cat <<\_ASBOX
52198 ## ------------------------------------ ##
52199 ## Report this to bug-autoconf@gnu.org. ##
52200 ## ------------------------------------ ##
52201 _ASBOX
52203 sed "s/^/$as_me: WARNING: /" >&2
52205 no:yes )
52206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52213 cat <<\_ASBOX
52214 ## ------------------------------------ ##
52215 ## Report this to bug-autoconf@gnu.org. ##
52216 ## ------------------------------------ ##
52217 _ASBOX
52219 sed "s/^/$as_me: WARNING: /" >&2
52221 esac
52222 echo "$as_me:$LINENO: checking for $ac_header" >&5
52223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52225 echo $ECHO_N "(cached) $ECHO_C" >&6
52226 else
52227 eval "$as_ac_Header=$ac_header_preproc"
52229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52234 cat >>confdefs.h <<_ACEOF
52235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52236 _ACEOF
52237 ac_has_wctype_h=yes
52238 else
52239 ac_has_wctype_h=no
52242 done
52245 # Only continue checking if the ISO C99 headers exist and support is on.
52246 if test x"$ac_has_wchar_h" = xyes &&
52247 test x"$ac_has_wctype_h" = xyes &&
52248 test x"$enable_c_mbchar" != xno; then
52250 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
52251 # numeric_limits can instantiate type_traits<wchar_t>
52252 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
52253 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
52254 cat >conftest.$ac_ext <<_ACEOF
52255 #line $LINENO "configure"
52256 /* confdefs.h. */
52257 _ACEOF
52258 cat confdefs.h >>conftest.$ac_ext
52259 cat >>conftest.$ac_ext <<_ACEOF
52260 /* end confdefs.h. */
52261 #include <wchar.h>
52263 main ()
52265 int i = WCHAR_MIN; int j = WCHAR_MAX;
52267 return 0;
52269 _ACEOF
52270 rm -f conftest.$ac_objext
52271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52272 (eval $ac_compile) 2>&5
52273 ac_status=$?
52274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52275 (exit $ac_status); } &&
52276 { ac_try='test -s conftest.$ac_objext'
52277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52278 (eval $ac_try) 2>&5
52279 ac_status=$?
52280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52281 (exit $ac_status); }; }; then
52282 has_wchar_minmax=yes
52283 else
52284 echo "$as_me: failed program was:" >&5
52285 sed 's/^/| /' conftest.$ac_ext >&5
52287 has_wchar_minmax=no
52289 rm -f conftest.$ac_objext conftest.$ac_ext
52290 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
52291 echo "${ECHO_T}$has_wchar_minmax" >&6
52293 # Test wchar.h for WEOF, which is what we use to determine whether
52294 # to specialize for char_traits<wchar_t> or not.
52295 echo "$as_me:$LINENO: checking for WEOF" >&5
52296 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
52297 cat >conftest.$ac_ext <<_ACEOF
52298 #line $LINENO "configure"
52299 /* confdefs.h. */
52300 _ACEOF
52301 cat confdefs.h >>conftest.$ac_ext
52302 cat >>conftest.$ac_ext <<_ACEOF
52303 /* end confdefs.h. */
52305 #include <wchar.h>
52306 #include <stddef.h>
52308 main ()
52310 wint_t i = WEOF;
52312 return 0;
52314 _ACEOF
52315 rm -f conftest.$ac_objext
52316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52317 (eval $ac_compile) 2>&5
52318 ac_status=$?
52319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52320 (exit $ac_status); } &&
52321 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
52327 has_weof=yes
52328 else
52329 echo "$as_me: failed program was:" >&5
52330 sed 's/^/| /' conftest.$ac_ext >&5
52332 has_weof=no
52334 rm -f conftest.$ac_objext conftest.$ac_ext
52335 echo "$as_me:$LINENO: result: $has_weof" >&5
52336 echo "${ECHO_T}$has_weof" >&6
52338 # Tests for wide character functions used in char_traits<wchar_t>.
52339 ac_wfuncs=yes
52346 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
52348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52349 echo "$as_me:$LINENO: checking for $ac_func" >&5
52350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52351 if eval "test \"\${$as_ac_var+set}\" = set"; then
52352 echo $ECHO_N "(cached) $ECHO_C" >&6
52353 else
52354 if test x$gcc_no_link = xyes; then
52355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52357 { (exit 1); exit 1; }; }
52359 cat >conftest.$ac_ext <<_ACEOF
52360 #line $LINENO "configure"
52361 /* confdefs.h. */
52362 _ACEOF
52363 cat confdefs.h >>conftest.$ac_ext
52364 cat >>conftest.$ac_ext <<_ACEOF
52365 /* end confdefs.h. */
52366 /* System header to define __stub macros and hopefully few prototypes,
52367 which can conflict with char $ac_func (); below.
52368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52369 <limits.h> exists even on freestanding compilers. */
52370 #ifdef __STDC__
52371 # include <limits.h>
52372 #else
52373 # include <assert.h>
52374 #endif
52375 /* Override any gcc2 internal prototype to avoid an error. */
52376 #ifdef __cplusplus
52377 extern "C"
52379 #endif
52380 /* We use char because int might match the return type of a gcc2
52381 builtin and then its argument prototype would still apply. */
52382 char $ac_func ();
52383 /* The GNU C library defines this for functions which it implements
52384 to always fail with ENOSYS. Some functions are actually named
52385 something starting with __ and the normal name is an alias. */
52386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52387 choke me
52388 #else
52389 char (*f) () = $ac_func;
52390 #endif
52391 #ifdef __cplusplus
52393 #endif
52396 main ()
52398 return f != $ac_func;
52400 return 0;
52402 _ACEOF
52403 rm -f conftest.$ac_objext conftest$ac_exeext
52404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52405 (eval $ac_link) 2>&5
52406 ac_status=$?
52407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52408 (exit $ac_status); } &&
52409 { ac_try='test -s conftest$ac_exeext'
52410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52411 (eval $ac_try) 2>&5
52412 ac_status=$?
52413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52414 (exit $ac_status); }; }; then
52415 eval "$as_ac_var=yes"
52416 else
52417 echo "$as_me: failed program was:" >&5
52418 sed 's/^/| /' conftest.$ac_ext >&5
52420 eval "$as_ac_var=no"
52422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52426 if test `eval echo '${'$as_ac_var'}'` = yes; then
52427 cat >>confdefs.h <<_ACEOF
52428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52429 _ACEOF
52431 else
52432 ac_wfuncs=no
52434 done
52437 # Checks for names injected into std:: by the c_std headers.
52484 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
52485 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
52486 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
52487 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
52488 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
52489 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
52491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52492 echo "$as_me:$LINENO: checking for $ac_func" >&5
52493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52494 if eval "test \"\${$as_ac_var+set}\" = set"; then
52495 echo $ECHO_N "(cached) $ECHO_C" >&6
52496 else
52497 if test x$gcc_no_link = xyes; then
52498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52500 { (exit 1); exit 1; }; }
52502 cat >conftest.$ac_ext <<_ACEOF
52503 #line $LINENO "configure"
52504 /* confdefs.h. */
52505 _ACEOF
52506 cat confdefs.h >>conftest.$ac_ext
52507 cat >>conftest.$ac_ext <<_ACEOF
52508 /* end confdefs.h. */
52509 /* System header to define __stub macros and hopefully few prototypes,
52510 which can conflict with char $ac_func (); below.
52511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52512 <limits.h> exists even on freestanding compilers. */
52513 #ifdef __STDC__
52514 # include <limits.h>
52515 #else
52516 # include <assert.h>
52517 #endif
52518 /* Override any gcc2 internal prototype to avoid an error. */
52519 #ifdef __cplusplus
52520 extern "C"
52522 #endif
52523 /* We use char because int might match the return type of a gcc2
52524 builtin and then its argument prototype would still apply. */
52525 char $ac_func ();
52526 /* The GNU C library defines this for functions which it implements
52527 to always fail with ENOSYS. Some functions are actually named
52528 something starting with __ and the normal name is an alias. */
52529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52530 choke me
52531 #else
52532 char (*f) () = $ac_func;
52533 #endif
52534 #ifdef __cplusplus
52536 #endif
52539 main ()
52541 return f != $ac_func;
52543 return 0;
52545 _ACEOF
52546 rm -f conftest.$ac_objext conftest$ac_exeext
52547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52548 (eval $ac_link) 2>&5
52549 ac_status=$?
52550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52551 (exit $ac_status); } &&
52552 { ac_try='test -s conftest$ac_exeext'
52553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52554 (eval $ac_try) 2>&5
52555 ac_status=$?
52556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52557 (exit $ac_status); }; }; then
52558 eval "$as_ac_var=yes"
52559 else
52560 echo "$as_me: failed program was:" >&5
52561 sed 's/^/| /' conftest.$ac_ext >&5
52563 eval "$as_ac_var=no"
52565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52569 if test `eval echo '${'$as_ac_var'}'` = yes; then
52570 cat >>confdefs.h <<_ACEOF
52571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52572 _ACEOF
52574 else
52575 ac_wfuncs=no
52577 done
52580 # Checks for wide character functions that are not required
52581 # for basic wchar_t support. Don't disable support if they are missing.
52582 # Injection of these is wrapped with guard macros.
52588 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
52590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52591 echo "$as_me:$LINENO: checking for $ac_func" >&5
52592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52593 if eval "test \"\${$as_ac_var+set}\" = set"; then
52594 echo $ECHO_N "(cached) $ECHO_C" >&6
52595 else
52596 if test x$gcc_no_link = xyes; then
52597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52599 { (exit 1); exit 1; }; }
52601 cat >conftest.$ac_ext <<_ACEOF
52602 #line $LINENO "configure"
52603 /* confdefs.h. */
52604 _ACEOF
52605 cat confdefs.h >>conftest.$ac_ext
52606 cat >>conftest.$ac_ext <<_ACEOF
52607 /* end confdefs.h. */
52608 /* System header to define __stub macros and hopefully few prototypes,
52609 which can conflict with char $ac_func (); below.
52610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52611 <limits.h> exists even on freestanding compilers. */
52612 #ifdef __STDC__
52613 # include <limits.h>
52614 #else
52615 # include <assert.h>
52616 #endif
52617 /* Override any gcc2 internal prototype to avoid an error. */
52618 #ifdef __cplusplus
52619 extern "C"
52621 #endif
52622 /* We use char because int might match the return type of a gcc2
52623 builtin and then its argument prototype would still apply. */
52624 char $ac_func ();
52625 /* The GNU C library defines this for functions which it implements
52626 to always fail with ENOSYS. Some functions are actually named
52627 something starting with __ and the normal name is an alias. */
52628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52629 choke me
52630 #else
52631 char (*f) () = $ac_func;
52632 #endif
52633 #ifdef __cplusplus
52635 #endif
52638 main ()
52640 return f != $ac_func;
52642 return 0;
52644 _ACEOF
52645 rm -f conftest.$ac_objext conftest$ac_exeext
52646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52647 (eval $ac_link) 2>&5
52648 ac_status=$?
52649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52650 (exit $ac_status); } &&
52651 { ac_try='test -s conftest$ac_exeext'
52652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52653 (eval $ac_try) 2>&5
52654 ac_status=$?
52655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52656 (exit $ac_status); }; }; then
52657 eval "$as_ac_var=yes"
52658 else
52659 echo "$as_me: failed program was:" >&5
52660 sed 's/^/| /' conftest.$ac_ext >&5
52662 eval "$as_ac_var=no"
52664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52668 if test `eval echo '${'$as_ac_var'}'` = yes; then
52669 cat >>confdefs.h <<_ACEOF
52670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52671 _ACEOF
52674 done
52677 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
52678 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
52679 if test x"$has_weof" = xyes &&
52680 test x"$has_wchar_minmax" = xyes &&
52681 test x"$ac_wfuncs" = xyes;
52682 then
52683 ac_isoC99_wchar_t=yes
52684 else
52685 ac_isoC99_wchar_t=no
52687 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
52688 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
52690 # Use iconv for wchar_t to char conversions. As such, check for
52691 # X/Open Portability Guide, version 2 features (XPG2).
52692 if test "${ac_cv_header_iconv_h+set}" = set; then
52693 echo "$as_me:$LINENO: checking for iconv.h" >&5
52694 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52695 if test "${ac_cv_header_iconv_h+set}" = set; then
52696 echo $ECHO_N "(cached) $ECHO_C" >&6
52698 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52699 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52700 else
52701 # Is the header compilable?
52702 echo "$as_me:$LINENO: checking iconv.h usability" >&5
52703 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
52704 cat >conftest.$ac_ext <<_ACEOF
52705 #line $LINENO "configure"
52706 /* confdefs.h. */
52707 _ACEOF
52708 cat confdefs.h >>conftest.$ac_ext
52709 cat >>conftest.$ac_ext <<_ACEOF
52710 /* end confdefs.h. */
52711 $ac_includes_default
52712 #include <iconv.h>
52713 _ACEOF
52714 rm -f conftest.$ac_objext
52715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52716 (eval $ac_compile) 2>&5
52717 ac_status=$?
52718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52719 (exit $ac_status); } &&
52720 { ac_try='test -s conftest.$ac_objext'
52721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52722 (eval $ac_try) 2>&5
52723 ac_status=$?
52724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52725 (exit $ac_status); }; }; then
52726 ac_header_compiler=yes
52727 else
52728 echo "$as_me: failed program was:" >&5
52729 sed 's/^/| /' conftest.$ac_ext >&5
52731 ac_header_compiler=no
52733 rm -f conftest.$ac_objext conftest.$ac_ext
52734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52735 echo "${ECHO_T}$ac_header_compiler" >&6
52737 # Is the header present?
52738 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52739 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52740 cat >conftest.$ac_ext <<_ACEOF
52741 #line $LINENO "configure"
52742 /* confdefs.h. */
52743 _ACEOF
52744 cat confdefs.h >>conftest.$ac_ext
52745 cat >>conftest.$ac_ext <<_ACEOF
52746 /* end confdefs.h. */
52747 #include <iconv.h>
52748 _ACEOF
52749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52751 ac_status=$?
52752 grep -v '^ *+' conftest.er1 >conftest.err
52753 rm -f conftest.er1
52754 cat conftest.err >&5
52755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52756 (exit $ac_status); } >/dev/null; then
52757 if test -s conftest.err; then
52758 ac_cpp_err=$ac_c_preproc_warn_flag
52759 else
52760 ac_cpp_err=
52762 else
52763 ac_cpp_err=yes
52765 if test -z "$ac_cpp_err"; then
52766 ac_header_preproc=yes
52767 else
52768 echo "$as_me: failed program was:" >&5
52769 sed 's/^/| /' conftest.$ac_ext >&5
52771 ac_header_preproc=no
52773 rm -f conftest.err conftest.$ac_ext
52774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52775 echo "${ECHO_T}$ac_header_preproc" >&6
52777 # So? What about this header?
52778 case $ac_header_compiler:$ac_header_preproc in
52779 yes:no )
52780 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52781 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52782 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52783 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52785 cat <<\_ASBOX
52786 ## ------------------------------------ ##
52787 ## Report this to bug-autoconf@gnu.org. ##
52788 ## ------------------------------------ ##
52789 _ASBOX
52791 sed "s/^/$as_me: WARNING: /" >&2
52793 no:yes )
52794 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52795 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52796 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52797 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52798 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52799 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52801 cat <<\_ASBOX
52802 ## ------------------------------------ ##
52803 ## Report this to bug-autoconf@gnu.org. ##
52804 ## ------------------------------------ ##
52805 _ASBOX
52807 sed "s/^/$as_me: WARNING: /" >&2
52809 esac
52810 echo "$as_me:$LINENO: checking for iconv.h" >&5
52811 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52812 if test "${ac_cv_header_iconv_h+set}" = set; then
52813 echo $ECHO_N "(cached) $ECHO_C" >&6
52814 else
52815 ac_cv_header_iconv_h=$ac_header_preproc
52817 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52818 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52821 if test $ac_cv_header_iconv_h = yes; then
52822 ac_has_iconv_h=yes
52823 else
52824 ac_has_iconv_h=no
52828 if test "${ac_cv_header_langinfo_h+set}" = set; then
52829 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52830 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52831 if test "${ac_cv_header_langinfo_h+set}" = set; then
52832 echo $ECHO_N "(cached) $ECHO_C" >&6
52834 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52835 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52836 else
52837 # Is the header compilable?
52838 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52839 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52840 cat >conftest.$ac_ext <<_ACEOF
52841 #line $LINENO "configure"
52842 /* confdefs.h. */
52843 _ACEOF
52844 cat confdefs.h >>conftest.$ac_ext
52845 cat >>conftest.$ac_ext <<_ACEOF
52846 /* end confdefs.h. */
52847 $ac_includes_default
52848 #include <langinfo.h>
52849 _ACEOF
52850 rm -f conftest.$ac_objext
52851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52852 (eval $ac_compile) 2>&5
52853 ac_status=$?
52854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52855 (exit $ac_status); } &&
52856 { ac_try='test -s conftest.$ac_objext'
52857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52858 (eval $ac_try) 2>&5
52859 ac_status=$?
52860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52861 (exit $ac_status); }; }; then
52862 ac_header_compiler=yes
52863 else
52864 echo "$as_me: failed program was:" >&5
52865 sed 's/^/| /' conftest.$ac_ext >&5
52867 ac_header_compiler=no
52869 rm -f conftest.$ac_objext conftest.$ac_ext
52870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52871 echo "${ECHO_T}$ac_header_compiler" >&6
52873 # Is the header present?
52874 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52875 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52876 cat >conftest.$ac_ext <<_ACEOF
52877 #line $LINENO "configure"
52878 /* confdefs.h. */
52879 _ACEOF
52880 cat confdefs.h >>conftest.$ac_ext
52881 cat >>conftest.$ac_ext <<_ACEOF
52882 /* end confdefs.h. */
52883 #include <langinfo.h>
52884 _ACEOF
52885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52887 ac_status=$?
52888 grep -v '^ *+' conftest.er1 >conftest.err
52889 rm -f conftest.er1
52890 cat conftest.err >&5
52891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52892 (exit $ac_status); } >/dev/null; then
52893 if test -s conftest.err; then
52894 ac_cpp_err=$ac_c_preproc_warn_flag
52895 else
52896 ac_cpp_err=
52898 else
52899 ac_cpp_err=yes
52901 if test -z "$ac_cpp_err"; then
52902 ac_header_preproc=yes
52903 else
52904 echo "$as_me: failed program was:" >&5
52905 sed 's/^/| /' conftest.$ac_ext >&5
52907 ac_header_preproc=no
52909 rm -f conftest.err conftest.$ac_ext
52910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52911 echo "${ECHO_T}$ac_header_preproc" >&6
52913 # So? What about this header?
52914 case $ac_header_compiler:$ac_header_preproc in
52915 yes:no )
52916 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52917 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52918 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52919 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52921 cat <<\_ASBOX
52922 ## ------------------------------------ ##
52923 ## Report this to bug-autoconf@gnu.org. ##
52924 ## ------------------------------------ ##
52925 _ASBOX
52927 sed "s/^/$as_me: WARNING: /" >&2
52929 no:yes )
52930 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52931 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52932 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52933 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52934 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52935 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52937 cat <<\_ASBOX
52938 ## ------------------------------------ ##
52939 ## Report this to bug-autoconf@gnu.org. ##
52940 ## ------------------------------------ ##
52941 _ASBOX
52943 sed "s/^/$as_me: WARNING: /" >&2
52945 esac
52946 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52947 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52948 if test "${ac_cv_header_langinfo_h+set}" = set; then
52949 echo $ECHO_N "(cached) $ECHO_C" >&6
52950 else
52951 ac_cv_header_langinfo_h=$ac_header_preproc
52953 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52954 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52957 if test $ac_cv_header_langinfo_h = yes; then
52958 ac_has_langinfo_h=yes
52959 else
52960 ac_has_langinfo_h=no
52965 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52966 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52967 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52968 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52969 echo $ECHO_N "(cached) $ECHO_C" >&6
52970 else
52971 ac_check_lib_save_LIBS=$LIBS
52972 LIBS="-liconv $LIBS"
52973 if test x$gcc_no_link = xyes; then
52974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52976 { (exit 1); exit 1; }; }
52978 cat >conftest.$ac_ext <<_ACEOF
52979 #line $LINENO "configure"
52980 /* confdefs.h. */
52981 _ACEOF
52982 cat confdefs.h >>conftest.$ac_ext
52983 cat >>conftest.$ac_ext <<_ACEOF
52984 /* end confdefs.h. */
52986 /* Override any gcc2 internal prototype to avoid an error. */
52987 #ifdef __cplusplus
52988 extern "C"
52989 #endif
52990 /* We use char because int might match the return type of a gcc2
52991 builtin and then its argument prototype would still apply. */
52992 char iconv ();
52994 main ()
52996 iconv ();
52998 return 0;
53000 _ACEOF
53001 rm -f conftest.$ac_objext conftest$ac_exeext
53002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53003 (eval $ac_link) 2>&5
53004 ac_status=$?
53005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53006 (exit $ac_status); } &&
53007 { ac_try='test -s conftest$ac_exeext'
53008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53009 (eval $ac_try) 2>&5
53010 ac_status=$?
53011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53012 (exit $ac_status); }; }; then
53013 ac_cv_lib_iconv_iconv=yes
53014 else
53015 echo "$as_me: failed program was:" >&5
53016 sed 's/^/| /' conftest.$ac_ext >&5
53018 ac_cv_lib_iconv_iconv=no
53020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53021 LIBS=$ac_check_lib_save_LIBS
53023 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
53024 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
53025 if test $ac_cv_lib_iconv_iconv = yes; then
53026 libiconv="-liconv"
53029 ac_save_LIBS="$LIBS"
53030 LIBS="$LIBS $libiconv"
53036 for ac_func in iconv_open iconv_close iconv nl_langinfo
53038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53039 echo "$as_me:$LINENO: checking for $ac_func" >&5
53040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53041 if eval "test \"\${$as_ac_var+set}\" = set"; then
53042 echo $ECHO_N "(cached) $ECHO_C" >&6
53043 else
53044 if test x$gcc_no_link = xyes; then
53045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53047 { (exit 1); exit 1; }; }
53049 cat >conftest.$ac_ext <<_ACEOF
53050 #line $LINENO "configure"
53051 /* confdefs.h. */
53052 _ACEOF
53053 cat confdefs.h >>conftest.$ac_ext
53054 cat >>conftest.$ac_ext <<_ACEOF
53055 /* end confdefs.h. */
53056 /* System header to define __stub macros and hopefully few prototypes,
53057 which can conflict with char $ac_func (); below.
53058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53059 <limits.h> exists even on freestanding compilers. */
53060 #ifdef __STDC__
53061 # include <limits.h>
53062 #else
53063 # include <assert.h>
53064 #endif
53065 /* Override any gcc2 internal prototype to avoid an error. */
53066 #ifdef __cplusplus
53067 extern "C"
53069 #endif
53070 /* We use char because int might match the return type of a gcc2
53071 builtin and then its argument prototype would still apply. */
53072 char $ac_func ();
53073 /* The GNU C library defines this for functions which it implements
53074 to always fail with ENOSYS. Some functions are actually named
53075 something starting with __ and the normal name is an alias. */
53076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53077 choke me
53078 #else
53079 char (*f) () = $ac_func;
53080 #endif
53081 #ifdef __cplusplus
53083 #endif
53086 main ()
53088 return f != $ac_func;
53090 return 0;
53092 _ACEOF
53093 rm -f conftest.$ac_objext conftest$ac_exeext
53094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53095 (eval $ac_link) 2>&5
53096 ac_status=$?
53097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53098 (exit $ac_status); } &&
53099 { ac_try='test -s conftest$ac_exeext'
53100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53101 (eval $ac_try) 2>&5
53102 ac_status=$?
53103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53104 (exit $ac_status); }; }; then
53105 eval "$as_ac_var=yes"
53106 else
53107 echo "$as_me: failed program was:" >&5
53108 sed 's/^/| /' conftest.$ac_ext >&5
53110 eval "$as_ac_var=no"
53112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53116 if test `eval echo '${'$as_ac_var'}'` = yes; then
53117 cat >>confdefs.h <<_ACEOF
53118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53119 _ACEOF
53120 ac_XPG2funcs=yes
53121 else
53122 ac_XPG2funcs=no
53124 done
53127 LIBS="$ac_save_LIBS"
53129 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
53130 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
53131 if test x"$ac_has_iconv_h" = xyes &&
53132 test x"$ac_has_langinfo_h" = xyes &&
53133 test x"$ac_XPG2funcs" = xyes;
53134 then
53135 ac_XPG2_wchar_t=yes
53136 else
53137 ac_XPG2_wchar_t=no
53139 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
53140 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
53142 # At the moment, only enable wchar_t specializations if all the
53143 # above support is present.
53144 if test x"$ac_isoC99_wchar_t" = xyes &&
53145 test x"$ac_XPG2_wchar_t" = xyes;
53146 then
53147 cat >>confdefs.h <<\_ACEOF
53148 #define _GLIBCXX_USE_WCHAR_T 1
53149 _ACEOF
53151 enable_wchar_t=yes
53154 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
53155 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
53156 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
53157 echo "${ECHO_T}$enable_wchar_t" >&6
53159 cat >>confdefs.h <<\_ACEOF
53160 #define HAVE_COPYSIGN 1
53161 _ACEOF
53163 cat >>confdefs.h <<\_ACEOF
53164 #define HAVE_COPYSIGNF 1
53165 _ACEOF
53167 cat >>confdefs.h <<\_ACEOF
53168 #define HAVE_FINITE 1
53169 _ACEOF
53171 cat >>confdefs.h <<\_ACEOF
53172 #define HAVE_FINITEF 1
53173 _ACEOF
53175 cat >>confdefs.h <<\_ACEOF
53176 #define HAVE_FREXPF 1
53177 _ACEOF
53179 cat >>confdefs.h <<\_ACEOF
53180 #define HAVE_HYPOTF 1
53181 _ACEOF
53183 cat >>confdefs.h <<\_ACEOF
53184 #define HAVE_ISINF 1
53185 _ACEOF
53187 cat >>confdefs.h <<\_ACEOF
53188 #define HAVE_ISINFF 1
53189 _ACEOF
53191 cat >>confdefs.h <<\_ACEOF
53192 #define HAVE_ISNAN 1
53193 _ACEOF
53195 cat >>confdefs.h <<\_ACEOF
53196 #define HAVE_ISNANF 1
53197 _ACEOF
53199 cat >>confdefs.h <<\_ACEOF
53200 #define HAVE_SINCOS 1
53201 _ACEOF
53203 cat >>confdefs.h <<\_ACEOF
53204 #define HAVE_SINCOSF 1
53205 _ACEOF
53207 if test x"long_double_math_on_this_cpu" = x"yes"; then
53208 cat >>confdefs.h <<\_ACEOF
53209 #define HAVE_FINITEL 1
53210 _ACEOF
53212 cat >>confdefs.h <<\_ACEOF
53213 #define HAVE_HYPOTL 1
53214 _ACEOF
53216 cat >>confdefs.h <<\_ACEOF
53217 #define HAVE_ISINFL 1
53218 _ACEOF
53220 cat >>confdefs.h <<\_ACEOF
53221 #define HAVE_ISNANL 1
53222 _ACEOF
53226 *-mingw32*)
53230 for ac_header in sys/types.h locale.h float.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 #line $LINENO "configure"
53247 /* confdefs.h. */
53248 _ACEOF
53249 cat confdefs.h >>conftest.$ac_ext
53250 cat >>conftest.$ac_ext <<_ACEOF
53251 /* end confdefs.h. */
53252 $ac_includes_default
53253 #include <$ac_header>
53254 _ACEOF
53255 rm -f conftest.$ac_objext
53256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53257 (eval $ac_compile) 2>&5
53258 ac_status=$?
53259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53260 (exit $ac_status); } &&
53261 { ac_try='test -s conftest.$ac_objext'
53262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53263 (eval $ac_try) 2>&5
53264 ac_status=$?
53265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53266 (exit $ac_status); }; }; then
53267 ac_header_compiler=yes
53268 else
53269 echo "$as_me: failed program was:" >&5
53270 sed 's/^/| /' conftest.$ac_ext >&5
53272 ac_header_compiler=no
53274 rm -f conftest.$ac_objext conftest.$ac_ext
53275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53276 echo "${ECHO_T}$ac_header_compiler" >&6
53278 # Is the header present?
53279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53281 cat >conftest.$ac_ext <<_ACEOF
53282 #line $LINENO "configure"
53283 /* confdefs.h. */
53284 _ACEOF
53285 cat confdefs.h >>conftest.$ac_ext
53286 cat >>conftest.$ac_ext <<_ACEOF
53287 /* end confdefs.h. */
53288 #include <$ac_header>
53289 _ACEOF
53290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53292 ac_status=$?
53293 grep -v '^ *+' conftest.er1 >conftest.err
53294 rm -f conftest.er1
53295 cat conftest.err >&5
53296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53297 (exit $ac_status); } >/dev/null; then
53298 if test -s conftest.err; then
53299 ac_cpp_err=$ac_c_preproc_warn_flag
53300 else
53301 ac_cpp_err=
53303 else
53304 ac_cpp_err=yes
53306 if test -z "$ac_cpp_err"; then
53307 ac_header_preproc=yes
53308 else
53309 echo "$as_me: failed program was:" >&5
53310 sed 's/^/| /' conftest.$ac_ext >&5
53312 ac_header_preproc=no
53314 rm -f conftest.err conftest.$ac_ext
53315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53316 echo "${ECHO_T}$ac_header_preproc" >&6
53318 # So? What about this header?
53319 case $ac_header_compiler:$ac_header_preproc in
53320 yes:no )
53321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53326 cat <<\_ASBOX
53327 ## ------------------------------------ ##
53328 ## Report this to bug-autoconf@gnu.org. ##
53329 ## ------------------------------------ ##
53330 _ASBOX
53332 sed "s/^/$as_me: WARNING: /" >&2
53334 no:yes )
53335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53342 cat <<\_ASBOX
53343 ## ------------------------------------ ##
53344 ## Report this to bug-autoconf@gnu.org. ##
53345 ## ------------------------------------ ##
53346 _ASBOX
53348 sed "s/^/$as_me: WARNING: /" >&2
53350 esac
53351 echo "$as_me:$LINENO: checking for $ac_header" >&5
53352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53354 echo $ECHO_N "(cached) $ECHO_C" >&6
53355 else
53356 eval "$as_ac_Header=$ac_header_preproc"
53358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53363 cat >>confdefs.h <<_ACEOF
53364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53365 _ACEOF
53369 done
53372 # If we're not using GNU ld, then there's no point in even trying these
53373 # tests. Check for that first. We should have already tested for gld
53374 # by now (in libtool), but require it now just to be safe...
53375 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53376 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53380 # The name set by libtool depends on the version of libtool. Shame on us
53381 # for depending on an impl detail, but c'est la vie. Older versions used
53382 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53383 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53384 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53385 # set (hence we're using an older libtool), then set it.
53386 if test x${with_gnu_ld+set} != xset; then
53387 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53388 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53389 with_gnu_ld=no
53390 else
53391 with_gnu_ld=$ac_cv_prog_gnu_ld
53395 # Start by getting the version number. I think the libtool test already
53396 # does some of this, but throws away the result.
53398 ldver=`$LD --version 2>/dev/null | head -1 | \
53399 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53401 glibcxx_gnu_ld_version=`echo $ldver | \
53402 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53404 # Set --gc-sections.
53405 if test "$with_gnu_ld" = "notbroken"; then
53406 # GNU ld it is! Joy and bunny rabbits!
53408 # All these tests are for C++; save the language and the compiler flags.
53409 # Need to do this so that g++ won't try to link in libstdc++
53410 ac_test_CFLAGS="${CFLAGS+set}"
53411 ac_save_CFLAGS="$CFLAGS"
53412 CFLAGS='-x c++ -Wl,--gc-sections'
53414 # Check for -Wl,--gc-sections
53415 # XXX This test is broken at the moment, as symbols required for linking
53416 # are now in libsupc++ (not built yet). In addition, this test has
53417 # cored on solaris in the past. In addition, --gc-sections doesn't
53418 # really work at the moment (keeps on discarding used sections, first
53419 # .eh_frame and now some of the glibc sections for iconv).
53420 # Bzzzzt. Thanks for playing, maybe next time.
53421 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53422 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53423 if test "$cross_compiling" = yes; then
53424 ac_sectionLDflags=yes
53425 else
53426 cat >conftest.$ac_ext <<_ACEOF
53427 #line $LINENO "configure"
53428 /* confdefs.h. */
53429 _ACEOF
53430 cat confdefs.h >>conftest.$ac_ext
53431 cat >>conftest.$ac_ext <<_ACEOF
53432 /* end confdefs.h. */
53434 int main(void)
53436 try { throw 1; }
53437 catch (...) { };
53438 return 0;
53441 _ACEOF
53442 rm -f conftest$ac_exeext
53443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53444 (eval $ac_link) 2>&5
53445 ac_status=$?
53446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53449 (eval $ac_try) 2>&5
53450 ac_status=$?
53451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53452 (exit $ac_status); }; }; then
53453 ac_sectionLDflags=yes
53454 else
53455 echo "$as_me: program exited with status $ac_status" >&5
53456 echo "$as_me: failed program was:" >&5
53457 sed 's/^/| /' conftest.$ac_ext >&5
53459 ( exit $ac_status )
53460 ac_sectionLDflags=no
53462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53464 if test "$ac_test_CFLAGS" = set; then
53465 CFLAGS="$ac_save_CFLAGS"
53466 else
53467 # this is the suspicious part
53468 CFLAGS=''
53470 if test "$ac_sectionLDflags" = "yes"; then
53471 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53473 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53474 echo "${ECHO_T}$ac_sectionLDflags" >&6
53477 # Set linker optimization flags.
53478 if test x"$with_gnu_ld" = x"yes"; then
53479 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53487 echo "$as_me:$LINENO: checking for main in -lm" >&5
53488 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53489 if test "${ac_cv_lib_m_main+set}" = set; then
53490 echo $ECHO_N "(cached) $ECHO_C" >&6
53491 else
53492 ac_check_lib_save_LIBS=$LIBS
53493 LIBS="-lm $LIBS"
53494 if test x$gcc_no_link = xyes; then
53495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53497 { (exit 1); exit 1; }; }
53499 cat >conftest.$ac_ext <<_ACEOF
53500 #line $LINENO "configure"
53501 /* confdefs.h. */
53502 _ACEOF
53503 cat confdefs.h >>conftest.$ac_ext
53504 cat >>conftest.$ac_ext <<_ACEOF
53505 /* end confdefs.h. */
53509 main ()
53511 main ();
53513 return 0;
53515 _ACEOF
53516 rm -f conftest.$ac_objext conftest$ac_exeext
53517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53518 (eval $ac_link) 2>&5
53519 ac_status=$?
53520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53521 (exit $ac_status); } &&
53522 { ac_try='test -s conftest$ac_exeext'
53523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53524 (eval $ac_try) 2>&5
53525 ac_status=$?
53526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53527 (exit $ac_status); }; }; then
53528 ac_cv_lib_m_main=yes
53529 else
53530 echo "$as_me: failed program was:" >&5
53531 sed 's/^/| /' conftest.$ac_ext >&5
53533 ac_cv_lib_m_main=no
53535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53536 LIBS=$ac_check_lib_save_LIBS
53538 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53539 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53540 if test $ac_cv_lib_m_main = yes; then
53541 cat >>confdefs.h <<_ACEOF
53542 #define HAVE_LIBM 1
53543 _ACEOF
53545 LIBS="-lm $LIBS"
53551 for ac_func in nan copysignf
53553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53554 echo "$as_me:$LINENO: checking for $ac_func" >&5
53555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53556 if eval "test \"\${$as_ac_var+set}\" = set"; then
53557 echo $ECHO_N "(cached) $ECHO_C" >&6
53558 else
53559 if test x$gcc_no_link = xyes; then
53560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53562 { (exit 1); exit 1; }; }
53564 cat >conftest.$ac_ext <<_ACEOF
53565 #line $LINENO "configure"
53566 /* confdefs.h. */
53567 _ACEOF
53568 cat confdefs.h >>conftest.$ac_ext
53569 cat >>conftest.$ac_ext <<_ACEOF
53570 /* end confdefs.h. */
53571 /* System header to define __stub macros and hopefully few prototypes,
53572 which can conflict with char $ac_func (); below.
53573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53574 <limits.h> exists even on freestanding compilers. */
53575 #ifdef __STDC__
53576 # include <limits.h>
53577 #else
53578 # include <assert.h>
53579 #endif
53580 /* Override any gcc2 internal prototype to avoid an error. */
53581 #ifdef __cplusplus
53582 extern "C"
53584 #endif
53585 /* We use char because int might match the return type of a gcc2
53586 builtin and then its argument prototype would still apply. */
53587 char $ac_func ();
53588 /* The GNU C library defines this for functions which it implements
53589 to always fail with ENOSYS. Some functions are actually named
53590 something starting with __ and the normal name is an alias. */
53591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53592 choke me
53593 #else
53594 char (*f) () = $ac_func;
53595 #endif
53596 #ifdef __cplusplus
53598 #endif
53601 main ()
53603 return f != $ac_func;
53605 return 0;
53607 _ACEOF
53608 rm -f conftest.$ac_objext conftest$ac_exeext
53609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53610 (eval $ac_link) 2>&5
53611 ac_status=$?
53612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53613 (exit $ac_status); } &&
53614 { ac_try='test -s conftest$ac_exeext'
53615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53616 (eval $ac_try) 2>&5
53617 ac_status=$?
53618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53619 (exit $ac_status); }; }; then
53620 eval "$as_ac_var=yes"
53621 else
53622 echo "$as_me: failed program was:" >&5
53623 sed 's/^/| /' conftest.$ac_ext >&5
53625 eval "$as_ac_var=no"
53627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53631 if test `eval echo '${'$as_ac_var'}'` = yes; then
53632 cat >>confdefs.h <<_ACEOF
53633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53634 _ACEOF
53636 else
53637 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53639 done
53643 for ac_func in __signbit
53645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53646 echo "$as_me:$LINENO: checking for $ac_func" >&5
53647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53648 if eval "test \"\${$as_ac_var+set}\" = set"; then
53649 echo $ECHO_N "(cached) $ECHO_C" >&6
53650 else
53651 if test x$gcc_no_link = xyes; then
53652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53654 { (exit 1); exit 1; }; }
53656 cat >conftest.$ac_ext <<_ACEOF
53657 #line $LINENO "configure"
53658 /* confdefs.h. */
53659 _ACEOF
53660 cat confdefs.h >>conftest.$ac_ext
53661 cat >>conftest.$ac_ext <<_ACEOF
53662 /* end confdefs.h. */
53663 /* System header to define __stub macros and hopefully few prototypes,
53664 which can conflict with char $ac_func (); below.
53665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53666 <limits.h> exists even on freestanding compilers. */
53667 #ifdef __STDC__
53668 # include <limits.h>
53669 #else
53670 # include <assert.h>
53671 #endif
53672 /* Override any gcc2 internal prototype to avoid an error. */
53673 #ifdef __cplusplus
53674 extern "C"
53676 #endif
53677 /* We use char because int might match the return type of a gcc2
53678 builtin and then its argument prototype would still apply. */
53679 char $ac_func ();
53680 /* The GNU C library defines this for functions which it implements
53681 to always fail with ENOSYS. Some functions are actually named
53682 something starting with __ and the normal name is an alias. */
53683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53684 choke me
53685 #else
53686 char (*f) () = $ac_func;
53687 #endif
53688 #ifdef __cplusplus
53690 #endif
53693 main ()
53695 return f != $ac_func;
53697 return 0;
53699 _ACEOF
53700 rm -f conftest.$ac_objext conftest$ac_exeext
53701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53702 (eval $ac_link) 2>&5
53703 ac_status=$?
53704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53705 (exit $ac_status); } &&
53706 { ac_try='test -s conftest$ac_exeext'
53707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53708 (eval $ac_try) 2>&5
53709 ac_status=$?
53710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53711 (exit $ac_status); }; }; then
53712 eval "$as_ac_var=yes"
53713 else
53714 echo "$as_me: failed program was:" >&5
53715 sed 's/^/| /' conftest.$ac_ext >&5
53717 eval "$as_ac_var=no"
53719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53723 if test `eval echo '${'$as_ac_var'}'` = yes; then
53724 cat >>confdefs.h <<_ACEOF
53725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53726 _ACEOF
53728 else
53729 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53731 done
53734 for ac_func in __signbitf
53736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53737 echo "$as_me:$LINENO: checking for $ac_func" >&5
53738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53739 if eval "test \"\${$as_ac_var+set}\" = set"; then
53740 echo $ECHO_N "(cached) $ECHO_C" >&6
53741 else
53742 if test x$gcc_no_link = xyes; then
53743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53745 { (exit 1); exit 1; }; }
53747 cat >conftest.$ac_ext <<_ACEOF
53748 #line $LINENO "configure"
53749 /* confdefs.h. */
53750 _ACEOF
53751 cat confdefs.h >>conftest.$ac_ext
53752 cat >>conftest.$ac_ext <<_ACEOF
53753 /* end confdefs.h. */
53754 /* System header to define __stub macros and hopefully few prototypes,
53755 which can conflict with char $ac_func (); below.
53756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53757 <limits.h> exists even on freestanding compilers. */
53758 #ifdef __STDC__
53759 # include <limits.h>
53760 #else
53761 # include <assert.h>
53762 #endif
53763 /* Override any gcc2 internal prototype to avoid an error. */
53764 #ifdef __cplusplus
53765 extern "C"
53767 #endif
53768 /* We use char because int might match the return type of a gcc2
53769 builtin and then its argument prototype would still apply. */
53770 char $ac_func ();
53771 /* The GNU C library defines this for functions which it implements
53772 to always fail with ENOSYS. Some functions are actually named
53773 something starting with __ and the normal name is an alias. */
53774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53775 choke me
53776 #else
53777 char (*f) () = $ac_func;
53778 #endif
53779 #ifdef __cplusplus
53781 #endif
53784 main ()
53786 return f != $ac_func;
53788 return 0;
53790 _ACEOF
53791 rm -f conftest.$ac_objext conftest$ac_exeext
53792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53793 (eval $ac_link) 2>&5
53794 ac_status=$?
53795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53796 (exit $ac_status); } &&
53797 { ac_try='test -s conftest$ac_exeext'
53798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53799 (eval $ac_try) 2>&5
53800 ac_status=$?
53801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53802 (exit $ac_status); }; }; then
53803 eval "$as_ac_var=yes"
53804 else
53805 echo "$as_me: failed program was:" >&5
53806 sed 's/^/| /' conftest.$ac_ext >&5
53808 eval "$as_ac_var=no"
53810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53814 if test `eval echo '${'$as_ac_var'}'` = yes; then
53815 cat >>confdefs.h <<_ACEOF
53816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53817 _ACEOF
53819 else
53820 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53822 done
53825 if test x$ac_cv_func_copysignl = x"yes"; then
53827 for ac_func in __signbitl
53829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53830 echo "$as_me:$LINENO: checking for $ac_func" >&5
53831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53832 if eval "test \"\${$as_ac_var+set}\" = set"; then
53833 echo $ECHO_N "(cached) $ECHO_C" >&6
53834 else
53835 if test x$gcc_no_link = xyes; then
53836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53838 { (exit 1); exit 1; }; }
53840 cat >conftest.$ac_ext <<_ACEOF
53841 #line $LINENO "configure"
53842 /* confdefs.h. */
53843 _ACEOF
53844 cat confdefs.h >>conftest.$ac_ext
53845 cat >>conftest.$ac_ext <<_ACEOF
53846 /* end confdefs.h. */
53847 /* System header to define __stub macros and hopefully few prototypes,
53848 which can conflict with char $ac_func (); below.
53849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53850 <limits.h> exists even on freestanding compilers. */
53851 #ifdef __STDC__
53852 # include <limits.h>
53853 #else
53854 # include <assert.h>
53855 #endif
53856 /* Override any gcc2 internal prototype to avoid an error. */
53857 #ifdef __cplusplus
53858 extern "C"
53860 #endif
53861 /* We use char because int might match the return type of a gcc2
53862 builtin and then its argument prototype would still apply. */
53863 char $ac_func ();
53864 /* The GNU C library defines this for functions which it implements
53865 to always fail with ENOSYS. Some functions are actually named
53866 something starting with __ and the normal name is an alias. */
53867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53868 choke me
53869 #else
53870 char (*f) () = $ac_func;
53871 #endif
53872 #ifdef __cplusplus
53874 #endif
53877 main ()
53879 return f != $ac_func;
53881 return 0;
53883 _ACEOF
53884 rm -f conftest.$ac_objext conftest$ac_exeext
53885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53886 (eval $ac_link) 2>&5
53887 ac_status=$?
53888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53889 (exit $ac_status); } &&
53890 { ac_try='test -s conftest$ac_exeext'
53891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53892 (eval $ac_try) 2>&5
53893 ac_status=$?
53894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53895 (exit $ac_status); }; }; then
53896 eval "$as_ac_var=yes"
53897 else
53898 echo "$as_me: failed program was:" >&5
53899 sed 's/^/| /' conftest.$ac_ext >&5
53901 eval "$as_ac_var=no"
53903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53907 if test `eval echo '${'$as_ac_var'}'` = yes; then
53908 cat >>confdefs.h <<_ACEOF
53909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53910 _ACEOF
53912 else
53913 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53915 done
53919 # XXX Review this. Nothing uses it.
53920 if test -n "$LIBMATHOBJS"; then
53921 need_libmath=yes
53926 # Test wchar.h for mbstate_t, which is needed for char_traits and
53927 # others even if wchar_t support is not on.
53928 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53929 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53930 cat >conftest.$ac_ext <<_ACEOF
53931 #line $LINENO "configure"
53932 /* confdefs.h. */
53933 _ACEOF
53934 cat confdefs.h >>conftest.$ac_ext
53935 cat >>conftest.$ac_ext <<_ACEOF
53936 /* end confdefs.h. */
53937 #include <wchar.h>
53939 main ()
53941 mbstate_t teststate;
53943 return 0;
53945 _ACEOF
53946 rm -f conftest.$ac_objext
53947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53948 (eval $ac_compile) 2>&5
53949 ac_status=$?
53950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53951 (exit $ac_status); } &&
53952 { ac_try='test -s conftest.$ac_objext'
53953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53954 (eval $ac_try) 2>&5
53955 ac_status=$?
53956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53957 (exit $ac_status); }; }; then
53958 have_mbstate_t=yes
53959 else
53960 echo "$as_me: failed program was:" >&5
53961 sed 's/^/| /' conftest.$ac_ext >&5
53963 have_mbstate_t=no
53965 rm -f conftest.$ac_objext conftest.$ac_ext
53966 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53967 echo "${ECHO_T}$have_mbstate_t" >&6
53968 if test x"$have_mbstate_t" = xyes; then
53969 cat >>confdefs.h <<\_ACEOF
53970 #define HAVE_MBSTATE_T 1
53971 _ACEOF
53975 # Sanity check for existence of ISO C99 headers for extended encoding.
53977 for ac_header in wchar.h
53979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53981 echo "$as_me:$LINENO: checking for $ac_header" >&5
53982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53984 echo $ECHO_N "(cached) $ECHO_C" >&6
53986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53988 else
53989 # Is the header compilable?
53990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53992 cat >conftest.$ac_ext <<_ACEOF
53993 #line $LINENO "configure"
53994 /* confdefs.h. */
53995 _ACEOF
53996 cat confdefs.h >>conftest.$ac_ext
53997 cat >>conftest.$ac_ext <<_ACEOF
53998 /* end confdefs.h. */
53999 $ac_includes_default
54000 #include <$ac_header>
54001 _ACEOF
54002 rm -f conftest.$ac_objext
54003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54004 (eval $ac_compile) 2>&5
54005 ac_status=$?
54006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54007 (exit $ac_status); } &&
54008 { ac_try='test -s conftest.$ac_objext'
54009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54010 (eval $ac_try) 2>&5
54011 ac_status=$?
54012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54013 (exit $ac_status); }; }; then
54014 ac_header_compiler=yes
54015 else
54016 echo "$as_me: failed program was:" >&5
54017 sed 's/^/| /' conftest.$ac_ext >&5
54019 ac_header_compiler=no
54021 rm -f conftest.$ac_objext conftest.$ac_ext
54022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54023 echo "${ECHO_T}$ac_header_compiler" >&6
54025 # Is the header present?
54026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54028 cat >conftest.$ac_ext <<_ACEOF
54029 #line $LINENO "configure"
54030 /* confdefs.h. */
54031 _ACEOF
54032 cat confdefs.h >>conftest.$ac_ext
54033 cat >>conftest.$ac_ext <<_ACEOF
54034 /* end confdefs.h. */
54035 #include <$ac_header>
54036 _ACEOF
54037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54039 ac_status=$?
54040 grep -v '^ *+' conftest.er1 >conftest.err
54041 rm -f conftest.er1
54042 cat conftest.err >&5
54043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54044 (exit $ac_status); } >/dev/null; then
54045 if test -s conftest.err; then
54046 ac_cpp_err=$ac_c_preproc_warn_flag
54047 else
54048 ac_cpp_err=
54050 else
54051 ac_cpp_err=yes
54053 if test -z "$ac_cpp_err"; then
54054 ac_header_preproc=yes
54055 else
54056 echo "$as_me: failed program was:" >&5
54057 sed 's/^/| /' conftest.$ac_ext >&5
54059 ac_header_preproc=no
54061 rm -f conftest.err conftest.$ac_ext
54062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54063 echo "${ECHO_T}$ac_header_preproc" >&6
54065 # So? What about this header?
54066 case $ac_header_compiler:$ac_header_preproc in
54067 yes:no )
54068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54073 cat <<\_ASBOX
54074 ## ------------------------------------ ##
54075 ## Report this to bug-autoconf@gnu.org. ##
54076 ## ------------------------------------ ##
54077 _ASBOX
54079 sed "s/^/$as_me: WARNING: /" >&2
54081 no:yes )
54082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54089 cat <<\_ASBOX
54090 ## ------------------------------------ ##
54091 ## Report this to bug-autoconf@gnu.org. ##
54092 ## ------------------------------------ ##
54093 _ASBOX
54095 sed "s/^/$as_me: WARNING: /" >&2
54097 esac
54098 echo "$as_me:$LINENO: checking for $ac_header" >&5
54099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54101 echo $ECHO_N "(cached) $ECHO_C" >&6
54102 else
54103 eval "$as_ac_Header=$ac_header_preproc"
54105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54110 cat >>confdefs.h <<_ACEOF
54111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54112 _ACEOF
54113 ac_has_wchar_h=yes
54114 else
54115 ac_has_wchar_h=no
54118 done
54121 for ac_header in wctype.h
54123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54125 echo "$as_me:$LINENO: checking for $ac_header" >&5
54126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54128 echo $ECHO_N "(cached) $ECHO_C" >&6
54130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54132 else
54133 # Is the header compilable?
54134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54136 cat >conftest.$ac_ext <<_ACEOF
54137 #line $LINENO "configure"
54138 /* confdefs.h. */
54139 _ACEOF
54140 cat confdefs.h >>conftest.$ac_ext
54141 cat >>conftest.$ac_ext <<_ACEOF
54142 /* end confdefs.h. */
54143 $ac_includes_default
54144 #include <$ac_header>
54145 _ACEOF
54146 rm -f conftest.$ac_objext
54147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54148 (eval $ac_compile) 2>&5
54149 ac_status=$?
54150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54151 (exit $ac_status); } &&
54152 { ac_try='test -s conftest.$ac_objext'
54153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54154 (eval $ac_try) 2>&5
54155 ac_status=$?
54156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54157 (exit $ac_status); }; }; then
54158 ac_header_compiler=yes
54159 else
54160 echo "$as_me: failed program was:" >&5
54161 sed 's/^/| /' conftest.$ac_ext >&5
54163 ac_header_compiler=no
54165 rm -f conftest.$ac_objext conftest.$ac_ext
54166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54167 echo "${ECHO_T}$ac_header_compiler" >&6
54169 # Is the header present?
54170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54172 cat >conftest.$ac_ext <<_ACEOF
54173 #line $LINENO "configure"
54174 /* confdefs.h. */
54175 _ACEOF
54176 cat confdefs.h >>conftest.$ac_ext
54177 cat >>conftest.$ac_ext <<_ACEOF
54178 /* end confdefs.h. */
54179 #include <$ac_header>
54180 _ACEOF
54181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54183 ac_status=$?
54184 grep -v '^ *+' conftest.er1 >conftest.err
54185 rm -f conftest.er1
54186 cat conftest.err >&5
54187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54188 (exit $ac_status); } >/dev/null; then
54189 if test -s conftest.err; then
54190 ac_cpp_err=$ac_c_preproc_warn_flag
54191 else
54192 ac_cpp_err=
54194 else
54195 ac_cpp_err=yes
54197 if test -z "$ac_cpp_err"; then
54198 ac_header_preproc=yes
54199 else
54200 echo "$as_me: failed program was:" >&5
54201 sed 's/^/| /' conftest.$ac_ext >&5
54203 ac_header_preproc=no
54205 rm -f conftest.err conftest.$ac_ext
54206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54207 echo "${ECHO_T}$ac_header_preproc" >&6
54209 # So? What about this header?
54210 case $ac_header_compiler:$ac_header_preproc in
54211 yes:no )
54212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54217 cat <<\_ASBOX
54218 ## ------------------------------------ ##
54219 ## Report this to bug-autoconf@gnu.org. ##
54220 ## ------------------------------------ ##
54221 _ASBOX
54223 sed "s/^/$as_me: WARNING: /" >&2
54225 no:yes )
54226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54233 cat <<\_ASBOX
54234 ## ------------------------------------ ##
54235 ## Report this to bug-autoconf@gnu.org. ##
54236 ## ------------------------------------ ##
54237 _ASBOX
54239 sed "s/^/$as_me: WARNING: /" >&2
54241 esac
54242 echo "$as_me:$LINENO: checking for $ac_header" >&5
54243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54245 echo $ECHO_N "(cached) $ECHO_C" >&6
54246 else
54247 eval "$as_ac_Header=$ac_header_preproc"
54249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54254 cat >>confdefs.h <<_ACEOF
54255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54256 _ACEOF
54257 ac_has_wctype_h=yes
54258 else
54259 ac_has_wctype_h=no
54262 done
54265 # Only continue checking if the ISO C99 headers exist and support is on.
54266 if test x"$ac_has_wchar_h" = xyes &&
54267 test x"$ac_has_wctype_h" = xyes &&
54268 test x"$enable_c_mbchar" != xno; then
54270 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54271 # numeric_limits can instantiate type_traits<wchar_t>
54272 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54273 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54274 cat >conftest.$ac_ext <<_ACEOF
54275 #line $LINENO "configure"
54276 /* confdefs.h. */
54277 _ACEOF
54278 cat confdefs.h >>conftest.$ac_ext
54279 cat >>conftest.$ac_ext <<_ACEOF
54280 /* end confdefs.h. */
54281 #include <wchar.h>
54283 main ()
54285 int i = WCHAR_MIN; int j = WCHAR_MAX;
54287 return 0;
54289 _ACEOF
54290 rm -f conftest.$ac_objext
54291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54292 (eval $ac_compile) 2>&5
54293 ac_status=$?
54294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54295 (exit $ac_status); } &&
54296 { ac_try='test -s conftest.$ac_objext'
54297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54298 (eval $ac_try) 2>&5
54299 ac_status=$?
54300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54301 (exit $ac_status); }; }; then
54302 has_wchar_minmax=yes
54303 else
54304 echo "$as_me: failed program was:" >&5
54305 sed 's/^/| /' conftest.$ac_ext >&5
54307 has_wchar_minmax=no
54309 rm -f conftest.$ac_objext conftest.$ac_ext
54310 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54311 echo "${ECHO_T}$has_wchar_minmax" >&6
54313 # Test wchar.h for WEOF, which is what we use to determine whether
54314 # to specialize for char_traits<wchar_t> or not.
54315 echo "$as_me:$LINENO: checking for WEOF" >&5
54316 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54317 cat >conftest.$ac_ext <<_ACEOF
54318 #line $LINENO "configure"
54319 /* confdefs.h. */
54320 _ACEOF
54321 cat confdefs.h >>conftest.$ac_ext
54322 cat >>conftest.$ac_ext <<_ACEOF
54323 /* end confdefs.h. */
54325 #include <wchar.h>
54326 #include <stddef.h>
54328 main ()
54330 wint_t i = WEOF;
54332 return 0;
54334 _ACEOF
54335 rm -f conftest.$ac_objext
54336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54337 (eval $ac_compile) 2>&5
54338 ac_status=$?
54339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54340 (exit $ac_status); } &&
54341 { ac_try='test -s conftest.$ac_objext'
54342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54343 (eval $ac_try) 2>&5
54344 ac_status=$?
54345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54346 (exit $ac_status); }; }; then
54347 has_weof=yes
54348 else
54349 echo "$as_me: failed program was:" >&5
54350 sed 's/^/| /' conftest.$ac_ext >&5
54352 has_weof=no
54354 rm -f conftest.$ac_objext conftest.$ac_ext
54355 echo "$as_me:$LINENO: result: $has_weof" >&5
54356 echo "${ECHO_T}$has_weof" >&6
54358 # Tests for wide character functions used in char_traits<wchar_t>.
54359 ac_wfuncs=yes
54366 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54369 echo "$as_me:$LINENO: checking for $ac_func" >&5
54370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54371 if eval "test \"\${$as_ac_var+set}\" = set"; then
54372 echo $ECHO_N "(cached) $ECHO_C" >&6
54373 else
54374 if test x$gcc_no_link = xyes; then
54375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54377 { (exit 1); exit 1; }; }
54379 cat >conftest.$ac_ext <<_ACEOF
54380 #line $LINENO "configure"
54381 /* confdefs.h. */
54382 _ACEOF
54383 cat confdefs.h >>conftest.$ac_ext
54384 cat >>conftest.$ac_ext <<_ACEOF
54385 /* end confdefs.h. */
54386 /* System header to define __stub macros and hopefully few prototypes,
54387 which can conflict with char $ac_func (); below.
54388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54389 <limits.h> exists even on freestanding compilers. */
54390 #ifdef __STDC__
54391 # include <limits.h>
54392 #else
54393 # include <assert.h>
54394 #endif
54395 /* Override any gcc2 internal prototype to avoid an error. */
54396 #ifdef __cplusplus
54397 extern "C"
54399 #endif
54400 /* We use char because int might match the return type of a gcc2
54401 builtin and then its argument prototype would still apply. */
54402 char $ac_func ();
54403 /* The GNU C library defines this for functions which it implements
54404 to always fail with ENOSYS. Some functions are actually named
54405 something starting with __ and the normal name is an alias. */
54406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54407 choke me
54408 #else
54409 char (*f) () = $ac_func;
54410 #endif
54411 #ifdef __cplusplus
54413 #endif
54416 main ()
54418 return f != $ac_func;
54420 return 0;
54422 _ACEOF
54423 rm -f conftest.$ac_objext conftest$ac_exeext
54424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54425 (eval $ac_link) 2>&5
54426 ac_status=$?
54427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54428 (exit $ac_status); } &&
54429 { ac_try='test -s conftest$ac_exeext'
54430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54431 (eval $ac_try) 2>&5
54432 ac_status=$?
54433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54434 (exit $ac_status); }; }; then
54435 eval "$as_ac_var=yes"
54436 else
54437 echo "$as_me: failed program was:" >&5
54438 sed 's/^/| /' conftest.$ac_ext >&5
54440 eval "$as_ac_var=no"
54442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54446 if test `eval echo '${'$as_ac_var'}'` = yes; then
54447 cat >>confdefs.h <<_ACEOF
54448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54449 _ACEOF
54451 else
54452 ac_wfuncs=no
54454 done
54457 # Checks for names injected into std:: by the c_std headers.
54504 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54505 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54506 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54507 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54508 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54509 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54512 echo "$as_me:$LINENO: checking for $ac_func" >&5
54513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54514 if eval "test \"\${$as_ac_var+set}\" = set"; then
54515 echo $ECHO_N "(cached) $ECHO_C" >&6
54516 else
54517 if test x$gcc_no_link = xyes; then
54518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54520 { (exit 1); exit 1; }; }
54522 cat >conftest.$ac_ext <<_ACEOF
54523 #line $LINENO "configure"
54524 /* confdefs.h. */
54525 _ACEOF
54526 cat confdefs.h >>conftest.$ac_ext
54527 cat >>conftest.$ac_ext <<_ACEOF
54528 /* end confdefs.h. */
54529 /* System header to define __stub macros and hopefully few prototypes,
54530 which can conflict with char $ac_func (); below.
54531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54532 <limits.h> exists even on freestanding compilers. */
54533 #ifdef __STDC__
54534 # include <limits.h>
54535 #else
54536 # include <assert.h>
54537 #endif
54538 /* Override any gcc2 internal prototype to avoid an error. */
54539 #ifdef __cplusplus
54540 extern "C"
54542 #endif
54543 /* We use char because int might match the return type of a gcc2
54544 builtin and then its argument prototype would still apply. */
54545 char $ac_func ();
54546 /* The GNU C library defines this for functions which it implements
54547 to always fail with ENOSYS. Some functions are actually named
54548 something starting with __ and the normal name is an alias. */
54549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54550 choke me
54551 #else
54552 char (*f) () = $ac_func;
54553 #endif
54554 #ifdef __cplusplus
54556 #endif
54559 main ()
54561 return f != $ac_func;
54563 return 0;
54565 _ACEOF
54566 rm -f conftest.$ac_objext conftest$ac_exeext
54567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54568 (eval $ac_link) 2>&5
54569 ac_status=$?
54570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54571 (exit $ac_status); } &&
54572 { ac_try='test -s conftest$ac_exeext'
54573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54574 (eval $ac_try) 2>&5
54575 ac_status=$?
54576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54577 (exit $ac_status); }; }; then
54578 eval "$as_ac_var=yes"
54579 else
54580 echo "$as_me: failed program was:" >&5
54581 sed 's/^/| /' conftest.$ac_ext >&5
54583 eval "$as_ac_var=no"
54585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54589 if test `eval echo '${'$as_ac_var'}'` = yes; then
54590 cat >>confdefs.h <<_ACEOF
54591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54592 _ACEOF
54594 else
54595 ac_wfuncs=no
54597 done
54600 # Checks for wide character functions that are not required
54601 # for basic wchar_t support. Don't disable support if they are missing.
54602 # Injection of these is wrapped with guard macros.
54608 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54611 echo "$as_me:$LINENO: checking for $ac_func" >&5
54612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54613 if eval "test \"\${$as_ac_var+set}\" = set"; then
54614 echo $ECHO_N "(cached) $ECHO_C" >&6
54615 else
54616 if test x$gcc_no_link = xyes; then
54617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54619 { (exit 1); exit 1; }; }
54621 cat >conftest.$ac_ext <<_ACEOF
54622 #line $LINENO "configure"
54623 /* confdefs.h. */
54624 _ACEOF
54625 cat confdefs.h >>conftest.$ac_ext
54626 cat >>conftest.$ac_ext <<_ACEOF
54627 /* end confdefs.h. */
54628 /* System header to define __stub macros and hopefully few prototypes,
54629 which can conflict with char $ac_func (); below.
54630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54631 <limits.h> exists even on freestanding compilers. */
54632 #ifdef __STDC__
54633 # include <limits.h>
54634 #else
54635 # include <assert.h>
54636 #endif
54637 /* Override any gcc2 internal prototype to avoid an error. */
54638 #ifdef __cplusplus
54639 extern "C"
54641 #endif
54642 /* We use char because int might match the return type of a gcc2
54643 builtin and then its argument prototype would still apply. */
54644 char $ac_func ();
54645 /* The GNU C library defines this for functions which it implements
54646 to always fail with ENOSYS. Some functions are actually named
54647 something starting with __ and the normal name is an alias. */
54648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54649 choke me
54650 #else
54651 char (*f) () = $ac_func;
54652 #endif
54653 #ifdef __cplusplus
54655 #endif
54658 main ()
54660 return f != $ac_func;
54662 return 0;
54664 _ACEOF
54665 rm -f conftest.$ac_objext conftest$ac_exeext
54666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54667 (eval $ac_link) 2>&5
54668 ac_status=$?
54669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54670 (exit $ac_status); } &&
54671 { ac_try='test -s conftest$ac_exeext'
54672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54673 (eval $ac_try) 2>&5
54674 ac_status=$?
54675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54676 (exit $ac_status); }; }; then
54677 eval "$as_ac_var=yes"
54678 else
54679 echo "$as_me: failed program was:" >&5
54680 sed 's/^/| /' conftest.$ac_ext >&5
54682 eval "$as_ac_var=no"
54684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54688 if test `eval echo '${'$as_ac_var'}'` = yes; then
54689 cat >>confdefs.h <<_ACEOF
54690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54691 _ACEOF
54694 done
54697 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54698 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54699 if test x"$has_weof" = xyes &&
54700 test x"$has_wchar_minmax" = xyes &&
54701 test x"$ac_wfuncs" = xyes;
54702 then
54703 ac_isoC99_wchar_t=yes
54704 else
54705 ac_isoC99_wchar_t=no
54707 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54708 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54710 # Use iconv for wchar_t to char conversions. As such, check for
54711 # X/Open Portability Guide, version 2 features (XPG2).
54712 if test "${ac_cv_header_iconv_h+set}" = set; then
54713 echo "$as_me:$LINENO: checking for iconv.h" >&5
54714 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54715 if test "${ac_cv_header_iconv_h+set}" = set; then
54716 echo $ECHO_N "(cached) $ECHO_C" >&6
54718 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54719 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54720 else
54721 # Is the header compilable?
54722 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54723 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54724 cat >conftest.$ac_ext <<_ACEOF
54725 #line $LINENO "configure"
54726 /* confdefs.h. */
54727 _ACEOF
54728 cat confdefs.h >>conftest.$ac_ext
54729 cat >>conftest.$ac_ext <<_ACEOF
54730 /* end confdefs.h. */
54731 $ac_includes_default
54732 #include <iconv.h>
54733 _ACEOF
54734 rm -f conftest.$ac_objext
54735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54736 (eval $ac_compile) 2>&5
54737 ac_status=$?
54738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54739 (exit $ac_status); } &&
54740 { ac_try='test -s conftest.$ac_objext'
54741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54742 (eval $ac_try) 2>&5
54743 ac_status=$?
54744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54745 (exit $ac_status); }; }; then
54746 ac_header_compiler=yes
54747 else
54748 echo "$as_me: failed program was:" >&5
54749 sed 's/^/| /' conftest.$ac_ext >&5
54751 ac_header_compiler=no
54753 rm -f conftest.$ac_objext conftest.$ac_ext
54754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54755 echo "${ECHO_T}$ac_header_compiler" >&6
54757 # Is the header present?
54758 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54759 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54760 cat >conftest.$ac_ext <<_ACEOF
54761 #line $LINENO "configure"
54762 /* confdefs.h. */
54763 _ACEOF
54764 cat confdefs.h >>conftest.$ac_ext
54765 cat >>conftest.$ac_ext <<_ACEOF
54766 /* end confdefs.h. */
54767 #include <iconv.h>
54768 _ACEOF
54769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54771 ac_status=$?
54772 grep -v '^ *+' conftest.er1 >conftest.err
54773 rm -f conftest.er1
54774 cat conftest.err >&5
54775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54776 (exit $ac_status); } >/dev/null; then
54777 if test -s conftest.err; then
54778 ac_cpp_err=$ac_c_preproc_warn_flag
54779 else
54780 ac_cpp_err=
54782 else
54783 ac_cpp_err=yes
54785 if test -z "$ac_cpp_err"; then
54786 ac_header_preproc=yes
54787 else
54788 echo "$as_me: failed program was:" >&5
54789 sed 's/^/| /' conftest.$ac_ext >&5
54791 ac_header_preproc=no
54793 rm -f conftest.err conftest.$ac_ext
54794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54795 echo "${ECHO_T}$ac_header_preproc" >&6
54797 # So? What about this header?
54798 case $ac_header_compiler:$ac_header_preproc in
54799 yes:no )
54800 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
54801 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54802 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54803 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54805 cat <<\_ASBOX
54806 ## ------------------------------------ ##
54807 ## Report this to bug-autoconf@gnu.org. ##
54808 ## ------------------------------------ ##
54809 _ASBOX
54811 sed "s/^/$as_me: WARNING: /" >&2
54813 no:yes )
54814 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
54815 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
54816 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
54817 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
54818 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54819 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54821 cat <<\_ASBOX
54822 ## ------------------------------------ ##
54823 ## Report this to bug-autoconf@gnu.org. ##
54824 ## ------------------------------------ ##
54825 _ASBOX
54827 sed "s/^/$as_me: WARNING: /" >&2
54829 esac
54830 echo "$as_me:$LINENO: checking for iconv.h" >&5
54831 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54832 if test "${ac_cv_header_iconv_h+set}" = set; then
54833 echo $ECHO_N "(cached) $ECHO_C" >&6
54834 else
54835 ac_cv_header_iconv_h=$ac_header_preproc
54837 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54838 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54841 if test $ac_cv_header_iconv_h = yes; then
54842 ac_has_iconv_h=yes
54843 else
54844 ac_has_iconv_h=no
54848 if test "${ac_cv_header_langinfo_h+set}" = set; then
54849 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54850 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54851 if test "${ac_cv_header_langinfo_h+set}" = set; then
54852 echo $ECHO_N "(cached) $ECHO_C" >&6
54854 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54855 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54856 else
54857 # Is the header compilable?
54858 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54859 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54860 cat >conftest.$ac_ext <<_ACEOF
54861 #line $LINENO "configure"
54862 /* confdefs.h. */
54863 _ACEOF
54864 cat confdefs.h >>conftest.$ac_ext
54865 cat >>conftest.$ac_ext <<_ACEOF
54866 /* end confdefs.h. */
54867 $ac_includes_default
54868 #include <langinfo.h>
54869 _ACEOF
54870 rm -f conftest.$ac_objext
54871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54872 (eval $ac_compile) 2>&5
54873 ac_status=$?
54874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54875 (exit $ac_status); } &&
54876 { ac_try='test -s conftest.$ac_objext'
54877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54878 (eval $ac_try) 2>&5
54879 ac_status=$?
54880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54881 (exit $ac_status); }; }; then
54882 ac_header_compiler=yes
54883 else
54884 echo "$as_me: failed program was:" >&5
54885 sed 's/^/| /' conftest.$ac_ext >&5
54887 ac_header_compiler=no
54889 rm -f conftest.$ac_objext conftest.$ac_ext
54890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54891 echo "${ECHO_T}$ac_header_compiler" >&6
54893 # Is the header present?
54894 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54895 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54896 cat >conftest.$ac_ext <<_ACEOF
54897 #line $LINENO "configure"
54898 /* confdefs.h. */
54899 _ACEOF
54900 cat confdefs.h >>conftest.$ac_ext
54901 cat >>conftest.$ac_ext <<_ACEOF
54902 /* end confdefs.h. */
54903 #include <langinfo.h>
54904 _ACEOF
54905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54907 ac_status=$?
54908 grep -v '^ *+' conftest.er1 >conftest.err
54909 rm -f conftest.er1
54910 cat conftest.err >&5
54911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54912 (exit $ac_status); } >/dev/null; then
54913 if test -s conftest.err; then
54914 ac_cpp_err=$ac_c_preproc_warn_flag
54915 else
54916 ac_cpp_err=
54918 else
54919 ac_cpp_err=yes
54921 if test -z "$ac_cpp_err"; then
54922 ac_header_preproc=yes
54923 else
54924 echo "$as_me: failed program was:" >&5
54925 sed 's/^/| /' conftest.$ac_ext >&5
54927 ac_header_preproc=no
54929 rm -f conftest.err conftest.$ac_ext
54930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54931 echo "${ECHO_T}$ac_header_preproc" >&6
54933 # So? What about this header?
54934 case $ac_header_compiler:$ac_header_preproc in
54935 yes:no )
54936 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54937 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54938 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54939 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54941 cat <<\_ASBOX
54942 ## ------------------------------------ ##
54943 ## Report this to bug-autoconf@gnu.org. ##
54944 ## ------------------------------------ ##
54945 _ASBOX
54947 sed "s/^/$as_me: WARNING: /" >&2
54949 no:yes )
54950 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54951 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54952 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54953 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54954 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54955 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54957 cat <<\_ASBOX
54958 ## ------------------------------------ ##
54959 ## Report this to bug-autoconf@gnu.org. ##
54960 ## ------------------------------------ ##
54961 _ASBOX
54963 sed "s/^/$as_me: WARNING: /" >&2
54965 esac
54966 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54967 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54968 if test "${ac_cv_header_langinfo_h+set}" = set; then
54969 echo $ECHO_N "(cached) $ECHO_C" >&6
54970 else
54971 ac_cv_header_langinfo_h=$ac_header_preproc
54973 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54974 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54977 if test $ac_cv_header_langinfo_h = yes; then
54978 ac_has_langinfo_h=yes
54979 else
54980 ac_has_langinfo_h=no
54985 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54986 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54987 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54988 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54989 echo $ECHO_N "(cached) $ECHO_C" >&6
54990 else
54991 ac_check_lib_save_LIBS=$LIBS
54992 LIBS="-liconv $LIBS"
54993 if test x$gcc_no_link = xyes; then
54994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54996 { (exit 1); exit 1; }; }
54998 cat >conftest.$ac_ext <<_ACEOF
54999 #line $LINENO "configure"
55000 /* confdefs.h. */
55001 _ACEOF
55002 cat confdefs.h >>conftest.$ac_ext
55003 cat >>conftest.$ac_ext <<_ACEOF
55004 /* end confdefs.h. */
55006 /* Override any gcc2 internal prototype to avoid an error. */
55007 #ifdef __cplusplus
55008 extern "C"
55009 #endif
55010 /* We use char because int might match the return type of a gcc2
55011 builtin and then its argument prototype would still apply. */
55012 char iconv ();
55014 main ()
55016 iconv ();
55018 return 0;
55020 _ACEOF
55021 rm -f conftest.$ac_objext conftest$ac_exeext
55022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55023 (eval $ac_link) 2>&5
55024 ac_status=$?
55025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55026 (exit $ac_status); } &&
55027 { ac_try='test -s conftest$ac_exeext'
55028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55029 (eval $ac_try) 2>&5
55030 ac_status=$?
55031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55032 (exit $ac_status); }; }; then
55033 ac_cv_lib_iconv_iconv=yes
55034 else
55035 echo "$as_me: failed program was:" >&5
55036 sed 's/^/| /' conftest.$ac_ext >&5
55038 ac_cv_lib_iconv_iconv=no
55040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55041 LIBS=$ac_check_lib_save_LIBS
55043 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55044 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55045 if test $ac_cv_lib_iconv_iconv = yes; then
55046 libiconv="-liconv"
55049 ac_save_LIBS="$LIBS"
55050 LIBS="$LIBS $libiconv"
55056 for ac_func in iconv_open iconv_close iconv nl_langinfo
55058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55059 echo "$as_me:$LINENO: checking for $ac_func" >&5
55060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55061 if eval "test \"\${$as_ac_var+set}\" = set"; then
55062 echo $ECHO_N "(cached) $ECHO_C" >&6
55063 else
55064 if test x$gcc_no_link = xyes; then
55065 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55067 { (exit 1); exit 1; }; }
55069 cat >conftest.$ac_ext <<_ACEOF
55070 #line $LINENO "configure"
55071 /* confdefs.h. */
55072 _ACEOF
55073 cat confdefs.h >>conftest.$ac_ext
55074 cat >>conftest.$ac_ext <<_ACEOF
55075 /* end confdefs.h. */
55076 /* System header to define __stub macros and hopefully few prototypes,
55077 which can conflict with char $ac_func (); below.
55078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55079 <limits.h> exists even on freestanding compilers. */
55080 #ifdef __STDC__
55081 # include <limits.h>
55082 #else
55083 # include <assert.h>
55084 #endif
55085 /* Override any gcc2 internal prototype to avoid an error. */
55086 #ifdef __cplusplus
55087 extern "C"
55089 #endif
55090 /* We use char because int might match the return type of a gcc2
55091 builtin and then its argument prototype would still apply. */
55092 char $ac_func ();
55093 /* The GNU C library defines this for functions which it implements
55094 to always fail with ENOSYS. Some functions are actually named
55095 something starting with __ and the normal name is an alias. */
55096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55097 choke me
55098 #else
55099 char (*f) () = $ac_func;
55100 #endif
55101 #ifdef __cplusplus
55103 #endif
55106 main ()
55108 return f != $ac_func;
55110 return 0;
55112 _ACEOF
55113 rm -f conftest.$ac_objext conftest$ac_exeext
55114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55115 (eval $ac_link) 2>&5
55116 ac_status=$?
55117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55118 (exit $ac_status); } &&
55119 { ac_try='test -s conftest$ac_exeext'
55120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55121 (eval $ac_try) 2>&5
55122 ac_status=$?
55123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55124 (exit $ac_status); }; }; then
55125 eval "$as_ac_var=yes"
55126 else
55127 echo "$as_me: failed program was:" >&5
55128 sed 's/^/| /' conftest.$ac_ext >&5
55130 eval "$as_ac_var=no"
55132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55136 if test `eval echo '${'$as_ac_var'}'` = yes; then
55137 cat >>confdefs.h <<_ACEOF
55138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55139 _ACEOF
55140 ac_XPG2funcs=yes
55141 else
55142 ac_XPG2funcs=no
55144 done
55147 LIBS="$ac_save_LIBS"
55149 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55150 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55151 if test x"$ac_has_iconv_h" = xyes &&
55152 test x"$ac_has_langinfo_h" = xyes &&
55153 test x"$ac_XPG2funcs" = xyes;
55154 then
55155 ac_XPG2_wchar_t=yes
55156 else
55157 ac_XPG2_wchar_t=no
55159 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55160 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55162 # At the moment, only enable wchar_t specializations if all the
55163 # above support is present.
55164 if test x"$ac_isoC99_wchar_t" = xyes &&
55165 test x"$ac_XPG2_wchar_t" = xyes;
55166 then
55167 cat >>confdefs.h <<\_ACEOF
55168 #define _GLIBCXX_USE_WCHAR_T 1
55169 _ACEOF
55171 enable_wchar_t=yes
55174 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55175 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55176 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55177 echo "${ECHO_T}$enable_wchar_t" >&6
55180 *-netbsd*)
55193 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55194 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55195 fp.h locale.h float.h inttypes.h
55197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55199 echo "$as_me:$LINENO: checking for $ac_header" >&5
55200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55202 echo $ECHO_N "(cached) $ECHO_C" >&6
55204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55206 else
55207 # Is the header compilable?
55208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55210 cat >conftest.$ac_ext <<_ACEOF
55211 #line $LINENO "configure"
55212 /* confdefs.h. */
55213 _ACEOF
55214 cat confdefs.h >>conftest.$ac_ext
55215 cat >>conftest.$ac_ext <<_ACEOF
55216 /* end confdefs.h. */
55217 $ac_includes_default
55218 #include <$ac_header>
55219 _ACEOF
55220 rm -f conftest.$ac_objext
55221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55222 (eval $ac_compile) 2>&5
55223 ac_status=$?
55224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55225 (exit $ac_status); } &&
55226 { ac_try='test -s conftest.$ac_objext'
55227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55228 (eval $ac_try) 2>&5
55229 ac_status=$?
55230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55231 (exit $ac_status); }; }; then
55232 ac_header_compiler=yes
55233 else
55234 echo "$as_me: failed program was:" >&5
55235 sed 's/^/| /' conftest.$ac_ext >&5
55237 ac_header_compiler=no
55239 rm -f conftest.$ac_objext conftest.$ac_ext
55240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55241 echo "${ECHO_T}$ac_header_compiler" >&6
55243 # Is the header present?
55244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55246 cat >conftest.$ac_ext <<_ACEOF
55247 #line $LINENO "configure"
55248 /* confdefs.h. */
55249 _ACEOF
55250 cat confdefs.h >>conftest.$ac_ext
55251 cat >>conftest.$ac_ext <<_ACEOF
55252 /* end confdefs.h. */
55253 #include <$ac_header>
55254 _ACEOF
55255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55257 ac_status=$?
55258 grep -v '^ *+' conftest.er1 >conftest.err
55259 rm -f conftest.er1
55260 cat conftest.err >&5
55261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55262 (exit $ac_status); } >/dev/null; then
55263 if test -s conftest.err; then
55264 ac_cpp_err=$ac_c_preproc_warn_flag
55265 else
55266 ac_cpp_err=
55268 else
55269 ac_cpp_err=yes
55271 if test -z "$ac_cpp_err"; then
55272 ac_header_preproc=yes
55273 else
55274 echo "$as_me: failed program was:" >&5
55275 sed 's/^/| /' conftest.$ac_ext >&5
55277 ac_header_preproc=no
55279 rm -f conftest.err conftest.$ac_ext
55280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55281 echo "${ECHO_T}$ac_header_preproc" >&6
55283 # So? What about this header?
55284 case $ac_header_compiler:$ac_header_preproc in
55285 yes:no )
55286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55291 cat <<\_ASBOX
55292 ## ------------------------------------ ##
55293 ## Report this to bug-autoconf@gnu.org. ##
55294 ## ------------------------------------ ##
55295 _ASBOX
55297 sed "s/^/$as_me: WARNING: /" >&2
55299 no:yes )
55300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55307 cat <<\_ASBOX
55308 ## ------------------------------------ ##
55309 ## Report this to bug-autoconf@gnu.org. ##
55310 ## ------------------------------------ ##
55311 _ASBOX
55313 sed "s/^/$as_me: WARNING: /" >&2
55315 esac
55316 echo "$as_me:$LINENO: checking for $ac_header" >&5
55317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55319 echo $ECHO_N "(cached) $ECHO_C" >&6
55320 else
55321 eval "$as_ac_Header=$ac_header_preproc"
55323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55328 cat >>confdefs.h <<_ACEOF
55329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55330 _ACEOF
55334 done
55336 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55339 # If we're not using GNU ld, then there's no point in even trying these
55340 # tests. Check for that first. We should have already tested for gld
55341 # by now (in libtool), but require it now just to be safe...
55342 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55343 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55347 # The name set by libtool depends on the version of libtool. Shame on us
55348 # for depending on an impl detail, but c'est la vie. Older versions used
55349 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55350 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55351 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55352 # set (hence we're using an older libtool), then set it.
55353 if test x${with_gnu_ld+set} != xset; then
55354 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55355 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
55356 with_gnu_ld=no
55357 else
55358 with_gnu_ld=$ac_cv_prog_gnu_ld
55362 # Start by getting the version number. I think the libtool test already
55363 # does some of this, but throws away the result.
55365 ldver=`$LD --version 2>/dev/null | head -1 | \
55366 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55368 glibcxx_gnu_ld_version=`echo $ldver | \
55369 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55371 # Set --gc-sections.
55372 if test "$with_gnu_ld" = "notbroken"; then
55373 # GNU ld it is! Joy and bunny rabbits!
55375 # All these tests are for C++; save the language and the compiler flags.
55376 # Need to do this so that g++ won't try to link in libstdc++
55377 ac_test_CFLAGS="${CFLAGS+set}"
55378 ac_save_CFLAGS="$CFLAGS"
55379 CFLAGS='-x c++ -Wl,--gc-sections'
55381 # Check for -Wl,--gc-sections
55382 # XXX This test is broken at the moment, as symbols required for linking
55383 # are now in libsupc++ (not built yet). In addition, this test has
55384 # cored on solaris in the past. In addition, --gc-sections doesn't
55385 # really work at the moment (keeps on discarding used sections, first
55386 # .eh_frame and now some of the glibc sections for iconv).
55387 # Bzzzzt. Thanks for playing, maybe next time.
55388 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55389 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55390 if test "$cross_compiling" = yes; then
55391 ac_sectionLDflags=yes
55392 else
55393 cat >conftest.$ac_ext <<_ACEOF
55394 #line $LINENO "configure"
55395 /* confdefs.h. */
55396 _ACEOF
55397 cat confdefs.h >>conftest.$ac_ext
55398 cat >>conftest.$ac_ext <<_ACEOF
55399 /* end confdefs.h. */
55401 int main(void)
55403 try { throw 1; }
55404 catch (...) { };
55405 return 0;
55408 _ACEOF
55409 rm -f conftest$ac_exeext
55410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55411 (eval $ac_link) 2>&5
55412 ac_status=$?
55413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55416 (eval $ac_try) 2>&5
55417 ac_status=$?
55418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55419 (exit $ac_status); }; }; then
55420 ac_sectionLDflags=yes
55421 else
55422 echo "$as_me: program exited with status $ac_status" >&5
55423 echo "$as_me: failed program was:" >&5
55424 sed 's/^/| /' conftest.$ac_ext >&5
55426 ( exit $ac_status )
55427 ac_sectionLDflags=no
55429 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55431 if test "$ac_test_CFLAGS" = set; then
55432 CFLAGS="$ac_save_CFLAGS"
55433 else
55434 # this is the suspicious part
55435 CFLAGS=''
55437 if test "$ac_sectionLDflags" = "yes"; then
55438 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
55440 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
55441 echo "${ECHO_T}$ac_sectionLDflags" >&6
55444 # Set linker optimization flags.
55445 if test x"$with_gnu_ld" = x"yes"; then
55446 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
55454 echo "$as_me:$LINENO: checking for main in -lm" >&5
55455 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
55456 if test "${ac_cv_lib_m_main+set}" = set; then
55457 echo $ECHO_N "(cached) $ECHO_C" >&6
55458 else
55459 ac_check_lib_save_LIBS=$LIBS
55460 LIBS="-lm $LIBS"
55461 if test x$gcc_no_link = xyes; then
55462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55464 { (exit 1); exit 1; }; }
55466 cat >conftest.$ac_ext <<_ACEOF
55467 #line $LINENO "configure"
55468 /* confdefs.h. */
55469 _ACEOF
55470 cat confdefs.h >>conftest.$ac_ext
55471 cat >>conftest.$ac_ext <<_ACEOF
55472 /* end confdefs.h. */
55476 main ()
55478 main ();
55480 return 0;
55482 _ACEOF
55483 rm -f conftest.$ac_objext conftest$ac_exeext
55484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55485 (eval $ac_link) 2>&5
55486 ac_status=$?
55487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488 (exit $ac_status); } &&
55489 { ac_try='test -s conftest$ac_exeext'
55490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55491 (eval $ac_try) 2>&5
55492 ac_status=$?
55493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55494 (exit $ac_status); }; }; then
55495 ac_cv_lib_m_main=yes
55496 else
55497 echo "$as_me: failed program was:" >&5
55498 sed 's/^/| /' conftest.$ac_ext >&5
55500 ac_cv_lib_m_main=no
55502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55503 LIBS=$ac_check_lib_save_LIBS
55505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
55506 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
55507 if test $ac_cv_lib_m_main = yes; then
55508 cat >>confdefs.h <<_ACEOF
55509 #define HAVE_LIBM 1
55510 _ACEOF
55512 LIBS="-lm $LIBS"
55518 for ac_func in nan copysignf
55520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55521 echo "$as_me:$LINENO: checking for $ac_func" >&5
55522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55523 if eval "test \"\${$as_ac_var+set}\" = set"; then
55524 echo $ECHO_N "(cached) $ECHO_C" >&6
55525 else
55526 if test x$gcc_no_link = xyes; then
55527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55529 { (exit 1); exit 1; }; }
55531 cat >conftest.$ac_ext <<_ACEOF
55532 #line $LINENO "configure"
55533 /* confdefs.h. */
55534 _ACEOF
55535 cat confdefs.h >>conftest.$ac_ext
55536 cat >>conftest.$ac_ext <<_ACEOF
55537 /* end confdefs.h. */
55538 /* System header to define __stub macros and hopefully few prototypes,
55539 which can conflict with char $ac_func (); below.
55540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55541 <limits.h> exists even on freestanding compilers. */
55542 #ifdef __STDC__
55543 # include <limits.h>
55544 #else
55545 # include <assert.h>
55546 #endif
55547 /* Override any gcc2 internal prototype to avoid an error. */
55548 #ifdef __cplusplus
55549 extern "C"
55551 #endif
55552 /* We use char because int might match the return type of a gcc2
55553 builtin and then its argument prototype would still apply. */
55554 char $ac_func ();
55555 /* The GNU C library defines this for functions which it implements
55556 to always fail with ENOSYS. Some functions are actually named
55557 something starting with __ and the normal name is an alias. */
55558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55559 choke me
55560 #else
55561 char (*f) () = $ac_func;
55562 #endif
55563 #ifdef __cplusplus
55565 #endif
55568 main ()
55570 return f != $ac_func;
55572 return 0;
55574 _ACEOF
55575 rm -f conftest.$ac_objext conftest$ac_exeext
55576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55577 (eval $ac_link) 2>&5
55578 ac_status=$?
55579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55580 (exit $ac_status); } &&
55581 { ac_try='test -s conftest$ac_exeext'
55582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55583 (eval $ac_try) 2>&5
55584 ac_status=$?
55585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55586 (exit $ac_status); }; }; then
55587 eval "$as_ac_var=yes"
55588 else
55589 echo "$as_me: failed program was:" >&5
55590 sed 's/^/| /' conftest.$ac_ext >&5
55592 eval "$as_ac_var=no"
55594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55598 if test `eval echo '${'$as_ac_var'}'` = yes; then
55599 cat >>confdefs.h <<_ACEOF
55600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55601 _ACEOF
55603 else
55604 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
55606 done
55610 for ac_func in __signbit
55612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55613 echo "$as_me:$LINENO: checking for $ac_func" >&5
55614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55615 if eval "test \"\${$as_ac_var+set}\" = set"; then
55616 echo $ECHO_N "(cached) $ECHO_C" >&6
55617 else
55618 if test x$gcc_no_link = xyes; then
55619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55621 { (exit 1); exit 1; }; }
55623 cat >conftest.$ac_ext <<_ACEOF
55624 #line $LINENO "configure"
55625 /* confdefs.h. */
55626 _ACEOF
55627 cat confdefs.h >>conftest.$ac_ext
55628 cat >>conftest.$ac_ext <<_ACEOF
55629 /* end confdefs.h. */
55630 /* System header to define __stub macros and hopefully few prototypes,
55631 which can conflict with char $ac_func (); below.
55632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55633 <limits.h> exists even on freestanding compilers. */
55634 #ifdef __STDC__
55635 # include <limits.h>
55636 #else
55637 # include <assert.h>
55638 #endif
55639 /* Override any gcc2 internal prototype to avoid an error. */
55640 #ifdef __cplusplus
55641 extern "C"
55643 #endif
55644 /* We use char because int might match the return type of a gcc2
55645 builtin and then its argument prototype would still apply. */
55646 char $ac_func ();
55647 /* The GNU C library defines this for functions which it implements
55648 to always fail with ENOSYS. Some functions are actually named
55649 something starting with __ and the normal name is an alias. */
55650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55651 choke me
55652 #else
55653 char (*f) () = $ac_func;
55654 #endif
55655 #ifdef __cplusplus
55657 #endif
55660 main ()
55662 return f != $ac_func;
55664 return 0;
55666 _ACEOF
55667 rm -f conftest.$ac_objext conftest$ac_exeext
55668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55669 (eval $ac_link) 2>&5
55670 ac_status=$?
55671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55672 (exit $ac_status); } &&
55673 { ac_try='test -s conftest$ac_exeext'
55674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55675 (eval $ac_try) 2>&5
55676 ac_status=$?
55677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55678 (exit $ac_status); }; }; then
55679 eval "$as_ac_var=yes"
55680 else
55681 echo "$as_me: failed program was:" >&5
55682 sed 's/^/| /' conftest.$ac_ext >&5
55684 eval "$as_ac_var=no"
55686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55690 if test `eval echo '${'$as_ac_var'}'` = yes; then
55691 cat >>confdefs.h <<_ACEOF
55692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55693 _ACEOF
55695 else
55696 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
55698 done
55701 for ac_func in __signbitf
55703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55704 echo "$as_me:$LINENO: checking for $ac_func" >&5
55705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55706 if eval "test \"\${$as_ac_var+set}\" = set"; then
55707 echo $ECHO_N "(cached) $ECHO_C" >&6
55708 else
55709 if test x$gcc_no_link = xyes; then
55710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55712 { (exit 1); exit 1; }; }
55714 cat >conftest.$ac_ext <<_ACEOF
55715 #line $LINENO "configure"
55716 /* confdefs.h. */
55717 _ACEOF
55718 cat confdefs.h >>conftest.$ac_ext
55719 cat >>conftest.$ac_ext <<_ACEOF
55720 /* end confdefs.h. */
55721 /* System header to define __stub macros and hopefully few prototypes,
55722 which can conflict with char $ac_func (); below.
55723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55724 <limits.h> exists even on freestanding compilers. */
55725 #ifdef __STDC__
55726 # include <limits.h>
55727 #else
55728 # include <assert.h>
55729 #endif
55730 /* Override any gcc2 internal prototype to avoid an error. */
55731 #ifdef __cplusplus
55732 extern "C"
55734 #endif
55735 /* We use char because int might match the return type of a gcc2
55736 builtin and then its argument prototype would still apply. */
55737 char $ac_func ();
55738 /* The GNU C library defines this for functions which it implements
55739 to always fail with ENOSYS. Some functions are actually named
55740 something starting with __ and the normal name is an alias. */
55741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55742 choke me
55743 #else
55744 char (*f) () = $ac_func;
55745 #endif
55746 #ifdef __cplusplus
55748 #endif
55751 main ()
55753 return f != $ac_func;
55755 return 0;
55757 _ACEOF
55758 rm -f conftest.$ac_objext conftest$ac_exeext
55759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55760 (eval $ac_link) 2>&5
55761 ac_status=$?
55762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55763 (exit $ac_status); } &&
55764 { ac_try='test -s conftest$ac_exeext'
55765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55766 (eval $ac_try) 2>&5
55767 ac_status=$?
55768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55769 (exit $ac_status); }; }; then
55770 eval "$as_ac_var=yes"
55771 else
55772 echo "$as_me: failed program was:" >&5
55773 sed 's/^/| /' conftest.$ac_ext >&5
55775 eval "$as_ac_var=no"
55777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55781 if test `eval echo '${'$as_ac_var'}'` = yes; then
55782 cat >>confdefs.h <<_ACEOF
55783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55784 _ACEOF
55786 else
55787 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
55789 done
55792 if test x$ac_cv_func_copysignl = x"yes"; then
55794 for ac_func in __signbitl
55796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55797 echo "$as_me:$LINENO: checking for $ac_func" >&5
55798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55799 if eval "test \"\${$as_ac_var+set}\" = set"; then
55800 echo $ECHO_N "(cached) $ECHO_C" >&6
55801 else
55802 if test x$gcc_no_link = xyes; then
55803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55805 { (exit 1); exit 1; }; }
55807 cat >conftest.$ac_ext <<_ACEOF
55808 #line $LINENO "configure"
55809 /* confdefs.h. */
55810 _ACEOF
55811 cat confdefs.h >>conftest.$ac_ext
55812 cat >>conftest.$ac_ext <<_ACEOF
55813 /* end confdefs.h. */
55814 /* System header to define __stub macros and hopefully few prototypes,
55815 which can conflict with char $ac_func (); below.
55816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55817 <limits.h> exists even on freestanding compilers. */
55818 #ifdef __STDC__
55819 # include <limits.h>
55820 #else
55821 # include <assert.h>
55822 #endif
55823 /* Override any gcc2 internal prototype to avoid an error. */
55824 #ifdef __cplusplus
55825 extern "C"
55827 #endif
55828 /* We use char because int might match the return type of a gcc2
55829 builtin and then its argument prototype would still apply. */
55830 char $ac_func ();
55831 /* The GNU C library defines this for functions which it implements
55832 to always fail with ENOSYS. Some functions are actually named
55833 something starting with __ and the normal name is an alias. */
55834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55835 choke me
55836 #else
55837 char (*f) () = $ac_func;
55838 #endif
55839 #ifdef __cplusplus
55841 #endif
55844 main ()
55846 return f != $ac_func;
55848 return 0;
55850 _ACEOF
55851 rm -f conftest.$ac_objext conftest$ac_exeext
55852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55853 (eval $ac_link) 2>&5
55854 ac_status=$?
55855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55856 (exit $ac_status); } &&
55857 { ac_try='test -s conftest$ac_exeext'
55858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55859 (eval $ac_try) 2>&5
55860 ac_status=$?
55861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55862 (exit $ac_status); }; }; then
55863 eval "$as_ac_var=yes"
55864 else
55865 echo "$as_me: failed program was:" >&5
55866 sed 's/^/| /' conftest.$ac_ext >&5
55868 eval "$as_ac_var=no"
55870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55874 if test `eval echo '${'$as_ac_var'}'` = yes; then
55875 cat >>confdefs.h <<_ACEOF
55876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55877 _ACEOF
55879 else
55880 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55882 done
55886 # XXX Review this. Nothing uses it.
55887 if test -n "$LIBMATHOBJS"; then
55888 need_libmath=yes
55893 # Test wchar.h for mbstate_t, which is needed for char_traits and
55894 # others even if wchar_t support is not on.
55895 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55896 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55897 cat >conftest.$ac_ext <<_ACEOF
55898 #line $LINENO "configure"
55899 /* confdefs.h. */
55900 _ACEOF
55901 cat confdefs.h >>conftest.$ac_ext
55902 cat >>conftest.$ac_ext <<_ACEOF
55903 /* end confdefs.h. */
55904 #include <wchar.h>
55906 main ()
55908 mbstate_t teststate;
55910 return 0;
55912 _ACEOF
55913 rm -f conftest.$ac_objext
55914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55915 (eval $ac_compile) 2>&5
55916 ac_status=$?
55917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55918 (exit $ac_status); } &&
55919 { ac_try='test -s conftest.$ac_objext'
55920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55921 (eval $ac_try) 2>&5
55922 ac_status=$?
55923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55924 (exit $ac_status); }; }; then
55925 have_mbstate_t=yes
55926 else
55927 echo "$as_me: failed program was:" >&5
55928 sed 's/^/| /' conftest.$ac_ext >&5
55930 have_mbstate_t=no
55932 rm -f conftest.$ac_objext conftest.$ac_ext
55933 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55934 echo "${ECHO_T}$have_mbstate_t" >&6
55935 if test x"$have_mbstate_t" = xyes; then
55936 cat >>confdefs.h <<\_ACEOF
55937 #define HAVE_MBSTATE_T 1
55938 _ACEOF
55942 # Sanity check for existence of ISO C99 headers for extended encoding.
55944 for ac_header in wchar.h
55946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55948 echo "$as_me:$LINENO: checking for $ac_header" >&5
55949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55951 echo $ECHO_N "(cached) $ECHO_C" >&6
55953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55955 else
55956 # Is the header compilable?
55957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55959 cat >conftest.$ac_ext <<_ACEOF
55960 #line $LINENO "configure"
55961 /* confdefs.h. */
55962 _ACEOF
55963 cat confdefs.h >>conftest.$ac_ext
55964 cat >>conftest.$ac_ext <<_ACEOF
55965 /* end confdefs.h. */
55966 $ac_includes_default
55967 #include <$ac_header>
55968 _ACEOF
55969 rm -f conftest.$ac_objext
55970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55971 (eval $ac_compile) 2>&5
55972 ac_status=$?
55973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55974 (exit $ac_status); } &&
55975 { ac_try='test -s conftest.$ac_objext'
55976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55977 (eval $ac_try) 2>&5
55978 ac_status=$?
55979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55980 (exit $ac_status); }; }; then
55981 ac_header_compiler=yes
55982 else
55983 echo "$as_me: failed program was:" >&5
55984 sed 's/^/| /' conftest.$ac_ext >&5
55986 ac_header_compiler=no
55988 rm -f conftest.$ac_objext conftest.$ac_ext
55989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55990 echo "${ECHO_T}$ac_header_compiler" >&6
55992 # Is the header present?
55993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55995 cat >conftest.$ac_ext <<_ACEOF
55996 #line $LINENO "configure"
55997 /* confdefs.h. */
55998 _ACEOF
55999 cat confdefs.h >>conftest.$ac_ext
56000 cat >>conftest.$ac_ext <<_ACEOF
56001 /* end confdefs.h. */
56002 #include <$ac_header>
56003 _ACEOF
56004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56006 ac_status=$?
56007 grep -v '^ *+' conftest.er1 >conftest.err
56008 rm -f conftest.er1
56009 cat conftest.err >&5
56010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56011 (exit $ac_status); } >/dev/null; then
56012 if test -s conftest.err; then
56013 ac_cpp_err=$ac_c_preproc_warn_flag
56014 else
56015 ac_cpp_err=
56017 else
56018 ac_cpp_err=yes
56020 if test -z "$ac_cpp_err"; then
56021 ac_header_preproc=yes
56022 else
56023 echo "$as_me: failed program was:" >&5
56024 sed 's/^/| /' conftest.$ac_ext >&5
56026 ac_header_preproc=no
56028 rm -f conftest.err conftest.$ac_ext
56029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56030 echo "${ECHO_T}$ac_header_preproc" >&6
56032 # So? What about this header?
56033 case $ac_header_compiler:$ac_header_preproc in
56034 yes:no )
56035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56040 cat <<\_ASBOX
56041 ## ------------------------------------ ##
56042 ## Report this to bug-autoconf@gnu.org. ##
56043 ## ------------------------------------ ##
56044 _ASBOX
56046 sed "s/^/$as_me: WARNING: /" >&2
56048 no:yes )
56049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56056 cat <<\_ASBOX
56057 ## ------------------------------------ ##
56058 ## Report this to bug-autoconf@gnu.org. ##
56059 ## ------------------------------------ ##
56060 _ASBOX
56062 sed "s/^/$as_me: WARNING: /" >&2
56064 esac
56065 echo "$as_me:$LINENO: checking for $ac_header" >&5
56066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56068 echo $ECHO_N "(cached) $ECHO_C" >&6
56069 else
56070 eval "$as_ac_Header=$ac_header_preproc"
56072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56077 cat >>confdefs.h <<_ACEOF
56078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56079 _ACEOF
56080 ac_has_wchar_h=yes
56081 else
56082 ac_has_wchar_h=no
56085 done
56088 for ac_header in wctype.h
56090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56092 echo "$as_me:$LINENO: checking for $ac_header" >&5
56093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56095 echo $ECHO_N "(cached) $ECHO_C" >&6
56097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56099 else
56100 # Is the header compilable?
56101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56103 cat >conftest.$ac_ext <<_ACEOF
56104 #line $LINENO "configure"
56105 /* confdefs.h. */
56106 _ACEOF
56107 cat confdefs.h >>conftest.$ac_ext
56108 cat >>conftest.$ac_ext <<_ACEOF
56109 /* end confdefs.h. */
56110 $ac_includes_default
56111 #include <$ac_header>
56112 _ACEOF
56113 rm -f conftest.$ac_objext
56114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56115 (eval $ac_compile) 2>&5
56116 ac_status=$?
56117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56118 (exit $ac_status); } &&
56119 { ac_try='test -s conftest.$ac_objext'
56120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56121 (eval $ac_try) 2>&5
56122 ac_status=$?
56123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56124 (exit $ac_status); }; }; then
56125 ac_header_compiler=yes
56126 else
56127 echo "$as_me: failed program was:" >&5
56128 sed 's/^/| /' conftest.$ac_ext >&5
56130 ac_header_compiler=no
56132 rm -f conftest.$ac_objext conftest.$ac_ext
56133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56134 echo "${ECHO_T}$ac_header_compiler" >&6
56136 # Is the header present?
56137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56139 cat >conftest.$ac_ext <<_ACEOF
56140 #line $LINENO "configure"
56141 /* confdefs.h. */
56142 _ACEOF
56143 cat confdefs.h >>conftest.$ac_ext
56144 cat >>conftest.$ac_ext <<_ACEOF
56145 /* end confdefs.h. */
56146 #include <$ac_header>
56147 _ACEOF
56148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56150 ac_status=$?
56151 grep -v '^ *+' conftest.er1 >conftest.err
56152 rm -f conftest.er1
56153 cat conftest.err >&5
56154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56155 (exit $ac_status); } >/dev/null; then
56156 if test -s conftest.err; then
56157 ac_cpp_err=$ac_c_preproc_warn_flag
56158 else
56159 ac_cpp_err=
56161 else
56162 ac_cpp_err=yes
56164 if test -z "$ac_cpp_err"; then
56165 ac_header_preproc=yes
56166 else
56167 echo "$as_me: failed program was:" >&5
56168 sed 's/^/| /' conftest.$ac_ext >&5
56170 ac_header_preproc=no
56172 rm -f conftest.err conftest.$ac_ext
56173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56174 echo "${ECHO_T}$ac_header_preproc" >&6
56176 # So? What about this header?
56177 case $ac_header_compiler:$ac_header_preproc in
56178 yes:no )
56179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56184 cat <<\_ASBOX
56185 ## ------------------------------------ ##
56186 ## Report this to bug-autoconf@gnu.org. ##
56187 ## ------------------------------------ ##
56188 _ASBOX
56190 sed "s/^/$as_me: WARNING: /" >&2
56192 no:yes )
56193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56200 cat <<\_ASBOX
56201 ## ------------------------------------ ##
56202 ## Report this to bug-autoconf@gnu.org. ##
56203 ## ------------------------------------ ##
56204 _ASBOX
56206 sed "s/^/$as_me: WARNING: /" >&2
56208 esac
56209 echo "$as_me:$LINENO: checking for $ac_header" >&5
56210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56212 echo $ECHO_N "(cached) $ECHO_C" >&6
56213 else
56214 eval "$as_ac_Header=$ac_header_preproc"
56216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56221 cat >>confdefs.h <<_ACEOF
56222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56223 _ACEOF
56224 ac_has_wctype_h=yes
56225 else
56226 ac_has_wctype_h=no
56229 done
56232 # Only continue checking if the ISO C99 headers exist and support is on.
56233 if test x"$ac_has_wchar_h" = xyes &&
56234 test x"$ac_has_wctype_h" = xyes &&
56235 test x"$enable_c_mbchar" != xno; then
56237 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56238 # numeric_limits can instantiate type_traits<wchar_t>
56239 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56240 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56241 cat >conftest.$ac_ext <<_ACEOF
56242 #line $LINENO "configure"
56243 /* confdefs.h. */
56244 _ACEOF
56245 cat confdefs.h >>conftest.$ac_ext
56246 cat >>conftest.$ac_ext <<_ACEOF
56247 /* end confdefs.h. */
56248 #include <wchar.h>
56250 main ()
56252 int i = WCHAR_MIN; int j = WCHAR_MAX;
56254 return 0;
56256 _ACEOF
56257 rm -f conftest.$ac_objext
56258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56259 (eval $ac_compile) 2>&5
56260 ac_status=$?
56261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56262 (exit $ac_status); } &&
56263 { ac_try='test -s conftest.$ac_objext'
56264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56265 (eval $ac_try) 2>&5
56266 ac_status=$?
56267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56268 (exit $ac_status); }; }; then
56269 has_wchar_minmax=yes
56270 else
56271 echo "$as_me: failed program was:" >&5
56272 sed 's/^/| /' conftest.$ac_ext >&5
56274 has_wchar_minmax=no
56276 rm -f conftest.$ac_objext conftest.$ac_ext
56277 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56278 echo "${ECHO_T}$has_wchar_minmax" >&6
56280 # Test wchar.h for WEOF, which is what we use to determine whether
56281 # to specialize for char_traits<wchar_t> or not.
56282 echo "$as_me:$LINENO: checking for WEOF" >&5
56283 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56284 cat >conftest.$ac_ext <<_ACEOF
56285 #line $LINENO "configure"
56286 /* confdefs.h. */
56287 _ACEOF
56288 cat confdefs.h >>conftest.$ac_ext
56289 cat >>conftest.$ac_ext <<_ACEOF
56290 /* end confdefs.h. */
56292 #include <wchar.h>
56293 #include <stddef.h>
56295 main ()
56297 wint_t i = WEOF;
56299 return 0;
56301 _ACEOF
56302 rm -f conftest.$ac_objext
56303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56304 (eval $ac_compile) 2>&5
56305 ac_status=$?
56306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56307 (exit $ac_status); } &&
56308 { ac_try='test -s conftest.$ac_objext'
56309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56310 (eval $ac_try) 2>&5
56311 ac_status=$?
56312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56313 (exit $ac_status); }; }; then
56314 has_weof=yes
56315 else
56316 echo "$as_me: failed program was:" >&5
56317 sed 's/^/| /' conftest.$ac_ext >&5
56319 has_weof=no
56321 rm -f conftest.$ac_objext conftest.$ac_ext
56322 echo "$as_me:$LINENO: result: $has_weof" >&5
56323 echo "${ECHO_T}$has_weof" >&6
56325 # Tests for wide character functions used in char_traits<wchar_t>.
56326 ac_wfuncs=yes
56333 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
56335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56336 echo "$as_me:$LINENO: checking for $ac_func" >&5
56337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56338 if eval "test \"\${$as_ac_var+set}\" = set"; then
56339 echo $ECHO_N "(cached) $ECHO_C" >&6
56340 else
56341 if test x$gcc_no_link = xyes; then
56342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56344 { (exit 1); exit 1; }; }
56346 cat >conftest.$ac_ext <<_ACEOF
56347 #line $LINENO "configure"
56348 /* confdefs.h. */
56349 _ACEOF
56350 cat confdefs.h >>conftest.$ac_ext
56351 cat >>conftest.$ac_ext <<_ACEOF
56352 /* end confdefs.h. */
56353 /* System header to define __stub macros and hopefully few prototypes,
56354 which can conflict with char $ac_func (); below.
56355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56356 <limits.h> exists even on freestanding compilers. */
56357 #ifdef __STDC__
56358 # include <limits.h>
56359 #else
56360 # include <assert.h>
56361 #endif
56362 /* Override any gcc2 internal prototype to avoid an error. */
56363 #ifdef __cplusplus
56364 extern "C"
56366 #endif
56367 /* We use char because int might match the return type of a gcc2
56368 builtin and then its argument prototype would still apply. */
56369 char $ac_func ();
56370 /* The GNU C library defines this for functions which it implements
56371 to always fail with ENOSYS. Some functions are actually named
56372 something starting with __ and the normal name is an alias. */
56373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56374 choke me
56375 #else
56376 char (*f) () = $ac_func;
56377 #endif
56378 #ifdef __cplusplus
56380 #endif
56383 main ()
56385 return f != $ac_func;
56387 return 0;
56389 _ACEOF
56390 rm -f conftest.$ac_objext conftest$ac_exeext
56391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56392 (eval $ac_link) 2>&5
56393 ac_status=$?
56394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56395 (exit $ac_status); } &&
56396 { ac_try='test -s conftest$ac_exeext'
56397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56398 (eval $ac_try) 2>&5
56399 ac_status=$?
56400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56401 (exit $ac_status); }; }; then
56402 eval "$as_ac_var=yes"
56403 else
56404 echo "$as_me: failed program was:" >&5
56405 sed 's/^/| /' conftest.$ac_ext >&5
56407 eval "$as_ac_var=no"
56409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56413 if test `eval echo '${'$as_ac_var'}'` = yes; then
56414 cat >>confdefs.h <<_ACEOF
56415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56416 _ACEOF
56418 else
56419 ac_wfuncs=no
56421 done
56424 # Checks for names injected into std:: by the c_std headers.
56471 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
56472 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
56473 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
56474 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
56475 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
56476 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
56478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56479 echo "$as_me:$LINENO: checking for $ac_func" >&5
56480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56481 if eval "test \"\${$as_ac_var+set}\" = set"; then
56482 echo $ECHO_N "(cached) $ECHO_C" >&6
56483 else
56484 if test x$gcc_no_link = xyes; then
56485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56487 { (exit 1); exit 1; }; }
56489 cat >conftest.$ac_ext <<_ACEOF
56490 #line $LINENO "configure"
56491 /* confdefs.h. */
56492 _ACEOF
56493 cat confdefs.h >>conftest.$ac_ext
56494 cat >>conftest.$ac_ext <<_ACEOF
56495 /* end confdefs.h. */
56496 /* System header to define __stub macros and hopefully few prototypes,
56497 which can conflict with char $ac_func (); below.
56498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56499 <limits.h> exists even on freestanding compilers. */
56500 #ifdef __STDC__
56501 # include <limits.h>
56502 #else
56503 # include <assert.h>
56504 #endif
56505 /* Override any gcc2 internal prototype to avoid an error. */
56506 #ifdef __cplusplus
56507 extern "C"
56509 #endif
56510 /* We use char because int might match the return type of a gcc2
56511 builtin and then its argument prototype would still apply. */
56512 char $ac_func ();
56513 /* The GNU C library defines this for functions which it implements
56514 to always fail with ENOSYS. Some functions are actually named
56515 something starting with __ and the normal name is an alias. */
56516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56517 choke me
56518 #else
56519 char (*f) () = $ac_func;
56520 #endif
56521 #ifdef __cplusplus
56523 #endif
56526 main ()
56528 return f != $ac_func;
56530 return 0;
56532 _ACEOF
56533 rm -f conftest.$ac_objext conftest$ac_exeext
56534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56535 (eval $ac_link) 2>&5
56536 ac_status=$?
56537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56538 (exit $ac_status); } &&
56539 { ac_try='test -s conftest$ac_exeext'
56540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56541 (eval $ac_try) 2>&5
56542 ac_status=$?
56543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56544 (exit $ac_status); }; }; then
56545 eval "$as_ac_var=yes"
56546 else
56547 echo "$as_me: failed program was:" >&5
56548 sed 's/^/| /' conftest.$ac_ext >&5
56550 eval "$as_ac_var=no"
56552 rm -f conftest.$ac_objext 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 ac_wfuncs=no
56564 done
56567 # Checks for wide character functions that are not required
56568 # for basic wchar_t support. Don't disable support if they are missing.
56569 # Injection of these is wrapped with guard macros.
56575 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
56577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56578 echo "$as_me:$LINENO: checking for $ac_func" >&5
56579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56580 if eval "test \"\${$as_ac_var+set}\" = set"; then
56581 echo $ECHO_N "(cached) $ECHO_C" >&6
56582 else
56583 if test x$gcc_no_link = xyes; then
56584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56586 { (exit 1); exit 1; }; }
56588 cat >conftest.$ac_ext <<_ACEOF
56589 #line $LINENO "configure"
56590 /* confdefs.h. */
56591 _ACEOF
56592 cat confdefs.h >>conftest.$ac_ext
56593 cat >>conftest.$ac_ext <<_ACEOF
56594 /* end confdefs.h. */
56595 /* System header to define __stub macros and hopefully few prototypes,
56596 which can conflict with char $ac_func (); below.
56597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56598 <limits.h> exists even on freestanding compilers. */
56599 #ifdef __STDC__
56600 # include <limits.h>
56601 #else
56602 # include <assert.h>
56603 #endif
56604 /* Override any gcc2 internal prototype to avoid an error. */
56605 #ifdef __cplusplus
56606 extern "C"
56608 #endif
56609 /* We use char because int might match the return type of a gcc2
56610 builtin and then its argument prototype would still apply. */
56611 char $ac_func ();
56612 /* The GNU C library defines this for functions which it implements
56613 to always fail with ENOSYS. Some functions are actually named
56614 something starting with __ and the normal name is an alias. */
56615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56616 choke me
56617 #else
56618 char (*f) () = $ac_func;
56619 #endif
56620 #ifdef __cplusplus
56622 #endif
56625 main ()
56627 return f != $ac_func;
56629 return 0;
56631 _ACEOF
56632 rm -f conftest.$ac_objext conftest$ac_exeext
56633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56634 (eval $ac_link) 2>&5
56635 ac_status=$?
56636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56637 (exit $ac_status); } &&
56638 { ac_try='test -s conftest$ac_exeext'
56639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56640 (eval $ac_try) 2>&5
56641 ac_status=$?
56642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56643 (exit $ac_status); }; }; then
56644 eval "$as_ac_var=yes"
56645 else
56646 echo "$as_me: failed program was:" >&5
56647 sed 's/^/| /' conftest.$ac_ext >&5
56649 eval "$as_ac_var=no"
56651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56655 if test `eval echo '${'$as_ac_var'}'` = yes; then
56656 cat >>confdefs.h <<_ACEOF
56657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56658 _ACEOF
56661 done
56664 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
56665 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
56666 if test x"$has_weof" = xyes &&
56667 test x"$has_wchar_minmax" = xyes &&
56668 test x"$ac_wfuncs" = xyes;
56669 then
56670 ac_isoC99_wchar_t=yes
56671 else
56672 ac_isoC99_wchar_t=no
56674 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
56675 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
56677 # Use iconv for wchar_t to char conversions. As such, check for
56678 # X/Open Portability Guide, version 2 features (XPG2).
56679 if test "${ac_cv_header_iconv_h+set}" = set; then
56680 echo "$as_me:$LINENO: checking for iconv.h" >&5
56681 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56682 if test "${ac_cv_header_iconv_h+set}" = set; then
56683 echo $ECHO_N "(cached) $ECHO_C" >&6
56685 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56686 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56687 else
56688 # Is the header compilable?
56689 echo "$as_me:$LINENO: checking iconv.h usability" >&5
56690 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
56691 cat >conftest.$ac_ext <<_ACEOF
56692 #line $LINENO "configure"
56693 /* confdefs.h. */
56694 _ACEOF
56695 cat confdefs.h >>conftest.$ac_ext
56696 cat >>conftest.$ac_ext <<_ACEOF
56697 /* end confdefs.h. */
56698 $ac_includes_default
56699 #include <iconv.h>
56700 _ACEOF
56701 rm -f conftest.$ac_objext
56702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56703 (eval $ac_compile) 2>&5
56704 ac_status=$?
56705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56706 (exit $ac_status); } &&
56707 { ac_try='test -s conftest.$ac_objext'
56708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56709 (eval $ac_try) 2>&5
56710 ac_status=$?
56711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56712 (exit $ac_status); }; }; then
56713 ac_header_compiler=yes
56714 else
56715 echo "$as_me: failed program was:" >&5
56716 sed 's/^/| /' conftest.$ac_ext >&5
56718 ac_header_compiler=no
56720 rm -f conftest.$ac_objext conftest.$ac_ext
56721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56722 echo "${ECHO_T}$ac_header_compiler" >&6
56724 # Is the header present?
56725 echo "$as_me:$LINENO: checking iconv.h presence" >&5
56726 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
56727 cat >conftest.$ac_ext <<_ACEOF
56728 #line $LINENO "configure"
56729 /* confdefs.h. */
56730 _ACEOF
56731 cat confdefs.h >>conftest.$ac_ext
56732 cat >>conftest.$ac_ext <<_ACEOF
56733 /* end confdefs.h. */
56734 #include <iconv.h>
56735 _ACEOF
56736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56738 ac_status=$?
56739 grep -v '^ *+' conftest.er1 >conftest.err
56740 rm -f conftest.er1
56741 cat conftest.err >&5
56742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56743 (exit $ac_status); } >/dev/null; then
56744 if test -s conftest.err; then
56745 ac_cpp_err=$ac_c_preproc_warn_flag
56746 else
56747 ac_cpp_err=
56749 else
56750 ac_cpp_err=yes
56752 if test -z "$ac_cpp_err"; then
56753 ac_header_preproc=yes
56754 else
56755 echo "$as_me: failed program was:" >&5
56756 sed 's/^/| /' conftest.$ac_ext >&5
56758 ac_header_preproc=no
56760 rm -f conftest.err conftest.$ac_ext
56761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56762 echo "${ECHO_T}$ac_header_preproc" >&6
56764 # So? What about this header?
56765 case $ac_header_compiler:$ac_header_preproc in
56766 yes:no )
56767 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
56768 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56769 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56770 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56772 cat <<\_ASBOX
56773 ## ------------------------------------ ##
56774 ## Report this to bug-autoconf@gnu.org. ##
56775 ## ------------------------------------ ##
56776 _ASBOX
56778 sed "s/^/$as_me: WARNING: /" >&2
56780 no:yes )
56781 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
56782 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
56783 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
56784 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
56785 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56786 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56788 cat <<\_ASBOX
56789 ## ------------------------------------ ##
56790 ## Report this to bug-autoconf@gnu.org. ##
56791 ## ------------------------------------ ##
56792 _ASBOX
56794 sed "s/^/$as_me: WARNING: /" >&2
56796 esac
56797 echo "$as_me:$LINENO: checking for iconv.h" >&5
56798 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56799 if test "${ac_cv_header_iconv_h+set}" = set; then
56800 echo $ECHO_N "(cached) $ECHO_C" >&6
56801 else
56802 ac_cv_header_iconv_h=$ac_header_preproc
56804 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56805 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56808 if test $ac_cv_header_iconv_h = yes; then
56809 ac_has_iconv_h=yes
56810 else
56811 ac_has_iconv_h=no
56815 if test "${ac_cv_header_langinfo_h+set}" = set; then
56816 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56817 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56818 if test "${ac_cv_header_langinfo_h+set}" = set; then
56819 echo $ECHO_N "(cached) $ECHO_C" >&6
56821 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56822 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56823 else
56824 # Is the header compilable?
56825 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
56826 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
56827 cat >conftest.$ac_ext <<_ACEOF
56828 #line $LINENO "configure"
56829 /* confdefs.h. */
56830 _ACEOF
56831 cat confdefs.h >>conftest.$ac_ext
56832 cat >>conftest.$ac_ext <<_ACEOF
56833 /* end confdefs.h. */
56834 $ac_includes_default
56835 #include <langinfo.h>
56836 _ACEOF
56837 rm -f conftest.$ac_objext
56838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56839 (eval $ac_compile) 2>&5
56840 ac_status=$?
56841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56842 (exit $ac_status); } &&
56843 { ac_try='test -s conftest.$ac_objext'
56844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56845 (eval $ac_try) 2>&5
56846 ac_status=$?
56847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56848 (exit $ac_status); }; }; then
56849 ac_header_compiler=yes
56850 else
56851 echo "$as_me: failed program was:" >&5
56852 sed 's/^/| /' conftest.$ac_ext >&5
56854 ac_header_compiler=no
56856 rm -f conftest.$ac_objext conftest.$ac_ext
56857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56858 echo "${ECHO_T}$ac_header_compiler" >&6
56860 # Is the header present?
56861 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
56862 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
56863 cat >conftest.$ac_ext <<_ACEOF
56864 #line $LINENO "configure"
56865 /* confdefs.h. */
56866 _ACEOF
56867 cat confdefs.h >>conftest.$ac_ext
56868 cat >>conftest.$ac_ext <<_ACEOF
56869 /* end confdefs.h. */
56870 #include <langinfo.h>
56871 _ACEOF
56872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56874 ac_status=$?
56875 grep -v '^ *+' conftest.er1 >conftest.err
56876 rm -f conftest.er1
56877 cat conftest.err >&5
56878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56879 (exit $ac_status); } >/dev/null; then
56880 if test -s conftest.err; then
56881 ac_cpp_err=$ac_c_preproc_warn_flag
56882 else
56883 ac_cpp_err=
56885 else
56886 ac_cpp_err=yes
56888 if test -z "$ac_cpp_err"; then
56889 ac_header_preproc=yes
56890 else
56891 echo "$as_me: failed program was:" >&5
56892 sed 's/^/| /' conftest.$ac_ext >&5
56894 ac_header_preproc=no
56896 rm -f conftest.err conftest.$ac_ext
56897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56898 echo "${ECHO_T}$ac_header_preproc" >&6
56900 # So? What about this header?
56901 case $ac_header_compiler:$ac_header_preproc in
56902 yes:no )
56903 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
56904 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56905 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56906 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56908 cat <<\_ASBOX
56909 ## ------------------------------------ ##
56910 ## Report this to bug-autoconf@gnu.org. ##
56911 ## ------------------------------------ ##
56912 _ASBOX
56914 sed "s/^/$as_me: WARNING: /" >&2
56916 no:yes )
56917 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
56918 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
56919 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
56920 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
56921 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56922 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56924 cat <<\_ASBOX
56925 ## ------------------------------------ ##
56926 ## Report this to bug-autoconf@gnu.org. ##
56927 ## ------------------------------------ ##
56928 _ASBOX
56930 sed "s/^/$as_me: WARNING: /" >&2
56932 esac
56933 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56934 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56935 if test "${ac_cv_header_langinfo_h+set}" = set; then
56936 echo $ECHO_N "(cached) $ECHO_C" >&6
56937 else
56938 ac_cv_header_langinfo_h=$ac_header_preproc
56940 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56941 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56944 if test $ac_cv_header_langinfo_h = yes; then
56945 ac_has_langinfo_h=yes
56946 else
56947 ac_has_langinfo_h=no
56952 # Check for existence of libiconv.a providing XPG2 wchar_t support.
56953 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56954 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56955 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56956 echo $ECHO_N "(cached) $ECHO_C" >&6
56957 else
56958 ac_check_lib_save_LIBS=$LIBS
56959 LIBS="-liconv $LIBS"
56960 if test x$gcc_no_link = xyes; then
56961 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56963 { (exit 1); exit 1; }; }
56965 cat >conftest.$ac_ext <<_ACEOF
56966 #line $LINENO "configure"
56967 /* confdefs.h. */
56968 _ACEOF
56969 cat confdefs.h >>conftest.$ac_ext
56970 cat >>conftest.$ac_ext <<_ACEOF
56971 /* end confdefs.h. */
56973 /* Override any gcc2 internal prototype to avoid an error. */
56974 #ifdef __cplusplus
56975 extern "C"
56976 #endif
56977 /* We use char because int might match the return type of a gcc2
56978 builtin and then its argument prototype would still apply. */
56979 char iconv ();
56981 main ()
56983 iconv ();
56985 return 0;
56987 _ACEOF
56988 rm -f conftest.$ac_objext conftest$ac_exeext
56989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56990 (eval $ac_link) 2>&5
56991 ac_status=$?
56992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56993 (exit $ac_status); } &&
56994 { ac_try='test -s conftest$ac_exeext'
56995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56996 (eval $ac_try) 2>&5
56997 ac_status=$?
56998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56999 (exit $ac_status); }; }; then
57000 ac_cv_lib_iconv_iconv=yes
57001 else
57002 echo "$as_me: failed program was:" >&5
57003 sed 's/^/| /' conftest.$ac_ext >&5
57005 ac_cv_lib_iconv_iconv=no
57007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57008 LIBS=$ac_check_lib_save_LIBS
57010 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57011 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57012 if test $ac_cv_lib_iconv_iconv = yes; then
57013 libiconv="-liconv"
57016 ac_save_LIBS="$LIBS"
57017 LIBS="$LIBS $libiconv"
57023 for ac_func in iconv_open iconv_close iconv nl_langinfo
57025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57026 echo "$as_me:$LINENO: checking for $ac_func" >&5
57027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57028 if eval "test \"\${$as_ac_var+set}\" = set"; then
57029 echo $ECHO_N "(cached) $ECHO_C" >&6
57030 else
57031 if test x$gcc_no_link = xyes; then
57032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57034 { (exit 1); exit 1; }; }
57036 cat >conftest.$ac_ext <<_ACEOF
57037 #line $LINENO "configure"
57038 /* confdefs.h. */
57039 _ACEOF
57040 cat confdefs.h >>conftest.$ac_ext
57041 cat >>conftest.$ac_ext <<_ACEOF
57042 /* end confdefs.h. */
57043 /* System header to define __stub macros and hopefully few prototypes,
57044 which can conflict with char $ac_func (); below.
57045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57046 <limits.h> exists even on freestanding compilers. */
57047 #ifdef __STDC__
57048 # include <limits.h>
57049 #else
57050 # include <assert.h>
57051 #endif
57052 /* Override any gcc2 internal prototype to avoid an error. */
57053 #ifdef __cplusplus
57054 extern "C"
57056 #endif
57057 /* We use char because int might match the return type of a gcc2
57058 builtin and then its argument prototype would still apply. */
57059 char $ac_func ();
57060 /* The GNU C library defines this for functions which it implements
57061 to always fail with ENOSYS. Some functions are actually named
57062 something starting with __ and the normal name is an alias. */
57063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57064 choke me
57065 #else
57066 char (*f) () = $ac_func;
57067 #endif
57068 #ifdef __cplusplus
57070 #endif
57073 main ()
57075 return f != $ac_func;
57077 return 0;
57079 _ACEOF
57080 rm -f conftest.$ac_objext conftest$ac_exeext
57081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57082 (eval $ac_link) 2>&5
57083 ac_status=$?
57084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57085 (exit $ac_status); } &&
57086 { ac_try='test -s conftest$ac_exeext'
57087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57088 (eval $ac_try) 2>&5
57089 ac_status=$?
57090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57091 (exit $ac_status); }; }; then
57092 eval "$as_ac_var=yes"
57093 else
57094 echo "$as_me: failed program was:" >&5
57095 sed 's/^/| /' conftest.$ac_ext >&5
57097 eval "$as_ac_var=no"
57099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57103 if test `eval echo '${'$as_ac_var'}'` = yes; then
57104 cat >>confdefs.h <<_ACEOF
57105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57106 _ACEOF
57107 ac_XPG2funcs=yes
57108 else
57109 ac_XPG2funcs=no
57111 done
57114 LIBS="$ac_save_LIBS"
57116 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57117 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57118 if test x"$ac_has_iconv_h" = xyes &&
57119 test x"$ac_has_langinfo_h" = xyes &&
57120 test x"$ac_XPG2funcs" = xyes;
57121 then
57122 ac_XPG2_wchar_t=yes
57123 else
57124 ac_XPG2_wchar_t=no
57126 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57127 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57129 # At the moment, only enable wchar_t specializations if all the
57130 # above support is present.
57131 if test x"$ac_isoC99_wchar_t" = xyes &&
57132 test x"$ac_XPG2_wchar_t" = xyes;
57133 then
57134 cat >>confdefs.h <<\_ACEOF
57135 #define _GLIBCXX_USE_WCHAR_T 1
57136 _ACEOF
57138 enable_wchar_t=yes
57141 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57142 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57143 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57144 echo "${ECHO_T}$enable_wchar_t" >&6
57146 cat >>confdefs.h <<\_ACEOF
57147 #define HAVE_COPYSIGN 1
57148 _ACEOF
57150 cat >>confdefs.h <<\_ACEOF
57151 #define HAVE_COPYSIGNF 1
57152 _ACEOF
57154 cat >>confdefs.h <<\_ACEOF
57155 #define HAVE_FINITEF 1
57156 _ACEOF
57158 cat >>confdefs.h <<\_ACEOF
57159 #define HAVE_FINITE 1
57160 _ACEOF
57162 cat >>confdefs.h <<\_ACEOF
57163 #define HAVE_FREXPF 1
57164 _ACEOF
57166 cat >>confdefs.h <<\_ACEOF
57167 #define HAVE_HYPOTF 1
57168 _ACEOF
57170 cat >>confdefs.h <<\_ACEOF
57171 #define HAVE_ISINF 1
57172 _ACEOF
57174 cat >>confdefs.h <<\_ACEOF
57175 #define HAVE_ISINFF 1
57176 _ACEOF
57178 cat >>confdefs.h <<\_ACEOF
57179 #define HAVE_ISNAN 1
57180 _ACEOF
57182 cat >>confdefs.h <<\_ACEOF
57183 #define HAVE_ISNANF 1
57184 _ACEOF
57186 if test x"long_double_math_on_this_cpu" = x"yes"; then
57187 cat >>confdefs.h <<\_ACEOF
57188 #define HAVE_FINITEL 1
57189 _ACEOF
57191 cat >>confdefs.h <<\_ACEOF
57192 #define HAVE_ISINFL 1
57193 _ACEOF
57195 cat >>confdefs.h <<\_ACEOF
57196 #define HAVE_ISNANL 1
57197 _ACEOF
57201 *-qnx6.1* | *-qnx6.2*)
57202 SECTION_FLAGS='-ffunction-sections -fdata-sections'
57205 # If we're not using GNU ld, then there's no point in even trying these
57206 # tests. Check for that first. We should have already tested for gld
57207 # by now (in libtool), but require it now just to be safe...
57208 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
57209 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
57213 # The name set by libtool depends on the version of libtool. Shame on us
57214 # for depending on an impl detail, but c'est la vie. Older versions used
57215 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
57216 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
57217 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
57218 # set (hence we're using an older libtool), then set it.
57219 if test x${with_gnu_ld+set} != xset; then
57220 if test x${ac_cv_prog_gnu_ld+set} != xset; then
57221 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
57222 with_gnu_ld=no
57223 else
57224 with_gnu_ld=$ac_cv_prog_gnu_ld
57228 # Start by getting the version number. I think the libtool test already
57229 # does some of this, but throws away the result.
57231 ldver=`$LD --version 2>/dev/null | head -1 | \
57232 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
57234 glibcxx_gnu_ld_version=`echo $ldver | \
57235 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
57237 # Set --gc-sections.
57238 if test "$with_gnu_ld" = "notbroken"; then
57239 # GNU ld it is! Joy and bunny rabbits!
57241 # All these tests are for C++; save the language and the compiler flags.
57242 # Need to do this so that g++ won't try to link in libstdc++
57243 ac_test_CFLAGS="${CFLAGS+set}"
57244 ac_save_CFLAGS="$CFLAGS"
57245 CFLAGS='-x c++ -Wl,--gc-sections'
57247 # Check for -Wl,--gc-sections
57248 # XXX This test is broken at the moment, as symbols required for linking
57249 # are now in libsupc++ (not built yet). In addition, this test has
57250 # cored on solaris in the past. In addition, --gc-sections doesn't
57251 # really work at the moment (keeps on discarding used sections, first
57252 # .eh_frame and now some of the glibc sections for iconv).
57253 # Bzzzzt. Thanks for playing, maybe next time.
57254 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
57255 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
57256 if test "$cross_compiling" = yes; then
57257 ac_sectionLDflags=yes
57258 else
57259 cat >conftest.$ac_ext <<_ACEOF
57260 #line $LINENO "configure"
57261 /* confdefs.h. */
57262 _ACEOF
57263 cat confdefs.h >>conftest.$ac_ext
57264 cat >>conftest.$ac_ext <<_ACEOF
57265 /* end confdefs.h. */
57267 int main(void)
57269 try { throw 1; }
57270 catch (...) { };
57271 return 0;
57274 _ACEOF
57275 rm -f conftest$ac_exeext
57276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57277 (eval $ac_link) 2>&5
57278 ac_status=$?
57279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57282 (eval $ac_try) 2>&5
57283 ac_status=$?
57284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57285 (exit $ac_status); }; }; then
57286 ac_sectionLDflags=yes
57287 else
57288 echo "$as_me: program exited with status $ac_status" >&5
57289 echo "$as_me: failed program was:" >&5
57290 sed 's/^/| /' conftest.$ac_ext >&5
57292 ( exit $ac_status )
57293 ac_sectionLDflags=no
57295 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57297 if test "$ac_test_CFLAGS" = set; then
57298 CFLAGS="$ac_save_CFLAGS"
57299 else
57300 # this is the suspicious part
57301 CFLAGS=''
57303 if test "$ac_sectionLDflags" = "yes"; then
57304 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
57306 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
57307 echo "${ECHO_T}$ac_sectionLDflags" >&6
57310 # Set linker optimization flags.
57311 if test x"$with_gnu_ld" = x"yes"; then
57312 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
57320 echo "$as_me:$LINENO: checking for main in -lm" >&5
57321 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
57322 if test "${ac_cv_lib_m_main+set}" = set; then
57323 echo $ECHO_N "(cached) $ECHO_C" >&6
57324 else
57325 ac_check_lib_save_LIBS=$LIBS
57326 LIBS="-lm $LIBS"
57327 if test x$gcc_no_link = xyes; then
57328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57330 { (exit 1); exit 1; }; }
57332 cat >conftest.$ac_ext <<_ACEOF
57333 #line $LINENO "configure"
57334 /* confdefs.h. */
57335 _ACEOF
57336 cat confdefs.h >>conftest.$ac_ext
57337 cat >>conftest.$ac_ext <<_ACEOF
57338 /* end confdefs.h. */
57342 main ()
57344 main ();
57346 return 0;
57348 _ACEOF
57349 rm -f conftest.$ac_objext conftest$ac_exeext
57350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57351 (eval $ac_link) 2>&5
57352 ac_status=$?
57353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57354 (exit $ac_status); } &&
57355 { ac_try='test -s conftest$ac_exeext'
57356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57357 (eval $ac_try) 2>&5
57358 ac_status=$?
57359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57360 (exit $ac_status); }; }; then
57361 ac_cv_lib_m_main=yes
57362 else
57363 echo "$as_me: failed program was:" >&5
57364 sed 's/^/| /' conftest.$ac_ext >&5
57366 ac_cv_lib_m_main=no
57368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57369 LIBS=$ac_check_lib_save_LIBS
57371 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
57372 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
57373 if test $ac_cv_lib_m_main = yes; then
57374 cat >>confdefs.h <<_ACEOF
57375 #define HAVE_LIBM 1
57376 _ACEOF
57378 LIBS="-lm $LIBS"
57384 for ac_func in nan copysignf
57386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57387 echo "$as_me:$LINENO: checking for $ac_func" >&5
57388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57389 if eval "test \"\${$as_ac_var+set}\" = set"; then
57390 echo $ECHO_N "(cached) $ECHO_C" >&6
57391 else
57392 if test x$gcc_no_link = xyes; then
57393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57395 { (exit 1); exit 1; }; }
57397 cat >conftest.$ac_ext <<_ACEOF
57398 #line $LINENO "configure"
57399 /* confdefs.h. */
57400 _ACEOF
57401 cat confdefs.h >>conftest.$ac_ext
57402 cat >>conftest.$ac_ext <<_ACEOF
57403 /* end confdefs.h. */
57404 /* System header to define __stub macros and hopefully few prototypes,
57405 which can conflict with char $ac_func (); below.
57406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57407 <limits.h> exists even on freestanding compilers. */
57408 #ifdef __STDC__
57409 # include <limits.h>
57410 #else
57411 # include <assert.h>
57412 #endif
57413 /* Override any gcc2 internal prototype to avoid an error. */
57414 #ifdef __cplusplus
57415 extern "C"
57417 #endif
57418 /* We use char because int might match the return type of a gcc2
57419 builtin and then its argument prototype would still apply. */
57420 char $ac_func ();
57421 /* The GNU C library defines this for functions which it implements
57422 to always fail with ENOSYS. Some functions are actually named
57423 something starting with __ and the normal name is an alias. */
57424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57425 choke me
57426 #else
57427 char (*f) () = $ac_func;
57428 #endif
57429 #ifdef __cplusplus
57431 #endif
57434 main ()
57436 return f != $ac_func;
57438 return 0;
57440 _ACEOF
57441 rm -f conftest.$ac_objext conftest$ac_exeext
57442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57443 (eval $ac_link) 2>&5
57444 ac_status=$?
57445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57446 (exit $ac_status); } &&
57447 { ac_try='test -s conftest$ac_exeext'
57448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57449 (eval $ac_try) 2>&5
57450 ac_status=$?
57451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57452 (exit $ac_status); }; }; then
57453 eval "$as_ac_var=yes"
57454 else
57455 echo "$as_me: failed program was:" >&5
57456 sed 's/^/| /' conftest.$ac_ext >&5
57458 eval "$as_ac_var=no"
57460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57464 if test `eval echo '${'$as_ac_var'}'` = yes; then
57465 cat >>confdefs.h <<_ACEOF
57466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57467 _ACEOF
57469 else
57470 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
57472 done
57476 for ac_func in __signbit
57478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57479 echo "$as_me:$LINENO: checking for $ac_func" >&5
57480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57481 if eval "test \"\${$as_ac_var+set}\" = set"; then
57482 echo $ECHO_N "(cached) $ECHO_C" >&6
57483 else
57484 if test x$gcc_no_link = xyes; then
57485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57487 { (exit 1); exit 1; }; }
57489 cat >conftest.$ac_ext <<_ACEOF
57490 #line $LINENO "configure"
57491 /* confdefs.h. */
57492 _ACEOF
57493 cat confdefs.h >>conftest.$ac_ext
57494 cat >>conftest.$ac_ext <<_ACEOF
57495 /* end confdefs.h. */
57496 /* System header to define __stub macros and hopefully few prototypes,
57497 which can conflict with char $ac_func (); below.
57498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57499 <limits.h> exists even on freestanding compilers. */
57500 #ifdef __STDC__
57501 # include <limits.h>
57502 #else
57503 # include <assert.h>
57504 #endif
57505 /* Override any gcc2 internal prototype to avoid an error. */
57506 #ifdef __cplusplus
57507 extern "C"
57509 #endif
57510 /* We use char because int might match the return type of a gcc2
57511 builtin and then its argument prototype would still apply. */
57512 char $ac_func ();
57513 /* The GNU C library defines this for functions which it implements
57514 to always fail with ENOSYS. Some functions are actually named
57515 something starting with __ and the normal name is an alias. */
57516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57517 choke me
57518 #else
57519 char (*f) () = $ac_func;
57520 #endif
57521 #ifdef __cplusplus
57523 #endif
57526 main ()
57528 return f != $ac_func;
57530 return 0;
57532 _ACEOF
57533 rm -f conftest.$ac_objext conftest$ac_exeext
57534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57535 (eval $ac_link) 2>&5
57536 ac_status=$?
57537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57538 (exit $ac_status); } &&
57539 { ac_try='test -s conftest$ac_exeext'
57540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57541 (eval $ac_try) 2>&5
57542 ac_status=$?
57543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57544 (exit $ac_status); }; }; then
57545 eval "$as_ac_var=yes"
57546 else
57547 echo "$as_me: failed program was:" >&5
57548 sed 's/^/| /' conftest.$ac_ext >&5
57550 eval "$as_ac_var=no"
57552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57556 if test `eval echo '${'$as_ac_var'}'` = yes; then
57557 cat >>confdefs.h <<_ACEOF
57558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57559 _ACEOF
57561 else
57562 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
57564 done
57567 for ac_func in __signbitf
57569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57570 echo "$as_me:$LINENO: checking for $ac_func" >&5
57571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57572 if eval "test \"\${$as_ac_var+set}\" = set"; then
57573 echo $ECHO_N "(cached) $ECHO_C" >&6
57574 else
57575 if test x$gcc_no_link = xyes; then
57576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57578 { (exit 1); exit 1; }; }
57580 cat >conftest.$ac_ext <<_ACEOF
57581 #line $LINENO "configure"
57582 /* confdefs.h. */
57583 _ACEOF
57584 cat confdefs.h >>conftest.$ac_ext
57585 cat >>conftest.$ac_ext <<_ACEOF
57586 /* end confdefs.h. */
57587 /* System header to define __stub macros and hopefully few prototypes,
57588 which can conflict with char $ac_func (); below.
57589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57590 <limits.h> exists even on freestanding compilers. */
57591 #ifdef __STDC__
57592 # include <limits.h>
57593 #else
57594 # include <assert.h>
57595 #endif
57596 /* Override any gcc2 internal prototype to avoid an error. */
57597 #ifdef __cplusplus
57598 extern "C"
57600 #endif
57601 /* We use char because int might match the return type of a gcc2
57602 builtin and then its argument prototype would still apply. */
57603 char $ac_func ();
57604 /* The GNU C library defines this for functions which it implements
57605 to always fail with ENOSYS. Some functions are actually named
57606 something starting with __ and the normal name is an alias. */
57607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57608 choke me
57609 #else
57610 char (*f) () = $ac_func;
57611 #endif
57612 #ifdef __cplusplus
57614 #endif
57617 main ()
57619 return f != $ac_func;
57621 return 0;
57623 _ACEOF
57624 rm -f conftest.$ac_objext conftest$ac_exeext
57625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57626 (eval $ac_link) 2>&5
57627 ac_status=$?
57628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57629 (exit $ac_status); } &&
57630 { ac_try='test -s conftest$ac_exeext'
57631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57632 (eval $ac_try) 2>&5
57633 ac_status=$?
57634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57635 (exit $ac_status); }; }; then
57636 eval "$as_ac_var=yes"
57637 else
57638 echo "$as_me: failed program was:" >&5
57639 sed 's/^/| /' conftest.$ac_ext >&5
57641 eval "$as_ac_var=no"
57643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57647 if test `eval echo '${'$as_ac_var'}'` = yes; then
57648 cat >>confdefs.h <<_ACEOF
57649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57650 _ACEOF
57652 else
57653 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
57655 done
57658 if test x$ac_cv_func_copysignl = x"yes"; then
57660 for ac_func in __signbitl
57662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57663 echo "$as_me:$LINENO: checking for $ac_func" >&5
57664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57665 if eval "test \"\${$as_ac_var+set}\" = set"; then
57666 echo $ECHO_N "(cached) $ECHO_C" >&6
57667 else
57668 if test x$gcc_no_link = xyes; then
57669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57671 { (exit 1); exit 1; }; }
57673 cat >conftest.$ac_ext <<_ACEOF
57674 #line $LINENO "configure"
57675 /* confdefs.h. */
57676 _ACEOF
57677 cat confdefs.h >>conftest.$ac_ext
57678 cat >>conftest.$ac_ext <<_ACEOF
57679 /* end confdefs.h. */
57680 /* System header to define __stub macros and hopefully few prototypes,
57681 which can conflict with char $ac_func (); below.
57682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57683 <limits.h> exists even on freestanding compilers. */
57684 #ifdef __STDC__
57685 # include <limits.h>
57686 #else
57687 # include <assert.h>
57688 #endif
57689 /* Override any gcc2 internal prototype to avoid an error. */
57690 #ifdef __cplusplus
57691 extern "C"
57693 #endif
57694 /* We use char because int might match the return type of a gcc2
57695 builtin and then its argument prototype would still apply. */
57696 char $ac_func ();
57697 /* The GNU C library defines this for functions which it implements
57698 to always fail with ENOSYS. Some functions are actually named
57699 something starting with __ and the normal name is an alias. */
57700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57701 choke me
57702 #else
57703 char (*f) () = $ac_func;
57704 #endif
57705 #ifdef __cplusplus
57707 #endif
57710 main ()
57712 return f != $ac_func;
57714 return 0;
57716 _ACEOF
57717 rm -f conftest.$ac_objext conftest$ac_exeext
57718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57719 (eval $ac_link) 2>&5
57720 ac_status=$?
57721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57722 (exit $ac_status); } &&
57723 { ac_try='test -s conftest$ac_exeext'
57724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57725 (eval $ac_try) 2>&5
57726 ac_status=$?
57727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57728 (exit $ac_status); }; }; then
57729 eval "$as_ac_var=yes"
57730 else
57731 echo "$as_me: failed program was:" >&5
57732 sed 's/^/| /' conftest.$ac_ext >&5
57734 eval "$as_ac_var=no"
57736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57740 if test `eval echo '${'$as_ac_var'}'` = yes; then
57741 cat >>confdefs.h <<_ACEOF
57742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57743 _ACEOF
57745 else
57746 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
57748 done
57752 # XXX Review this. Nothing uses it.
57753 if test -n "$LIBMATHOBJS"; then
57754 need_libmath=yes
57759 # Test wchar.h for mbstate_t, which is needed for char_traits and
57760 # others even if wchar_t support is not on.
57761 echo "$as_me:$LINENO: checking for mbstate_t" >&5
57762 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
57763 cat >conftest.$ac_ext <<_ACEOF
57764 #line $LINENO "configure"
57765 /* confdefs.h. */
57766 _ACEOF
57767 cat confdefs.h >>conftest.$ac_ext
57768 cat >>conftest.$ac_ext <<_ACEOF
57769 /* end confdefs.h. */
57770 #include <wchar.h>
57772 main ()
57774 mbstate_t teststate;
57776 return 0;
57778 _ACEOF
57779 rm -f conftest.$ac_objext
57780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57781 (eval $ac_compile) 2>&5
57782 ac_status=$?
57783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57784 (exit $ac_status); } &&
57785 { ac_try='test -s conftest.$ac_objext'
57786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57787 (eval $ac_try) 2>&5
57788 ac_status=$?
57789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57790 (exit $ac_status); }; }; then
57791 have_mbstate_t=yes
57792 else
57793 echo "$as_me: failed program was:" >&5
57794 sed 's/^/| /' conftest.$ac_ext >&5
57796 have_mbstate_t=no
57798 rm -f conftest.$ac_objext conftest.$ac_ext
57799 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
57800 echo "${ECHO_T}$have_mbstate_t" >&6
57801 if test x"$have_mbstate_t" = xyes; then
57802 cat >>confdefs.h <<\_ACEOF
57803 #define HAVE_MBSTATE_T 1
57804 _ACEOF
57808 # Sanity check for existence of ISO C99 headers for extended encoding.
57810 for ac_header in wchar.h
57812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57814 echo "$as_me:$LINENO: checking for $ac_header" >&5
57815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57817 echo $ECHO_N "(cached) $ECHO_C" >&6
57819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57821 else
57822 # Is the header compilable?
57823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57825 cat >conftest.$ac_ext <<_ACEOF
57826 #line $LINENO "configure"
57827 /* confdefs.h. */
57828 _ACEOF
57829 cat confdefs.h >>conftest.$ac_ext
57830 cat >>conftest.$ac_ext <<_ACEOF
57831 /* end confdefs.h. */
57832 $ac_includes_default
57833 #include <$ac_header>
57834 _ACEOF
57835 rm -f conftest.$ac_objext
57836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57837 (eval $ac_compile) 2>&5
57838 ac_status=$?
57839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57840 (exit $ac_status); } &&
57841 { ac_try='test -s conftest.$ac_objext'
57842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57843 (eval $ac_try) 2>&5
57844 ac_status=$?
57845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57846 (exit $ac_status); }; }; then
57847 ac_header_compiler=yes
57848 else
57849 echo "$as_me: failed program was:" >&5
57850 sed 's/^/| /' conftest.$ac_ext >&5
57852 ac_header_compiler=no
57854 rm -f conftest.$ac_objext conftest.$ac_ext
57855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57856 echo "${ECHO_T}$ac_header_compiler" >&6
57858 # Is the header present?
57859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57861 cat >conftest.$ac_ext <<_ACEOF
57862 #line $LINENO "configure"
57863 /* confdefs.h. */
57864 _ACEOF
57865 cat confdefs.h >>conftest.$ac_ext
57866 cat >>conftest.$ac_ext <<_ACEOF
57867 /* end confdefs.h. */
57868 #include <$ac_header>
57869 _ACEOF
57870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57872 ac_status=$?
57873 grep -v '^ *+' conftest.er1 >conftest.err
57874 rm -f conftest.er1
57875 cat conftest.err >&5
57876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57877 (exit $ac_status); } >/dev/null; then
57878 if test -s conftest.err; then
57879 ac_cpp_err=$ac_c_preproc_warn_flag
57880 else
57881 ac_cpp_err=
57883 else
57884 ac_cpp_err=yes
57886 if test -z "$ac_cpp_err"; then
57887 ac_header_preproc=yes
57888 else
57889 echo "$as_me: failed program was:" >&5
57890 sed 's/^/| /' conftest.$ac_ext >&5
57892 ac_header_preproc=no
57894 rm -f conftest.err conftest.$ac_ext
57895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57896 echo "${ECHO_T}$ac_header_preproc" >&6
57898 # So? What about this header?
57899 case $ac_header_compiler:$ac_header_preproc in
57900 yes:no )
57901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57906 cat <<\_ASBOX
57907 ## ------------------------------------ ##
57908 ## Report this to bug-autoconf@gnu.org. ##
57909 ## ------------------------------------ ##
57910 _ASBOX
57912 sed "s/^/$as_me: WARNING: /" >&2
57914 no:yes )
57915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57922 cat <<\_ASBOX
57923 ## ------------------------------------ ##
57924 ## Report this to bug-autoconf@gnu.org. ##
57925 ## ------------------------------------ ##
57926 _ASBOX
57928 sed "s/^/$as_me: WARNING: /" >&2
57930 esac
57931 echo "$as_me:$LINENO: checking for $ac_header" >&5
57932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57934 echo $ECHO_N "(cached) $ECHO_C" >&6
57935 else
57936 eval "$as_ac_Header=$ac_header_preproc"
57938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57943 cat >>confdefs.h <<_ACEOF
57944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57945 _ACEOF
57946 ac_has_wchar_h=yes
57947 else
57948 ac_has_wchar_h=no
57951 done
57954 for ac_header in wctype.h
57956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57958 echo "$as_me:$LINENO: checking for $ac_header" >&5
57959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57961 echo $ECHO_N "(cached) $ECHO_C" >&6
57963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57965 else
57966 # Is the header compilable?
57967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57969 cat >conftest.$ac_ext <<_ACEOF
57970 #line $LINENO "configure"
57971 /* confdefs.h. */
57972 _ACEOF
57973 cat confdefs.h >>conftest.$ac_ext
57974 cat >>conftest.$ac_ext <<_ACEOF
57975 /* end confdefs.h. */
57976 $ac_includes_default
57977 #include <$ac_header>
57978 _ACEOF
57979 rm -f conftest.$ac_objext
57980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57981 (eval $ac_compile) 2>&5
57982 ac_status=$?
57983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57984 (exit $ac_status); } &&
57985 { ac_try='test -s conftest.$ac_objext'
57986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57987 (eval $ac_try) 2>&5
57988 ac_status=$?
57989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57990 (exit $ac_status); }; }; then
57991 ac_header_compiler=yes
57992 else
57993 echo "$as_me: failed program was:" >&5
57994 sed 's/^/| /' conftest.$ac_ext >&5
57996 ac_header_compiler=no
57998 rm -f conftest.$ac_objext conftest.$ac_ext
57999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58000 echo "${ECHO_T}$ac_header_compiler" >&6
58002 # Is the header present?
58003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58005 cat >conftest.$ac_ext <<_ACEOF
58006 #line $LINENO "configure"
58007 /* confdefs.h. */
58008 _ACEOF
58009 cat confdefs.h >>conftest.$ac_ext
58010 cat >>conftest.$ac_ext <<_ACEOF
58011 /* end confdefs.h. */
58012 #include <$ac_header>
58013 _ACEOF
58014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58016 ac_status=$?
58017 grep -v '^ *+' conftest.er1 >conftest.err
58018 rm -f conftest.er1
58019 cat conftest.err >&5
58020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58021 (exit $ac_status); } >/dev/null; then
58022 if test -s conftest.err; then
58023 ac_cpp_err=$ac_c_preproc_warn_flag
58024 else
58025 ac_cpp_err=
58027 else
58028 ac_cpp_err=yes
58030 if test -z "$ac_cpp_err"; then
58031 ac_header_preproc=yes
58032 else
58033 echo "$as_me: failed program was:" >&5
58034 sed 's/^/| /' conftest.$ac_ext >&5
58036 ac_header_preproc=no
58038 rm -f conftest.err conftest.$ac_ext
58039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58040 echo "${ECHO_T}$ac_header_preproc" >&6
58042 # So? What about this header?
58043 case $ac_header_compiler:$ac_header_preproc in
58044 yes:no )
58045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58050 cat <<\_ASBOX
58051 ## ------------------------------------ ##
58052 ## Report this to bug-autoconf@gnu.org. ##
58053 ## ------------------------------------ ##
58054 _ASBOX
58056 sed "s/^/$as_me: WARNING: /" >&2
58058 no:yes )
58059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58066 cat <<\_ASBOX
58067 ## ------------------------------------ ##
58068 ## Report this to bug-autoconf@gnu.org. ##
58069 ## ------------------------------------ ##
58070 _ASBOX
58072 sed "s/^/$as_me: WARNING: /" >&2
58074 esac
58075 echo "$as_me:$LINENO: checking for $ac_header" >&5
58076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58078 echo $ECHO_N "(cached) $ECHO_C" >&6
58079 else
58080 eval "$as_ac_Header=$ac_header_preproc"
58082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58087 cat >>confdefs.h <<_ACEOF
58088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58089 _ACEOF
58090 ac_has_wctype_h=yes
58091 else
58092 ac_has_wctype_h=no
58095 done
58098 # Only continue checking if the ISO C99 headers exist and support is on.
58099 if test x"$ac_has_wchar_h" = xyes &&
58100 test x"$ac_has_wctype_h" = xyes &&
58101 test x"$enable_c_mbchar" != xno; then
58103 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
58104 # numeric_limits can instantiate type_traits<wchar_t>
58105 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
58106 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
58107 cat >conftest.$ac_ext <<_ACEOF
58108 #line $LINENO "configure"
58109 /* confdefs.h. */
58110 _ACEOF
58111 cat confdefs.h >>conftest.$ac_ext
58112 cat >>conftest.$ac_ext <<_ACEOF
58113 /* end confdefs.h. */
58114 #include <wchar.h>
58116 main ()
58118 int i = WCHAR_MIN; int j = WCHAR_MAX;
58120 return 0;
58122 _ACEOF
58123 rm -f conftest.$ac_objext
58124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58125 (eval $ac_compile) 2>&5
58126 ac_status=$?
58127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58128 (exit $ac_status); } &&
58129 { ac_try='test -s conftest.$ac_objext'
58130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58131 (eval $ac_try) 2>&5
58132 ac_status=$?
58133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58134 (exit $ac_status); }; }; then
58135 has_wchar_minmax=yes
58136 else
58137 echo "$as_me: failed program was:" >&5
58138 sed 's/^/| /' conftest.$ac_ext >&5
58140 has_wchar_minmax=no
58142 rm -f conftest.$ac_objext conftest.$ac_ext
58143 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
58144 echo "${ECHO_T}$has_wchar_minmax" >&6
58146 # Test wchar.h for WEOF, which is what we use to determine whether
58147 # to specialize for char_traits<wchar_t> or not.
58148 echo "$as_me:$LINENO: checking for WEOF" >&5
58149 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
58150 cat >conftest.$ac_ext <<_ACEOF
58151 #line $LINENO "configure"
58152 /* confdefs.h. */
58153 _ACEOF
58154 cat confdefs.h >>conftest.$ac_ext
58155 cat >>conftest.$ac_ext <<_ACEOF
58156 /* end confdefs.h. */
58158 #include <wchar.h>
58159 #include <stddef.h>
58161 main ()
58163 wint_t i = WEOF;
58165 return 0;
58167 _ACEOF
58168 rm -f conftest.$ac_objext
58169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58170 (eval $ac_compile) 2>&5
58171 ac_status=$?
58172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58173 (exit $ac_status); } &&
58174 { ac_try='test -s conftest.$ac_objext'
58175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58176 (eval $ac_try) 2>&5
58177 ac_status=$?
58178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58179 (exit $ac_status); }; }; then
58180 has_weof=yes
58181 else
58182 echo "$as_me: failed program was:" >&5
58183 sed 's/^/| /' conftest.$ac_ext >&5
58185 has_weof=no
58187 rm -f conftest.$ac_objext conftest.$ac_ext
58188 echo "$as_me:$LINENO: result: $has_weof" >&5
58189 echo "${ECHO_T}$has_weof" >&6
58191 # Tests for wide character functions used in char_traits<wchar_t>.
58192 ac_wfuncs=yes
58199 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
58201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58202 echo "$as_me:$LINENO: checking for $ac_func" >&5
58203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58204 if eval "test \"\${$as_ac_var+set}\" = set"; then
58205 echo $ECHO_N "(cached) $ECHO_C" >&6
58206 else
58207 if test x$gcc_no_link = xyes; then
58208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58210 { (exit 1); exit 1; }; }
58212 cat >conftest.$ac_ext <<_ACEOF
58213 #line $LINENO "configure"
58214 /* confdefs.h. */
58215 _ACEOF
58216 cat confdefs.h >>conftest.$ac_ext
58217 cat >>conftest.$ac_ext <<_ACEOF
58218 /* end confdefs.h. */
58219 /* System header to define __stub macros and hopefully few prototypes,
58220 which can conflict with char $ac_func (); below.
58221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58222 <limits.h> exists even on freestanding compilers. */
58223 #ifdef __STDC__
58224 # include <limits.h>
58225 #else
58226 # include <assert.h>
58227 #endif
58228 /* Override any gcc2 internal prototype to avoid an error. */
58229 #ifdef __cplusplus
58230 extern "C"
58232 #endif
58233 /* We use char because int might match the return type of a gcc2
58234 builtin and then its argument prototype would still apply. */
58235 char $ac_func ();
58236 /* The GNU C library defines this for functions which it implements
58237 to always fail with ENOSYS. Some functions are actually named
58238 something starting with __ and the normal name is an alias. */
58239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58240 choke me
58241 #else
58242 char (*f) () = $ac_func;
58243 #endif
58244 #ifdef __cplusplus
58246 #endif
58249 main ()
58251 return f != $ac_func;
58253 return 0;
58255 _ACEOF
58256 rm -f conftest.$ac_objext conftest$ac_exeext
58257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58258 (eval $ac_link) 2>&5
58259 ac_status=$?
58260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58261 (exit $ac_status); } &&
58262 { ac_try='test -s conftest$ac_exeext'
58263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58264 (eval $ac_try) 2>&5
58265 ac_status=$?
58266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58267 (exit $ac_status); }; }; then
58268 eval "$as_ac_var=yes"
58269 else
58270 echo "$as_me: failed program was:" >&5
58271 sed 's/^/| /' conftest.$ac_ext >&5
58273 eval "$as_ac_var=no"
58275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58279 if test `eval echo '${'$as_ac_var'}'` = yes; then
58280 cat >>confdefs.h <<_ACEOF
58281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58282 _ACEOF
58284 else
58285 ac_wfuncs=no
58287 done
58290 # Checks for names injected into std:: by the c_std headers.
58337 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
58338 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
58339 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
58340 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
58341 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
58342 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
58344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58345 echo "$as_me:$LINENO: checking for $ac_func" >&5
58346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58347 if eval "test \"\${$as_ac_var+set}\" = set"; then
58348 echo $ECHO_N "(cached) $ECHO_C" >&6
58349 else
58350 if test x$gcc_no_link = xyes; then
58351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58353 { (exit 1); exit 1; }; }
58355 cat >conftest.$ac_ext <<_ACEOF
58356 #line $LINENO "configure"
58357 /* confdefs.h. */
58358 _ACEOF
58359 cat confdefs.h >>conftest.$ac_ext
58360 cat >>conftest.$ac_ext <<_ACEOF
58361 /* end confdefs.h. */
58362 /* System header to define __stub macros and hopefully few prototypes,
58363 which can conflict with char $ac_func (); below.
58364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58365 <limits.h> exists even on freestanding compilers. */
58366 #ifdef __STDC__
58367 # include <limits.h>
58368 #else
58369 # include <assert.h>
58370 #endif
58371 /* Override any gcc2 internal prototype to avoid an error. */
58372 #ifdef __cplusplus
58373 extern "C"
58375 #endif
58376 /* We use char because int might match the return type of a gcc2
58377 builtin and then its argument prototype would still apply. */
58378 char $ac_func ();
58379 /* The GNU C library defines this for functions which it implements
58380 to always fail with ENOSYS. Some functions are actually named
58381 something starting with __ and the normal name is an alias. */
58382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58383 choke me
58384 #else
58385 char (*f) () = $ac_func;
58386 #endif
58387 #ifdef __cplusplus
58389 #endif
58392 main ()
58394 return f != $ac_func;
58396 return 0;
58398 _ACEOF
58399 rm -f conftest.$ac_objext conftest$ac_exeext
58400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58401 (eval $ac_link) 2>&5
58402 ac_status=$?
58403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58404 (exit $ac_status); } &&
58405 { ac_try='test -s conftest$ac_exeext'
58406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58407 (eval $ac_try) 2>&5
58408 ac_status=$?
58409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58410 (exit $ac_status); }; }; then
58411 eval "$as_ac_var=yes"
58412 else
58413 echo "$as_me: failed program was:" >&5
58414 sed 's/^/| /' conftest.$ac_ext >&5
58416 eval "$as_ac_var=no"
58418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58422 if test `eval echo '${'$as_ac_var'}'` = yes; then
58423 cat >>confdefs.h <<_ACEOF
58424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58425 _ACEOF
58427 else
58428 ac_wfuncs=no
58430 done
58433 # Checks for wide character functions that are not required
58434 # for basic wchar_t support. Don't disable support if they are missing.
58435 # Injection of these is wrapped with guard macros.
58441 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
58443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58444 echo "$as_me:$LINENO: checking for $ac_func" >&5
58445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58446 if eval "test \"\${$as_ac_var+set}\" = set"; then
58447 echo $ECHO_N "(cached) $ECHO_C" >&6
58448 else
58449 if test x$gcc_no_link = xyes; then
58450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58452 { (exit 1); exit 1; }; }
58454 cat >conftest.$ac_ext <<_ACEOF
58455 #line $LINENO "configure"
58456 /* confdefs.h. */
58457 _ACEOF
58458 cat confdefs.h >>conftest.$ac_ext
58459 cat >>conftest.$ac_ext <<_ACEOF
58460 /* end confdefs.h. */
58461 /* System header to define __stub macros and hopefully few prototypes,
58462 which can conflict with char $ac_func (); below.
58463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58464 <limits.h> exists even on freestanding compilers. */
58465 #ifdef __STDC__
58466 # include <limits.h>
58467 #else
58468 # include <assert.h>
58469 #endif
58470 /* Override any gcc2 internal prototype to avoid an error. */
58471 #ifdef __cplusplus
58472 extern "C"
58474 #endif
58475 /* We use char because int might match the return type of a gcc2
58476 builtin and then its argument prototype would still apply. */
58477 char $ac_func ();
58478 /* The GNU C library defines this for functions which it implements
58479 to always fail with ENOSYS. Some functions are actually named
58480 something starting with __ and the normal name is an alias. */
58481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58482 choke me
58483 #else
58484 char (*f) () = $ac_func;
58485 #endif
58486 #ifdef __cplusplus
58488 #endif
58491 main ()
58493 return f != $ac_func;
58495 return 0;
58497 _ACEOF
58498 rm -f conftest.$ac_objext conftest$ac_exeext
58499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58500 (eval $ac_link) 2>&5
58501 ac_status=$?
58502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58503 (exit $ac_status); } &&
58504 { ac_try='test -s conftest$ac_exeext'
58505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58506 (eval $ac_try) 2>&5
58507 ac_status=$?
58508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58509 (exit $ac_status); }; }; then
58510 eval "$as_ac_var=yes"
58511 else
58512 echo "$as_me: failed program was:" >&5
58513 sed 's/^/| /' conftest.$ac_ext >&5
58515 eval "$as_ac_var=no"
58517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58521 if test `eval echo '${'$as_ac_var'}'` = yes; then
58522 cat >>confdefs.h <<_ACEOF
58523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58524 _ACEOF
58527 done
58530 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
58531 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
58532 if test x"$has_weof" = xyes &&
58533 test x"$has_wchar_minmax" = xyes &&
58534 test x"$ac_wfuncs" = xyes;
58535 then
58536 ac_isoC99_wchar_t=yes
58537 else
58538 ac_isoC99_wchar_t=no
58540 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
58541 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
58543 # Use iconv for wchar_t to char conversions. As such, check for
58544 # X/Open Portability Guide, version 2 features (XPG2).
58545 if test "${ac_cv_header_iconv_h+set}" = set; then
58546 echo "$as_me:$LINENO: checking for iconv.h" >&5
58547 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58548 if test "${ac_cv_header_iconv_h+set}" = set; then
58549 echo $ECHO_N "(cached) $ECHO_C" >&6
58551 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58552 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58553 else
58554 # Is the header compilable?
58555 echo "$as_me:$LINENO: checking iconv.h usability" >&5
58556 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
58557 cat >conftest.$ac_ext <<_ACEOF
58558 #line $LINENO "configure"
58559 /* confdefs.h. */
58560 _ACEOF
58561 cat confdefs.h >>conftest.$ac_ext
58562 cat >>conftest.$ac_ext <<_ACEOF
58563 /* end confdefs.h. */
58564 $ac_includes_default
58565 #include <iconv.h>
58566 _ACEOF
58567 rm -f conftest.$ac_objext
58568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58569 (eval $ac_compile) 2>&5
58570 ac_status=$?
58571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58572 (exit $ac_status); } &&
58573 { ac_try='test -s conftest.$ac_objext'
58574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58575 (eval $ac_try) 2>&5
58576 ac_status=$?
58577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58578 (exit $ac_status); }; }; then
58579 ac_header_compiler=yes
58580 else
58581 echo "$as_me: failed program was:" >&5
58582 sed 's/^/| /' conftest.$ac_ext >&5
58584 ac_header_compiler=no
58586 rm -f conftest.$ac_objext conftest.$ac_ext
58587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58588 echo "${ECHO_T}$ac_header_compiler" >&6
58590 # Is the header present?
58591 echo "$as_me:$LINENO: checking iconv.h presence" >&5
58592 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
58593 cat >conftest.$ac_ext <<_ACEOF
58594 #line $LINENO "configure"
58595 /* confdefs.h. */
58596 _ACEOF
58597 cat confdefs.h >>conftest.$ac_ext
58598 cat >>conftest.$ac_ext <<_ACEOF
58599 /* end confdefs.h. */
58600 #include <iconv.h>
58601 _ACEOF
58602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58604 ac_status=$?
58605 grep -v '^ *+' conftest.er1 >conftest.err
58606 rm -f conftest.er1
58607 cat conftest.err >&5
58608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58609 (exit $ac_status); } >/dev/null; then
58610 if test -s conftest.err; then
58611 ac_cpp_err=$ac_c_preproc_warn_flag
58612 else
58613 ac_cpp_err=
58615 else
58616 ac_cpp_err=yes
58618 if test -z "$ac_cpp_err"; then
58619 ac_header_preproc=yes
58620 else
58621 echo "$as_me: failed program was:" >&5
58622 sed 's/^/| /' conftest.$ac_ext >&5
58624 ac_header_preproc=no
58626 rm -f conftest.err conftest.$ac_ext
58627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58628 echo "${ECHO_T}$ac_header_preproc" >&6
58630 # So? What about this header?
58631 case $ac_header_compiler:$ac_header_preproc in
58632 yes:no )
58633 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
58634 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58635 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58636 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58638 cat <<\_ASBOX
58639 ## ------------------------------------ ##
58640 ## Report this to bug-autoconf@gnu.org. ##
58641 ## ------------------------------------ ##
58642 _ASBOX
58644 sed "s/^/$as_me: WARNING: /" >&2
58646 no:yes )
58647 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
58648 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
58649 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
58650 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
58651 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58652 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58654 cat <<\_ASBOX
58655 ## ------------------------------------ ##
58656 ## Report this to bug-autoconf@gnu.org. ##
58657 ## ------------------------------------ ##
58658 _ASBOX
58660 sed "s/^/$as_me: WARNING: /" >&2
58662 esac
58663 echo "$as_me:$LINENO: checking for iconv.h" >&5
58664 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58665 if test "${ac_cv_header_iconv_h+set}" = set; then
58666 echo $ECHO_N "(cached) $ECHO_C" >&6
58667 else
58668 ac_cv_header_iconv_h=$ac_header_preproc
58670 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58671 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58674 if test $ac_cv_header_iconv_h = yes; then
58675 ac_has_iconv_h=yes
58676 else
58677 ac_has_iconv_h=no
58681 if test "${ac_cv_header_langinfo_h+set}" = set; then
58682 echo "$as_me:$LINENO: checking for langinfo.h" >&5
58683 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
58684 if test "${ac_cv_header_langinfo_h+set}" = set; then
58685 echo $ECHO_N "(cached) $ECHO_C" >&6
58687 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
58688 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
58689 else
58690 # Is the header compilable?
58691 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
58692 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
58693 cat >conftest.$ac_ext <<_ACEOF
58694 #line $LINENO "configure"
58695 /* confdefs.h. */
58696 _ACEOF
58697 cat confdefs.h >>conftest.$ac_ext
58698 cat >>conftest.$ac_ext <<_ACEOF
58699 /* end confdefs.h. */
58700 $ac_includes_default
58701 #include <langinfo.h>
58702 _ACEOF
58703 rm -f conftest.$ac_objext
58704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58705 (eval $ac_compile) 2>&5
58706 ac_status=$?
58707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58708 (exit $ac_status); } &&
58709 { ac_try='test -s conftest.$ac_objext'
58710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58711 (eval $ac_try) 2>&5
58712 ac_status=$?
58713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58714 (exit $ac_status); }; }; then
58715 ac_header_compiler=yes
58716 else
58717 echo "$as_me: failed program was:" >&5
58718 sed 's/^/| /' conftest.$ac_ext >&5
58720 ac_header_compiler=no
58722 rm -f conftest.$ac_objext conftest.$ac_ext
58723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58724 echo "${ECHO_T}$ac_header_compiler" >&6
58726 # Is the header present?
58727 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
58728 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
58729 cat >conftest.$ac_ext <<_ACEOF
58730 #line $LINENO "configure"
58731 /* confdefs.h. */
58732 _ACEOF
58733 cat confdefs.h >>conftest.$ac_ext
58734 cat >>conftest.$ac_ext <<_ACEOF
58735 /* end confdefs.h. */
58736 #include <langinfo.h>
58737 _ACEOF
58738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58740 ac_status=$?
58741 grep -v '^ *+' conftest.er1 >conftest.err
58742 rm -f conftest.er1
58743 cat conftest.err >&5
58744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58745 (exit $ac_status); } >/dev/null; then
58746 if test -s conftest.err; then
58747 ac_cpp_err=$ac_c_preproc_warn_flag
58748 else
58749 ac_cpp_err=
58751 else
58752 ac_cpp_err=yes
58754 if test -z "$ac_cpp_err"; then
58755 ac_header_preproc=yes
58756 else
58757 echo "$as_me: failed program was:" >&5
58758 sed 's/^/| /' conftest.$ac_ext >&5
58760 ac_header_preproc=no
58762 rm -f conftest.err conftest.$ac_ext
58763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58764 echo "${ECHO_T}$ac_header_preproc" >&6
58766 # So? What about this header?
58767 case $ac_header_compiler:$ac_header_preproc in
58768 yes:no )
58769 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
58770 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58771 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58772 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58774 cat <<\_ASBOX
58775 ## ------------------------------------ ##
58776 ## Report this to bug-autoconf@gnu.org. ##
58777 ## ------------------------------------ ##
58778 _ASBOX
58780 sed "s/^/$as_me: WARNING: /" >&2
58782 no:yes )
58783 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
58784 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
58785 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
58786 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
58787 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58788 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58790 cat <<\_ASBOX
58791 ## ------------------------------------ ##
58792 ## Report this to bug-autoconf@gnu.org. ##
58793 ## ------------------------------------ ##
58794 _ASBOX
58796 sed "s/^/$as_me: WARNING: /" >&2
58798 esac
58799 echo "$as_me:$LINENO: checking for langinfo.h" >&5
58800 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
58801 if test "${ac_cv_header_langinfo_h+set}" = set; then
58802 echo $ECHO_N "(cached) $ECHO_C" >&6
58803 else
58804 ac_cv_header_langinfo_h=$ac_header_preproc
58806 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
58807 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
58810 if test $ac_cv_header_langinfo_h = yes; then
58811 ac_has_langinfo_h=yes
58812 else
58813 ac_has_langinfo_h=no
58818 # Check for existence of libiconv.a providing XPG2 wchar_t support.
58819 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
58820 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
58821 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
58822 echo $ECHO_N "(cached) $ECHO_C" >&6
58823 else
58824 ac_check_lib_save_LIBS=$LIBS
58825 LIBS="-liconv $LIBS"
58826 if test x$gcc_no_link = xyes; then
58827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58829 { (exit 1); exit 1; }; }
58831 cat >conftest.$ac_ext <<_ACEOF
58832 #line $LINENO "configure"
58833 /* confdefs.h. */
58834 _ACEOF
58835 cat confdefs.h >>conftest.$ac_ext
58836 cat >>conftest.$ac_ext <<_ACEOF
58837 /* end confdefs.h. */
58839 /* Override any gcc2 internal prototype to avoid an error. */
58840 #ifdef __cplusplus
58841 extern "C"
58842 #endif
58843 /* We use char because int might match the return type of a gcc2
58844 builtin and then its argument prototype would still apply. */
58845 char iconv ();
58847 main ()
58849 iconv ();
58851 return 0;
58853 _ACEOF
58854 rm -f conftest.$ac_objext conftest$ac_exeext
58855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58856 (eval $ac_link) 2>&5
58857 ac_status=$?
58858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58859 (exit $ac_status); } &&
58860 { ac_try='test -s conftest$ac_exeext'
58861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58862 (eval $ac_try) 2>&5
58863 ac_status=$?
58864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58865 (exit $ac_status); }; }; then
58866 ac_cv_lib_iconv_iconv=yes
58867 else
58868 echo "$as_me: failed program was:" >&5
58869 sed 's/^/| /' conftest.$ac_ext >&5
58871 ac_cv_lib_iconv_iconv=no
58873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58874 LIBS=$ac_check_lib_save_LIBS
58876 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
58877 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
58878 if test $ac_cv_lib_iconv_iconv = yes; then
58879 libiconv="-liconv"
58882 ac_save_LIBS="$LIBS"
58883 LIBS="$LIBS $libiconv"
58889 for ac_func in iconv_open iconv_close iconv nl_langinfo
58891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58892 echo "$as_me:$LINENO: checking for $ac_func" >&5
58893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58894 if eval "test \"\${$as_ac_var+set}\" = set"; then
58895 echo $ECHO_N "(cached) $ECHO_C" >&6
58896 else
58897 if test x$gcc_no_link = xyes; then
58898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58900 { (exit 1); exit 1; }; }
58902 cat >conftest.$ac_ext <<_ACEOF
58903 #line $LINENO "configure"
58904 /* confdefs.h. */
58905 _ACEOF
58906 cat confdefs.h >>conftest.$ac_ext
58907 cat >>conftest.$ac_ext <<_ACEOF
58908 /* end confdefs.h. */
58909 /* System header to define __stub macros and hopefully few prototypes,
58910 which can conflict with char $ac_func (); below.
58911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58912 <limits.h> exists even on freestanding compilers. */
58913 #ifdef __STDC__
58914 # include <limits.h>
58915 #else
58916 # include <assert.h>
58917 #endif
58918 /* Override any gcc2 internal prototype to avoid an error. */
58919 #ifdef __cplusplus
58920 extern "C"
58922 #endif
58923 /* We use char because int might match the return type of a gcc2
58924 builtin and then its argument prototype would still apply. */
58925 char $ac_func ();
58926 /* The GNU C library defines this for functions which it implements
58927 to always fail with ENOSYS. Some functions are actually named
58928 something starting with __ and the normal name is an alias. */
58929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58930 choke me
58931 #else
58932 char (*f) () = $ac_func;
58933 #endif
58934 #ifdef __cplusplus
58936 #endif
58939 main ()
58941 return f != $ac_func;
58943 return 0;
58945 _ACEOF
58946 rm -f conftest.$ac_objext conftest$ac_exeext
58947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58948 (eval $ac_link) 2>&5
58949 ac_status=$?
58950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58951 (exit $ac_status); } &&
58952 { ac_try='test -s conftest$ac_exeext'
58953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58954 (eval $ac_try) 2>&5
58955 ac_status=$?
58956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58957 (exit $ac_status); }; }; then
58958 eval "$as_ac_var=yes"
58959 else
58960 echo "$as_me: failed program was:" >&5
58961 sed 's/^/| /' conftest.$ac_ext >&5
58963 eval "$as_ac_var=no"
58965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58969 if test `eval echo '${'$as_ac_var'}'` = yes; then
58970 cat >>confdefs.h <<_ACEOF
58971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58972 _ACEOF
58973 ac_XPG2funcs=yes
58974 else
58975 ac_XPG2funcs=no
58977 done
58980 LIBS="$ac_save_LIBS"
58982 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
58983 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
58984 if test x"$ac_has_iconv_h" = xyes &&
58985 test x"$ac_has_langinfo_h" = xyes &&
58986 test x"$ac_XPG2funcs" = xyes;
58987 then
58988 ac_XPG2_wchar_t=yes
58989 else
58990 ac_XPG2_wchar_t=no
58992 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
58993 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
58995 # At the moment, only enable wchar_t specializations if all the
58996 # above support is present.
58997 if test x"$ac_isoC99_wchar_t" = xyes &&
58998 test x"$ac_XPG2_wchar_t" = xyes;
58999 then
59000 cat >>confdefs.h <<\_ACEOF
59001 #define _GLIBCXX_USE_WCHAR_T 1
59002 _ACEOF
59004 enable_wchar_t=yes
59007 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
59008 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
59009 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
59010 echo "${ECHO_T}$enable_wchar_t" >&6
59012 cat >>confdefs.h <<\_ACEOF
59013 #define HAVE_COSF 1
59014 _ACEOF
59016 cat >>confdefs.h <<\_ACEOF
59017 #define HAVE_COSL 1
59018 _ACEOF
59020 cat >>confdefs.h <<\_ACEOF
59021 #define HAVE_COSHF 1
59022 _ACEOF
59024 cat >>confdefs.h <<\_ACEOF
59025 #define HAVE_COSHL 1
59026 _ACEOF
59028 cat >>confdefs.h <<\_ACEOF
59029 #define HAVE_LOGF 1
59030 _ACEOF
59032 cat >>confdefs.h <<\_ACEOF
59033 #define HAVE_LOGL 1
59034 _ACEOF
59036 cat >>confdefs.h <<\_ACEOF
59037 #define HAVE_LOG10F 1
59038 _ACEOF
59040 cat >>confdefs.h <<\_ACEOF
59041 #define HAVE_LOG10L 1
59042 _ACEOF
59044 cat >>confdefs.h <<\_ACEOF
59045 #define HAVE_SINF 1
59046 _ACEOF
59048 cat >>confdefs.h <<\_ACEOF
59049 #define HAVE_SINL 1
59050 _ACEOF
59052 cat >>confdefs.h <<\_ACEOF
59053 #define HAVE_SINHF 1
59054 _ACEOF
59056 cat >>confdefs.h <<\_ACEOF
59057 #define HAVE_SINHL 1
59058 _ACEOF
59061 *-solaris*)
59062 case "$target" in
59063 # *-solaris2.5)
59064 # os_include_dir="os/solaris/solaris2.5"
59065 # ;;
59066 # *-solaris2.6)
59067 # os_include_dir="os/solaris/solaris2.6"
59068 # ;;
59069 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
59070 cat >>confdefs.h <<\_ACEOF
59071 #define HAVE_GETPAGESIZE 1
59072 _ACEOF
59074 cat >>confdefs.h <<\_ACEOF
59075 #define HAVE_SIGSETJMP 1
59076 _ACEOF
59078 cat >>confdefs.h <<\_ACEOF
59079 #define HAVE_MBSTATE_T 1
59080 _ACEOF
59082 cat >>confdefs.h <<\_ACEOF
59083 #define HAVE_POLL 1
59084 _ACEOF
59086 cat >>confdefs.h <<\_ACEOF
59087 #define HAVE_S_ISREG 1
59088 _ACEOF
59090 cat >>confdefs.h <<\_ACEOF
59091 #define HAVE_LC_MESSAGES 1
59092 _ACEOF
59094 cat >>confdefs.h <<\_ACEOF
59095 #define HAVE_BTOWC 1
59096 _ACEOF
59098 cat >>confdefs.h <<\_ACEOF
59099 #define HAVE_DRAND48 1
59100 _ACEOF
59102 cat >>confdefs.h <<\_ACEOF
59103 #define HAVE_FGETWC 1
59104 _ACEOF
59106 cat >>confdefs.h <<\_ACEOF
59107 #define HAVE_FGETWS 1
59108 _ACEOF
59110 cat >>confdefs.h <<\_ACEOF
59111 #define HAVE_FINITE 1
59112 _ACEOF
59114 cat >>confdefs.h <<\_ACEOF
59115 #define HAVE_FPCLASS 1
59116 _ACEOF
59118 cat >>confdefs.h <<\_ACEOF
59119 #define HAVE_FPUTWC 1
59120 _ACEOF
59122 cat >>confdefs.h <<\_ACEOF
59123 #define HAVE_FPUTWS 1
59124 _ACEOF
59126 cat >>confdefs.h <<\_ACEOF
59127 #define HAVE_FWIDE 1
59128 _ACEOF
59130 cat >>confdefs.h <<\_ACEOF
59131 #define HAVE_FWPRINTF 1
59132 _ACEOF
59134 cat >>confdefs.h <<\_ACEOF
59135 #define HAVE_FWSCANF 1
59136 _ACEOF
59138 cat >>confdefs.h <<\_ACEOF
59139 #define HAVE_GETPAGESIZE 1
59140 _ACEOF
59142 cat >>confdefs.h <<\_ACEOF
59143 #define HAVE_GETWC 1
59144 _ACEOF
59146 cat >>confdefs.h <<\_ACEOF
59147 #define HAVE_GETWCHAR 1
59148 _ACEOF
59150 cat >>confdefs.h <<\_ACEOF
59151 #define HAVE_MBRLEN 1
59152 _ACEOF
59154 cat >>confdefs.h <<\_ACEOF
59155 #define HAVE_MBRTOWC 1
59156 _ACEOF
59158 cat >>confdefs.h <<\_ACEOF
59159 #define HAVE_MBSINIT 1
59160 _ACEOF
59162 cat >>confdefs.h <<\_ACEOF
59163 #define HAVE_MBSRTOWCS 1
59164 _ACEOF
59166 cat >>confdefs.h <<\_ACEOF
59167 #define HAVE_NL_LANGINFO 1
59168 _ACEOF
59170 cat >>confdefs.h <<\_ACEOF
59171 #define HAVE_PUTWC 1
59172 _ACEOF
59174 cat >>confdefs.h <<\_ACEOF
59175 #define HAVE_PUTWCHAR 1
59176 _ACEOF
59178 cat >>confdefs.h <<\_ACEOF
59179 #define HAVE_SWPRINTF 1
59180 _ACEOF
59182 cat >>confdefs.h <<\_ACEOF
59183 #define HAVE_SWSCANF 1
59184 _ACEOF
59186 cat >>confdefs.h <<\_ACEOF
59187 #define HAVE_UNGETWC 1
59188 _ACEOF
59190 cat >>confdefs.h <<\_ACEOF
59191 #define HAVE_VFWPRINTF 1
59192 _ACEOF
59194 cat >>confdefs.h <<\_ACEOF
59195 #define HAVE_VSWPRINTF 1
59196 _ACEOF
59198 cat >>confdefs.h <<\_ACEOF
59199 #define HAVE_VWPRINTF 1
59200 _ACEOF
59202 cat >>confdefs.h <<\_ACEOF
59203 #define HAVE_WCRTOMB 1
59204 _ACEOF
59206 cat >>confdefs.h <<\_ACEOF
59207 #define HAVE_WCSCAT 1
59208 _ACEOF
59210 cat >>confdefs.h <<\_ACEOF
59211 #define HAVE_WCSCHR 1
59212 _ACEOF
59214 cat >>confdefs.h <<\_ACEOF
59215 #define HAVE_WCSCMP 1
59216 _ACEOF
59218 cat >>confdefs.h <<\_ACEOF
59219 #define HAVE_WCSCOLL 1
59220 _ACEOF
59222 cat >>confdefs.h <<\_ACEOF
59223 #define HAVE_WCSCPY 1
59224 _ACEOF
59226 cat >>confdefs.h <<\_ACEOF
59227 #define HAVE_WCSCSPN 1
59228 _ACEOF
59230 cat >>confdefs.h <<\_ACEOF
59231 #define HAVE_WCSFTIME 1
59232 _ACEOF
59234 cat >>confdefs.h <<\_ACEOF
59235 #define HAVE_WCSLEN 1
59236 _ACEOF
59238 cat >>confdefs.h <<\_ACEOF
59239 #define HAVE_WCSNCAT 1
59240 _ACEOF
59242 cat >>confdefs.h <<\_ACEOF
59243 #define HAVE_WCSNCMP 1
59244 _ACEOF
59246 cat >>confdefs.h <<\_ACEOF
59247 #define HAVE_WCSNCPY 1
59248 _ACEOF
59250 cat >>confdefs.h <<\_ACEOF
59251 #define HAVE_WCSPBRK 1
59252 _ACEOF
59254 cat >>confdefs.h <<\_ACEOF
59255 #define HAVE_WCSRCHR 1
59256 _ACEOF
59258 cat >>confdefs.h <<\_ACEOF
59259 #define HAVE_WCSRTOMBS 1
59260 _ACEOF
59262 cat >>confdefs.h <<\_ACEOF
59263 #define HAVE_WCSSPN 1
59264 _ACEOF
59266 cat >>confdefs.h <<\_ACEOF
59267 #define HAVE_WCSSTR 1
59268 _ACEOF
59270 cat >>confdefs.h <<\_ACEOF
59271 #define HAVE_WCSTOD 1
59272 _ACEOF
59274 cat >>confdefs.h <<\_ACEOF
59275 #define HAVE_WCSTOK 1
59276 _ACEOF
59278 cat >>confdefs.h <<\_ACEOF
59279 #define HAVE_WCSTOL 1
59280 _ACEOF
59282 cat >>confdefs.h <<\_ACEOF
59283 #define HAVE_WCSTOUL 1
59284 _ACEOF
59286 cat >>confdefs.h <<\_ACEOF
59287 #define HAVE_WCSXFRM 1
59288 _ACEOF
59290 cat >>confdefs.h <<\_ACEOF
59291 #define HAVE_WCTOB 1
59292 _ACEOF
59294 cat >>confdefs.h <<\_ACEOF
59295 #define HAVE_WMEMCHR 1
59296 _ACEOF
59298 cat >>confdefs.h <<\_ACEOF
59299 #define HAVE_WMEMCMP 1
59300 _ACEOF
59302 cat >>confdefs.h <<\_ACEOF
59303 #define HAVE_WMEMCPY 1
59304 _ACEOF
59306 cat >>confdefs.h <<\_ACEOF
59307 #define HAVE_WMEMMOVE 1
59308 _ACEOF
59310 cat >>confdefs.h <<\_ACEOF
59311 #define HAVE_WMEMSET 1
59312 _ACEOF
59314 cat >>confdefs.h <<\_ACEOF
59315 #define HAVE_WPRINTF 1
59316 _ACEOF
59318 cat >>confdefs.h <<\_ACEOF
59319 #define HAVE_WSCANF 1
59320 _ACEOF
59322 cat >>confdefs.h <<\_ACEOF
59323 #define HAVE_ICONV 1
59324 _ACEOF
59326 cat >>confdefs.h <<\_ACEOF
59327 #define HAVE_ICONV_CLOSE 1
59328 _ACEOF
59330 cat >>confdefs.h <<\_ACEOF
59331 #define HAVE_ICONV_OPEN 1
59332 _ACEOF
59334 # Look for the pieces required for wchar_t support in order to
59335 # get all the right HAVE_* macros defined.
59337 # Test wchar.h for mbstate_t, which is needed for char_traits and
59338 # others even if wchar_t support is not on.
59339 echo "$as_me:$LINENO: checking for mbstate_t" >&5
59340 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
59341 cat >conftest.$ac_ext <<_ACEOF
59342 #line $LINENO "configure"
59343 /* confdefs.h. */
59344 _ACEOF
59345 cat confdefs.h >>conftest.$ac_ext
59346 cat >>conftest.$ac_ext <<_ACEOF
59347 /* end confdefs.h. */
59348 #include <wchar.h>
59350 main ()
59352 mbstate_t teststate;
59354 return 0;
59356 _ACEOF
59357 rm -f conftest.$ac_objext
59358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59359 (eval $ac_compile) 2>&5
59360 ac_status=$?
59361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59362 (exit $ac_status); } &&
59363 { ac_try='test -s conftest.$ac_objext'
59364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59365 (eval $ac_try) 2>&5
59366 ac_status=$?
59367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59368 (exit $ac_status); }; }; then
59369 have_mbstate_t=yes
59370 else
59371 echo "$as_me: failed program was:" >&5
59372 sed 's/^/| /' conftest.$ac_ext >&5
59374 have_mbstate_t=no
59376 rm -f conftest.$ac_objext conftest.$ac_ext
59377 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
59378 echo "${ECHO_T}$have_mbstate_t" >&6
59379 if test x"$have_mbstate_t" = xyes; then
59380 cat >>confdefs.h <<\_ACEOF
59381 #define HAVE_MBSTATE_T 1
59382 _ACEOF
59386 # Sanity check for existence of ISO C99 headers for extended encoding.
59388 for ac_header in wchar.h
59390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59392 echo "$as_me:$LINENO: checking for $ac_header" >&5
59393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59395 echo $ECHO_N "(cached) $ECHO_C" >&6
59397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59399 else
59400 # Is the header compilable?
59401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59403 cat >conftest.$ac_ext <<_ACEOF
59404 #line $LINENO "configure"
59405 /* confdefs.h. */
59406 _ACEOF
59407 cat confdefs.h >>conftest.$ac_ext
59408 cat >>conftest.$ac_ext <<_ACEOF
59409 /* end confdefs.h. */
59410 $ac_includes_default
59411 #include <$ac_header>
59412 _ACEOF
59413 rm -f conftest.$ac_objext
59414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59415 (eval $ac_compile) 2>&5
59416 ac_status=$?
59417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59418 (exit $ac_status); } &&
59419 { ac_try='test -s conftest.$ac_objext'
59420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59421 (eval $ac_try) 2>&5
59422 ac_status=$?
59423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59424 (exit $ac_status); }; }; then
59425 ac_header_compiler=yes
59426 else
59427 echo "$as_me: failed program was:" >&5
59428 sed 's/^/| /' conftest.$ac_ext >&5
59430 ac_header_compiler=no
59432 rm -f conftest.$ac_objext conftest.$ac_ext
59433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59434 echo "${ECHO_T}$ac_header_compiler" >&6
59436 # Is the header present?
59437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59439 cat >conftest.$ac_ext <<_ACEOF
59440 #line $LINENO "configure"
59441 /* confdefs.h. */
59442 _ACEOF
59443 cat confdefs.h >>conftest.$ac_ext
59444 cat >>conftest.$ac_ext <<_ACEOF
59445 /* end confdefs.h. */
59446 #include <$ac_header>
59447 _ACEOF
59448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59450 ac_status=$?
59451 grep -v '^ *+' conftest.er1 >conftest.err
59452 rm -f conftest.er1
59453 cat conftest.err >&5
59454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59455 (exit $ac_status); } >/dev/null; then
59456 if test -s conftest.err; then
59457 ac_cpp_err=$ac_c_preproc_warn_flag
59458 else
59459 ac_cpp_err=
59461 else
59462 ac_cpp_err=yes
59464 if test -z "$ac_cpp_err"; then
59465 ac_header_preproc=yes
59466 else
59467 echo "$as_me: failed program was:" >&5
59468 sed 's/^/| /' conftest.$ac_ext >&5
59470 ac_header_preproc=no
59472 rm -f conftest.err conftest.$ac_ext
59473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59474 echo "${ECHO_T}$ac_header_preproc" >&6
59476 # So? What about this header?
59477 case $ac_header_compiler:$ac_header_preproc in
59478 yes:no )
59479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59484 cat <<\_ASBOX
59485 ## ------------------------------------ ##
59486 ## Report this to bug-autoconf@gnu.org. ##
59487 ## ------------------------------------ ##
59488 _ASBOX
59490 sed "s/^/$as_me: WARNING: /" >&2
59492 no:yes )
59493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59500 cat <<\_ASBOX
59501 ## ------------------------------------ ##
59502 ## Report this to bug-autoconf@gnu.org. ##
59503 ## ------------------------------------ ##
59504 _ASBOX
59506 sed "s/^/$as_me: WARNING: /" >&2
59508 esac
59509 echo "$as_me:$LINENO: checking for $ac_header" >&5
59510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59512 echo $ECHO_N "(cached) $ECHO_C" >&6
59513 else
59514 eval "$as_ac_Header=$ac_header_preproc"
59516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59521 cat >>confdefs.h <<_ACEOF
59522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59523 _ACEOF
59524 ac_has_wchar_h=yes
59525 else
59526 ac_has_wchar_h=no
59529 done
59532 for ac_header in wctype.h
59534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59536 echo "$as_me:$LINENO: checking for $ac_header" >&5
59537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59539 echo $ECHO_N "(cached) $ECHO_C" >&6
59541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59543 else
59544 # Is the header compilable?
59545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59547 cat >conftest.$ac_ext <<_ACEOF
59548 #line $LINENO "configure"
59549 /* confdefs.h. */
59550 _ACEOF
59551 cat confdefs.h >>conftest.$ac_ext
59552 cat >>conftest.$ac_ext <<_ACEOF
59553 /* end confdefs.h. */
59554 $ac_includes_default
59555 #include <$ac_header>
59556 _ACEOF
59557 rm -f conftest.$ac_objext
59558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59559 (eval $ac_compile) 2>&5
59560 ac_status=$?
59561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59562 (exit $ac_status); } &&
59563 { ac_try='test -s conftest.$ac_objext'
59564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59565 (eval $ac_try) 2>&5
59566 ac_status=$?
59567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59568 (exit $ac_status); }; }; then
59569 ac_header_compiler=yes
59570 else
59571 echo "$as_me: failed program was:" >&5
59572 sed 's/^/| /' conftest.$ac_ext >&5
59574 ac_header_compiler=no
59576 rm -f conftest.$ac_objext conftest.$ac_ext
59577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59578 echo "${ECHO_T}$ac_header_compiler" >&6
59580 # Is the header present?
59581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59583 cat >conftest.$ac_ext <<_ACEOF
59584 #line $LINENO "configure"
59585 /* confdefs.h. */
59586 _ACEOF
59587 cat confdefs.h >>conftest.$ac_ext
59588 cat >>conftest.$ac_ext <<_ACEOF
59589 /* end confdefs.h. */
59590 #include <$ac_header>
59591 _ACEOF
59592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59594 ac_status=$?
59595 grep -v '^ *+' conftest.er1 >conftest.err
59596 rm -f conftest.er1
59597 cat conftest.err >&5
59598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59599 (exit $ac_status); } >/dev/null; then
59600 if test -s conftest.err; then
59601 ac_cpp_err=$ac_c_preproc_warn_flag
59602 else
59603 ac_cpp_err=
59605 else
59606 ac_cpp_err=yes
59608 if test -z "$ac_cpp_err"; then
59609 ac_header_preproc=yes
59610 else
59611 echo "$as_me: failed program was:" >&5
59612 sed 's/^/| /' conftest.$ac_ext >&5
59614 ac_header_preproc=no
59616 rm -f conftest.err conftest.$ac_ext
59617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59618 echo "${ECHO_T}$ac_header_preproc" >&6
59620 # So? What about this header?
59621 case $ac_header_compiler:$ac_header_preproc in
59622 yes:no )
59623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59628 cat <<\_ASBOX
59629 ## ------------------------------------ ##
59630 ## Report this to bug-autoconf@gnu.org. ##
59631 ## ------------------------------------ ##
59632 _ASBOX
59634 sed "s/^/$as_me: WARNING: /" >&2
59636 no:yes )
59637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59644 cat <<\_ASBOX
59645 ## ------------------------------------ ##
59646 ## Report this to bug-autoconf@gnu.org. ##
59647 ## ------------------------------------ ##
59648 _ASBOX
59650 sed "s/^/$as_me: WARNING: /" >&2
59652 esac
59653 echo "$as_me:$LINENO: checking for $ac_header" >&5
59654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59656 echo $ECHO_N "(cached) $ECHO_C" >&6
59657 else
59658 eval "$as_ac_Header=$ac_header_preproc"
59660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59665 cat >>confdefs.h <<_ACEOF
59666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59667 _ACEOF
59668 ac_has_wctype_h=yes
59669 else
59670 ac_has_wctype_h=no
59673 done
59676 # Only continue checking if the ISO C99 headers exist and support is on.
59677 if test x"$ac_has_wchar_h" = xyes &&
59678 test x"$ac_has_wctype_h" = xyes &&
59679 test x"$enable_c_mbchar" != xno; then
59681 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59682 # numeric_limits can instantiate type_traits<wchar_t>
59683 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59684 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59685 cat >conftest.$ac_ext <<_ACEOF
59686 #line $LINENO "configure"
59687 /* confdefs.h. */
59688 _ACEOF
59689 cat confdefs.h >>conftest.$ac_ext
59690 cat >>conftest.$ac_ext <<_ACEOF
59691 /* end confdefs.h. */
59692 #include <wchar.h>
59694 main ()
59696 int i = WCHAR_MIN; int j = WCHAR_MAX;
59698 return 0;
59700 _ACEOF
59701 rm -f conftest.$ac_objext
59702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59703 (eval $ac_compile) 2>&5
59704 ac_status=$?
59705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59706 (exit $ac_status); } &&
59707 { ac_try='test -s conftest.$ac_objext'
59708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59709 (eval $ac_try) 2>&5
59710 ac_status=$?
59711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59712 (exit $ac_status); }; }; then
59713 has_wchar_minmax=yes
59714 else
59715 echo "$as_me: failed program was:" >&5
59716 sed 's/^/| /' conftest.$ac_ext >&5
59718 has_wchar_minmax=no
59720 rm -f conftest.$ac_objext conftest.$ac_ext
59721 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59722 echo "${ECHO_T}$has_wchar_minmax" >&6
59724 # Test wchar.h for WEOF, which is what we use to determine whether
59725 # to specialize for char_traits<wchar_t> or not.
59726 echo "$as_me:$LINENO: checking for WEOF" >&5
59727 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59728 cat >conftest.$ac_ext <<_ACEOF
59729 #line $LINENO "configure"
59730 /* confdefs.h. */
59731 _ACEOF
59732 cat confdefs.h >>conftest.$ac_ext
59733 cat >>conftest.$ac_ext <<_ACEOF
59734 /* end confdefs.h. */
59736 #include <wchar.h>
59737 #include <stddef.h>
59739 main ()
59741 wint_t i = WEOF;
59743 return 0;
59745 _ACEOF
59746 rm -f conftest.$ac_objext
59747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59748 (eval $ac_compile) 2>&5
59749 ac_status=$?
59750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59751 (exit $ac_status); } &&
59752 { ac_try='test -s conftest.$ac_objext'
59753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59754 (eval $ac_try) 2>&5
59755 ac_status=$?
59756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59757 (exit $ac_status); }; }; then
59758 has_weof=yes
59759 else
59760 echo "$as_me: failed program was:" >&5
59761 sed 's/^/| /' conftest.$ac_ext >&5
59763 has_weof=no
59765 rm -f conftest.$ac_objext conftest.$ac_ext
59766 echo "$as_me:$LINENO: result: $has_weof" >&5
59767 echo "${ECHO_T}$has_weof" >&6
59769 # Tests for wide character functions used in char_traits<wchar_t>.
59770 ac_wfuncs=yes
59777 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59780 echo "$as_me:$LINENO: checking for $ac_func" >&5
59781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59782 if eval "test \"\${$as_ac_var+set}\" = set"; then
59783 echo $ECHO_N "(cached) $ECHO_C" >&6
59784 else
59785 if test x$gcc_no_link = xyes; then
59786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59788 { (exit 1); exit 1; }; }
59790 cat >conftest.$ac_ext <<_ACEOF
59791 #line $LINENO "configure"
59792 /* confdefs.h. */
59793 _ACEOF
59794 cat confdefs.h >>conftest.$ac_ext
59795 cat >>conftest.$ac_ext <<_ACEOF
59796 /* end confdefs.h. */
59797 /* System header to define __stub macros and hopefully few prototypes,
59798 which can conflict with char $ac_func (); below.
59799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59800 <limits.h> exists even on freestanding compilers. */
59801 #ifdef __STDC__
59802 # include <limits.h>
59803 #else
59804 # include <assert.h>
59805 #endif
59806 /* Override any gcc2 internal prototype to avoid an error. */
59807 #ifdef __cplusplus
59808 extern "C"
59810 #endif
59811 /* We use char because int might match the return type of a gcc2
59812 builtin and then its argument prototype would still apply. */
59813 char $ac_func ();
59814 /* The GNU C library defines this for functions which it implements
59815 to always fail with ENOSYS. Some functions are actually named
59816 something starting with __ and the normal name is an alias. */
59817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59818 choke me
59819 #else
59820 char (*f) () = $ac_func;
59821 #endif
59822 #ifdef __cplusplus
59824 #endif
59827 main ()
59829 return f != $ac_func;
59831 return 0;
59833 _ACEOF
59834 rm -f conftest.$ac_objext conftest$ac_exeext
59835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59836 (eval $ac_link) 2>&5
59837 ac_status=$?
59838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59839 (exit $ac_status); } &&
59840 { ac_try='test -s conftest$ac_exeext'
59841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59842 (eval $ac_try) 2>&5
59843 ac_status=$?
59844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59845 (exit $ac_status); }; }; then
59846 eval "$as_ac_var=yes"
59847 else
59848 echo "$as_me: failed program was:" >&5
59849 sed 's/^/| /' conftest.$ac_ext >&5
59851 eval "$as_ac_var=no"
59853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59857 if test `eval echo '${'$as_ac_var'}'` = yes; then
59858 cat >>confdefs.h <<_ACEOF
59859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59860 _ACEOF
59862 else
59863 ac_wfuncs=no
59865 done
59868 # Checks for names injected into std:: by the c_std headers.
59915 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59916 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59917 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59918 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59919 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59920 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59923 echo "$as_me:$LINENO: checking for $ac_func" >&5
59924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59925 if eval "test \"\${$as_ac_var+set}\" = set"; then
59926 echo $ECHO_N "(cached) $ECHO_C" >&6
59927 else
59928 if test x$gcc_no_link = xyes; then
59929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59931 { (exit 1); exit 1; }; }
59933 cat >conftest.$ac_ext <<_ACEOF
59934 #line $LINENO "configure"
59935 /* confdefs.h. */
59936 _ACEOF
59937 cat confdefs.h >>conftest.$ac_ext
59938 cat >>conftest.$ac_ext <<_ACEOF
59939 /* end confdefs.h. */
59940 /* System header to define __stub macros and hopefully few prototypes,
59941 which can conflict with char $ac_func (); below.
59942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59943 <limits.h> exists even on freestanding compilers. */
59944 #ifdef __STDC__
59945 # include <limits.h>
59946 #else
59947 # include <assert.h>
59948 #endif
59949 /* Override any gcc2 internal prototype to avoid an error. */
59950 #ifdef __cplusplus
59951 extern "C"
59953 #endif
59954 /* We use char because int might match the return type of a gcc2
59955 builtin and then its argument prototype would still apply. */
59956 char $ac_func ();
59957 /* The GNU C library defines this for functions which it implements
59958 to always fail with ENOSYS. Some functions are actually named
59959 something starting with __ and the normal name is an alias. */
59960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59961 choke me
59962 #else
59963 char (*f) () = $ac_func;
59964 #endif
59965 #ifdef __cplusplus
59967 #endif
59970 main ()
59972 return f != $ac_func;
59974 return 0;
59976 _ACEOF
59977 rm -f conftest.$ac_objext conftest$ac_exeext
59978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59979 (eval $ac_link) 2>&5
59980 ac_status=$?
59981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59982 (exit $ac_status); } &&
59983 { ac_try='test -s conftest$ac_exeext'
59984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59985 (eval $ac_try) 2>&5
59986 ac_status=$?
59987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59988 (exit $ac_status); }; }; then
59989 eval "$as_ac_var=yes"
59990 else
59991 echo "$as_me: failed program was:" >&5
59992 sed 's/^/| /' conftest.$ac_ext >&5
59994 eval "$as_ac_var=no"
59996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60000 if test `eval echo '${'$as_ac_var'}'` = yes; then
60001 cat >>confdefs.h <<_ACEOF
60002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60003 _ACEOF
60005 else
60006 ac_wfuncs=no
60008 done
60011 # Checks for wide character functions that are not required
60012 # for basic wchar_t support. Don't disable support if they are missing.
60013 # Injection of these is wrapped with guard macros.
60019 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
60021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60022 echo "$as_me:$LINENO: checking for $ac_func" >&5
60023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60024 if eval "test \"\${$as_ac_var+set}\" = set"; then
60025 echo $ECHO_N "(cached) $ECHO_C" >&6
60026 else
60027 if test x$gcc_no_link = xyes; then
60028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60030 { (exit 1); exit 1; }; }
60032 cat >conftest.$ac_ext <<_ACEOF
60033 #line $LINENO "configure"
60034 /* confdefs.h. */
60035 _ACEOF
60036 cat confdefs.h >>conftest.$ac_ext
60037 cat >>conftest.$ac_ext <<_ACEOF
60038 /* end confdefs.h. */
60039 /* System header to define __stub macros and hopefully few prototypes,
60040 which can conflict with char $ac_func (); below.
60041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60042 <limits.h> exists even on freestanding compilers. */
60043 #ifdef __STDC__
60044 # include <limits.h>
60045 #else
60046 # include <assert.h>
60047 #endif
60048 /* Override any gcc2 internal prototype to avoid an error. */
60049 #ifdef __cplusplus
60050 extern "C"
60052 #endif
60053 /* We use char because int might match the return type of a gcc2
60054 builtin and then its argument prototype would still apply. */
60055 char $ac_func ();
60056 /* The GNU C library defines this for functions which it implements
60057 to always fail with ENOSYS. Some functions are actually named
60058 something starting with __ and the normal name is an alias. */
60059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60060 choke me
60061 #else
60062 char (*f) () = $ac_func;
60063 #endif
60064 #ifdef __cplusplus
60066 #endif
60069 main ()
60071 return f != $ac_func;
60073 return 0;
60075 _ACEOF
60076 rm -f conftest.$ac_objext conftest$ac_exeext
60077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60078 (eval $ac_link) 2>&5
60079 ac_status=$?
60080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60081 (exit $ac_status); } &&
60082 { ac_try='test -s conftest$ac_exeext'
60083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60084 (eval $ac_try) 2>&5
60085 ac_status=$?
60086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60087 (exit $ac_status); }; }; then
60088 eval "$as_ac_var=yes"
60089 else
60090 echo "$as_me: failed program was:" >&5
60091 sed 's/^/| /' conftest.$ac_ext >&5
60093 eval "$as_ac_var=no"
60095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60099 if test `eval echo '${'$as_ac_var'}'` = yes; then
60100 cat >>confdefs.h <<_ACEOF
60101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60102 _ACEOF
60105 done
60108 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
60109 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
60110 if test x"$has_weof" = xyes &&
60111 test x"$has_wchar_minmax" = xyes &&
60112 test x"$ac_wfuncs" = xyes;
60113 then
60114 ac_isoC99_wchar_t=yes
60115 else
60116 ac_isoC99_wchar_t=no
60118 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
60119 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
60121 # Use iconv for wchar_t to char conversions. As such, check for
60122 # X/Open Portability Guide, version 2 features (XPG2).
60123 if test "${ac_cv_header_iconv_h+set}" = set; then
60124 echo "$as_me:$LINENO: checking for iconv.h" >&5
60125 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60126 if test "${ac_cv_header_iconv_h+set}" = set; then
60127 echo $ECHO_N "(cached) $ECHO_C" >&6
60129 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60130 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60131 else
60132 # Is the header compilable?
60133 echo "$as_me:$LINENO: checking iconv.h usability" >&5
60134 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
60135 cat >conftest.$ac_ext <<_ACEOF
60136 #line $LINENO "configure"
60137 /* confdefs.h. */
60138 _ACEOF
60139 cat confdefs.h >>conftest.$ac_ext
60140 cat >>conftest.$ac_ext <<_ACEOF
60141 /* end confdefs.h. */
60142 $ac_includes_default
60143 #include <iconv.h>
60144 _ACEOF
60145 rm -f conftest.$ac_objext
60146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60147 (eval $ac_compile) 2>&5
60148 ac_status=$?
60149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60150 (exit $ac_status); } &&
60151 { ac_try='test -s conftest.$ac_objext'
60152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60153 (eval $ac_try) 2>&5
60154 ac_status=$?
60155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60156 (exit $ac_status); }; }; then
60157 ac_header_compiler=yes
60158 else
60159 echo "$as_me: failed program was:" >&5
60160 sed 's/^/| /' conftest.$ac_ext >&5
60162 ac_header_compiler=no
60164 rm -f conftest.$ac_objext conftest.$ac_ext
60165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60166 echo "${ECHO_T}$ac_header_compiler" >&6
60168 # Is the header present?
60169 echo "$as_me:$LINENO: checking iconv.h presence" >&5
60170 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
60171 cat >conftest.$ac_ext <<_ACEOF
60172 #line $LINENO "configure"
60173 /* confdefs.h. */
60174 _ACEOF
60175 cat confdefs.h >>conftest.$ac_ext
60176 cat >>conftest.$ac_ext <<_ACEOF
60177 /* end confdefs.h. */
60178 #include <iconv.h>
60179 _ACEOF
60180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60182 ac_status=$?
60183 grep -v '^ *+' conftest.er1 >conftest.err
60184 rm -f conftest.er1
60185 cat conftest.err >&5
60186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60187 (exit $ac_status); } >/dev/null; then
60188 if test -s conftest.err; then
60189 ac_cpp_err=$ac_c_preproc_warn_flag
60190 else
60191 ac_cpp_err=
60193 else
60194 ac_cpp_err=yes
60196 if test -z "$ac_cpp_err"; then
60197 ac_header_preproc=yes
60198 else
60199 echo "$as_me: failed program was:" >&5
60200 sed 's/^/| /' conftest.$ac_ext >&5
60202 ac_header_preproc=no
60204 rm -f conftest.err conftest.$ac_ext
60205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60206 echo "${ECHO_T}$ac_header_preproc" >&6
60208 # So? What about this header?
60209 case $ac_header_compiler:$ac_header_preproc in
60210 yes:no )
60211 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
60212 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60213 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60214 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60216 cat <<\_ASBOX
60217 ## ------------------------------------ ##
60218 ## Report this to bug-autoconf@gnu.org. ##
60219 ## ------------------------------------ ##
60220 _ASBOX
60222 sed "s/^/$as_me: WARNING: /" >&2
60224 no:yes )
60225 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
60226 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
60227 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
60228 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
60229 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60230 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60232 cat <<\_ASBOX
60233 ## ------------------------------------ ##
60234 ## Report this to bug-autoconf@gnu.org. ##
60235 ## ------------------------------------ ##
60236 _ASBOX
60238 sed "s/^/$as_me: WARNING: /" >&2
60240 esac
60241 echo "$as_me:$LINENO: checking for iconv.h" >&5
60242 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60243 if test "${ac_cv_header_iconv_h+set}" = set; then
60244 echo $ECHO_N "(cached) $ECHO_C" >&6
60245 else
60246 ac_cv_header_iconv_h=$ac_header_preproc
60248 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60249 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60252 if test $ac_cv_header_iconv_h = yes; then
60253 ac_has_iconv_h=yes
60254 else
60255 ac_has_iconv_h=no
60259 if test "${ac_cv_header_langinfo_h+set}" = set; then
60260 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60261 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60262 if test "${ac_cv_header_langinfo_h+set}" = set; then
60263 echo $ECHO_N "(cached) $ECHO_C" >&6
60265 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60266 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60267 else
60268 # Is the header compilable?
60269 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
60270 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
60271 cat >conftest.$ac_ext <<_ACEOF
60272 #line $LINENO "configure"
60273 /* confdefs.h. */
60274 _ACEOF
60275 cat confdefs.h >>conftest.$ac_ext
60276 cat >>conftest.$ac_ext <<_ACEOF
60277 /* end confdefs.h. */
60278 $ac_includes_default
60279 #include <langinfo.h>
60280 _ACEOF
60281 rm -f conftest.$ac_objext
60282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60283 (eval $ac_compile) 2>&5
60284 ac_status=$?
60285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60286 (exit $ac_status); } &&
60287 { ac_try='test -s conftest.$ac_objext'
60288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60289 (eval $ac_try) 2>&5
60290 ac_status=$?
60291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60292 (exit $ac_status); }; }; then
60293 ac_header_compiler=yes
60294 else
60295 echo "$as_me: failed program was:" >&5
60296 sed 's/^/| /' conftest.$ac_ext >&5
60298 ac_header_compiler=no
60300 rm -f conftest.$ac_objext conftest.$ac_ext
60301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60302 echo "${ECHO_T}$ac_header_compiler" >&6
60304 # Is the header present?
60305 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
60306 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
60307 cat >conftest.$ac_ext <<_ACEOF
60308 #line $LINENO "configure"
60309 /* confdefs.h. */
60310 _ACEOF
60311 cat confdefs.h >>conftest.$ac_ext
60312 cat >>conftest.$ac_ext <<_ACEOF
60313 /* end confdefs.h. */
60314 #include <langinfo.h>
60315 _ACEOF
60316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60318 ac_status=$?
60319 grep -v '^ *+' conftest.er1 >conftest.err
60320 rm -f conftest.er1
60321 cat conftest.err >&5
60322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60323 (exit $ac_status); } >/dev/null; then
60324 if test -s conftest.err; then
60325 ac_cpp_err=$ac_c_preproc_warn_flag
60326 else
60327 ac_cpp_err=
60329 else
60330 ac_cpp_err=yes
60332 if test -z "$ac_cpp_err"; then
60333 ac_header_preproc=yes
60334 else
60335 echo "$as_me: failed program was:" >&5
60336 sed 's/^/| /' conftest.$ac_ext >&5
60338 ac_header_preproc=no
60340 rm -f conftest.err conftest.$ac_ext
60341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60342 echo "${ECHO_T}$ac_header_preproc" >&6
60344 # So? What about this header?
60345 case $ac_header_compiler:$ac_header_preproc in
60346 yes:no )
60347 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
60348 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60349 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60350 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60352 cat <<\_ASBOX
60353 ## ------------------------------------ ##
60354 ## Report this to bug-autoconf@gnu.org. ##
60355 ## ------------------------------------ ##
60356 _ASBOX
60358 sed "s/^/$as_me: WARNING: /" >&2
60360 no:yes )
60361 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
60362 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
60363 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
60364 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
60365 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60366 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60368 cat <<\_ASBOX
60369 ## ------------------------------------ ##
60370 ## Report this to bug-autoconf@gnu.org. ##
60371 ## ------------------------------------ ##
60372 _ASBOX
60374 sed "s/^/$as_me: WARNING: /" >&2
60376 esac
60377 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60378 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60379 if test "${ac_cv_header_langinfo_h+set}" = set; then
60380 echo $ECHO_N "(cached) $ECHO_C" >&6
60381 else
60382 ac_cv_header_langinfo_h=$ac_header_preproc
60384 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60385 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60388 if test $ac_cv_header_langinfo_h = yes; then
60389 ac_has_langinfo_h=yes
60390 else
60391 ac_has_langinfo_h=no
60396 # Check for existence of libiconv.a providing XPG2 wchar_t support.
60397 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60398 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60399 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60400 echo $ECHO_N "(cached) $ECHO_C" >&6
60401 else
60402 ac_check_lib_save_LIBS=$LIBS
60403 LIBS="-liconv $LIBS"
60404 if test x$gcc_no_link = xyes; then
60405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60407 { (exit 1); exit 1; }; }
60409 cat >conftest.$ac_ext <<_ACEOF
60410 #line $LINENO "configure"
60411 /* confdefs.h. */
60412 _ACEOF
60413 cat confdefs.h >>conftest.$ac_ext
60414 cat >>conftest.$ac_ext <<_ACEOF
60415 /* end confdefs.h. */
60417 /* Override any gcc2 internal prototype to avoid an error. */
60418 #ifdef __cplusplus
60419 extern "C"
60420 #endif
60421 /* We use char because int might match the return type of a gcc2
60422 builtin and then its argument prototype would still apply. */
60423 char iconv ();
60425 main ()
60427 iconv ();
60429 return 0;
60431 _ACEOF
60432 rm -f conftest.$ac_objext conftest$ac_exeext
60433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60434 (eval $ac_link) 2>&5
60435 ac_status=$?
60436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60437 (exit $ac_status); } &&
60438 { ac_try='test -s conftest$ac_exeext'
60439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60440 (eval $ac_try) 2>&5
60441 ac_status=$?
60442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60443 (exit $ac_status); }; }; then
60444 ac_cv_lib_iconv_iconv=yes
60445 else
60446 echo "$as_me: failed program was:" >&5
60447 sed 's/^/| /' conftest.$ac_ext >&5
60449 ac_cv_lib_iconv_iconv=no
60451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60452 LIBS=$ac_check_lib_save_LIBS
60454 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60455 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60456 if test $ac_cv_lib_iconv_iconv = yes; then
60457 libiconv="-liconv"
60460 ac_save_LIBS="$LIBS"
60461 LIBS="$LIBS $libiconv"
60467 for ac_func in iconv_open iconv_close iconv nl_langinfo
60469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60470 echo "$as_me:$LINENO: checking for $ac_func" >&5
60471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60472 if eval "test \"\${$as_ac_var+set}\" = set"; then
60473 echo $ECHO_N "(cached) $ECHO_C" >&6
60474 else
60475 if test x$gcc_no_link = xyes; then
60476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60478 { (exit 1); exit 1; }; }
60480 cat >conftest.$ac_ext <<_ACEOF
60481 #line $LINENO "configure"
60482 /* confdefs.h. */
60483 _ACEOF
60484 cat confdefs.h >>conftest.$ac_ext
60485 cat >>conftest.$ac_ext <<_ACEOF
60486 /* end confdefs.h. */
60487 /* System header to define __stub macros and hopefully few prototypes,
60488 which can conflict with char $ac_func (); below.
60489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60490 <limits.h> exists even on freestanding compilers. */
60491 #ifdef __STDC__
60492 # include <limits.h>
60493 #else
60494 # include <assert.h>
60495 #endif
60496 /* Override any gcc2 internal prototype to avoid an error. */
60497 #ifdef __cplusplus
60498 extern "C"
60500 #endif
60501 /* We use char because int might match the return type of a gcc2
60502 builtin and then its argument prototype would still apply. */
60503 char $ac_func ();
60504 /* The GNU C library defines this for functions which it implements
60505 to always fail with ENOSYS. Some functions are actually named
60506 something starting with __ and the normal name is an alias. */
60507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60508 choke me
60509 #else
60510 char (*f) () = $ac_func;
60511 #endif
60512 #ifdef __cplusplus
60514 #endif
60517 main ()
60519 return f != $ac_func;
60521 return 0;
60523 _ACEOF
60524 rm -f conftest.$ac_objext conftest$ac_exeext
60525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60526 (eval $ac_link) 2>&5
60527 ac_status=$?
60528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60529 (exit $ac_status); } &&
60530 { ac_try='test -s conftest$ac_exeext'
60531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60532 (eval $ac_try) 2>&5
60533 ac_status=$?
60534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60535 (exit $ac_status); }; }; then
60536 eval "$as_ac_var=yes"
60537 else
60538 echo "$as_me: failed program was:" >&5
60539 sed 's/^/| /' conftest.$ac_ext >&5
60541 eval "$as_ac_var=no"
60543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60547 if test `eval echo '${'$as_ac_var'}'` = yes; then
60548 cat >>confdefs.h <<_ACEOF
60549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60550 _ACEOF
60551 ac_XPG2funcs=yes
60552 else
60553 ac_XPG2funcs=no
60555 done
60558 LIBS="$ac_save_LIBS"
60560 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60561 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60562 if test x"$ac_has_iconv_h" = xyes &&
60563 test x"$ac_has_langinfo_h" = xyes &&
60564 test x"$ac_XPG2funcs" = xyes;
60565 then
60566 ac_XPG2_wchar_t=yes
60567 else
60568 ac_XPG2_wchar_t=no
60570 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60571 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60573 # At the moment, only enable wchar_t specializations if all the
60574 # above support is present.
60575 if test x"$ac_isoC99_wchar_t" = xyes &&
60576 test x"$ac_XPG2_wchar_t" = xyes;
60577 then
60578 cat >>confdefs.h <<\_ACEOF
60579 #define _GLIBCXX_USE_WCHAR_T 1
60580 _ACEOF
60582 enable_wchar_t=yes
60585 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60586 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60587 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60588 echo "${ECHO_T}$enable_wchar_t" >&6
60590 # All of the dependencies for wide character support are here, so
60591 # turn it on. This requires some syncronization with the
60592 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
60593 cat >>confdefs.h <<\_ACEOF
60594 #define _GLIBCXX_USE_WCHAR_T 1
60595 _ACEOF
60597 # Are these tested for even when cross?
60598 cat >>confdefs.h <<\_ACEOF
60599 #define HAVE_FLOAT_H 1
60600 _ACEOF
60602 cat >>confdefs.h <<\_ACEOF
60603 #define HAVE_IEEEFP_H 1
60604 _ACEOF
60606 cat >>confdefs.h <<\_ACEOF
60607 #define HAVE_INTTYPES_H 1
60608 _ACEOF
60610 cat >>confdefs.h <<\_ACEOF
60611 #define HAVE_LOCALE_H 1
60612 _ACEOF
60614 cat >>confdefs.h <<\_ACEOF
60615 #define HAVE_NAN_H 1
60616 _ACEOF
60618 cat >>confdefs.h <<\_ACEOF
60619 #define HAVE_SYS_FILIO_H 1
60620 _ACEOF
60622 cat >>confdefs.h <<\_ACEOF
60623 #define HAVE_SYS_IOCTL_H 1
60624 _ACEOF
60626 cat >>confdefs.h <<\_ACEOF
60627 #define HAVE_SYS_ISA_DEFS_H 1
60628 _ACEOF
60630 cat >>confdefs.h <<\_ACEOF
60631 #define HAVE_SYS_RESOURCE_H 1
60632 _ACEOF
60634 cat >>confdefs.h <<\_ACEOF
60635 #define HAVE_SYS_TIME_H 1
60636 _ACEOF
60638 cat >>confdefs.h <<\_ACEOF
60639 #define HAVE_SYS_TYPES_H 1
60640 _ACEOF
60642 cat >>confdefs.h <<\_ACEOF
60643 #define HAVE_UNISTD_H 1
60644 _ACEOF
60646 cat >>confdefs.h <<\_ACEOF
60647 #define HAVE_WCHAR_H 1
60648 _ACEOF
60650 cat >>confdefs.h <<\_ACEOF
60651 #define HAVE_WCTYPE_H 1
60652 _ACEOF
60654 cat >>confdefs.h <<\_ACEOF
60655 #define HAVE_LIBM 1
60656 _ACEOF
60659 esac
60660 case "$target" in
60661 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
60662 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
60663 cat >>confdefs.h <<\_ACEOF
60664 #define HAVE___BUILTIN_ABS 1
60665 _ACEOF
60667 cat >>confdefs.h <<\_ACEOF
60668 #define HAVE___BUILTIN_LABS 1
60669 _ACEOF
60671 cat >>confdefs.h <<\_ACEOF
60672 #define HAVE___BUILTIN_FABS 1
60673 _ACEOF
60675 cat >>confdefs.h <<\_ACEOF
60676 #define HAVE___BUILTIN_FABSF 1
60677 _ACEOF
60679 cat >>confdefs.h <<\_ACEOF
60680 #define HAVE___BUILTIN_FABSL 1
60681 _ACEOF
60683 cat >>confdefs.h <<\_ACEOF
60684 #define HAVE___BUILTIN_COS 1
60685 _ACEOF
60687 cat >>confdefs.h <<\_ACEOF
60688 #define HAVE___BUILTIN_COSF 1
60689 _ACEOF
60691 cat >>confdefs.h <<\_ACEOF
60692 #define HAVE___BUILTIN_SIN 1
60693 _ACEOF
60695 cat >>confdefs.h <<\_ACEOF
60696 #define HAVE___BUILTIN_SINF 1
60697 _ACEOF
60700 esac
60701 cat >>confdefs.h <<\_ACEOF
60702 #define HAVE_STRTOF 1
60703 _ACEOF
60705 cat >>confdefs.h <<\_ACEOF
60706 #define HAVE_STRTOLD 1
60707 _ACEOF
60709 cat >>confdefs.h <<\_ACEOF
60710 #define HAVE_MMAP 1
60711 _ACEOF
60713 cat >>confdefs.h <<\_ACEOF
60714 #define HAVE_COPYSIGN 1
60715 _ACEOF
60717 cat >>confdefs.h <<\_ACEOF
60718 #define HAVE_ISNAN 1
60719 _ACEOF
60721 cat >>confdefs.h <<\_ACEOF
60722 #define HAVE_ISNANF 1
60723 _ACEOF
60725 cat >>confdefs.h <<\_ACEOF
60726 #define HAVE_MODFF 1
60727 _ACEOF
60729 cat >>confdefs.h <<\_ACEOF
60730 #define HAVE_HYPOT 1
60731 _ACEOF
60734 *-vxworks)
60735 cat >>confdefs.h <<\_ACEOF
60736 #define HAVE_MMAP 1
60737 _ACEOF
60739 cat >>confdefs.h <<\_ACEOF
60740 #define HAVE_ACOSF 1
60741 _ACEOF
60743 cat >>confdefs.h <<\_ACEOF
60744 #define HAVE_ASINF 1
60745 _ACEOF
60747 cat >>confdefs.h <<\_ACEOF
60748 #define HAVE_ATAN2F 1
60749 _ACEOF
60751 cat >>confdefs.h <<\_ACEOF
60752 #define HAVE_ATANF 1
60753 _ACEOF
60755 cat >>confdefs.h <<\_ACEOF
60756 #define HAVE_CEILF 1
60757 _ACEOF
60759 cat >>confdefs.h <<\_ACEOF
60760 #define HAVE_COSF 1
60761 _ACEOF
60763 cat >>confdefs.h <<\_ACEOF
60764 #define HAVE_COSHF 1
60765 _ACEOF
60767 cat >>confdefs.h <<\_ACEOF
60768 #define HAVE_EXPF 1
60769 _ACEOF
60771 cat >>confdefs.h <<\_ACEOF
60772 #define HAVE_FABSF 1
60773 _ACEOF
60775 cat >>confdefs.h <<\_ACEOF
60776 #define HAVE_FLOORF 1
60777 _ACEOF
60779 cat >>confdefs.h <<\_ACEOF
60780 #define HAVE_FMODF 1
60781 _ACEOF
60783 cat >>confdefs.h <<\_ACEOF
60784 #define HAVE_HYPOT 1
60785 _ACEOF
60787 cat >>confdefs.h <<\_ACEOF
60788 #define HAVE_LOG10F 1
60789 _ACEOF
60791 cat >>confdefs.h <<\_ACEOF
60792 #define HAVE_LOGF 1
60793 _ACEOF
60795 cat >>confdefs.h <<\_ACEOF
60796 #define HAVE_POWF 1
60797 _ACEOF
60799 cat >>confdefs.h <<\_ACEOF
60800 #define HAVE_SINF 1
60801 _ACEOF
60803 cat >>confdefs.h <<\_ACEOF
60804 #define HAVE_SINHF 1
60805 _ACEOF
60807 cat >>confdefs.h <<\_ACEOF
60808 #define HAVE_SQRTF 1
60809 _ACEOF
60811 cat >>confdefs.h <<\_ACEOF
60812 #define HAVE_TANF 1
60813 _ACEOF
60815 cat >>confdefs.h <<\_ACEOF
60816 #define HAVE_TANHF 1
60817 _ACEOF
60820 *-windiss*)
60821 cat >>confdefs.h <<\_ACEOF
60822 #define HAVE_ACOSF 1
60823 _ACEOF
60825 cat >>confdefs.h <<\_ACEOF
60826 #define HAVE_ACOSL 1
60827 _ACEOF
60829 cat >>confdefs.h <<\_ACEOF
60830 #define HAVE_ASINF 1
60831 _ACEOF
60833 cat >>confdefs.h <<\_ACEOF
60834 #define HAVE_ASINL 1
60835 _ACEOF
60837 cat >>confdefs.h <<\_ACEOF
60838 #define HAVE_ATAN2F 1
60839 _ACEOF
60841 cat >>confdefs.h <<\_ACEOF
60842 #define HAVE_ATAN2L 1
60843 _ACEOF
60845 cat >>confdefs.h <<\_ACEOF
60846 #define HAVE_ATANF 1
60847 _ACEOF
60849 cat >>confdefs.h <<\_ACEOF
60850 #define HAVE_ATANL 1
60851 _ACEOF
60853 cat >>confdefs.h <<\_ACEOF
60854 #define HAVE_CEILF 1
60855 _ACEOF
60857 cat >>confdefs.h <<\_ACEOF
60858 #define HAVE_CEILL 1
60859 _ACEOF
60861 cat >>confdefs.h <<\_ACEOF
60862 #define HAVE_COPYSIGN 1
60863 _ACEOF
60865 cat >>confdefs.h <<\_ACEOF
60866 #define HAVE_COPYSIGNF 1
60867 _ACEOF
60869 cat >>confdefs.h <<\_ACEOF
60870 #define HAVE_COSF 1
60871 _ACEOF
60873 cat >>confdefs.h <<\_ACEOF
60874 #define HAVE_COSL 1
60875 _ACEOF
60877 cat >>confdefs.h <<\_ACEOF
60878 #define HAVE_COSHF 1
60879 _ACEOF
60881 cat >>confdefs.h <<\_ACEOF
60882 #define HAVE_COSHL 1
60883 _ACEOF
60885 cat >>confdefs.h <<\_ACEOF
60886 #define HAVE_EXPF 1
60887 _ACEOF
60889 cat >>confdefs.h <<\_ACEOF
60890 #define HAVE_EXPL 1
60891 _ACEOF
60893 cat >>confdefs.h <<\_ACEOF
60894 #define HAVE_FABSF 1
60895 _ACEOF
60897 cat >>confdefs.h <<\_ACEOF
60898 #define HAVE_FABSL 1
60899 _ACEOF
60901 cat >>confdefs.h <<\_ACEOF
60902 #define HAVE_FLOORF 1
60903 _ACEOF
60905 cat >>confdefs.h <<\_ACEOF
60906 #define HAVE_FLOORL 1
60907 _ACEOF
60909 cat >>confdefs.h <<\_ACEOF
60910 #define HAVE_FMODF 1
60911 _ACEOF
60913 cat >>confdefs.h <<\_ACEOF
60914 #define HAVE_FMODL 1
60915 _ACEOF
60917 cat >>confdefs.h <<\_ACEOF
60918 #define HAVE_FREXPF 1
60919 _ACEOF
60921 cat >>confdefs.h <<\_ACEOF
60922 #define HAVE_FREXPL 1
60923 _ACEOF
60925 cat >>confdefs.h <<\_ACEOF
60926 #define HAVE_LDEXPF 1
60927 _ACEOF
60929 cat >>confdefs.h <<\_ACEOF
60930 #define HAVE_LDEXPL 1
60931 _ACEOF
60933 cat >>confdefs.h <<\_ACEOF
60934 #define HAVE_LOG10F 1
60935 _ACEOF
60937 cat >>confdefs.h <<\_ACEOF
60938 #define HAVE_LOG10L 1
60939 _ACEOF
60941 cat >>confdefs.h <<\_ACEOF
60942 #define HAVE_LOGF 1
60943 _ACEOF
60945 cat >>confdefs.h <<\_ACEOF
60946 #define HAVE_MODFF 1
60947 _ACEOF
60949 cat >>confdefs.h <<\_ACEOF
60950 #define HAVE_MODFL 1
60951 _ACEOF
60953 cat >>confdefs.h <<\_ACEOF
60954 #define HAVE_POWF 1
60955 _ACEOF
60957 cat >>confdefs.h <<\_ACEOF
60958 #define HAVE_POWL 1
60959 _ACEOF
60961 cat >>confdefs.h <<\_ACEOF
60962 #define HAVE_SINF 1
60963 _ACEOF
60965 cat >>confdefs.h <<\_ACEOF
60966 #define HAVE_SINL 1
60967 _ACEOF
60969 cat >>confdefs.h <<\_ACEOF
60970 #define HAVE_SINHF 1
60971 _ACEOF
60973 cat >>confdefs.h <<\_ACEOF
60974 #define HAVE_SINHL 1
60975 _ACEOF
60977 cat >>confdefs.h <<\_ACEOF
60978 #define HAVE_SQRTF 1
60979 _ACEOF
60981 cat >>confdefs.h <<\_ACEOF
60982 #define HAVE_SQRTL 1
60983 _ACEOF
60985 cat >>confdefs.h <<\_ACEOF
60986 #define HAVE_TANF 1
60987 _ACEOF
60989 cat >>confdefs.h <<\_ACEOF
60990 #define HAVE_TANL 1
60991 _ACEOF
60993 cat >>confdefs.h <<\_ACEOF
60994 #define HAVE_TANHF 1
60995 _ACEOF
60997 cat >>confdefs.h <<\_ACEOF
60998 #define HAVE_TANHL 1
60999 _ACEOF
61003 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
61004 echo "$as_me: error: No support for this host/target combination." >&2;}
61005 { (exit 1); exit 1; }; }
61007 esac
61012 # At some point, we should differentiate between architectures
61013 # like x86, which have long double versions, and alpha/powerpc/etc.,
61014 # which don't. For the time being, punt.
61015 if test x"long_double_math_on_this_cpu" = x"yes"; then
61016 cat >>confdefs.h <<\_ACEOF
61017 #define HAVE_ACOSL 1
61018 _ACEOF
61020 cat >>confdefs.h <<\_ACEOF
61021 #define HAVE_ASINL 1
61022 _ACEOF
61024 cat >>confdefs.h <<\_ACEOF
61025 #define HAVE_ATAN2L 1
61026 _ACEOF
61028 cat >>confdefs.h <<\_ACEOF
61029 #define HAVE_ATANL 1
61030 _ACEOF
61032 cat >>confdefs.h <<\_ACEOF
61033 #define HAVE_CEILL 1
61034 _ACEOF
61036 cat >>confdefs.h <<\_ACEOF
61037 #define HAVE_COPYSIGNL 1
61038 _ACEOF
61040 cat >>confdefs.h <<\_ACEOF
61041 #define HAVE_COSL 1
61042 _ACEOF
61044 cat >>confdefs.h <<\_ACEOF
61045 #define HAVE_COSHL 1
61046 _ACEOF
61048 cat >>confdefs.h <<\_ACEOF
61049 #define HAVE_EXPL 1
61050 _ACEOF
61052 cat >>confdefs.h <<\_ACEOF
61053 #define HAVE_FABSL 1
61054 _ACEOF
61056 cat >>confdefs.h <<\_ACEOF
61057 #define HAVE_FLOORL 1
61058 _ACEOF
61060 cat >>confdefs.h <<\_ACEOF
61061 #define HAVE_FMODL 1
61062 _ACEOF
61064 cat >>confdefs.h <<\_ACEOF
61065 #define HAVE_FREXPL 1
61066 _ACEOF
61068 cat >>confdefs.h <<\_ACEOF
61069 #define HAVE_LDEXPL 1
61070 _ACEOF
61072 cat >>confdefs.h <<\_ACEOF
61073 #define HAVE_LOG10L 1
61074 _ACEOF
61076 cat >>confdefs.h <<\_ACEOF
61077 #define HAVE_LOGL 1
61078 _ACEOF
61080 cat >>confdefs.h <<\_ACEOF
61081 #define HAVE_MODFL 1
61082 _ACEOF
61084 cat >>confdefs.h <<\_ACEOF
61085 #define HAVE_POWL 1
61086 _ACEOF
61088 cat >>confdefs.h <<\_ACEOF
61089 #define HAVE_SINCOSL 1
61090 _ACEOF
61092 cat >>confdefs.h <<\_ACEOF
61093 #define HAVE_SINL 1
61094 _ACEOF
61096 cat >>confdefs.h <<\_ACEOF
61097 #define HAVE_SINHL 1
61098 _ACEOF
61100 cat >>confdefs.h <<\_ACEOF
61101 #define HAVE_SQRTL 1
61102 _ACEOF
61104 cat >>confdefs.h <<\_ACEOF
61105 #define HAVE_TANL 1
61106 _ACEOF
61108 cat >>confdefs.h <<\_ACEOF
61109 #define HAVE_TANHL 1
61110 _ACEOF
61116 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
61119 # Check whether --enable-symvers or --disable-symvers was given.
61120 if test "${enable_symvers+set}" = set; then
61121 enableval="$enable_symvers"
61123 case "$enableval" in
61124 yes|no|gnu) ;;
61125 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
61126 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
61127 { (exit 1); exit 1; }; } ;;
61128 esac
61130 else
61131 enable_symvers=yes
61135 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
61136 # don't know enough about $LD to do tricks...
61138 # FIXME The following test is too strict, in theory.
61139 if test $enable_shared = no ||
61140 test "x$LD" = x ||
61141 test x$glibcxx_gnu_ld_version = x; then
61142 enable_symvers=no
61145 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
61146 if test $enable_symvers != no; then
61147 echo "$as_me:$LINENO: checking for shared libgcc" >&5
61148 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
61149 ac_save_CFLAGS="$CFLAGS"
61150 CFLAGS=' -lgcc_s'
61151 if test x$gcc_no_link = xyes; then
61152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61154 { (exit 1); exit 1; }; }
61156 cat >conftest.$ac_ext <<_ACEOF
61157 #line $LINENO "configure"
61158 /* confdefs.h. */
61159 _ACEOF
61160 cat confdefs.h >>conftest.$ac_ext
61161 cat >>conftest.$ac_ext <<_ACEOF
61162 /* end confdefs.h. */
61165 main ()
61167 return 0;
61169 return 0;
61171 _ACEOF
61172 rm -f conftest.$ac_objext conftest$ac_exeext
61173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61174 (eval $ac_link) 2>&5
61175 ac_status=$?
61176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61177 (exit $ac_status); } &&
61178 { ac_try='test -s conftest$ac_exeext'
61179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61180 (eval $ac_try) 2>&5
61181 ac_status=$?
61182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61183 (exit $ac_status); }; }; then
61184 glibcxx_shared_libgcc=yes
61185 else
61186 echo "$as_me: failed program was:" >&5
61187 sed 's/^/| /' conftest.$ac_ext >&5
61189 glibcxx_shared_libgcc=no
61191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61192 CFLAGS="$ac_save_CFLAGS"
61193 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
61194 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
61197 # For GNU ld, we need at least this version. The format is described in
61198 # GLIBCXX_CHECK_LINKER_FEATURES above.
61199 glibcxx_min_gnu_ld_version=21400
61200 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
61202 # Check to see if unspecified "yes" value can win, given results above.
61203 # Change "yes" into either "no" or a style name.
61204 if test $enable_symvers = yes; then
61205 if test $with_gnu_ld = yes &&
61206 test $glibcxx_shared_libgcc = yes;
61207 then
61208 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
61209 enable_symvers=gnu
61210 else
61211 # The right tools, the right setup, but too old. Fallbacks?
61212 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
61213 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
61214 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
61215 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
61216 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
61217 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
61218 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
61219 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
61220 if test $glibcxx_gnu_ld_version -ge 21200 ; then
61221 # Globbing fix is present, proper block support is not.
61222 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61223 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61224 enable_symvers=no
61225 else
61226 # 2.11 or older.
61227 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61228 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61229 enable_symvers=no
61232 else
61233 # just fail for now
61234 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
61235 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
61236 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
61237 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
61238 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
61239 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
61240 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
61241 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
61242 enable_symvers=no
61246 # Everything parsed; figure out what file to use.
61247 case $enable_symvers in
61249 SYMVER_MAP=config/linker-map.dummy
61251 gnu)
61252 SYMVER_MAP=config/linker-map.gnu
61253 cat >>confdefs.h <<\_ACEOF
61254 #define _GLIBCXX_SYMVER 1
61255 _ACEOF
61258 esac
61263 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
61264 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
61267 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
61269 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
61270 # Do checks for memory limit functions.
61272 setrlimit_have_headers=yes
61276 for ac_header in unistd.h sys/time.h sys/resource.h
61278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61280 echo "$as_me:$LINENO: checking for $ac_header" >&5
61281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61283 echo $ECHO_N "(cached) $ECHO_C" >&6
61285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61287 else
61288 # Is the header compilable?
61289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61291 cat >conftest.$ac_ext <<_ACEOF
61292 #line $LINENO "configure"
61293 /* confdefs.h. */
61294 _ACEOF
61295 cat confdefs.h >>conftest.$ac_ext
61296 cat >>conftest.$ac_ext <<_ACEOF
61297 /* end confdefs.h. */
61298 $ac_includes_default
61299 #include <$ac_header>
61300 _ACEOF
61301 rm -f conftest.$ac_objext
61302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61303 (eval $ac_compile) 2>&5
61304 ac_status=$?
61305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61306 (exit $ac_status); } &&
61307 { ac_try='test -s conftest.$ac_objext'
61308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61309 (eval $ac_try) 2>&5
61310 ac_status=$?
61311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61312 (exit $ac_status); }; }; then
61313 ac_header_compiler=yes
61314 else
61315 echo "$as_me: failed program was:" >&5
61316 sed 's/^/| /' conftest.$ac_ext >&5
61318 ac_header_compiler=no
61320 rm -f conftest.$ac_objext conftest.$ac_ext
61321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61322 echo "${ECHO_T}$ac_header_compiler" >&6
61324 # Is the header present?
61325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61327 cat >conftest.$ac_ext <<_ACEOF
61328 #line $LINENO "configure"
61329 /* confdefs.h. */
61330 _ACEOF
61331 cat confdefs.h >>conftest.$ac_ext
61332 cat >>conftest.$ac_ext <<_ACEOF
61333 /* end confdefs.h. */
61334 #include <$ac_header>
61335 _ACEOF
61336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61338 ac_status=$?
61339 grep -v '^ *+' conftest.er1 >conftest.err
61340 rm -f conftest.er1
61341 cat conftest.err >&5
61342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61343 (exit $ac_status); } >/dev/null; then
61344 if test -s conftest.err; then
61345 ac_cpp_err=$ac_c_preproc_warn_flag
61346 else
61347 ac_cpp_err=
61349 else
61350 ac_cpp_err=yes
61352 if test -z "$ac_cpp_err"; then
61353 ac_header_preproc=yes
61354 else
61355 echo "$as_me: failed program was:" >&5
61356 sed 's/^/| /' conftest.$ac_ext >&5
61358 ac_header_preproc=no
61360 rm -f conftest.err conftest.$ac_ext
61361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61362 echo "${ECHO_T}$ac_header_preproc" >&6
61364 # So? What about this header?
61365 case $ac_header_compiler:$ac_header_preproc in
61366 yes:no )
61367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61372 cat <<\_ASBOX
61373 ## ------------------------------------ ##
61374 ## Report this to bug-autoconf@gnu.org. ##
61375 ## ------------------------------------ ##
61376 _ASBOX
61378 sed "s/^/$as_me: WARNING: /" >&2
61380 no:yes )
61381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61388 cat <<\_ASBOX
61389 ## ------------------------------------ ##
61390 ## Report this to bug-autoconf@gnu.org. ##
61391 ## ------------------------------------ ##
61392 _ASBOX
61394 sed "s/^/$as_me: WARNING: /" >&2
61396 esac
61397 echo "$as_me:$LINENO: checking for $ac_header" >&5
61398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61400 echo $ECHO_N "(cached) $ECHO_C" >&6
61401 else
61402 eval "$as_ac_Header=$ac_header_preproc"
61404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61409 cat >>confdefs.h <<_ACEOF
61410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61411 _ACEOF
61413 else
61414 setrlimit_have_headers=no
61417 done
61419 # If don't have the headers, then we can't run the tests now, and we
61420 # won't be seeing any of these during testsuite compilation.
61421 if test $setrlimit_have_headers = yes; then
61422 # Can't do these in a loop, else the resulting syntax is wrong.
61424 cat >conftest.$ac_ext <<_ACEOF
61425 #line $LINENO "configure"
61426 /* confdefs.h. */
61427 _ACEOF
61428 cat confdefs.h >>conftest.$ac_ext
61429 cat >>conftest.$ac_ext <<_ACEOF
61430 /* end confdefs.h. */
61431 #include <unistd.h>
61432 #include <sys/time.h>
61433 #include <sys/resource.h>
61436 main ()
61438 int f = RLIMIT_DATA ;
61440 return 0;
61442 _ACEOF
61443 rm -f conftest.$ac_objext
61444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61445 (eval $ac_compile) 2>&5
61446 ac_status=$?
61447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61448 (exit $ac_status); } &&
61449 { ac_try='test -s conftest.$ac_objext'
61450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61451 (eval $ac_try) 2>&5
61452 ac_status=$?
61453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61454 (exit $ac_status); }; }; then
61455 glibcxx_mresult=1
61456 else
61457 echo "$as_me: failed program was:" >&5
61458 sed 's/^/| /' conftest.$ac_ext >&5
61460 glibcxx_mresult=0
61462 rm -f conftest.$ac_objext conftest.$ac_ext
61464 cat >>confdefs.h <<_ACEOF
61465 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
61466 _ACEOF
61470 cat >conftest.$ac_ext <<_ACEOF
61471 #line $LINENO "configure"
61472 /* confdefs.h. */
61473 _ACEOF
61474 cat confdefs.h >>conftest.$ac_ext
61475 cat >>conftest.$ac_ext <<_ACEOF
61476 /* end confdefs.h. */
61477 #include <unistd.h>
61478 #include <sys/time.h>
61479 #include <sys/resource.h>
61482 main ()
61484 int f = RLIMIT_RSS ;
61486 return 0;
61488 _ACEOF
61489 rm -f conftest.$ac_objext
61490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61491 (eval $ac_compile) 2>&5
61492 ac_status=$?
61493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61494 (exit $ac_status); } &&
61495 { ac_try='test -s conftest.$ac_objext'
61496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61497 (eval $ac_try) 2>&5
61498 ac_status=$?
61499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61500 (exit $ac_status); }; }; then
61501 glibcxx_mresult=1
61502 else
61503 echo "$as_me: failed program was:" >&5
61504 sed 's/^/| /' conftest.$ac_ext >&5
61506 glibcxx_mresult=0
61508 rm -f conftest.$ac_objext conftest.$ac_ext
61510 cat >>confdefs.h <<_ACEOF
61511 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
61512 _ACEOF
61516 cat >conftest.$ac_ext <<_ACEOF
61517 #line $LINENO "configure"
61518 /* confdefs.h. */
61519 _ACEOF
61520 cat confdefs.h >>conftest.$ac_ext
61521 cat >>conftest.$ac_ext <<_ACEOF
61522 /* end confdefs.h. */
61523 #include <unistd.h>
61524 #include <sys/time.h>
61525 #include <sys/resource.h>
61528 main ()
61530 int f = RLIMIT_VMEM ;
61532 return 0;
61534 _ACEOF
61535 rm -f conftest.$ac_objext
61536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61537 (eval $ac_compile) 2>&5
61538 ac_status=$?
61539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61540 (exit $ac_status); } &&
61541 { ac_try='test -s conftest.$ac_objext'
61542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61543 (eval $ac_try) 2>&5
61544 ac_status=$?
61545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61546 (exit $ac_status); }; }; then
61547 glibcxx_mresult=1
61548 else
61549 echo "$as_me: failed program was:" >&5
61550 sed 's/^/| /' conftest.$ac_ext >&5
61552 glibcxx_mresult=0
61554 rm -f conftest.$ac_objext conftest.$ac_ext
61556 cat >>confdefs.h <<_ACEOF
61557 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
61558 _ACEOF
61562 cat >conftest.$ac_ext <<_ACEOF
61563 #line $LINENO "configure"
61564 /* confdefs.h. */
61565 _ACEOF
61566 cat confdefs.h >>conftest.$ac_ext
61567 cat >>conftest.$ac_ext <<_ACEOF
61568 /* end confdefs.h. */
61569 #include <unistd.h>
61570 #include <sys/time.h>
61571 #include <sys/resource.h>
61574 main ()
61576 int f = RLIMIT_AS ;
61578 return 0;
61580 _ACEOF
61581 rm -f conftest.$ac_objext
61582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61583 (eval $ac_compile) 2>&5
61584 ac_status=$?
61585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61586 (exit $ac_status); } &&
61587 { ac_try='test -s conftest.$ac_objext'
61588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61589 (eval $ac_try) 2>&5
61590 ac_status=$?
61591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61592 (exit $ac_status); }; }; then
61593 glibcxx_mresult=1
61594 else
61595 echo "$as_me: failed program was:" >&5
61596 sed 's/^/| /' conftest.$ac_ext >&5
61598 glibcxx_mresult=0
61600 rm -f conftest.$ac_objext conftest.$ac_ext
61602 cat >>confdefs.h <<_ACEOF
61603 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
61604 _ACEOF
61608 # Check for rlimit, setrlimit.
61609 if test "${ac_setrlimit+set}" = set; then
61610 echo $ECHO_N "(cached) $ECHO_C" >&6
61611 else
61613 cat >conftest.$ac_ext <<_ACEOF
61614 #line $LINENO "configure"
61615 /* confdefs.h. */
61616 _ACEOF
61617 cat confdefs.h >>conftest.$ac_ext
61618 cat >>conftest.$ac_ext <<_ACEOF
61619 /* end confdefs.h. */
61620 #include <unistd.h>
61621 #include <sys/time.h>
61622 #include <sys/resource.h>
61625 main ()
61627 struct rlimit r;
61628 setrlimit(0, &r);
61630 return 0;
61632 _ACEOF
61633 rm -f conftest.$ac_objext
61634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61635 (eval $ac_compile) 2>&5
61636 ac_status=$?
61637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61638 (exit $ac_status); } &&
61639 { ac_try='test -s conftest.$ac_objext'
61640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61641 (eval $ac_try) 2>&5
61642 ac_status=$?
61643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61644 (exit $ac_status); }; }; then
61645 ac_setrlimit=yes
61646 else
61647 echo "$as_me: failed program was:" >&5
61648 sed 's/^/| /' conftest.$ac_ext >&5
61650 ac_setrlimit=no
61652 rm -f conftest.$ac_objext conftest.$ac_ext
61658 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
61659 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
61660 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
61661 ac_mem_limits=yes
61662 cat >>confdefs.h <<\_ACEOF
61663 #define _GLIBCXX_MEM_LIMITS 1
61664 _ACEOF
61666 else
61667 ac_mem_limits=no
61669 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
61670 echo "${ECHO_T}$ac_mem_limits" >&6
61673 # Look for setenv, so that extended locale tests can be performed.
61675 echo "$as_me:$LINENO: checking for setenv declaration" >&5
61676 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
61677 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
61678 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
61679 echo $ECHO_N "(cached) $ECHO_C" >&6
61680 else
61684 ac_ext=cc
61685 ac_cpp='$CXXCPP $CPPFLAGS'
61686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
61690 cat >conftest.$ac_ext <<_ACEOF
61691 #line $LINENO "configure"
61692 /* confdefs.h. */
61693 _ACEOF
61694 cat confdefs.h >>conftest.$ac_ext
61695 cat >>conftest.$ac_ext <<_ACEOF
61696 /* end confdefs.h. */
61697 #include <stdlib.h>
61699 main ()
61701 setenv(0, 0, 0);
61703 return 0;
61705 _ACEOF
61706 rm -f conftest.$ac_objext
61707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61708 (eval $ac_compile) 2>&5
61709 ac_status=$?
61710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61711 (exit $ac_status); } &&
61712 { ac_try='test -s conftest.$ac_objext'
61713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61714 (eval $ac_try) 2>&5
61715 ac_status=$?
61716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61717 (exit $ac_status); }; }; then
61718 glibcxx_cv_func_setenv_use=yes
61719 else
61720 echo "$as_me: failed program was:" >&5
61721 sed 's/^/| /' conftest.$ac_ext >&5
61723 glibcxx_cv_func_setenv_use=no
61725 rm -f conftest.$ac_objext conftest.$ac_ext
61726 ac_ext=c
61727 ac_cpp='$CPP $CPPFLAGS'
61728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61736 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
61737 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
61738 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
61740 for ac_func in setenv
61742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61743 echo "$as_me:$LINENO: checking for $ac_func" >&5
61744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61745 if eval "test \"\${$as_ac_var+set}\" = set"; then
61746 echo $ECHO_N "(cached) $ECHO_C" >&6
61747 else
61748 if test x$gcc_no_link = xyes; then
61749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61751 { (exit 1); exit 1; }; }
61753 cat >conftest.$ac_ext <<_ACEOF
61754 #line $LINENO "configure"
61755 /* confdefs.h. */
61756 _ACEOF
61757 cat confdefs.h >>conftest.$ac_ext
61758 cat >>conftest.$ac_ext <<_ACEOF
61759 /* end confdefs.h. */
61760 /* System header to define __stub macros and hopefully few prototypes,
61761 which can conflict with char $ac_func (); below.
61762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61763 <limits.h> exists even on freestanding compilers. */
61764 #ifdef __STDC__
61765 # include <limits.h>
61766 #else
61767 # include <assert.h>
61768 #endif
61769 /* Override any gcc2 internal prototype to avoid an error. */
61770 #ifdef __cplusplus
61771 extern "C"
61773 #endif
61774 /* We use char because int might match the return type of a gcc2
61775 builtin and then its argument prototype would still apply. */
61776 char $ac_func ();
61777 /* The GNU C library defines this for functions which it implements
61778 to always fail with ENOSYS. Some functions are actually named
61779 something starting with __ and the normal name is an alias. */
61780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61781 choke me
61782 #else
61783 char (*f) () = $ac_func;
61784 #endif
61785 #ifdef __cplusplus
61787 #endif
61790 main ()
61792 return f != $ac_func;
61794 return 0;
61796 _ACEOF
61797 rm -f conftest.$ac_objext conftest$ac_exeext
61798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61799 (eval $ac_link) 2>&5
61800 ac_status=$?
61801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61802 (exit $ac_status); } &&
61803 { ac_try='test -s conftest$ac_exeext'
61804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61805 (eval $ac_try) 2>&5
61806 ac_status=$?
61807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61808 (exit $ac_status); }; }; then
61809 eval "$as_ac_var=yes"
61810 else
61811 echo "$as_me: failed program was:" >&5
61812 sed 's/^/| /' conftest.$ac_ext >&5
61814 eval "$as_ac_var=no"
61816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61820 if test `eval echo '${'$as_ac_var'}'` = yes; then
61821 cat >>confdefs.h <<_ACEOF
61822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61823 _ACEOF
61826 done
61831 if test $enable_symvers = no; then
61832 enable_abi_check=no
61833 else
61834 case "$host" in
61835 *-*-cygwin*)
61836 enable_abi_check=no ;;
61838 enable_abi_check=yes ;;
61839 esac
61841 else
61842 # Only build this as native, since automake does not understand
61843 # CXX_FOR_BUILD.
61844 enable_abi_check=no
61847 # Export file names for ABI checking.
61848 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
61855 # Propagate the target-specific source directories through the build chain.
61856 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
61857 # uses it, and it only gets used in this file.)
61858 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
61859 OS_INC_SRCDIR=config/${os_include_dir}
61863 # Determine cross-compile flags and AM_CONDITIONALs.
61864 #AC_SUBST(GLIBCXX_IS_NATIVE)
61865 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
61866 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
61867 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
61870 if test $is_hosted = yes; then
61871 GLIBCXX_HOSTED_TRUE=
61872 GLIBCXX_HOSTED_FALSE='#'
61873 else
61874 GLIBCXX_HOSTED_TRUE='#'
61875 GLIBCXX_HOSTED_FALSE=
61881 if test $enable_libstdcxx_pch = yes; then
61882 GLIBCXX_BUILD_PCH_TRUE=
61883 GLIBCXX_BUILD_PCH_FALSE='#'
61884 else
61885 GLIBCXX_BUILD_PCH_TRUE='#'
61886 GLIBCXX_BUILD_PCH_FALSE=
61892 if test $enable_cheaders = c; then
61893 GLIBCXX_C_HEADERS_C_TRUE=
61894 GLIBCXX_C_HEADERS_C_FALSE='#'
61895 else
61896 GLIBCXX_C_HEADERS_C_TRUE='#'
61897 GLIBCXX_C_HEADERS_C_FALSE=
61903 if test $enable_cheaders = c_std; then
61904 GLIBCXX_C_HEADERS_C_STD_TRUE=
61905 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
61906 else
61907 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
61908 GLIBCXX_C_HEADERS_C_STD_FALSE=
61914 if test $c_compatibility = yes; then
61915 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
61916 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
61917 else
61918 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
61919 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
61925 if test $enable_libstdcxx_debug = yes; then
61926 GLIBCXX_BUILD_DEBUG_TRUE=
61927 GLIBCXX_BUILD_DEBUG_FALSE='#'
61928 else
61929 GLIBCXX_BUILD_DEBUG_TRUE='#'
61930 GLIBCXX_BUILD_DEBUG_FALSE=
61936 if test $enable_symvers != no; then
61937 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
61938 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
61939 else
61940 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
61941 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
61947 if test $enable_wchar_t = yes; then
61948 GLIBCXX_TEST_WCHAR_T_TRUE=
61949 GLIBCXX_TEST_WCHAR_T_FALSE='#'
61950 else
61951 GLIBCXX_TEST_WCHAR_T_TRUE='#'
61952 GLIBCXX_TEST_WCHAR_T_FALSE=
61958 if test $enable_abi_check = yes; then
61959 GLIBCXX_TEST_ABI_TRUE=
61960 GLIBCXX_TEST_ABI_FALSE='#'
61961 else
61962 GLIBCXX_TEST_ABI_TRUE='#'
61963 GLIBCXX_TEST_ABI_FALSE=
61969 cat >confcache <<\_ACEOF
61970 # This file is a shell script that caches the results of configure
61971 # tests run on this system so they can be shared between configure
61972 # scripts and configure runs, see configure's option --config-cache.
61973 # It is not useful on other systems. If it contains results you don't
61974 # want to keep, you may remove or edit it.
61976 # config.status only pays attention to the cache file if you give it
61977 # the --recheck option to rerun configure.
61979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
61980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
61981 # following values.
61983 _ACEOF
61985 # The following way of writing the cache mishandles newlines in values,
61986 # but we know of no workaround that is simple, portable, and efficient.
61987 # So, don't put newlines in cache variables' values.
61988 # Ultrix sh set writes to stderr and can't be redirected directly,
61989 # and sets the high bit in the cache file unless we assign to the vars.
61991 (set) 2>&1 |
61992 case `(ac_space=' '; set | grep ac_space) 2>&1` in
61993 *ac_space=\ *)
61994 # `set' does not quote correctly, so add quotes (double-quote
61995 # substitution turns \\\\ into \\, and sed turns \\ into \).
61996 sed -n \
61997 "s/'/'\\\\''/g;
61998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62001 # `set' quotes correctly as required by POSIX, so do not add quotes.
62002 sed -n \
62003 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
62005 esac;
62007 sed '
62008 t clear
62009 : clear
62010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62011 t end
62012 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62013 : end' >>confcache
62014 if diff $cache_file confcache >/dev/null 2>&1; then :; else
62015 if test -w $cache_file; then
62016 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
62017 cat confcache >$cache_file
62018 else
62019 echo "not updating unwritable cache $cache_file"
62022 rm -f confcache
62024 if test ${multilib} = yes; then
62025 multilib_arg="--enable-multilib"
62026 else
62027 multilib_arg=
62030 # Export all the install information.
62032 glibcxx_toolexecdir=no
62033 glibcxx_toolexeclibdir=no
62034 glibcxx_prefixdir=$prefix
62036 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
62037 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
62039 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
62040 if test "${with_gxx_include_dir+set}" = set; then
62041 withval="$with_gxx_include_dir"
62042 case "$withval" in
62043 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
62044 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
62045 { (exit 1); exit 1; }; } ;;
62046 no) gxx_include_dir=no ;;
62047 *) gxx_include_dir=$withval ;;
62048 esac
62049 else
62050 gxx_include_dir=no
62052 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
62053 echo "${ECHO_T}$gxx_include_dir" >&6
62055 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
62056 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
62057 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
62058 if test "${enable_version_specific_runtime_libs+set}" = set; then
62059 enableval="$enable_version_specific_runtime_libs"
62060 case "$enableval" in
62061 yes) version_specific_libs=yes ;;
62062 no) version_specific_libs=no ;;
62063 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
62064 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
62065 { (exit 1); exit 1; }; };;
62066 esac
62067 else
62068 version_specific_libs=no
62070 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
62071 echo "${ECHO_T}$version_specific_libs" >&6
62073 # Default case for install directory for include files.
62074 if test $version_specific_libs = no && test $gxx_include_dir = no; then
62075 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
62078 # Version-specific runtime libs processing.
62079 if test $version_specific_libs = yes; then
62080 # Need the gcc compiler version to know where to install libraries
62081 # and header files if --enable-version-specific-runtime-libs option
62082 # is selected.
62083 if test x"$gxx_include_dir" = x"no"; then
62084 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
62086 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
62087 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
62090 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
62091 # Install a library built with a cross compiler in tooldir, not libdir.
62092 if test x"$glibcxx_toolexecdir" = x"no"; then
62093 if test -n "$with_cross_host" &&
62094 test x"$with_cross_host" != x"no"; then
62095 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
62096 glibcxx_toolexeclibdir='${toolexecdir}/lib'
62097 else
62098 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
62099 glibcxx_toolexeclibdir='${libdir}'
62101 multi_os_directory=`$CXX -print-multi-os-directory`
62102 case $multi_os_directory in
62103 .) ;; # Avoid trailing /.
62104 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
62105 esac
62108 echo "$as_me:$LINENO: checking for install location" >&5
62109 echo $ECHO_N "checking for install location... $ECHO_C" >&6
62110 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
62111 echo "${ECHO_T}$gxx_include_dir" >&6
62119 # Export all the include and flag information to Makefiles.
62121 # Used for every C++ compile we perform.
62122 GLIBCXX_INCLUDES="\
62123 -I$glibcxx_builddir/include/$host_alias \
62124 -I$glibcxx_builddir/include \
62125 -I$glibcxx_srcdir/libsupc++"
62127 # For Canadian crosses, pick this up too.
62128 if test $CANADIAN = yes; then
62129 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
62132 # Stuff in the actual top level. Currently only used by libsupc++ to
62133 # get unwind* headers from the gcc dir.
62134 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
62135 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
62137 # Now, export this to all the little Makefiles....
62142 # Optimization flags that are probably a good idea for thrill-seekers. Just
62143 # uncomment the lines below and make, everything else is ready to go...
62144 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
62145 OPTIMIZE_CXXFLAGS=
62148 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
62152 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
62153 grep "enable shared" > /dev/null;
62154 then
62155 LIBSUPCXX_PICFLAGS=-prefer-pic
62156 else
62157 LIBSUPCXX_PICFLAGS=
62161 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
62163 ac_config_files="$ac_config_files scripts/check_survey"
62165 ac_config_files="$ac_config_files scripts/testsuite_flags"
62168 ac_config_commands="$ac_config_commands default"
62171 cat >confcache <<\_ACEOF
62172 # This file is a shell script that caches the results of configure
62173 # tests run on this system so they can be shared between configure
62174 # scripts and configure runs, see configure's option --config-cache.
62175 # It is not useful on other systems. If it contains results you don't
62176 # want to keep, you may remove or edit it.
62178 # config.status only pays attention to the cache file if you give it
62179 # the --recheck option to rerun configure.
62181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
62182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
62183 # following values.
62185 _ACEOF
62187 # The following way of writing the cache mishandles newlines in values,
62188 # but we know of no workaround that is simple, portable, and efficient.
62189 # So, don't put newlines in cache variables' values.
62190 # Ultrix sh set writes to stderr and can't be redirected directly,
62191 # and sets the high bit in the cache file unless we assign to the vars.
62193 (set) 2>&1 |
62194 case `(ac_space=' '; set | grep ac_space) 2>&1` in
62195 *ac_space=\ *)
62196 # `set' does not quote correctly, so add quotes (double-quote
62197 # substitution turns \\\\ into \\, and sed turns \\ into \).
62198 sed -n \
62199 "s/'/'\\\\''/g;
62200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62203 # `set' quotes correctly as required by POSIX, so do not add quotes.
62204 sed -n \
62205 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
62207 esac;
62209 sed '
62210 t clear
62211 : clear
62212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62213 t end
62214 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62215 : end' >>confcache
62216 if diff $cache_file confcache >/dev/null 2>&1; then :; else
62217 if test -w $cache_file; then
62218 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
62219 cat confcache >$cache_file
62220 else
62221 echo "not updating unwritable cache $cache_file"
62224 rm -f confcache
62226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62227 # Let make expand exec_prefix.
62228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62232 # trailing colons and then remove the whole line if VPATH becomes empty
62233 # (actually we leave an empty line to preserve line numbers).
62234 if test "x$srcdir" = x.; then
62235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
62236 s/:*\$(srcdir):*/:/;
62237 s/:*\${srcdir}:*/:/;
62238 s/:*@srcdir@:*/:/;
62239 s/^\([^=]*=[ ]*\):*/\1/;
62240 s/:*$//;
62241 s/^[^=]*=[ ]*$//;
62245 DEFS=-DHAVE_CONFIG_H
62247 ac_libobjs=
62248 ac_ltlibobjs=
62249 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
62250 # 1. Remove the extension, and $U if already installed.
62251 ac_i=`echo "$ac_i" |
62252 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
62253 # 2. Add them.
62254 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
62255 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
62256 done
62257 LIBOBJS=$ac_libobjs
62259 LTLIBOBJS=$ac_ltlibobjs
62262 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
62263 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
62264 Usually this means the macro was only invoked conditionally." >&5
62265 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
62266 Usually this means the macro was only invoked conditionally." >&2;}
62267 { (exit 1); exit 1; }; }
62269 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
62270 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
62271 Usually this means the macro was only invoked conditionally." >&5
62272 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
62273 Usually this means the macro was only invoked conditionally." >&2;}
62274 { (exit 1); exit 1; }; }
62276 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
62277 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
62278 Usually this means the macro was only invoked conditionally." >&5
62279 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
62280 Usually this means the macro was only invoked conditionally." >&2;}
62281 { (exit 1); exit 1; }; }
62283 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
62284 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
62285 Usually this means the macro was only invoked conditionally." >&5
62286 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
62287 Usually this means the macro was only invoked conditionally." >&2;}
62288 { (exit 1); exit 1; }; }
62290 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
62291 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
62292 Usually this means the macro was only invoked conditionally." >&5
62293 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
62294 Usually this means the macro was only invoked conditionally." >&2;}
62295 { (exit 1); exit 1; }; }
62297 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
62298 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
62299 Usually this means the macro was only invoked conditionally." >&5
62300 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
62301 Usually this means the macro was only invoked conditionally." >&2;}
62302 { (exit 1); exit 1; }; }
62304 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
62305 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
62306 Usually this means the macro was only invoked conditionally." >&5
62307 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
62308 Usually this means the macro was only invoked conditionally." >&2;}
62309 { (exit 1); exit 1; }; }
62311 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
62312 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
62313 Usually this means the macro was only invoked conditionally." >&5
62314 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
62315 Usually this means the macro was only invoked conditionally." >&2;}
62316 { (exit 1); exit 1; }; }
62318 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
62319 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
62320 Usually this means the macro was only invoked conditionally." >&5
62321 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
62322 Usually this means the macro was only invoked conditionally." >&2;}
62323 { (exit 1); exit 1; }; }
62325 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
62326 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
62327 Usually this means the macro was only invoked conditionally." >&5
62328 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
62329 Usually this means the macro was only invoked conditionally." >&2;}
62330 { (exit 1); exit 1; }; }
62333 : ${CONFIG_STATUS=./config.status}
62334 ac_clean_files_save=$ac_clean_files
62335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
62336 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
62337 echo "$as_me: creating $CONFIG_STATUS" >&6;}
62338 cat >$CONFIG_STATUS <<_ACEOF
62339 #! $SHELL
62340 # Generated by $as_me.
62341 # Run this file to recreate the current configuration.
62342 # Compiler output produced by configure, useful for debugging
62343 # configure, is in config.log if it exists.
62345 debug=false
62346 ac_cs_recheck=false
62347 ac_cs_silent=false
62348 SHELL=\${CONFIG_SHELL-$SHELL}
62349 _ACEOF
62351 cat >>$CONFIG_STATUS <<\_ACEOF
62352 ## --------------------- ##
62353 ## M4sh Initialization. ##
62354 ## --------------------- ##
62356 # Be Bourne compatible
62357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
62358 emulate sh
62359 NULLCMD=:
62360 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
62361 # is contrary to our usage. Disable this feature.
62362 alias -g '${1+"$@"}'='"$@"'
62363 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
62364 set -o posix
62367 # Support unset when possible.
62368 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62369 as_unset=unset
62370 else
62371 as_unset=false
62375 # Work around bugs in pre-3.0 UWIN ksh.
62376 $as_unset ENV MAIL MAILPATH
62377 PS1='$ '
62378 PS2='> '
62379 PS4='+ '
62381 # NLS nuisances.
62382 for as_var in \
62383 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
62384 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
62385 LC_TELEPHONE LC_TIME
62387 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
62388 eval $as_var=C; export $as_var
62389 else
62390 $as_unset $as_var
62392 done
62394 # Required to use basename.
62395 if expr a : '\(a\)' >/dev/null 2>&1; then
62396 as_expr=expr
62397 else
62398 as_expr=false
62401 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62402 as_basename=basename
62403 else
62404 as_basename=false
62408 # Name of the executable.
62409 as_me=`$as_basename "$0" ||
62410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
62411 X"$0" : 'X\(//\)$' \| \
62412 X"$0" : 'X\(/\)$' \| \
62413 . : '\(.\)' 2>/dev/null ||
62414 echo X/"$0" |
62415 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
62416 /^X\/\(\/\/\)$/{ s//\1/; q; }
62417 /^X\/\(\/\).*/{ s//\1/; q; }
62418 s/.*/./; q'`
62421 # PATH needs CR, and LINENO needs CR and PATH.
62422 # Avoid depending upon Character Ranges.
62423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
62424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
62425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
62426 as_cr_digits='0123456789'
62427 as_cr_alnum=$as_cr_Letters$as_cr_digits
62429 # The user is always right.
62430 if test "${PATH_SEPARATOR+set}" != set; then
62431 echo "#! /bin/sh" >conf$$.sh
62432 echo "exit 0" >>conf$$.sh
62433 chmod +x conf$$.sh
62434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
62435 PATH_SEPARATOR=';'
62436 else
62437 PATH_SEPARATOR=:
62439 rm -f conf$$.sh
62443 as_lineno_1=$LINENO
62444 as_lineno_2=$LINENO
62445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
62446 test "x$as_lineno_1" != "x$as_lineno_2" &&
62447 test "x$as_lineno_3" = "x$as_lineno_2" || {
62448 # Find who we are. Look in the path if we contain no path at all
62449 # relative or not.
62450 case $0 in
62451 *[\\/]* ) as_myself=$0 ;;
62452 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62453 for as_dir in $PATH
62455 IFS=$as_save_IFS
62456 test -z "$as_dir" && as_dir=.
62457 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
62458 done
62461 esac
62462 # We did not find ourselves, most probably we were run as `sh COMMAND'
62463 # in which case we are not to be found in the path.
62464 if test "x$as_myself" = x; then
62465 as_myself=$0
62467 if test ! -f "$as_myself"; then
62468 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
62469 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
62470 { (exit 1); exit 1; }; }
62472 case $CONFIG_SHELL in
62474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62475 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
62477 IFS=$as_save_IFS
62478 test -z "$as_dir" && as_dir=.
62479 for as_base in sh bash ksh sh5; do
62480 case $as_dir in
62482 if ("$as_dir/$as_base" -c '
62483 as_lineno_1=$LINENO
62484 as_lineno_2=$LINENO
62485 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
62486 test "x$as_lineno_1" != "x$as_lineno_2" &&
62487 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
62488 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
62489 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
62490 CONFIG_SHELL=$as_dir/$as_base
62491 export CONFIG_SHELL
62492 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
62493 fi;;
62494 esac
62495 done
62496 done
62498 esac
62500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
62501 # uniformly replaced by the line number. The first 'sed' inserts a
62502 # line-number line before each line; the second 'sed' does the real
62503 # work. The second script uses 'N' to pair each line-number line
62504 # with the numbered line, and appends trailing '-' during
62505 # substitution so that $LINENO is not a special case at line end.
62506 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
62507 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
62508 sed '=' <$as_myself |
62509 sed '
62511 s,$,-,
62512 : loop
62513 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
62514 t loop
62515 s,-$,,
62516 s,^['$as_cr_digits']*\n,,
62517 ' >$as_me.lineno &&
62518 chmod +x $as_me.lineno ||
62519 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
62520 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
62521 { (exit 1); exit 1; }; }
62523 # Don't try to exec as it changes $[0], causing all sort of problems
62524 # (the dirname of $[0] is not the place where we might find the
62525 # original and so on. Autoconf is especially sensible to this).
62526 . ./$as_me.lineno
62527 # Exit status is that of the last command.
62528 exit
62532 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
62533 *c*,-n*) ECHO_N= ECHO_C='
62534 ' ECHO_T=' ' ;;
62535 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
62536 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
62537 esac
62539 if expr a : '\(a\)' >/dev/null 2>&1; then
62540 as_expr=expr
62541 else
62542 as_expr=false
62545 rm -f conf$$ conf$$.exe conf$$.file
62546 echo >conf$$.file
62547 if ln -s conf$$.file conf$$ 2>/dev/null; then
62548 # We could just check for DJGPP; but this test a) works b) is more generic
62549 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
62550 if test -f conf$$.exe; then
62551 # Don't use ln at all; we don't have any links
62552 as_ln_s='cp -p'
62553 else
62554 as_ln_s='ln -s'
62556 elif ln conf$$.file conf$$ 2>/dev/null; then
62557 as_ln_s=ln
62558 else
62559 as_ln_s='cp -p'
62561 rm -f conf$$ conf$$.exe conf$$.file
62563 if mkdir -p . 2>/dev/null; then
62564 as_mkdir_p=:
62565 else
62566 as_mkdir_p=false
62569 as_executable_p="test -f"
62571 # Sed expression to map a string onto a valid CPP name.
62572 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
62574 # Sed expression to map a string onto a valid variable name.
62575 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
62578 # IFS
62579 # We need space, tab and new line, in precisely that order.
62580 as_nl='
62582 IFS=" $as_nl"
62584 # CDPATH.
62585 $as_unset CDPATH
62587 exec 6>&1
62589 # Open the log real soon, to keep \$[0] and so on meaningful, and to
62590 # report actual input values of CONFIG_FILES etc. instead of their
62591 # values after options handling. Logging --version etc. is OK.
62592 exec 5>>config.log
62594 echo
62595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
62596 ## Running $as_me. ##
62597 _ASBOX
62598 } >&5
62599 cat >&5 <<_CSEOF
62601 This file was extended by package-unused $as_me version-unused, which was
62602 generated by GNU Autoconf 2.57. Invocation command line was
62604 CONFIG_FILES = $CONFIG_FILES
62605 CONFIG_HEADERS = $CONFIG_HEADERS
62606 CONFIG_LINKS = $CONFIG_LINKS
62607 CONFIG_COMMANDS = $CONFIG_COMMANDS
62608 $ $0 $@
62610 _CSEOF
62611 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
62612 echo >&5
62613 _ACEOF
62615 # Files that config.status was made for.
62616 if test -n "$ac_config_files"; then
62617 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
62620 if test -n "$ac_config_headers"; then
62621 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
62624 if test -n "$ac_config_links"; then
62625 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
62628 if test -n "$ac_config_commands"; then
62629 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
62632 cat >>$CONFIG_STATUS <<\_ACEOF
62634 ac_cs_usage="\
62635 \`$as_me' instantiates files from templates according to the
62636 current configuration.
62638 Usage: $0 [OPTIONS] [FILE]...
62640 -h, --help print this help, then exit
62641 -V, --version print version number, then exit
62642 -q, --quiet do not print progress messages
62643 -d, --debug don't remove temporary files
62644 --recheck update $as_me by reconfiguring in the same conditions
62645 --file=FILE[:TEMPLATE]
62646 instantiate the configuration file FILE
62647 --header=FILE[:TEMPLATE]
62648 instantiate the configuration header FILE
62650 Configuration files:
62651 $config_files
62653 Configuration headers:
62654 $config_headers
62656 Configuration commands:
62657 $config_commands
62659 Report bugs to <bug-autoconf@gnu.org>."
62660 _ACEOF
62662 cat >>$CONFIG_STATUS <<_ACEOF
62663 ac_cs_version="\\
62664 package-unused config.status version-unused
62665 configured by $0, generated by GNU Autoconf 2.57,
62666 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
62668 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
62669 Free Software Foundation, Inc.
62670 This config.status script is free software; the Free Software Foundation
62671 gives unlimited permission to copy, distribute and modify it."
62672 srcdir=$srcdir
62673 INSTALL="$INSTALL"
62674 _ACEOF
62676 cat >>$CONFIG_STATUS <<\_ACEOF
62677 # If no file are specified by the user, then we need to provide default
62678 # value. By we need to know if files were specified by the user.
62679 ac_need_defaults=:
62680 while test $# != 0
62682 case $1 in
62683 --*=*)
62684 ac_option=`expr "x$1" : 'x\([^=]*\)='`
62685 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
62686 ac_shift=:
62689 ac_option=$1
62690 ac_optarg=$2
62691 ac_shift=shift
62693 *) # This is not an option, so the user has probably given explicit
62694 # arguments.
62695 ac_option=$1
62696 ac_need_defaults=false;;
62697 esac
62699 case $ac_option in
62700 # Handling of the options.
62701 _ACEOF
62702 cat >>$CONFIG_STATUS <<\_ACEOF
62703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
62704 ac_cs_recheck=: ;;
62705 --version | --vers* | -V )
62706 echo "$ac_cs_version"; exit 0 ;;
62707 --he | --h)
62708 # Conflict between --help and --header
62709 { { echo "$as_me:$LINENO: error: ambiguous option: $1
62710 Try \`$0 --help' for more information." >&5
62711 echo "$as_me: error: ambiguous option: $1
62712 Try \`$0 --help' for more information." >&2;}
62713 { (exit 1); exit 1; }; };;
62714 --help | --hel | -h )
62715 echo "$ac_cs_usage"; exit 0 ;;
62716 --debug | --d* | -d )
62717 debug=: ;;
62718 --file | --fil | --fi | --f )
62719 $ac_shift
62720 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
62721 ac_need_defaults=false;;
62722 --header | --heade | --head | --hea )
62723 $ac_shift
62724 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
62725 ac_need_defaults=false;;
62726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
62727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
62728 ac_cs_silent=: ;;
62730 # This is an error.
62731 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
62732 Try \`$0 --help' for more information." >&5
62733 echo "$as_me: error: unrecognized option: $1
62734 Try \`$0 --help' for more information." >&2;}
62735 { (exit 1); exit 1; }; } ;;
62737 *) ac_config_targets="$ac_config_targets $1" ;;
62739 esac
62740 shift
62741 done
62743 ac_configure_extra_args=
62745 if $ac_cs_silent; then
62746 exec 6>/dev/null
62747 ac_configure_extra_args="$ac_configure_extra_args --silent"
62750 _ACEOF
62751 cat >>$CONFIG_STATUS <<_ACEOF
62752 if \$ac_cs_recheck; then
62753 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
62754 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
62757 _ACEOF
62759 cat >>$CONFIG_STATUS <<_ACEOF
62761 # INIT-COMMANDS section.
62765 srcdir="$srcdir"
62766 host="$host"
62767 target="$target"
62768 with_multisubdir="$with_multisubdir"
62769 with_multisrctop="$with_multisrctop"
62770 with_target_subdir="$with_target_subdir"
62771 ac_configure_args="${multilib_arg} ${ac_configure_args}"
62772 multi_basedir="$multi_basedir"
62773 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
62774 CC="$CC"
62776 # Variables needed in config.status (file generation) which aren't already
62777 # passed by autoconf.
62778 SUBDIRS="$SUBDIRS"
62781 _ACEOF
62785 cat >>$CONFIG_STATUS <<\_ACEOF
62786 for ac_config_target in $ac_config_targets
62788 case "$ac_config_target" in
62789 # Handling of arguments.
62790 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
62791 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
62792 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
62793 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
62794 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
62795 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
62796 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
62797 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
62798 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
62799 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
62800 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
62801 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
62802 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
62803 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
62804 { (exit 1); exit 1; }; };;
62805 esac
62806 done
62808 # If the user did not use the arguments to specify the items to instantiate,
62809 # then the envvar interface is used. Set only those that are not.
62810 # We use the long form for the default assignment because of an extremely
62811 # bizarre bug on SunOS 4.1.3.
62812 if $ac_need_defaults; then
62813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
62814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
62815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
62818 # Have a temporary directory for convenience. Make it in the build tree
62819 # simply because there is no reason to put it here, and in addition,
62820 # creating and moving files from /tmp can sometimes cause problems.
62821 # Create a temporary directory, and hook for its removal unless debugging.
62822 $debug ||
62824 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
62825 trap '{ (exit 1); exit 1; }' 1 2 13 15
62828 # Create a (secure) tmp directory for tmp files.
62831 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
62832 test -n "$tmp" && test -d "$tmp"
62833 } ||
62835 tmp=./confstat$$-$RANDOM
62836 (umask 077 && mkdir $tmp)
62837 } ||
62839 echo "$me: cannot create a temporary directory in ." >&2
62840 { (exit 1); exit 1; }
62843 _ACEOF
62845 cat >>$CONFIG_STATUS <<_ACEOF
62848 # CONFIG_FILES section.
62851 # No need to generate the scripts if there are no CONFIG_FILES.
62852 # This happens for instance when ./config.status config.h
62853 if test -n "\$CONFIG_FILES"; then
62854 # Protect against being on the right side of a sed subst in config.status.
62855 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
62856 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
62857 s,@SHELL@,$SHELL,;t t
62858 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
62859 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
62860 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
62861 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
62862 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
62863 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
62864 s,@exec_prefix@,$exec_prefix,;t t
62865 s,@prefix@,$prefix,;t t
62866 s,@program_transform_name@,$program_transform_name,;t t
62867 s,@bindir@,$bindir,;t t
62868 s,@sbindir@,$sbindir,;t t
62869 s,@libexecdir@,$libexecdir,;t t
62870 s,@datadir@,$datadir,;t t
62871 s,@sysconfdir@,$sysconfdir,;t t
62872 s,@sharedstatedir@,$sharedstatedir,;t t
62873 s,@localstatedir@,$localstatedir,;t t
62874 s,@libdir@,$libdir,;t t
62875 s,@includedir@,$includedir,;t t
62876 s,@oldincludedir@,$oldincludedir,;t t
62877 s,@infodir@,$infodir,;t t
62878 s,@mandir@,$mandir,;t t
62879 s,@build_alias@,$build_alias,;t t
62880 s,@host_alias@,$host_alias,;t t
62881 s,@target_alias@,$target_alias,;t t
62882 s,@DEFS@,$DEFS,;t t
62883 s,@ECHO_C@,$ECHO_C,;t t
62884 s,@ECHO_N@,$ECHO_N,;t t
62885 s,@ECHO_T@,$ECHO_T,;t t
62886 s,@LIBS@,$LIBS,;t t
62887 s,@libtool_VERSION@,$libtool_VERSION,;t t
62888 s,@multi_basedir@,$multi_basedir,;t t
62889 s,@build@,$build,;t t
62890 s,@build_cpu@,$build_cpu,;t t
62891 s,@build_vendor@,$build_vendor,;t t
62892 s,@build_os@,$build_os,;t t
62893 s,@host@,$host,;t t
62894 s,@host_cpu@,$host_cpu,;t t
62895 s,@host_vendor@,$host_vendor,;t t
62896 s,@host_os@,$host_os,;t t
62897 s,@target@,$target,;t t
62898 s,@target_cpu@,$target_cpu,;t t
62899 s,@target_vendor@,$target_vendor,;t t
62900 s,@target_os@,$target_os,;t t
62901 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
62902 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
62903 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
62904 s,@CYGPATH_W@,$CYGPATH_W,;t t
62905 s,@PACKAGE@,$PACKAGE,;t t
62906 s,@VERSION@,$VERSION,;t t
62907 s,@ACLOCAL@,$ACLOCAL,;t t
62908 s,@AUTOCONF@,$AUTOCONF,;t t
62909 s,@AUTOMAKE@,$AUTOMAKE,;t t
62910 s,@AUTOHEADER@,$AUTOHEADER,;t t
62911 s,@MAKEINFO@,$MAKEINFO,;t t
62912 s,@AMTAR@,$AMTAR,;t t
62913 s,@install_sh@,$install_sh,;t t
62914 s,@STRIP@,$STRIP,;t t
62915 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
62916 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
62917 s,@AWK@,$AWK,;t t
62918 s,@SET_MAKE@,$SET_MAKE,;t t
62919 s,@am__leading_dot@,$am__leading_dot,;t t
62920 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
62921 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
62922 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
62923 s,@CC@,$CC,;t t
62924 s,@ac_ct_CC@,$ac_ct_CC,;t t
62925 s,@EXEEXT@,$EXEEXT,;t t
62926 s,@OBJEXT@,$OBJEXT,;t t
62927 s,@CXX@,$CXX,;t t
62928 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
62929 s,@CFLAGS@,$CFLAGS,;t t
62930 s,@CXXFLAGS@,$CXXFLAGS,;t t
62931 s,@LN_S@,$LN_S,;t t
62932 s,@AS@,$AS,;t t
62933 s,@ac_ct_AS@,$ac_ct_AS,;t t
62934 s,@AR@,$AR,;t t
62935 s,@ac_ct_AR@,$ac_ct_AR,;t t
62936 s,@RANLIB@,$RANLIB,;t t
62937 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
62938 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
62939 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
62940 s,@MAINT@,$MAINT,;t t
62941 s,@LIBTOOL@,$LIBTOOL,;t t
62942 s,@CXXCPP@,$CXXCPP,;t t
62943 s,@CPPFLAGS@,$CPPFLAGS,;t t
62944 s,@enable_shared@,$enable_shared,;t t
62945 s,@enable_static@,$enable_static,;t t
62946 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
62947 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
62948 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
62949 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
62950 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
62951 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
62952 s,@CSTDIO_H@,$CSTDIO_H,;t t
62953 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
62954 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
62955 s,@CPP@,$CPP,;t t
62956 s,@EGREP@,$EGREP,;t t
62957 s,@check_msgfmt@,$check_msgfmt,;t t
62958 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
62959 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
62960 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
62961 s,@USE_NLS@,$USE_NLS,;t t
62962 s,@CLOCALE_H@,$CLOCALE_H,;t t
62963 s,@CCODECVT_H@,$CCODECVT_H,;t t
62964 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
62965 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
62966 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
62967 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
62968 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
62969 s,@CMONEY_CC@,$CMONEY_CC,;t t
62970 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
62971 s,@CTIME_H@,$CTIME_H,;t t
62972 s,@CTIME_CC@,$CTIME_CC,;t t
62973 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
62974 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
62975 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
62976 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
62977 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
62978 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
62979 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
62980 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
62981 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
62982 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
62983 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
62984 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
62985 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
62986 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
62987 s,@WERROR@,$WERROR,;t t
62988 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
62989 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
62990 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
62991 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
62992 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
62993 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
62994 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
62995 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
62996 s,@baseline_dir@,$baseline_dir,;t t
62997 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
62998 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
62999 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
63000 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
63001 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
63002 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
63003 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
63004 s,@gxx_include_dir@,$gxx_include_dir,;t t
63005 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
63006 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
63007 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
63008 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
63009 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
63010 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
63011 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
63012 s,@LIBOBJS@,$LIBOBJS,;t t
63013 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63014 CEOF
63016 _ACEOF
63018 cat >>$CONFIG_STATUS <<\_ACEOF
63019 # Split the substitutions into bite-sized pieces for seds with
63020 # small command number limits, like on Digital OSF/1 and HP-UX.
63021 ac_max_sed_lines=48
63022 ac_sed_frag=1 # Number of current file.
63023 ac_beg=1 # First line for current file.
63024 ac_end=$ac_max_sed_lines # Line after last line for current file.
63025 ac_more_lines=:
63026 ac_sed_cmds=
63027 while $ac_more_lines; do
63028 if test $ac_beg -gt 1; then
63029 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63030 else
63031 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63033 if test ! -s $tmp/subs.frag; then
63034 ac_more_lines=false
63035 else
63036 # The purpose of the label and of the branching condition is to
63037 # speed up the sed processing (if there are no `@' at all, there
63038 # is no need to browse any of the substitutions).
63039 # These are the two extra sed commands mentioned above.
63040 (echo ':t
63041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
63042 if test -z "$ac_sed_cmds"; then
63043 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
63044 else
63045 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
63047 ac_sed_frag=`expr $ac_sed_frag + 1`
63048 ac_beg=$ac_end
63049 ac_end=`expr $ac_end + $ac_max_sed_lines`
63051 done
63052 if test -z "$ac_sed_cmds"; then
63053 ac_sed_cmds=cat
63055 fi # test -n "$CONFIG_FILES"
63057 _ACEOF
63058 cat >>$CONFIG_STATUS <<\_ACEOF
63059 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
63061 case $ac_file in
63062 - | *:- | *:-:* ) # input from stdin
63063 cat >$tmp/stdin
63064 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63066 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63068 * ) ac_file_in=$ac_file.in ;;
63069 esac
63071 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
63072 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
63073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63074 X"$ac_file" : 'X\(//\)[^/]' \| \
63075 X"$ac_file" : 'X\(//\)$' \| \
63076 X"$ac_file" : 'X\(/\)' \| \
63077 . : '\(.\)' 2>/dev/null ||
63078 echo X"$ac_file" |
63079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63081 /^X\(\/\/\)$/{ s//\1/; q; }
63082 /^X\(\/\).*/{ s//\1/; q; }
63083 s/.*/./; q'`
63084 { if $as_mkdir_p; then
63085 mkdir -p "$ac_dir"
63086 else
63087 as_dir="$ac_dir"
63088 as_dirs=
63089 while test ! -d "$as_dir"; do
63090 as_dirs="$as_dir $as_dirs"
63091 as_dir=`(dirname "$as_dir") 2>/dev/null ||
63092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63093 X"$as_dir" : 'X\(//\)[^/]' \| \
63094 X"$as_dir" : 'X\(//\)$' \| \
63095 X"$as_dir" : 'X\(/\)' \| \
63096 . : '\(.\)' 2>/dev/null ||
63097 echo X"$as_dir" |
63098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63100 /^X\(\/\/\)$/{ s//\1/; q; }
63101 /^X\(\/\).*/{ s//\1/; q; }
63102 s/.*/./; q'`
63103 done
63104 test ! -n "$as_dirs" || mkdir $as_dirs
63105 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
63106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
63107 { (exit 1); exit 1; }; }; }
63109 ac_builddir=.
63111 if test "$ac_dir" != .; then
63112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
63113 # A "../" for each directory in $ac_dir_suffix.
63114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63115 else
63116 ac_dir_suffix= ac_top_builddir=
63119 case $srcdir in
63120 .) # No --srcdir option. We are building in place.
63121 ac_srcdir=.
63122 if test -z "$ac_top_builddir"; then
63123 ac_top_srcdir=.
63124 else
63125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
63126 fi ;;
63127 [\\/]* | ?:[\\/]* ) # Absolute path.
63128 ac_srcdir=$srcdir$ac_dir_suffix;
63129 ac_top_srcdir=$srcdir ;;
63130 *) # Relative path.
63131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
63132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
63133 esac
63134 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
63135 # absolute.
63136 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
63137 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
63138 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
63139 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
63142 case $INSTALL in
63143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
63144 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63145 esac
63147 if test x"$ac_file" != x-; then
63148 { echo "$as_me:$LINENO: creating $ac_file" >&5
63149 echo "$as_me: creating $ac_file" >&6;}
63150 rm -f "$ac_file"
63152 # Let's still pretend it is `configure' which instantiates (i.e., don't
63153 # use $as_me), people would be surprised to read:
63154 # /* config.h. Generated by config.status. */
63155 if test x"$ac_file" = x-; then
63156 configure_input=
63157 else
63158 configure_input="$ac_file. "
63160 configure_input=$configure_input"Generated from `echo $ac_file_in |
63161 sed 's,.*/,,'` by configure."
63163 # First look for the input files in the build tree, otherwise in the
63164 # src tree.
63165 ac_file_inputs=`IFS=:
63166 for f in $ac_file_in; do
63167 case $f in
63168 -) echo $tmp/stdin ;;
63169 [\\/$]*)
63170 # Absolute (can't be DOS-style, as IFS=:)
63171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63172 echo "$as_me: error: cannot find input file: $f" >&2;}
63173 { (exit 1); exit 1; }; }
63174 echo $f;;
63175 *) # Relative
63176 if test -f "$f"; then
63177 # Build tree
63178 echo $f
63179 elif test -f "$srcdir/$f"; then
63180 # Source tree
63181 echo $srcdir/$f
63182 else
63183 # /dev/null tree
63184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63185 echo "$as_me: error: cannot find input file: $f" >&2;}
63186 { (exit 1); exit 1; }; }
63187 fi;;
63188 esac
63189 done` || { (exit 1); exit 1; }
63190 _ACEOF
63191 cat >>$CONFIG_STATUS <<_ACEOF
63192 sed "$ac_vpsub
63193 $extrasub
63194 _ACEOF
63195 cat >>$CONFIG_STATUS <<\_ACEOF
63197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
63198 s,@configure_input@,$configure_input,;t t
63199 s,@srcdir@,$ac_srcdir,;t t
63200 s,@abs_srcdir@,$ac_abs_srcdir,;t t
63201 s,@top_srcdir@,$ac_top_srcdir,;t t
63202 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
63203 s,@builddir@,$ac_builddir,;t t
63204 s,@abs_builddir@,$ac_abs_builddir,;t t
63205 s,@top_builddir@,$ac_top_builddir,;t t
63206 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
63207 s,@INSTALL@,$ac_INSTALL,;t t
63208 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
63209 rm -f $tmp/stdin
63210 if test x"$ac_file" != x-; then
63211 mv $tmp/out $ac_file
63212 else
63213 cat $tmp/out
63214 rm -f $tmp/out
63217 # Run the commands associated with the file.
63218 case $ac_file in
63219 scripts/check_survey ) chmod +x scripts/check_survey ;;
63220 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
63221 esac
63222 done
63223 _ACEOF
63224 cat >>$CONFIG_STATUS <<\_ACEOF
63227 # CONFIG_HEADER section.
63230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
63231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
63233 # ac_d sets the value in "#define NAME VALUE" lines.
63234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
63235 ac_dB='[ ].*$,\1#\2'
63236 ac_dC=' '
63237 ac_dD=',;t'
63238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
63239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
63240 ac_uB='$,\1#\2define\3'
63241 ac_uC=' '
63242 ac_uD=',;t'
63244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
63246 case $ac_file in
63247 - | *:- | *:-:* ) # input from stdin
63248 cat >$tmp/stdin
63249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
63252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
63253 * ) ac_file_in=$ac_file.in ;;
63254 esac
63256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
63257 echo "$as_me: creating $ac_file" >&6;}
63259 # First look for the input files in the build tree, otherwise in the
63260 # src tree.
63261 ac_file_inputs=`IFS=:
63262 for f in $ac_file_in; do
63263 case $f in
63264 -) echo $tmp/stdin ;;
63265 [\\/$]*)
63266 # Absolute (can't be DOS-style, as IFS=:)
63267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63268 echo "$as_me: error: cannot find input file: $f" >&2;}
63269 { (exit 1); exit 1; }; }
63270 echo $f;;
63271 *) # Relative
63272 if test -f "$f"; then
63273 # Build tree
63274 echo $f
63275 elif test -f "$srcdir/$f"; then
63276 # Source tree
63277 echo $srcdir/$f
63278 else
63279 # /dev/null tree
63280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
63281 echo "$as_me: error: cannot find input file: $f" >&2;}
63282 { (exit 1); exit 1; }; }
63283 fi;;
63284 esac
63285 done` || { (exit 1); exit 1; }
63286 # Remove the trailing spaces.
63287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
63289 _ACEOF
63291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
63292 # `conftest.undefs', that substitutes the proper values into
63293 # config.h.in to produce config.h. The first handles `#define'
63294 # templates, and the second `#undef' templates.
63295 # And first: Protect against being on the right side of a sed subst in
63296 # config.status. Protect against being in an unquoted here document
63297 # in config.status.
63298 rm -f conftest.defines conftest.undefs
63299 # Using a here document instead of a string reduces the quoting nightmare.
63300 # Putting comments in sed scripts is not portable.
63302 # `end' is used to avoid that the second main sed command (meant for
63303 # 0-ary CPP macros) applies to n-ary macro definitions.
63304 # See the Autoconf documentation for `clear'.
63305 cat >confdef2sed.sed <<\_ACEOF
63306 s/[\\&,]/\\&/g
63307 s,[\\$`],\\&,g
63308 t clear
63309 : clear
63310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
63311 t end
63312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
63313 : end
63314 _ACEOF
63315 # If some macros were called several times there might be several times
63316 # the same #defines, which is useless. Nevertheless, we may not want to
63317 # sort them, since we want the *last* AC-DEFINE to be honored.
63318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
63319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
63320 rm -f confdef2sed.sed
63322 # This sed command replaces #undef with comments. This is necessary, for
63323 # example, in the case of _POSIX_SOURCE, which is predefined and required
63324 # on some systems where configure will not decide to define it.
63325 cat >>conftest.undefs <<\_ACEOF
63326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
63327 _ACEOF
63329 # Break up conftest.defines because some shells have a limit on the size
63330 # of here documents, and old seds have small limits too (100 cmds).
63331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
63332 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
63333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
63334 echo ' :' >>$CONFIG_STATUS
63335 rm -f conftest.tail
63336 while grep . conftest.defines >/dev/null
63338 # Write a limited-size here document to $tmp/defines.sed.
63339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
63340 # Speed up: don't consider the non `#define' lines.
63341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
63342 # Work around the forget-to-reset-the-flag bug.
63343 echo 't clr' >>$CONFIG_STATUS
63344 echo ': clr' >>$CONFIG_STATUS
63345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
63346 echo 'CEOF
63347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
63348 rm -f $tmp/in
63349 mv $tmp/out $tmp/in
63350 ' >>$CONFIG_STATUS
63351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
63352 rm -f conftest.defines
63353 mv conftest.tail conftest.defines
63354 done
63355 rm -f conftest.defines
63356 echo ' fi # grep' >>$CONFIG_STATUS
63357 echo >>$CONFIG_STATUS
63359 # Break up conftest.undefs because some shells have a limit on the size
63360 # of here documents, and old seds have small limits too (100 cmds).
63361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63362 rm -f conftest.tail
63363 while grep . conftest.undefs >/dev/null
63365 # Write a limited-size here document to $tmp/undefs.sed.
63366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
63367 # Speed up: don't consider the non `#undef'
63368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
63369 # Work around the forget-to-reset-the-flag bug.
63370 echo 't clr' >>$CONFIG_STATUS
63371 echo ': clr' >>$CONFIG_STATUS
63372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
63373 echo 'CEOF
63374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
63375 rm -f $tmp/in
63376 mv $tmp/out $tmp/in
63377 ' >>$CONFIG_STATUS
63378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
63379 rm -f conftest.undefs
63380 mv conftest.tail conftest.undefs
63381 done
63382 rm -f conftest.undefs
63384 cat >>$CONFIG_STATUS <<\_ACEOF
63385 # Let's still pretend it is `configure' which instantiates (i.e., don't
63386 # use $as_me), people would be surprised to read:
63387 # /* config.h. Generated by config.status. */
63388 if test x"$ac_file" = x-; then
63389 echo "/* Generated by configure. */" >$tmp/config.h
63390 else
63391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63393 cat $tmp/in >>$tmp/config.h
63394 rm -f $tmp/in
63395 if test x"$ac_file" != x-; then
63396 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
63397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
63398 echo "$as_me: $ac_file is unchanged" >&6;}
63399 else
63400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
63401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63402 X"$ac_file" : 'X\(//\)[^/]' \| \
63403 X"$ac_file" : 'X\(//\)$' \| \
63404 X"$ac_file" : 'X\(/\)' \| \
63405 . : '\(.\)' 2>/dev/null ||
63406 echo X"$ac_file" |
63407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63409 /^X\(\/\/\)$/{ s//\1/; q; }
63410 /^X\(\/\).*/{ s//\1/; q; }
63411 s/.*/./; q'`
63412 { if $as_mkdir_p; then
63413 mkdir -p "$ac_dir"
63414 else
63415 as_dir="$ac_dir"
63416 as_dirs=
63417 while test ! -d "$as_dir"; do
63418 as_dirs="$as_dir $as_dirs"
63419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
63420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63421 X"$as_dir" : 'X\(//\)[^/]' \| \
63422 X"$as_dir" : 'X\(//\)$' \| \
63423 X"$as_dir" : 'X\(/\)' \| \
63424 . : '\(.\)' 2>/dev/null ||
63425 echo X"$as_dir" |
63426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63428 /^X\(\/\/\)$/{ s//\1/; q; }
63429 /^X\(\/\).*/{ s//\1/; q; }
63430 s/.*/./; q'`
63431 done
63432 test ! -n "$as_dirs" || mkdir $as_dirs
63433 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
63434 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
63435 { (exit 1); exit 1; }; }; }
63437 rm -f $ac_file
63438 mv $tmp/config.h $ac_file
63440 else
63441 cat $tmp/config.h
63442 rm -f $tmp/config.h
63444 # Compute $ac_file's index in $config_headers.
63445 _am_stamp_count=1
63446 for _am_header in $config_headers :; do
63447 case $_am_header in
63448 $ac_file | $ac_file:* )
63449 break ;;
63451 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
63452 esac
63453 done
63454 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
63455 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63456 X$ac_file : 'X\(//\)[^/]' \| \
63457 X$ac_file : 'X\(//\)$' \| \
63458 X$ac_file : 'X\(/\)' \| \
63459 . : '\(.\)' 2>/dev/null ||
63460 echo X$ac_file |
63461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63463 /^X\(\/\/\)$/{ s//\1/; q; }
63464 /^X\(\/\).*/{ s//\1/; q; }
63465 s/.*/./; q'`/stamp-h$_am_stamp_count
63466 done
63467 _ACEOF
63468 cat >>$CONFIG_STATUS <<\_ACEOF
63471 # CONFIG_COMMANDS section.
63473 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
63474 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
63475 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
63476 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
63477 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63478 X"$ac_dest" : 'X\(//\)[^/]' \| \
63479 X"$ac_dest" : 'X\(//\)$' \| \
63480 X"$ac_dest" : 'X\(/\)' \| \
63481 . : '\(.\)' 2>/dev/null ||
63482 echo X"$ac_dest" |
63483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
63484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
63485 /^X\(\/\/\)$/{ s//\1/; q; }
63486 /^X\(\/\).*/{ s//\1/; q; }
63487 s/.*/./; q'`
63488 ac_builddir=.
63490 if test "$ac_dir" != .; then
63491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
63492 # A "../" for each directory in $ac_dir_suffix.
63493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63494 else
63495 ac_dir_suffix= ac_top_builddir=
63498 case $srcdir in
63499 .) # No --srcdir option. We are building in place.
63500 ac_srcdir=.
63501 if test -z "$ac_top_builddir"; then
63502 ac_top_srcdir=.
63503 else
63504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
63505 fi ;;
63506 [\\/]* | ?:[\\/]* ) # Absolute path.
63507 ac_srcdir=$srcdir$ac_dir_suffix;
63508 ac_top_srcdir=$srcdir ;;
63509 *) # Relative path.
63510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
63511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
63512 esac
63513 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
63514 # absolute.
63515 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
63516 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
63517 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
63518 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
63521 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
63522 echo "$as_me: executing $ac_dest commands" >&6;}
63523 case $ac_dest in
63524 default-1 )
63525 # Only add multilib support code if we just rebuilt the top-level
63526 # Makefile.
63527 case " $CONFIG_FILES " in
63528 *" Makefile "*)
63529 ac_file=Makefile . ${multi_basedir}/config-ml.in
63531 esac ;;
63532 default ) if test -n "$CONFIG_FILES"; then
63533 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
63534 # that multilib installs will end up installed in the correct place.
63535 # The testsuite needs it for multilib-aware ABI baseline files.
63536 # To work around this not being passed down from config-ml.in ->
63537 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
63538 # append it here. Only modify Makefiles that have just been created.
63540 # Also, get rid of this simulated-VPATH thing that automake does.
63541 cat > vpsed << \_EOF
63542 s!`test -f '$<' || echo '$(srcdir)/'`!!
63543 _EOF
63544 for i in $SUBDIRS; do
63545 case $CONFIG_FILES in
63546 *${i}/Makefile*)
63547 #echo "Adding MULTISUBDIR to $i/Makefile"
63548 sed -f vpsed $i/Makefile > tmp
63549 grep '^MULTISUBDIR =' Makefile >> tmp
63550 mv tmp $i/Makefile
63552 esac
63553 done
63554 rm vpsed
63556 (cd include && ${MAKE-make})
63558 esac
63559 done
63560 _ACEOF
63562 cat >>$CONFIG_STATUS <<\_ACEOF
63564 { (exit 0); exit 0; }
63565 _ACEOF
63566 chmod +x $CONFIG_STATUS
63567 ac_clean_files=$ac_clean_files_save
63570 # configure is writing to config.log, and then calls config.status.
63571 # config.status does its own redirection, appending to config.log.
63572 # Unfortunately, on DOS this fails, as config.log is still kept open
63573 # by configure, so config.status won't be able to write to it; its
63574 # output is simply discarded. So we exec the FD to /dev/null,
63575 # effectively closing config.log, so it can be properly (re)opened and
63576 # appended to by config.status. When coming back to configure, we
63577 # need to make the FD available again.
63578 if test "$no_create" != yes; then
63579 ac_cs_success=:
63580 ac_config_status_args=
63581 test "$silent" = yes &&
63582 ac_config_status_args="$ac_config_status_args --quiet"
63583 exec 5>/dev/null
63584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63585 exec 5>>config.log
63586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63587 # would make configure fail if this is the last instruction.
63588 $ac_cs_success || { (exit 1); exit 1; }