* cp-tree.h (enum tsubst_flags_t): Add tf_user.
[official-gcc.git] / libstdc++-v3 / configure
blob2065859d2cf3d90b4dab754198e75bff6a7da60e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --with-newlib Configuring with newlib"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
40 ac_help="$ac_help
41 --enable-libunwind-exceptions force use of libunwind for exceptions"
42 ac_help="$ac_help
43 --enable-libstdcxx-pch build pre-compiled libstdc++ includes [default=yes]"
44 ac_help="$ac_help
45 --enable-cstdio enable stdio for target io package.
46 --enable-cstdio=LIB use LIB target-specific io package. [default=stdio]
48 ac_help="$ac_help
49 --enable-clocale enable model for target locale package.
50 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
52 ac_help="$ac_help
53 --enable-nls use Native Language Support (default)"
54 ac_help="$ac_help
55 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
58 ac_help="$ac_help
59 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
60 ac_help="$ac_help
61 --enable-long-long turns on 'long long' [default=yes]"
62 ac_help="$ac_help
63 --enable-concept-checks use Boost-derived template checks [default=no]"
64 ac_help="$ac_help
65 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
66 [default=]"
67 ac_help="$ac_help
68 --enable-libstdcxx-debug build extra debug library [default=no]"
69 ac_help="$ac_help
70 --enable-libstdcxx-debug-flags=FLAGS pass compiler FLAGS when building
71 debug library;
72 [default=none]"
73 ac_help="$ac_help
74 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
75 ac_help="$ac_help
76 --with-gxx-include-dir the installation directory for include files"
77 ac_help="$ac_help
78 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
83 build=NONE
84 cache_file=./config.cache
85 exec_prefix=NONE
86 host=NONE
87 no_create=
88 nonopt=NONE
89 no_recursion=
90 prefix=NONE
91 program_prefix=NONE
92 program_suffix=NONE
93 program_transform_name=s,x,x,
94 silent=
95 site=
96 srcdir=
97 target=NONE
98 verbose=
99 x_includes=NONE
100 x_libraries=NONE
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
115 subdirs=
116 MFLAGS= MAKEFLAGS=
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
119 ac_max_here_lines=12
121 ac_prev=
122 for ac_option
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
137 # Accept the important Cygnus configure options, so we can diagnose typos.
139 case "$ac_option" in
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
252 exit 0 ;;
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
402 exit 0 ;;
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 nonopt="$ac_option"
457 esac
458 done
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
479 exec 5>./config.log
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
502 # NLS nuisances.
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 echo > confdefs.h
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=src/ios.cc
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 else
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
590 # This works around the fact that libtool configuration may change LD
591 # for this particular configuration, but some shells, instead of
592 # keeping the changes in LD private, export them just because LD is
593 # exported. Only used at the end of this file.
594 ORIGINAL_LD_FOR_MULTILIBS=$LD
596 PACKAGE=libstdc++
598 # For libtool versioning info, format is CURRENT:REVISION:AGE
599 libtool_VERSION=6:0:0
603 # Check whether --enable-multilib or --disable-multilib was given.
604 if test "${enable_multilib+set}" = set; then
605 enableval="$enable_multilib"
606 case "${enableval}" in
607 yes) multilib=yes ;;
608 no) multilib=no ;;
609 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
610 esac
611 else
612 multilib=yes
615 # When building with srcdir == objdir, links to the source files will
616 # be created in directories within the target_subdir. We have to
617 # adjust toplevel_srcdir accordingly, so that configure finds
618 # install-sh and other auxiliary files that live in the top-level
619 # source directory.
620 if test "${srcdir}" = "."; then
621 if test -z "${with_target_subdir}"; then
622 toprel=".."
623 else
624 if test "${with_target_subdir}" != "."; then
625 toprel="${with_multisrctop}../.."
626 else
627 toprel="${with_multisrctop}.."
630 else
631 toprel=".."
633 ac_aux_dir=
634 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
635 if test -f $ac_dir/install-sh; then
636 ac_aux_dir=$ac_dir
637 ac_install_sh="$ac_aux_dir/install-sh -c"
638 break
639 elif test -f $ac_dir/install.sh; then
640 ac_aux_dir=$ac_dir
641 ac_install_sh="$ac_aux_dir/install.sh -c"
642 break
644 done
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
652 toplevel_srcdir=\${top_srcdir}/$toprel
656 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
658 # You will slowly go insane if you do not grok the following fact: when
659 # building v3 as part of the compiler, the top-level /target/ becomes the
660 # library's /host/. `configure' then causes --target to default to --host,
661 # exactly like any other package using autoconf. Therefore, 'target' and
662 # 'host' will always be the same. This makes sense both for native and
663 # cross compilers, just think about it for a little while. :-)
665 # Also, if v3 is being configured as part of a cross compiler, the top-level
666 # configure script will pass the "real" host as $with_cross_host.
668 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
670 # Do some error checking and defaulting for the host and target type.
671 # The inputs are:
672 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
674 # The rules are:
675 # 1. You are not allowed to specify --host, --target, and nonopt at the
676 # same time.
677 # 2. Host defaults to nonopt.
678 # 3. If nonopt is not specified, then host defaults to the current host,
679 # as determined by config.guess.
680 # 4. Target and build default to nonopt.
681 # 5. If nonopt is not specified, then target and build default to host.
683 # The aliases save the names the user supplied, while $host etc.
684 # will get canonicalized.
685 case $host---$target---$nonopt in
686 NONE---*---* | *---NONE---* | *---*---NONE) ;;
687 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
688 esac
691 # Make sure we can run config.sub.
692 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
693 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
696 echo $ac_n "checking host system type""... $ac_c" 1>&6
697 echo "configure:698: checking host system type" >&5
699 host_alias=$host
700 case "$host_alias" in
701 NONE)
702 case $nonopt in
703 NONE)
704 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
705 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
706 fi ;;
707 *) host_alias=$nonopt ;;
708 esac ;;
709 esac
711 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
712 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$host" 1>&6
717 echo $ac_n "checking target system type""... $ac_c" 1>&6
718 echo "configure:719: checking target system type" >&5
720 target_alias=$target
721 case "$target_alias" in
722 NONE)
723 case $nonopt in
724 NONE) target_alias=$host_alias ;;
725 *) target_alias=$nonopt ;;
726 esac ;;
727 esac
729 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
730 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$target" 1>&6
735 echo $ac_n "checking build system type""... $ac_c" 1>&6
736 echo "configure:737: checking build system type" >&5
738 build_alias=$build
739 case "$build_alias" in
740 NONE)
741 case $nonopt in
742 NONE) build_alias=$host_alias ;;
743 *) build_alias=$nonopt ;;
744 esac ;;
745 esac
747 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
748 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$build" 1>&6
753 test "$host_alias" != "$target_alias" &&
754 test "$program_prefix$program_suffix$program_transform_name" = \
755 NONENONEs,x,x, &&
756 program_prefix=${target_alias}-
759 # Runs configure.host, finds CC, CXX and assorted other critical bits.
760 # Must run this before the GLIBCXX_ENABLE_* macros below.
761 if test $host != $build; then
762 ac_tool_prefix=${host_alias}-
763 else
764 ac_tool_prefix=
767 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
768 echo "configure:769: checking for Cygwin environment" >&5
769 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
771 else
772 cat > conftest.$ac_ext <<EOF
773 #line 774 "configure"
774 #include "confdefs.h"
776 int main() {
778 #ifndef __CYGWIN__
779 #define __CYGWIN__ __CYGWIN32__
780 #endif
781 return __CYGWIN__;
782 ; return 0; }
784 if { (eval echo configure:785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
785 rm -rf conftest*
786 ac_cv_cygwin=yes
787 else
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 rm -rf conftest*
791 ac_cv_cygwin=no
793 rm -f conftest*
794 rm -f conftest*
797 echo "$ac_t""$ac_cv_cygwin" 1>&6
798 CYGWIN=
799 test "$ac_cv_cygwin" = yes && CYGWIN=yes
800 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
801 echo "configure:802: checking for mingw32 environment" >&5
802 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
809 int main() {
810 return __MINGW32__;
811 ; return 0; }
813 if { (eval echo configure:814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
814 rm -rf conftest*
815 ac_cv_mingw32=yes
816 else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 rm -rf conftest*
820 ac_cv_mingw32=no
822 rm -f conftest*
823 rm -f conftest*
826 echo "$ac_t""$ac_cv_mingw32" 1>&6
827 MINGW32=
828 test "$ac_cv_mingw32" = yes && MINGW32=yes
830 # Export build and source directories.
831 # These need to be absolute paths, yet at the same time need to
832 # canonicalize only relative paths, because then amd will not unmount
833 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
834 glibcxx_builddir=`${PWDCMD-pwd}`
835 case $srcdir in
836 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
837 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
838 esac
844 for ac_prog in gawk mawk nawk awk
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 ac_dummy="$PATH"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_AWK="$ac_prog"
862 break
864 done
865 IFS="$ac_save_ifs"
868 AWK="$ac_cv_prog_AWK"
869 if test -n "$AWK"; then
870 echo "$ac_t""$AWK" 1>&6
871 else
872 echo "$ac_t""no" 1>&6
875 test -n "$AWK" && break
876 done
878 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
879 # be 'cp -p' if linking isn't available. Uncomment the next line to
880 # force a particular method.
881 #ac_cv_prog_LN_S='cp -p'
882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
883 echo "configure:884: checking whether ln -s works" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 rm -f conftestdata
888 if ln -s X conftestdata 2>/dev/null
889 then
890 rm -f conftestdata
891 ac_cv_prog_LN_S="ln -s"
892 else
893 ac_cv_prog_LN_S=ln
896 LN_S="$ac_cv_prog_LN_S"
897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
898 echo "$ac_t""yes" 1>&6
899 else
900 echo "$ac_t""no" 1>&6
904 # We use these options to decide which functions to include.
905 # Check whether --with-target-subdir or --without-target-subdir was given.
906 if test "${with_target_subdir+set}" = set; then
907 withval="$with_target_subdir"
911 # Check whether --with-cross-host or --without-cross-host was given.
912 if test "${with_cross_host+set}" = set; then
913 withval="$with_cross_host"
918 # Check whether --with-newlib or --without-newlib was given.
919 if test "${with_newlib+set}" = set; then
920 withval="$with_newlib"
925 glibcxx_basedir=$srcdir/$toprel/./libstdc++-v3
928 # Never versions of autoconf add an underscore to these functions.
929 # Prevent future problems ...
935 # AC_PROG_CC
936 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
937 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
938 # are probably using a cross compiler, which will not be able to fully
939 # link an executable. This is addressed in later versions of autoconf.
944 # Extract the first word of "gcc", so it can be a program name with args.
945 set dummy gcc; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
950 else
951 if test -n "$CC"; then
952 ac_cv_prog_CC="$CC" # Let the user override the test.
953 else
954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
955 ac_dummy="$PATH"
956 for ac_dir in $ac_dummy; do
957 test -z "$ac_dir" && ac_dir=.
958 if test -f $ac_dir/$ac_word; then
959 ac_cv_prog_CC="gcc"
960 break
962 done
963 IFS="$ac_save_ifs"
966 CC="$ac_cv_prog_CC"
967 if test -n "$CC"; then
968 echo "$ac_t""$CC" 1>&6
969 else
970 echo "$ac_t""no" 1>&6
973 if test -z "$CC"; then
974 # Extract the first word of "cc", so it can be a program name with args.
975 set dummy cc; ac_word=$2
976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977 echo "configure:978: checking for $ac_word" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 if test -n "$CC"; then
982 ac_cv_prog_CC="$CC" # Let the user override the test.
983 else
984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 ac_prog_rejected=no
986 ac_dummy="$PATH"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
991 ac_prog_rejected=yes
992 continue
994 ac_cv_prog_CC="cc"
995 break
997 done
998 IFS="$ac_save_ifs"
999 if test $ac_prog_rejected = yes; then
1000 # We found a bogon in the path, so make sure we never use it.
1001 set dummy $ac_cv_prog_CC
1002 shift
1003 if test $# -gt 0; then
1004 # We chose a different compiler from the bogus one.
1005 # However, it has the same basename, so the bogon will be chosen
1006 # first if we set CC to just the basename; use the full file name.
1007 shift
1008 set dummy "$ac_dir/$ac_word" "$@"
1009 shift
1010 ac_cv_prog_CC="$@"
1015 CC="$ac_cv_prog_CC"
1016 if test -n "$CC"; then
1017 echo "$ac_t""$CC" 1>&6
1018 else
1019 echo "$ac_t""no" 1>&6
1022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1025 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether we are using GNU C" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 cat > conftest.c <<EOF
1031 #ifdef __GNUC__
1032 yes;
1033 #endif
1035 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1036 ac_cv_prog_gcc=yes
1037 else
1038 ac_cv_prog_gcc=no
1042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1044 if test $ac_cv_prog_gcc = yes; then
1045 GCC=yes
1046 ac_test_CFLAGS="${CFLAGS+set}"
1047 ac_save_CFLAGS="$CFLAGS"
1048 CFLAGS=
1049 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 echo 'void f(){}' > conftest.c
1055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056 ac_cv_prog_cc_g=yes
1057 else
1058 ac_cv_prog_cc_g=no
1060 rm -f conftest*
1064 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065 if test "$ac_test_CFLAGS" = set; then
1066 CFLAGS="$ac_save_CFLAGS"
1067 elif test $ac_cv_prog_cc_g = yes; then
1068 CFLAGS="-g -O2"
1069 else
1070 CFLAGS="-O2"
1072 else
1073 GCC=
1074 test "${CFLAGS+set}" = set || CFLAGS="-g"
1078 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1079 # will try to link in libstdc++.
1083 # Use glibcxx_CXX so that we do not cause CXX to be cached with the
1084 # flags that come in CXX while configuring libstdc++. They're different
1085 # from those used for all other target libraries. If CXX is set in
1086 # the environment, respect that here.
1087 glibcxx_CXX=$CXX
1088 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_glibcxx_CXX'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 if test -n "$glibcxx_CXX"; then
1098 ac_cv_prog_glibcxx_CXX="$glibcxx_CXX" # Let the user override the test.
1099 else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_glibcxx_CXX="$ac_prog"
1106 break
1108 done
1109 IFS="$ac_save_ifs"
1112 glibcxx_CXX="$ac_cv_prog_glibcxx_CXX"
1113 if test -n "$glibcxx_CXX"; then
1114 echo "$ac_t""$glibcxx_CXX" 1>&6
1115 else
1116 echo "$ac_t""no" 1>&6
1119 test -n "$glibcxx_CXX" && break
1120 done
1121 test -n "$glibcxx_CXX" || glibcxx_CXX="gcc"
1124 CXX=$glibcxx_CXX
1125 test -z "$glibcxx_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1127 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C++" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 cat > conftest.C <<EOF
1133 #ifdef __GNUC__
1134 yes;
1135 #endif
1137 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138 ac_cv_prog_gxx=yes
1139 else
1140 ac_cv_prog_gxx=no
1144 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1146 if test $ac_cv_prog_gxx = yes; then
1147 GXX=yes
1148 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149 ac_save_CXXFLAGS="$CXXFLAGS"
1150 CXXFLAGS=
1151 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 echo 'void f(){}' > conftest.cc
1157 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158 ac_cv_prog_cxx_g=yes
1159 else
1160 ac_cv_prog_cxx_g=no
1162 rm -f conftest*
1166 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167 if test "$ac_test_CXXFLAGS" = set; then
1168 CXXFLAGS="$ac_save_CXXFLAGS"
1169 elif test $ac_cv_prog_cxx_g = yes; then
1170 CXXFLAGS="-g -O2"
1171 else
1172 CXXFLAGS="-O2"
1174 else
1175 GXX=
1176 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1180 # For directory versioning (e.g., headers) and other variables.
1181 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1182 echo "configure:1183: checking for GCC version number" >&5
1183 gcc_version=`$glibcxx_CXX -dumpversion`
1184 echo "$ac_t""$gcc_version" 1>&6
1186 # For some reason, gettext needs this.
1188 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1189 echo "configure:1190: checking for strerror in -lcposix" >&5
1190 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 ac_save_LIBS="$LIBS"
1195 LIBS="-lcposix $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* Override any gcc2 internal prototype to avoid an error. */
1200 /* We use char because int might match the return type of a gcc2
1201 builtin and then its argument prototype would still apply. */
1202 char strerror();
1204 int main() {
1205 strerror()
1206 ; return 0; }
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 rm -rf conftest*
1210 eval "ac_cv_lib_$ac_lib_var=yes"
1211 else
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 rm -rf conftest*
1215 eval "ac_cv_lib_$ac_lib_var=no"
1217 rm -f conftest*
1218 LIBS="$ac_save_LIBS"
1221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 LIBS="$LIBS -lcposix"
1224 else
1225 echo "$ac_t""no" 1>&6
1231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}as; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$AS"; then
1239 ac_cv_prog_AS="$AS" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_AS="${ac_tool_prefix}as"
1247 break
1249 done
1250 IFS="$ac_save_ifs"
1251 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1254 AS="$ac_cv_prog_AS"
1255 if test -n "$AS"; then
1256 echo "$ac_t""$AS" 1>&6
1257 else
1258 echo "$ac_t""no" 1>&6
1263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}ar; ac_word=$2
1265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_word" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1272 else
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1279 break
1281 done
1282 IFS="$ac_save_ifs"
1283 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1286 AR="$ac_cv_prog_AR"
1287 if test -n "$AR"; then
1288 echo "$ac_t""$AR" 1>&6
1289 else
1290 echo "$ac_t""no" 1>&6
1295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311 break
1313 done
1314 IFS="$ac_save_ifs"
1317 RANLIB="$ac_cv_prog_RANLIB"
1318 if test -n "$RANLIB"; then
1319 echo "$ac_t""$RANLIB" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1325 if test -z "$ac_cv_prog_RANLIB"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 else
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 ac_dummy="$PATH"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_RANLIB="ranlib"
1343 break
1345 done
1346 IFS="$ac_save_ifs"
1347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352 echo "$ac_t""$RANLIB" 1>&6
1353 else
1354 echo "$ac_t""no" 1>&6
1357 else
1358 RANLIB="ranlib-not-found-in-path-error"
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1372 # ./install, which can be erroneously created by make from ./install.sh.
1373 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1374 echo "configure:1375: checking for a BSD compatible install" >&5
1375 if test -z "$INSTALL"; then
1376 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1380 for ac_dir in $PATH; do
1381 # Account for people who put trailing slashes in PATH elements.
1382 case "$ac_dir/" in
1383 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1387 # by default.
1388 for ac_prog in ginstall scoinst install; do
1389 if test -f $ac_dir/$ac_prog; then
1390 if test $ac_prog = install &&
1391 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1392 # AIX install. It has an incompatible calling convention.
1394 else
1395 ac_cv_path_install="$ac_dir/$ac_prog -c"
1396 break 2
1399 done
1401 esac
1402 done
1403 IFS="$ac_save_IFS"
1406 if test "${ac_cv_path_install+set}" = set; then
1407 INSTALL="$ac_cv_path_install"
1408 else
1409 # As a last resort, use the slow shell script. We don't cache a
1410 # path for INSTALL within a source directory, because that will
1411 # break other packages using the cache if that directory is
1412 # removed, or if the path is relative.
1413 INSTALL="$ac_install_sh"
1416 echo "$ac_t""$INSTALL" 1>&6
1418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419 # It thinks the first close brace ends the variable substitution.
1420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1427 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1429 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1430 if test "${enable_maintainer_mode+set}" = set; then
1431 enableval="$enable_maintainer_mode"
1432 USE_MAINTAINER_MODE=$enableval
1433 else
1434 USE_MAINTAINER_MODE=no
1437 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1440 if test $USE_MAINTAINER_MODE = yes; then
1441 MAINTAINER_MODE_TRUE=
1442 MAINTAINER_MODE_FALSE='#'
1443 else
1444 MAINTAINER_MODE_TRUE='#'
1445 MAINTAINER_MODE_FALSE=
1447 MAINT=$MAINTAINER_MODE_TRUE
1451 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1452 # at least currently, we never actually build a program, so we never
1453 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1454 # fails, because we are probably configuring with a cross compiler
1455 # which can't create executables. So we include AC_EXEEXT to keep
1456 # automake happy, but we don't execute it, since we don't care about
1457 # the result.
1458 if false; then
1459 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1460 # to nothing, so nothing would remain between `then' and `fi' if it
1461 # were not for the `:' below.
1465 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1466 echo "configure:1467: checking for executable suffix" >&5
1467 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1471 ac_cv_exeext=.exe
1472 else
1473 rm -f conftest*
1474 echo 'int main () { return 0; }' > conftest.$ac_ext
1475 ac_cv_exeext=
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1477 for file in conftest.*; do
1478 case $file in
1479 *.c | *.o | *.obj) ;;
1480 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1481 esac
1482 done
1483 else
1484 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1486 rm -f conftest*
1487 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1491 EXEEXT=""
1492 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1493 echo "$ac_t""${ac_cv_exeext}" 1>&6
1494 ac_exeext=$EXEEXT
1498 case ${glibcxx_basedir} in
1499 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcxx_basedir} ;;
1500 *) glibcxx_flagbasedir='$(top_builddir)/'${glibcxx_basedir} ;;
1501 esac
1503 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1504 need_libmath=no
1505 enable_wchar_t=no
1506 #enable_debug=no
1507 #glibcxx_pch_comp=no
1508 #enable_cheaders=c
1509 #c_compatibility=no
1510 #enable_abi_check=no
1511 #enable_symvers=no
1513 # Find platform-specific directories containing configuration info. In
1514 # addition to possibly modifying the same flags, it also sets up symlinks.
1516 . ${glibcxx_basedir}/configure.host
1517 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1518 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1522 am__api_version="1.4"
1523 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1524 echo "configure:1525: checking whether build environment is sane" >&5
1525 # Just in case
1526 sleep 1
1527 echo timestamp > conftestfile
1528 # Do `set' in a subshell so we don't clobber the current shell's
1529 # arguments. Must try -L first in case configure is actually a
1530 # symlink; some systems play weird games with the mod time of symlinks
1531 # (eg FreeBSD returns the mod time of the symlink's containing
1532 # directory).
1533 if (
1534 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1535 if test "$*" = "X"; then
1536 # -L didn't work.
1537 set X `ls -t $srcdir/configure conftestfile`
1539 if test "$*" != "X $srcdir/configure conftestfile" \
1540 && test "$*" != "X conftestfile $srcdir/configure"; then
1542 # If neither matched, then we have a broken ls. This can happen
1543 # if, for instance, CONFIG_SHELL is bash and it inherits a
1544 # broken ls alias from the environment. This has actually
1545 # happened. Such a system could not be considered "sane".
1546 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1547 alias in your environment" 1>&2; exit 1; }
1550 test "$2" = conftestfile
1552 then
1553 # Ok.
1555 else
1556 { echo "configure: error: newly created file is older than distributed files!
1557 Check your system clock" 1>&2; exit 1; }
1559 rm -f conftest*
1560 echo "$ac_t""yes" 1>&6
1561 if test "$program_transform_name" = s,x,x,; then
1562 program_transform_name=
1563 else
1564 # Double any \ or $. echo might interpret backslashes.
1565 cat <<\EOF_SED > conftestsed
1566 s,\\,\\\\,g; s,\$,$$,g
1567 EOF_SED
1568 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1569 rm -f conftestsed
1571 test "$program_prefix" != NONE &&
1572 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1573 # Use a double $ so make ignores it.
1574 test "$program_suffix" != NONE &&
1575 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1577 # sed with no file args requires a program.
1578 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1580 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether ${MAKE-make} sets \${MAKE}" >&5
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 cat > conftestmake <<\EOF
1587 all:
1588 @echo 'ac_maketemp="${MAKE}"'
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1594 else
1595 eval ac_cv_prog_make_${ac_make}_set=no
1597 rm -f conftestmake
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 SET_MAKE=
1602 else
1603 echo "$ac_t""no" 1>&6
1604 SET_MAKE="MAKE=${MAKE-make}"
1608 PACKAGE=$PACKAGE
1610 VERSION=$gcc_version
1612 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1613 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1615 cat >> confdefs.h <<EOF
1616 #define PACKAGE "$PACKAGE"
1619 cat >> confdefs.h <<EOF
1620 #define VERSION "$VERSION"
1625 missing_dir=`cd $ac_aux_dir && pwd`
1626 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working aclocal-${am__api_version}" >&5
1628 # Run test in a subshell; some versions of sh will print an error if
1629 # an executable is not found, even if stderr is redirected.
1630 # Redirect stdin to placate older versions of autoconf. Sigh.
1631 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1632 ACLOCAL=aclocal-${am__api_version}
1633 echo "$ac_t""found" 1>&6
1634 else
1635 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1636 echo "$ac_t""missing" 1>&6
1639 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1640 echo "configure:1641: checking for working autoconf" >&5
1641 # Run test in a subshell; some versions of sh will print an error if
1642 # an executable is not found, even if stderr is redirected.
1643 # Redirect stdin to placate older versions of autoconf. Sigh.
1644 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1645 AUTOCONF=autoconf
1646 echo "$ac_t""found" 1>&6
1647 else
1648 AUTOCONF="$missing_dir/missing autoconf"
1649 echo "$ac_t""missing" 1>&6
1652 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1653 echo "configure:1654: checking for working automake-${am__api_version}" >&5
1654 # Run test in a subshell; some versions of sh will print an error if
1655 # an executable is not found, even if stderr is redirected.
1656 # Redirect stdin to placate older versions of autoconf. Sigh.
1657 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1658 AUTOMAKE=automake-${am__api_version}
1659 echo "$ac_t""found" 1>&6
1660 else
1661 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1662 echo "$ac_t""missing" 1>&6
1665 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working autoheader" >&5
1667 # Run test in a subshell; some versions of sh will print an error if
1668 # an executable is not found, even if stderr is redirected.
1669 # Redirect stdin to placate older versions of autoconf. Sigh.
1670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1671 AUTOHEADER=autoheader
1672 echo "$ac_t""found" 1>&6
1673 else
1674 AUTOHEADER="$missing_dir/missing autoheader"
1675 echo "$ac_t""missing" 1>&6
1678 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1679 echo "configure:1680: checking for working makeinfo" >&5
1680 # Run test in a subshell; some versions of sh will print an error if
1681 # an executable is not found, even if stderr is redirected.
1682 # Redirect stdin to placate older versions of autoconf. Sigh.
1683 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1684 MAKEINFO=makeinfo
1685 echo "$ac_t""found" 1>&6
1686 else
1687 MAKEINFO="$missing_dir/missing makeinfo"
1688 echo "$ac_t""missing" 1>&6
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1701 case $enableval in
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1705 enable_shared=no
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1710 enable_shared=yes
1712 done
1713 IFS="$ac_save_ifs"
1715 esac
1716 else
1717 enable_shared=yes
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1724 case $enableval in
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1728 enable_static=no
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1733 enable_static=yes
1735 done
1736 IFS="$ac_save_ifs"
1738 esac
1739 else
1740 enable_static=yes
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1747 case $enableval in
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install=yes
1758 done
1759 IFS="$ac_save_ifs"
1761 esac
1762 else
1763 enable_fast_install=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1770 else
1771 with_gnu_ld=no
1774 ac_prog=ld
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1779 case $host in
1780 *-*-mingw*)
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1785 esac
1786 case $ac_prog in
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1794 done
1795 test -z "$LD" && LD="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1799 ac_prog=ld
1802 # If it is relative, then search for the first ld in PATH.
1803 with_gnu_ld=unknown
1805 esac
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1809 else
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1827 else
1828 test "$with_gnu_ld" != yes && break
1831 done
1832 IFS="$ac_save_ifs"
1833 else
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1838 LD="$lt_cv_path_LD"
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1853 else
1854 lt_cv_prog_gnu_ld=no
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 lt_cv_ld_reload_flag='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1881 lt_cv_path_NM="$NM"
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1894 break
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1897 break
1898 else
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1903 done
1904 IFS="$ac_save_ifs"
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1909 NM="$lt_cv_path_NM"
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1931 case $host_os in
1932 aix*)
1933 lt_cv_deplibs_check_method=pass_all
1936 beos*)
1937 lt_cv_deplibs_check_method=pass_all
1940 bsdi4*)
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1954 case "$host_os" in
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1958 *) # Darwin 1.3 on
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1961 esac
1964 freebsd* )
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1966 case $host_cpu in
1967 i*86 )
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1974 esac
1975 else
1976 lt_cv_deplibs_check_method=pass_all
1980 gnu*)
1981 lt_cv_deplibs_check_method=pass_all
1984 hpux10.20*|hpux11*)
1985 case $host_cpu in
1986 hppa*)
1987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1988 lt_cv_file_magic_cmd=/usr/bin/file
1989 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1991 ia64*)
1992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1993 lt_cv_file_magic_cmd=/usr/bin/file
1994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1996 esac
1999 irix5* | irix6*)
2000 case $host_os in
2001 irix5*)
2002 # this will be overridden with pass_all, but let us keep it just in case
2003 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2006 case $LD in
2007 *-32|*"-32 ") libmagic=32-bit;;
2008 *-n32|*"-n32 ") libmagic=N32;;
2009 *-64|*"-64 ") libmagic=64-bit;;
2010 *) libmagic=never-match;;
2011 esac
2012 # this will be overridden with pass_all, but let us keep it just in case
2013 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2015 esac
2016 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2017 lt_cv_deplibs_check_method=pass_all
2020 # This must be Linux ELF.
2021 linux-gnu*)
2022 case $host_cpu in
2023 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2024 lt_cv_deplibs_check_method=pass_all ;;
2026 # glibc up to 2.1.1 does not perform some relocations on ARM
2027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2028 esac
2029 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2032 netbsd*)
2033 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2034 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2035 else
2036 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2040 newsos6)
2041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2042 lt_cv_file_magic_cmd=/usr/bin/file
2043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2046 osf3* | osf4* | osf5*)
2047 # this will be overridden with pass_all, but let us keep it just in case
2048 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2049 lt_cv_file_magic_test_file=/shlib/libc.so
2050 lt_cv_deplibs_check_method=pass_all
2053 sco3.2v5*)
2054 lt_cv_deplibs_check_method=pass_all
2057 solaris*)
2058 lt_cv_deplibs_check_method=pass_all
2059 lt_cv_file_magic_test_file=/lib/libc.so
2062 sysv5uw[78]* | sysv4*uw2*)
2063 lt_cv_deplibs_check_method=pass_all
2066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2067 case $host_vendor in
2068 ncr)
2069 lt_cv_deplibs_check_method=pass_all
2071 motorola)
2072 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]'
2073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2075 esac
2077 esac
2081 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2082 file_magic_cmd=$lt_cv_file_magic_cmd
2083 deplibs_check_method=$lt_cv_deplibs_check_method
2085 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2086 echo "configure:2087: checking for object suffix" >&5
2087 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 rm -f conftest*
2091 echo 'int i = 1;' > conftest.$ac_ext
2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 for ac_file in conftest.*; do
2094 case $ac_file in
2095 *.c) ;;
2096 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2097 esac
2098 done
2099 else
2100 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2102 rm -f conftest*
2105 echo "$ac_t""$ac_cv_objext" 1>&6
2106 OBJEXT=$ac_cv_objext
2107 ac_objext=$ac_cv_objext
2109 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2111 # Only perform the check for file, if the check method requires it
2112 case $deplibs_check_method in
2113 file_magic*)
2114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2115 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2116 echo "configure:2117: checking for ${ac_tool_prefix}file" >&5
2117 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120 case $MAGIC_CMD in
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2124 ?:/*)
2125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2128 ac_save_MAGIC_CMD="$MAGIC_CMD"
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 ac_dummy="/usr/bin:$PATH"
2131 for ac_dir in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir=.
2133 if test -f $ac_dir/${ac_tool_prefix}file; then
2134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2135 if test -n "$file_magic_test_file"; then
2136 case $deplibs_check_method in
2137 "file_magic "*)
2138 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2141 egrep "$file_magic_regex" > /dev/null; then
2143 else
2144 cat <<EOF 1>&2
2146 *** Warning: the command libtool uses to detect shared libraries,
2147 *** $file_magic_cmd, produces output that libtool cannot recognize.
2148 *** The result is that libtool may fail to recognize shared libraries
2149 *** as such. This will affect the creation of libtool libraries that
2150 *** depend on shared libraries, but programs linked with such libtool
2151 *** libraries will work regardless of this problem. Nevertheless, you
2152 *** may want to report the problem to your system manager and/or to
2153 *** bug-libtool@gnu.org
2156 fi ;;
2157 esac
2159 break
2161 done
2162 IFS="$ac_save_ifs"
2163 MAGIC_CMD="$ac_save_MAGIC_CMD"
2165 esac
2168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2169 if test -n "$MAGIC_CMD"; then
2170 echo "$ac_t""$MAGIC_CMD" 1>&6
2171 else
2172 echo "$ac_t""no" 1>&6
2175 if test -z "$lt_cv_path_MAGIC_CMD"; then
2176 if test -n "$ac_tool_prefix"; then
2177 echo $ac_n "checking for file""... $ac_c" 1>&6
2178 echo "configure:2179: checking for file" >&5
2179 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2181 else
2182 case $MAGIC_CMD in
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2186 ?:/*)
2187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2190 ac_save_MAGIC_CMD="$MAGIC_CMD"
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 ac_dummy="/usr/bin:$PATH"
2193 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/file; then
2196 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2197 if test -n "$file_magic_test_file"; then
2198 case $deplibs_check_method in
2199 "file_magic "*)
2200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2203 egrep "$file_magic_regex" > /dev/null; then
2205 else
2206 cat <<EOF 1>&2
2208 *** Warning: the command libtool uses to detect shared libraries,
2209 *** $file_magic_cmd, produces output that libtool cannot recognize.
2210 *** The result is that libtool may fail to recognize shared libraries
2211 *** as such. This will affect the creation of libtool libraries that
2212 *** depend on shared libraries, but programs linked with such libtool
2213 *** libraries will work regardless of this problem. Nevertheless, you
2214 *** may want to report the problem to your system manager and/or to
2215 *** bug-libtool@gnu.org
2218 fi ;;
2219 esac
2221 break
2223 done
2224 IFS="$ac_save_ifs"
2225 MAGIC_CMD="$ac_save_MAGIC_CMD"
2227 esac
2230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2231 if test -n "$MAGIC_CMD"; then
2232 echo "$ac_t""$MAGIC_CMD" 1>&6
2233 else
2234 echo "$ac_t""no" 1>&6
2237 else
2238 MAGIC_CMD=:
2244 esac
2246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 if test -n "$RANLIB"; then
2254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2255 else
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2257 ac_dummy="$PATH"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2262 break
2264 done
2265 IFS="$ac_save_ifs"
2268 RANLIB="$ac_cv_prog_RANLIB"
2269 if test -n "$RANLIB"; then
2270 echo "$ac_t""$RANLIB" 1>&6
2271 else
2272 echo "$ac_t""no" 1>&6
2276 if test -z "$ac_cv_prog_RANLIB"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "ranlib", so it can be a program name with args.
2279 set dummy ranlib; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 if test -n "$RANLIB"; then
2286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2287 else
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2289 ac_dummy="$PATH"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_RANLIB="ranlib"
2294 break
2296 done
2297 IFS="$ac_save_ifs"
2298 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303 echo "$ac_t""$RANLIB" 1>&6
2304 else
2305 echo "$ac_t""no" 1>&6
2308 else
2309 RANLIB=":"
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 else
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 ac_dummy="$PATH"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 break
2331 done
2332 IFS="$ac_save_ifs"
2335 STRIP="$ac_cv_prog_STRIP"
2336 if test -n "$STRIP"; then
2337 echo "$ac_t""$STRIP" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 ac_dummy="$PATH"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_STRIP="strip"
2361 break
2363 done
2364 IFS="$ac_save_ifs"
2365 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370 echo "$ac_t""$STRIP" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2375 else
2376 STRIP=":"
2381 # Check for any special flags to pass to ltconfig.
2382 libtool_flags="--cache-file=$cache_file"
2383 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2384 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2385 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2386 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2387 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2388 libtool_flags="$libtool_flags --enable-dlopen"
2390 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2391 if test "${enable_libtool_lock+set}" = set; then
2392 enableval="$enable_libtool_lock"
2396 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2397 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2399 # Check whether --with-pic or --without-pic was given.
2400 if test "${with_pic+set}" = set; then
2401 withval="$with_pic"
2402 pic_mode="$withval"
2403 else
2404 pic_mode=default
2407 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2408 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2410 # Some flags need to be propagated to the compiler or linker for good
2411 # libtool support.
2412 case $host in
2413 *-*-irix6*)
2414 # Find out which ABI we are using.
2415 echo '#line 2416 "configure"' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 if test "$lt_cv_prog_gnu_ld" = yes; then
2418 case `/usr/bin/file conftest.$ac_objext` in
2419 *32-bit*)
2420 LD="${LD-ld} -melf32bsmip"
2422 *N32*)
2423 LD="${LD-ld} -melf32bmipn32"
2425 *64-bit*)
2426 LD="${LD-ld} -melf64bmip"
2428 esac
2429 else
2430 case `/usr/bin/file conftest.$ac_objext` in
2431 *32-bit*)
2432 LD="${LD-ld} -32"
2434 *N32*)
2435 LD="${LD-ld} -n32"
2437 *64-bit*)
2438 LD="${LD-ld} -64"
2440 esac
2443 rm -rf conftest*
2446 ia64-*-hpux*)
2447 # Find out which ABI we are using.
2448 echo 'int i;' > conftest.$ac_ext
2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 case "`/usr/bin/file conftest.o`" in
2451 *ELF-32*)
2452 HPUX_IA64_MODE="32"
2454 *ELF-64*)
2455 HPUX_IA64_MODE="64"
2457 esac
2459 rm -rf conftest*
2462 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2463 # Find out which ABI we are using.
2464 echo 'int i;' > conftest.$ac_ext
2465 if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2466 case "`/usr/bin/file conftest.o`" in
2467 *32-bit*)
2468 case $host in
2469 x86_64-*linux*)
2470 LD="${LD-ld} -m elf_i386"
2472 ppc64-*linux*)
2473 LD="${LD-ld} -m elf32ppclinux"
2475 s390x-*linux*)
2476 LD="${LD-ld} -m elf_s390"
2478 sparc64-*linux*)
2479 LD="${LD-ld} -m elf32_sparc"
2481 esac
2483 *64-bit*)
2484 case $host in
2485 x86_64-*linux*)
2486 LD="${LD-ld} -m elf_x86_64"
2488 ppc*-*linux*|powerpc*-*linux*)
2489 LD="${LD-ld} -m elf64ppc"
2491 s390*-*linux*)
2492 LD="${LD-ld} -m elf64_s390"
2494 sparc*-*linux*)
2495 LD="${LD-ld} -m elf64_sparc"
2497 esac
2499 esac
2501 rm -rf conftest*
2504 *-*-sco3.2v5*)
2505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2506 SAVE_CFLAGS="$CFLAGS"
2507 CFLAGS="$CFLAGS -belf"
2508 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2509 echo "configure:2510: checking whether the C compiler needs -belf" >&5
2510 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2514 ac_ext=c
2515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2519 cross_compiling=$ac_cv_prog_cc_cross
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2525 int main() {
2527 ; return 0; }
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 rm -rf conftest*
2531 lt_cv_cc_needs_belf=yes
2532 else
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 lt_cv_cc_needs_belf=no
2538 rm -f conftest*
2539 ac_ext=c
2540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2544 cross_compiling=$ac_cv_prog_cc_cross
2548 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2549 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2551 CFLAGS="$SAVE_CFLAGS"
2556 esac
2558 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2559 echo "configure:2560: checking how to run the C++ preprocessor" >&5
2560 if test -z "$CXXCPP"; then
2561 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 ac_ext=C
2565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2566 ac_cpp='$CXXCPP $CPPFLAGS'
2567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2569 cross_compiling=$ac_cv_prog_cxx_cross
2570 CXXCPP="${CXX-g++} -E"
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <stdlib.h>
2576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2581 else
2582 echo "$ac_err" >&5
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 rm -rf conftest*
2586 CXXCPP=/lib/cpp
2588 rm -f conftest*
2589 ac_cv_prog_CXXCPP="$CXXCPP"
2590 ac_ext=c
2591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595 cross_compiling=$ac_cv_prog_cc_cross
2598 CXXCPP="$ac_cv_prog_CXXCPP"
2599 echo "$ac_t""$CXXCPP" 1>&6
2602 # Save cache, so that ltconfig can load it
2603 cat > confcache <<\EOF
2604 # This file is a shell script that caches the results of configure
2605 # tests run on this system so they can be shared between configure
2606 # scripts and configure runs. It is not useful on other systems.
2607 # If it contains results you don't want to keep, you may remove or edit it.
2609 # By default, configure uses ./config.cache as the cache file,
2610 # creating it if it does not exist already. You can give configure
2611 # the --cache-file=FILE option to use a different cache file; that is
2612 # what configure does when it calls configure scripts in
2613 # subdirectories, so they share the cache.
2614 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2615 # config.status only pays attention to the cache file if you give it the
2616 # --recheck option to rerun configure.
2619 # The following way of writing the cache mishandles newlines in values,
2620 # but we know of no workaround that is simple, portable, and efficient.
2621 # So, don't put newlines in cache variables' values.
2622 # Ultrix sh set writes to stderr and can't be redirected directly,
2623 # and sets the high bit in the cache file unless we assign to the vars.
2624 (set) 2>&1 |
2625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2626 *ac_space=\ *)
2627 # `set' does not quote correctly, so add quotes (double-quote substitution
2628 # turns \\\\ into \\, and sed turns \\ into \).
2629 sed -n \
2630 -e "s/'/'\\\\''/g" \
2631 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2634 # `set' quotes correctly as required by POSIX, so do not add quotes.
2635 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2637 esac >> confcache
2638 if cmp -s $cache_file confcache; then
2640 else
2641 if test -w $cache_file; then
2642 echo "updating cache $cache_file"
2643 cat confcache > $cache_file
2644 else
2645 echo "not updating unwritable cache $cache_file"
2648 rm -f confcache
2651 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2652 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2653 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2654 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2655 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2656 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2657 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2658 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2659 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2660 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2662 # Reload cache, that may have been modified by ltconfig
2663 if test -r "$cache_file"; then
2664 echo "loading cache $cache_file"
2665 . $cache_file
2666 else
2667 echo "creating cache $cache_file"
2668 > $cache_file
2672 # This can be used to rebuild libtool when needed
2673 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2675 # Always use our own libtool.
2676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2684 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2685 lt_save_CC="$CC"
2686 lt_save_CFLAGS="$CFLAGS"
2687 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2688 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2689 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2690 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2691 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2692 deplibs_check_method="$deplibs_check_method" \
2693 file_magic_cmd="$file_magic_cmd" \
2694 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2695 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2696 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2697 CC="$lt_save_CC"
2698 CFLAGS="$lt_save_CFLAGS"
2700 # Redirect the config.log output again, so that the ltconfig log is not
2701 # clobbered by the next message.
2702 exec 5>>./config.log
2712 # Check for support bits and g++ features that don't require linking.
2713 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2714 echo "configure:2715: checking for GNU make" >&5
2715 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718 _cv_gnu_make_command='' ;
2719 for a in "${MAKE-make}" make gmake gnumake ; do
2720 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2721 then
2722 _cv_gnu_make_command=$a ;
2723 break;
2725 done ;
2729 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2730 if test "x$_cv_gnu_make_command" != "x" ; then
2731 ifGNUmake='' ;
2732 else
2733 ifGNUmake='#' ;
2737 #GLIBCXX_CHECK_COMPILER_VERSION
2739 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2740 echo "configure:2741: checking for exception model to use" >&5
2742 ac_ext=C
2743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2747 cross_compiling=$ac_cv_prog_cxx_cross
2749 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2750 if test "${enable_sjlj_exceptions+set}" = set; then
2751 enableval="$enable_sjlj_exceptions"
2753 else
2754 cat > conftest.$ac_ext << EOF
2755 #line 2756 "configure"
2756 struct S { ~S(); };
2757 void bar();
2758 void foo()
2760 S s;
2761 bar();
2764 old_CXXFLAGS="$CXXFLAGS"
2765 CXXFLAGS=-S
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2768 enable_sjlj_exceptions=yes
2769 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2770 enable_sjlj_exceptions=no
2773 CXXFLAGS="$old_CXXFLAGS"
2774 rm -f conftest*
2777 if test x$enable_sjlj_exceptions = xyes; then
2778 cat >> confdefs.h <<\EOF
2779 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
2782 ac_exception_model_name=sjlj
2783 elif test x$enable_sjlj_exceptions = xno; then
2784 ac_exception_model_name="call frame"
2785 else
2786 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2788 ac_ext=c
2789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2793 cross_compiling=$ac_cv_prog_cc_cross
2795 echo "$ac_t""$ac_exception_model_name" 1>&6
2798 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
2799 echo "configure:2800: checking for use of libunwind" >&5
2800 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
2801 if test "${enable_libunwind_exceptions+set}" = set; then
2802 enableval="$enable_libunwind_exceptions"
2803 use_libunwind_exceptions=$enableval
2804 else
2805 use_libunwind_exceptions=no
2808 echo "$ac_t""$use_libunwind_exceptions" 1>&6
2809 if test x"$use_libunwind_exceptions" = xyes; then
2810 LIBUNWIND_FLAG="-lunwind"
2811 else
2812 LIBUNWIND_FLAG=""
2816 # Check whether --enable-libstdcxx_pch or --disable-libstdcxx_pch was given.
2817 if test "${enable_libstdcxx_pch+set}" = set; then
2818 enableval="$enable_libstdcxx_pch"
2819 case ${enableval} in
2820 yes) enable_libstdcxx_pch=yes ;;
2821 no) enable_libstdcxx_pch=no ;;
2822 *) { echo "configure: error: Unknown argument to enable/disable PCH" 1>&2; exit 1; } ;;
2823 esac
2824 else
2825 enable_libstdcxx_pch=yes
2828 if test x$enable_libstdcxx_pch = xyes; then
2829 echo $ac_n "checking for pch support""... $ac_c" 1>&6
2830 echo "configure:2831: checking for pch support" >&5
2831 if eval "test \"`echo '$''{'libstdcxx_cv_pch_comp'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2836 ac_ext=C
2837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2838 ac_cpp='$CXXCPP $CPPFLAGS'
2839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2841 cross_compiling=$ac_cv_prog_cxx_cross
2843 ac_save_CXXFLAGS=$CXXFLAGS
2844 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
2845 echo '#include <math.h>' > conftest.h
2846 if ${CXX-g++} $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
2847 -o conftest.h.gch 1>&5 2>&1 &&
2848 echo '#error "pch failed"' > conftest.h &&
2849 echo '#include "conftest.h"' > conftest.C &&
2850 ${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.C 1>&5 2>&1 ; then
2851 libstdcxx_cv_pch_comp=yes
2852 else
2853 libstdcxx_cv_pch_comp=no
2855 rm -f conftest*
2856 CXXFLAGS=$ac_save_CXXFLAGS
2857 ac_ext=c
2858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2862 cross_compiling=$ac_cv_prog_cc_cross
2867 echo "$ac_t""$libstdcxx_cv_pch_comp" 1>&6
2870 if test x"$enable_libstdcxx_pch" = xyes &&
2871 test x"$libstdcxx_cv_pch_comp" = xno; then
2872 enable_libstdcxx_pch=no
2875 echo $ac_n "checking for enabled PCH""... $ac_c" 1>&6
2876 echo "configure:2877: checking for enabled PCH" >&5
2877 echo "$ac_t""$enable_libstdcxx_pch" 1>&6
2881 if test "$enable_libstdcxx_pch" = yes; then
2882 GLIBCXX_BUILD_PCH_TRUE=
2883 GLIBCXX_BUILD_PCH_FALSE='#'
2884 else
2885 GLIBCXX_BUILD_PCH_TRUE='#'
2886 GLIBCXX_BUILD_PCH_FALSE=
2888 if test "$enable_libstdcxx_pch" = yes; then
2889 glibcxx_PCHFLAGS="-include bits/stdc++.h"
2890 else
2891 glibcxx_PCHFLAGS=""
2896 # Enable all the variable C++ runtime options.
2897 # NB: C_MBCHAR must come early.
2899 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2900 echo "configure:2901: checking for cstdio to use" >&5
2901 # Check whether --enable-cstdio or --disable-cstdio was given.
2902 if test "${enable_cstdio+set}" = set; then
2903 enableval="$enable_cstdio"
2904 if test x$enable_cstdio = xno; then
2905 enable_cstdio=stdio
2907 else
2908 enable_cstdio=stdio
2912 enable_cstdio_flag=$enable_cstdio
2914 case x${enable_cstdio_flag} in
2915 xstdio | x | xno | xnone | xyes)
2916 # default
2917 CSTDIO_H=config/io/c_io_stdio.h
2918 BASIC_FILE_H=config/io/basic_file_stdio.h
2919 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2920 echo "$ac_t""stdio" 1>&6
2923 echo "$enable_cstdio is an unknown io package" 1>&2
2924 exit 1
2926 esac
2928 FPOS_H=$fpos_include_dir
2935 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2936 echo "configure:2937: checking how to run the C preprocessor" >&5
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2939 CPP=
2941 if test -z "$CPP"; then
2942 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944 else
2945 # This must be in double quotes, not single quotes, because CPP may get
2946 # substituted into the Makefile and "${CC-cc}" will confuse make.
2947 CPP="${CC-cc} -E"
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp.
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <assert.h>
2954 Syntax Error
2956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2957 { (eval echo configure:2958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2959 if test -z "$ac_err"; then
2961 else
2962 echo "$ac_err" >&5
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 rm -rf conftest*
2966 CPP="${CC-cc} -E -traditional-cpp"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 #include <assert.h>
2971 Syntax Error
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2978 else
2979 echo "$ac_err" >&5
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2982 rm -rf conftest*
2983 CPP="${CC-cc} -nologo -E"
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <assert.h>
2988 Syntax Error
2990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2995 else
2996 echo "$ac_err" >&5
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
2999 rm -rf conftest*
3000 CPP=/lib/cpp
3002 rm -f conftest*
3004 rm -f conftest*
3006 rm -f conftest*
3007 ac_cv_prog_CPP="$CPP"
3009 CPP="$ac_cv_prog_CPP"
3010 else
3011 ac_cv_prog_CPP="$CPP"
3013 echo "$ac_t""$CPP" 1>&6
3016 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3017 echo "configure:3018: checking for clocale to use" >&5
3018 # Check whether --enable-clocale or --disable-clocale was given.
3019 if test "${enable_clocale+set}" = set; then
3020 enableval="$enable_clocale"
3021 if test x$enable_clocale = xno; then
3022 enable_clocale=no
3024 else
3025 enable_clocale=no
3029 enable_clocale_flag=$enable_clocale
3031 if test x$enable_clocale_flag = xno; then
3032 case x${target_os} in
3033 xlinux* | xgnu*)
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3038 #include <features.h>
3039 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3040 _GLIBCXX_ok
3041 #endif
3044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3045 egrep "_GLIBCXX_ok" >/dev/null 2>&1; then
3046 rm -rf conftest*
3047 enable_clocale_flag=gnu
3048 else
3049 rm -rf conftest*
3050 enable_clocale_flag=generic
3052 rm -f conftest*
3055 # Test for bugs early in glibc-2.2.x series
3056 if test x$enable_clocale_flag = xgnu; then
3057 if test "$cross_compiling" = yes; then
3058 enable_clocale_flag=generic
3059 else
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3064 #define _GNU_SOURCE 1
3065 #include <locale.h>
3066 #include <string.h>
3067 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3068 extern __typeof(newlocale) __newlocale;
3069 extern __typeof(duplocale) __duplocale;
3070 extern __typeof(strcoll_l) __strcoll_l;
3071 #endif
3072 int main()
3074 const char __one[] = "Äuglein Augmen";
3075 const char __two[] = "Äuglein";
3076 int i;
3077 int j;
3078 __locale_t loc;
3079 __locale_t loc_dup;
3080 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3081 loc_dup = __duplocale(loc);
3082 i = __strcoll_l(__one, __two, loc);
3083 j = __strcoll_l(__one, __two, loc_dup);
3084 return 0;
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3089 then
3090 enable_clocale_flag=gnu
3091 else
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3094 rm -fr conftest*
3095 enable_clocale_flag=generic
3097 rm -fr conftest*
3102 # ... at some point put __strxfrm_l tests in as well.
3105 enable_clocale_flag=generic
3107 esac
3110 # Check whether --enable-nls or --disable-nls was given.
3111 if test "${enable_nls+set}" = set; then
3112 enableval="$enable_nls"
3114 else
3115 enable_nls=yes
3118 USE_NLS=no
3120 case x${enable_clocale_flag} in
3121 xgeneric)
3122 echo "$ac_t""generic" 1>&6
3124 CLOCALE_H=config/locale/generic/c_locale.h
3125 CLOCALE_CC=config/locale/generic/c_locale.cc
3126 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3127 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3128 CCOLLATE_CC=config/locale/generic/collate_members.cc
3129 CCTYPE_CC=config/locale/generic/ctype_members.cc
3130 CMESSAGES_H=config/locale/generic/messages_members.h
3131 CMESSAGES_CC=config/locale/generic/messages_members.cc
3132 CMONEY_CC=config/locale/generic/monetary_members.cc
3133 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3134 CTIME_H=config/locale/generic/time_members.h
3135 CTIME_CC=config/locale/generic/time_members.cc
3136 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3138 xgnu)
3139 echo "$ac_t""gnu" 1>&6
3141 # Declare intention to use gettext, and add support for specific
3142 # languages.
3143 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3144 ALL_LINGUAS="de fr"
3146 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3147 # Extract the first word of "msgfmt", so it can be a program name with args.
3148 set dummy msgfmt; ac_word=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 if test -n "$check_msgfmt"; then
3155 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3156 else
3157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3158 ac_dummy="$PATH"
3159 for ac_dir in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir=.
3161 if test -f $ac_dir/$ac_word; then
3162 ac_cv_prog_check_msgfmt="yes"
3163 break
3165 done
3166 IFS="$ac_save_ifs"
3167 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3170 check_msgfmt="$ac_cv_prog_check_msgfmt"
3171 if test -n "$check_msgfmt"; then
3172 echo "$ac_t""$check_msgfmt" 1>&6
3173 else
3174 echo "$ac_t""no" 1>&6
3177 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3178 USE_NLS=yes
3180 # Export the build objects.
3181 for ling in $ALL_LINGUAS; do \
3182 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
3183 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
3184 done
3188 CLOCALE_H=config/locale/gnu/c_locale.h
3189 CLOCALE_CC=config/locale/gnu/c_locale.cc
3190 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3191 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3192 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3193 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3194 CMESSAGES_H=config/locale/gnu/messages_members.h
3195 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3196 CMONEY_CC=config/locale/gnu/monetary_members.cc
3197 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3198 CTIME_H=config/locale/gnu/time_members.h
3199 CTIME_CC=config/locale/gnu/time_members.cc
3200 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3202 xieee_1003.1-2001)
3203 echo "$ac_t""IEEE 1003.1" 1>&6
3205 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3206 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3207 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3208 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3209 CCOLLATE_CC=config/locale/generic/collate_members.cc
3210 CCTYPE_CC=config/locale/generic/ctype_members.cc
3211 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3212 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3213 CMONEY_CC=config/locale/generic/monetary_members.cc
3214 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3215 CTIME_H=config/locale/generic/time_members.h
3216 CTIME_CC=config/locale/generic/time_members.cc
3217 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3220 echo "$enable_clocale is an unknown locale package" 1>&2
3221 exit 1
3223 esac
3225 # This is where the testsuite looks for locale catalogs, using the
3226 # -DLOCALEDIR define during testsuite compilation.
3227 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
3230 # A standalone libintl (e.g., GNU libintl) may be in use.
3231 if test $USE_NLS = yes; then
3232 for ac_hdr in libintl.h
3234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3239 else
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <$ac_hdr>
3245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3249 rm -rf conftest*
3250 eval "ac_cv_header_$ac_safe=yes"
3251 else
3252 echo "$ac_err" >&5
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 rm -rf conftest*
3256 eval "ac_cv_header_$ac_safe=no"
3258 rm -f conftest*
3260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3263 cat >> confdefs.h <<EOF
3264 #define $ac_tr_hdr 1
3267 else
3268 echo "$ac_t""no" 1>&6
3269 USE_NLS=no
3271 done
3274 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3275 echo "configure:3276: checking for library containing gettext" >&5
3276 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279 ac_func_search_save_LIBS="$LIBS"
3280 ac_cv_search_gettext="no"
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 /* Override any gcc2 internal prototype to avoid an error. */
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287 char gettext();
3289 int main() {
3290 gettext()
3291 ; return 0; }
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3294 rm -rf conftest*
3295 ac_cv_search_gettext="none required"
3296 else
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 rm -f conftest*
3301 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3302 LIBS="-l$i $ac_func_search_save_LIBS"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3309 char gettext();
3311 int main() {
3312 gettext()
3313 ; return 0; }
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3316 rm -rf conftest*
3317 ac_cv_search_gettext="-l$i"
3318 break
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 rm -f conftest*
3324 done
3325 LIBS="$ac_func_search_save_LIBS"
3328 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3329 if test "$ac_cv_search_gettext" != "no"; then
3330 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3332 else :
3333 USE_NLS=no
3336 if test $USE_NLS = yes; then
3337 cat >> confdefs.h <<\EOF
3338 #define _GLIBCXX_USE_NLS 1
3358 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3359 echo "configure:3360: checking for c header strategy to use" >&5
3360 # Check whether --enable-cheaders or --disable-cheaders was given.
3361 if test "${enable_cheaders+set}" = set; then
3362 enableval="$enable_cheaders"
3364 case "$enableval" in
3366 enable_cheaders=c
3368 c_std)
3369 enable_cheaders=c_std
3371 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3373 esac
3374 else
3375 enable_cheaders=c_std
3378 echo "$ac_t""$enable_cheaders" 1>&6
3380 case "$enable_cheaders" in
3381 c_std)
3382 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c_std'
3385 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c'
3387 esac
3392 if test "$enable_cheaders" = c; then
3393 GLIBCXX_C_HEADERS_C_TRUE=
3394 GLIBCXX_C_HEADERS_C_FALSE='#'
3395 else
3396 GLIBCXX_C_HEADERS_C_TRUE='#'
3397 GLIBCXX_C_HEADERS_C_FALSE=
3401 if test "$enable_cheaders" = c_std; then
3402 GLIBCXX_C_HEADERS_C_STD_TRUE=
3403 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
3404 else
3405 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
3406 GLIBCXX_C_HEADERS_C_STD_FALSE=
3410 if test "$c_compatibility" = yes; then
3411 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
3412 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
3413 else
3414 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
3415 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
3418 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3419 if test "${enable_c_mbchar+set}" = set; then
3420 enableval="$enable_c_mbchar"
3421 case "$enableval" in
3422 yes) enable_c_mbchar=yes ;;
3423 no) enable_c_mbchar=no ;;
3424 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3425 esac
3426 else
3427 enable_c_mbchar=yes
3431 # Check whether --enable-c99 or --disable-c99 was given.
3432 if test "${enable_c99+set}" = set; then
3433 enableval="$enable_c99"
3434 case "$enableval" in
3435 yes) enable_c99=yes ;;
3436 no) enable_c99=no ;;
3437 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3438 esac
3439 else
3440 enable_c99=yes
3444 ac_ext=C
3445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3446 ac_cpp='$CXXCPP $CPPFLAGS'
3447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3449 cross_compiling=$ac_cv_prog_cxx_cross
3452 # Check for the existence of <math.h> functions used if C99 is enabled.
3453 ac_c99_math=yes;
3454 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3455 echo "configure:3456: checking for ISO C99 support in <math.h>" >&5
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <math.h>
3460 int main() {
3461 fpclassify(0.0);
3462 ; return 0; }
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 ac_c99_math=no
3472 rm -f conftest*
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <math.h>
3477 int main() {
3478 isfinite(0.0);
3479 ; return 0; }
3481 if { (eval echo configure:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483 else
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 rm -rf conftest*
3487 ac_c99_math=no
3489 rm -f conftest*
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <math.h>
3494 int main() {
3495 isinf(0.0);
3496 ; return 0; }
3498 if { (eval echo configure:3499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -rf conftest*
3504 ac_c99_math=no
3506 rm -f conftest*
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <math.h>
3511 int main() {
3512 isnan(0.0);
3513 ; return 0; }
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 ac_c99_math=no
3523 rm -f conftest*
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <math.h>
3528 int main() {
3529 isnormal(0.0);
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 else
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 rm -rf conftest*
3538 ac_c99_math=no
3540 rm -f conftest*
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <math.h>
3545 int main() {
3546 signbit(0.0);
3547 ; return 0; }
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 ac_c99_math=no
3557 rm -f conftest*
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <math.h>
3562 int main() {
3563 isgreater(0.0,0.0);
3564 ; return 0; }
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 else
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 ac_c99_math=no
3574 rm -f conftest*
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <math.h>
3579 int main() {
3580 isgreaterequal(0.0,0.0);
3581 ; return 0; }
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 else
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 ac_c99_math=no
3591 rm -f conftest*
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <math.h>
3596 int main() {
3597 isless(0.0,0.0);
3598 ; return 0; }
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 else
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 rm -rf conftest*
3606 ac_c99_math=no
3608 rm -f conftest*
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <math.h>
3613 int main() {
3614 islessequal(0.0,0.0);
3615 ; return 0; }
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 ac_c99_math=no
3625 rm -f conftest*
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <math.h>
3630 int main() {
3631 islessgreater(0.0,0.0);
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 else
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 ac_c99_math=no
3642 rm -f conftest*
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <math.h>
3647 int main() {
3648 isunordered(0.0,0.0);
3649 ; return 0; }
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3653 else
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 rm -rf conftest*
3657 ac_c99_math=no
3659 rm -f conftest*
3660 echo "$ac_t""$ac_c99_math" 1>&6
3662 # Check for the existence in <stdio.h> of vscanf, et. al.
3663 ac_c99_stdio=yes;
3664 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3665 echo "configure:3666: checking for ISO C99 support in <stdio.h>" >&5
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <stdio.h>
3670 int main() {
3671 snprintf("12", 0, "%i");
3672 ; return 0; }
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 else
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 rm -rf conftest*
3680 ac_c99_stdio=no
3682 rm -f conftest*
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 #include <stdio.h>
3687 #include <stdarg.h>
3688 void foo(char* fmt, ...)
3689 {va_list args; va_start(args, fmt);
3690 vfscanf(stderr, "%i", args);}
3691 int main() {
3693 ; return 0; }
3695 if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697 else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 ac_c99_stdio=no
3703 rm -f conftest*
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <stdio.h>
3708 #include <stdarg.h>
3709 void foo(char* fmt, ...)
3710 {va_list args; va_start(args, fmt);
3711 vscanf("%i", args);}
3712 int main() {
3714 ; return 0; }
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -rf conftest*
3722 ac_c99_stdio=no
3724 rm -f conftest*
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <stdio.h>
3729 #include <stdarg.h>
3730 void foo(char* fmt, ...)
3731 {va_list args; va_start(args, fmt);
3732 vsnprintf(fmt, 0, "%i", args);}
3733 int main() {
3735 ; return 0; }
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3739 else
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 rm -rf conftest*
3743 ac_c99_stdio=no
3745 rm -f conftest*
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 #include <stdio.h>
3750 #include <stdarg.h>
3751 void foo(char* fmt, ...)
3752 {va_list args; va_start(args, fmt);
3753 vsscanf(fmt, "%i", args);}
3754 int main() {
3756 ; return 0; }
3758 if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3760 else
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3763 rm -rf conftest*
3764 ac_c99_stdio=no
3766 rm -f conftest*
3767 echo "$ac_t""$ac_c99_stdio" 1>&6
3769 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3770 ac_c99_stdlib=yes;
3771 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3772 echo "configure:3773: checking for lldiv_t declaration" >&5
3773 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <stdlib.h>
3781 int main() {
3782 lldiv_t mydivt;
3783 ; return 0; }
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786 rm -rf conftest*
3787 ac_c99_lldiv_t=yes
3788 else
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 rm -rf conftest*
3792 ac_c99_lldiv_t=no
3794 rm -f conftest*
3798 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3800 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3801 echo "configure:3802: checking for ISO C99 support in <stdlib.h>" >&5
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <stdlib.h>
3806 int main() {
3807 char* tmp; strtof("gnu", &tmp);
3808 ; return 0; }
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 else
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 rm -rf conftest*
3816 ac_c99_stdlib=no
3818 rm -f conftest*
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <stdlib.h>
3823 int main() {
3824 char* tmp; strtold("gnu", &tmp);
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3829 else
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 rm -rf conftest*
3833 ac_c99_stdlib=no
3835 rm -f conftest*
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <stdlib.h>
3840 int main() {
3841 llabs(10);
3842 ; return 0; }
3844 if { (eval echo configure:3845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 ac_c99_stdlib=no
3852 rm -f conftest*
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 #include <stdlib.h>
3857 int main() {
3858 lldiv(10,1);
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 else
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 rm -rf conftest*
3867 ac_c99_stdlib=no
3869 rm -f conftest*
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <stdlib.h>
3874 int main() {
3875 atoll("10");
3876 ; return 0; }
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 ac_c99_stdlib=no
3886 rm -f conftest*
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 #include <stdlib.h>
3891 int main() {
3892 _Exit(0);
3893 ; return 0; }
3895 if { (eval echo configure:3896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3897 else
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 rm -rf conftest*
3901 ac_c99_stdlib=no
3903 rm -f conftest*
3904 if test x"$ac_c99_lldiv_t" = x"no"; then
3905 ac_c99_stdlib=no;
3907 echo "$ac_t""$ac_c99_stdlib" 1>&6
3909 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3910 # XXX the wchar.h checks should be rolled into the general C99 bits.
3911 ac_c99_wchar=yes;
3912 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3913 echo "configure:3914: checking for additional ISO C99 support in <wchar.h>" >&5
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <wchar.h>
3918 int main() {
3919 wcstold(L"10.0", NULL);
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 ac_c99_wchar=no
3930 rm -f conftest*
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 #include <wchar.h>
3935 int main() {
3936 wcstoll(L"10", NULL, 10);
3937 ; return 0; }
3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 else
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 rm -rf conftest*
3945 ac_c99_wchar=no
3947 rm -f conftest*
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 #include <wchar.h>
3952 int main() {
3953 wcstoull(L"10", NULL, 10);
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 else
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 rm -rf conftest*
3962 ac_c99_wchar=no
3964 rm -f conftest*
3965 echo "$ac_t""$ac_c99_wchar" 1>&6
3967 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3968 echo "configure:3969: checking for enabled ISO C99 support" >&5
3969 if test x"$ac_c99_math" = x"no" ||
3970 test x"$ac_c99_stdio" = x"no" ||
3971 test x"$ac_c99_stdlib" = x"no" ||
3972 test x"$ac_c99_wchar" = x"no"; then
3973 enable_c99=no;
3975 echo "$ac_t""$enable_c99" 1>&6
3977 # Option parsed, now set things appropriately
3978 if test x"$enable_c99" = x"yes"; then
3979 cat >> confdefs.h <<\EOF
3980 #define _GLIBCXX_USE_C99 1
3985 ac_ext=c
3986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3990 cross_compiling=$ac_cv_prog_cc_cross
3994 # Check whether --enable-long-long or --disable-long-long was given.
3995 if test "${enable_long_long+set}" = set; then
3996 enableval="$enable_long_long"
3997 case "$enableval" in
3998 yes) enable_long_long=yes ;;
3999 no) enable_long_long=no ;;
4000 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4001 esac
4002 else
4003 enable_long_long=yes
4007 ac_ext=C
4008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4009 ac_cpp='$CXXCPP $CPPFLAGS'
4010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4012 cross_compiling=$ac_cv_prog_cxx_cross
4015 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4016 echo "configure:4017: checking for enabled long long I/O support" >&5
4017 # iostreams require strtoll, strtoull to compile
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <stdlib.h>
4022 int main() {
4023 char* tmp; strtoll("gnu", &tmp, 10);
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 else
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4031 rm -rf conftest*
4032 enable_long_long=no
4034 rm -f conftest*
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 #include <stdlib.h>
4039 int main() {
4040 char* tmp; strtoull("gnu", &tmp, 10);
4041 ; return 0; }
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 else
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 rm -rf conftest*
4049 enable_long_long=no
4051 rm -f conftest*
4053 # Option parsed, now set things appropriately
4054 if test x"$enable_long_long" = xyes; then
4055 cat >> confdefs.h <<\EOF
4056 #define _GLIBCXX_USE_LONG_LONG 1
4060 echo "$ac_t""$enable_long_long" 1>&6
4062 ac_ext=c
4063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4067 cross_compiling=$ac_cv_prog_cc_cross
4071 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4072 echo "configure:4073: checking for thread model used by GCC" >&5
4073 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4074 echo "$ac_t""$target_thread_file" 1>&6
4076 if test $target_thread_file != single; then
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_GTHR_DEFAULT 1
4081 cat >> confdefs.h <<\EOF
4082 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
4087 glibcxx_thread_h=gthr-$target_thread_file.h
4090 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4091 if test "${enable_concept_checks+set}" = set; then
4092 enableval="$enable_concept_checks"
4093 case "$enableval" in
4094 yes) enable_concept_checks=yes ;;
4095 no) enable_concept_checks=no ;;
4096 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4097 esac
4098 else
4099 enable_concept_checks=no
4101 if test x"$enable_concept_checks" = xyes; then
4102 cat >> confdefs.h <<\EOF
4103 #define _GLIBCXX_CONCEPT_CHECKS 1
4108 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4109 echo "configure:4110: checking for extra compiler flags for building" >&5
4110 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4111 if test "${enable_cxx_flags+set}" = set; then
4112 enableval="$enable_cxx_flags"
4113 case "x$enable_cxx_flags" in
4114 xyes)
4115 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4116 xno | xnone | x)
4117 enable_cxx_flags='' ;;
4119 enable_cxx_flags="$enableval" ;;
4120 esac
4121 else
4122 enable_cxx_flags=
4126 if test -n "$enable_cxx_flags"; then
4127 for f in $enable_cxx_flags; do
4128 case "$f" in
4129 -fhonor-std) ;;
4130 -*) ;;
4131 *) # and we're trying to pass /what/ exactly?
4132 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4133 esac
4134 done
4136 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4137 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4140 # Check whether --enable-libstdcxx_debug or --disable-libstdcxx_debug was given.
4141 if test "${enable_libstdcxx_debug+set}" = set; then
4142 enableval="$enable_libstdcxx_debug"
4143 case "${enableval}" in
4144 yes) enable_libstdcxx_debug=yes ;;
4145 no) enable_libstdcxx_debug=no ;;
4146 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4147 esac
4148 else
4149 enable_libstdcxx_debug=no
4151 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4152 echo "configure:4153: checking for additional debug build" >&5
4153 echo "$ac_t""$enable_libstdcxx_debug" 1>&6
4156 if test "$enable_libstdcxx_debug" = yes; then
4157 GLIBCXX_BUILD_DEBUG_TRUE=
4158 GLIBCXX_BUILD_DEBUG_FALSE='#'
4159 else
4160 GLIBCXX_BUILD_DEBUG_TRUE='#'
4161 GLIBCXX_BUILD_DEBUG_FALSE=
4164 # Check whether --enable-libstdcxx_debug_flags or --disable-libstdcxx_debug_flags was given.
4165 if test "${enable_libstdcxx_debug_flags+set}" = set; then
4166 enableval="$enable_libstdcxx_debug_flags"
4167 case "${enableval}" in
4168 none) ;;
4169 -*) enable_libstdcxx_debug_flags="${enableval}" ;;
4170 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4171 esac
4172 else
4173 enable_libstdcxx_debug_flags=none
4176 case x"$enable_libstdcxx_debug" in
4177 xyes)
4178 case "$enable_libstdcxx_debug_flags" in
4179 none)
4180 DEBUG_FLAGS="-g3 -O0";;
4181 -*) #valid input
4182 DEBUG_FLAGS="${enableval}"
4183 esac
4185 xno)
4186 DEBUG_FLAGS=""
4188 esac
4191 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4192 echo "configure:4193: checking for debug build flags" >&5
4193 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4196 # No surprises, no surprises...
4197 if test $ATOMICITYH = cpu/generic ; then
4198 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4199 if test $target_thread_file = single; then
4200 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4201 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4202 else
4203 echo "configure: warning: They will be faked using a mutex." 1>&2
4204 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4209 if test x"$build" != x"$host"; then
4211 # We are being configured with some form of cross compiler.
4212 GLIBCXX_IS_CROSS_COMPILING=true
4214 # This lets us hard-code the functionality we know we'll have in the cross
4215 # target environment. "Let" is a sugar-coated word placed on an especially
4216 # dull and tedious hack, actually.
4218 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
4219 # that involve linking, can't be used:
4220 # "cannot open sim-crt0.o"
4221 # "cannot open crt0.o"
4222 # etc. All this is because there currently exists no unified, consistent
4223 # way for top level CC information to be passed down to target directories:
4224 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4225 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4226 # crosses can be removed.
4228 # If Canadian cross, then don't pick up tools from the build directory.
4229 # Used in GLIBCXX_EXPORT_INCLUDES (and nowhere else?).
4230 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4231 && test x"$build" != x"$target"; then
4232 CANADIAN=yes
4233 else
4234 CANADIAN=no
4237 # Construct crosses by hand, eliminating bits that need ld...
4238 # GLIBCXX_CHECK_COMPILER_FEATURES
4239 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
4240 # GLIBCXX_CHECK_MATH_SUPPORT
4242 case "${host}" in
4243 *-freebsd*)
4244 os_include_dir="os/bsd/freebsd"
4245 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4246 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4247 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4248 sys/time.h unistd.h
4250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4252 echo "configure:4253: checking for $ac_hdr" >&5
4253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4255 else
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4259 #include <$ac_hdr>
4261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4262 { (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4264 if test -z "$ac_err"; then
4265 rm -rf conftest*
4266 eval "ac_cv_header_$ac_safe=yes"
4267 else
4268 echo "$ac_err" >&5
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4271 rm -rf conftest*
4272 eval "ac_cv_header_$ac_safe=no"
4274 rm -f conftest*
4276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4279 cat >> confdefs.h <<EOF
4280 #define $ac_tr_hdr 1
4283 else
4284 echo "$ac_t""no" 1>&6
4286 done
4288 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4291 # If we're not using GNU ld, then there's no point in even trying these
4292 # tests. Check for that first. We should have already tested for gld
4293 # by now (in libtool), but require it now just to be safe...
4294 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4295 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4298 # The name set by libtool depends on the version of libtool. Shame on us
4299 # for depending on an impl detail, but c'est la vie. Older versions used
4300 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4301 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4302 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4303 # set (hence we're using an older libtool), then set it.
4304 if test x${with_gnu_ld+set} != xset; then
4305 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4306 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4307 with_gnu_ld=no
4308 else
4309 with_gnu_ld=$ac_cv_prog_gnu_ld
4313 # Start by getting the version number. I think the libtool test already
4314 # does some of this, but throws away the result.
4316 ldver=`$LD --version 2>/dev/null | head -1 | \
4317 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4319 glibcxx_gnu_ld_version=`echo $ldver | \
4320 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4322 # Set --gc-sections.
4323 if test "$with_gnu_ld" = "notbroken"; then
4324 # GNU ld it is! Joy and bunny rabbits!
4326 # All these tests are for C++; save the language and the compiler flags.
4327 # Need to do this so that g++ won't try to link in libstdc++
4328 ac_test_CFLAGS="${CFLAGS+set}"
4329 ac_save_CFLAGS="$CFLAGS"
4330 CFLAGS='-x c++ -Wl,--gc-sections'
4332 # Check for -Wl,--gc-sections
4333 # XXX This test is broken at the moment, as symbols required for
4334 # linking are now in libsupc++ (not built yet.....). In addition,
4335 # this test has cored on solaris in the past. In addition,
4336 # --gc-sections doesn't really work at the moment (keeps on discarding
4337 # used sections, first .eh_frame and now some of the glibc sections for
4338 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4339 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4340 echo "configure:4341: checking for ld that supports -Wl,--gc-sections" >&5
4341 if test "$cross_compiling" = yes; then
4342 ac_sectionLDflags=yes
4343 else
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4348 int main(void)
4350 try { throw 1; }
4351 catch (...) { };
4352 return 0;
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4357 then
4358 ac_sectionLDflags=yes
4359 else
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4362 rm -fr conftest*
4363 ac_sectionLDflags=no
4365 rm -fr conftest*
4368 if test "$ac_test_CFLAGS" = set; then
4369 CFLAGS="$ac_save_CFLAGS"
4370 else
4371 # this is the suspicious part
4372 CFLAGS=''
4374 if test "$ac_sectionLDflags" = "yes"; then
4375 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4377 echo "$ac_t""$ac_sectionLDflags" 1>&6
4380 # Set linker optimization flags.
4381 if test x"$with_gnu_ld" = x"yes"; then
4382 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4389 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4390 echo "configure:4391: checking for main in -lm" >&5
4391 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4394 else
4395 ac_save_LIBS="$LIBS"
4396 LIBS="-lm $LIBS"
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4401 int main() {
4402 main()
4403 ; return 0; }
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406 rm -rf conftest*
4407 eval "ac_cv_lib_$ac_lib_var=yes"
4408 else
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 rm -rf conftest*
4412 eval "ac_cv_lib_$ac_lib_var=no"
4414 rm -f conftest*
4415 LIBS="$ac_save_LIBS"
4418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4422 cat >> confdefs.h <<EOF
4423 #define $ac_tr_lib 1
4426 LIBS="-lm $LIBS"
4428 else
4429 echo "$ac_t""no" 1>&6
4432 for ac_func in nan copysignf
4434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_func" >&5
4436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4438 else
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 /* System header to define __stub macros and hopefully few prototypes,
4443 which can conflict with char $ac_func(); below. */
4444 #include <assert.h>
4445 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448 char $ac_func();
4450 int main() {
4452 /* The GNU C library defines this for functions which it implements
4453 to always fail with ENOSYS. Some functions are actually named
4454 something starting with __ and the normal name is an alias. */
4455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4456 choke me
4457 #else
4458 $ac_func();
4459 #endif
4461 ; return 0; }
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4464 rm -rf conftest*
4465 eval "ac_cv_func_$ac_func=yes"
4466 else
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 rm -rf conftest*
4470 eval "ac_cv_func_$ac_func=no"
4472 rm -f conftest*
4475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4478 cat >> confdefs.h <<EOF
4479 #define $ac_tr_func 1
4482 else
4483 echo "$ac_t""no" 1>&6
4484 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4486 done
4489 for ac_func in __signbit
4491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4492 echo "configure:4493: checking for $ac_func" >&5
4493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4495 else
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* System header to define __stub macros and hopefully few prototypes,
4500 which can conflict with char $ac_func(); below. */
4501 #include <assert.h>
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4505 char $ac_func();
4507 int main() {
4509 /* The GNU C library defines this for functions which it implements
4510 to always fail with ENOSYS. Some functions are actually named
4511 something starting with __ and the normal name is an alias. */
4512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4513 choke me
4514 #else
4515 $ac_func();
4516 #endif
4518 ; return 0; }
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 rm -rf conftest*
4522 eval "ac_cv_func_$ac_func=yes"
4523 else
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 rm -rf conftest*
4527 eval "ac_cv_func_$ac_func=no"
4529 rm -f conftest*
4532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_func 1
4539 else
4540 echo "$ac_t""no" 1>&6
4541 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4543 done
4545 for ac_func in __signbitf
4547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_func" >&5
4549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char $ac_func(); below. */
4557 #include <assert.h>
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char $ac_func();
4563 int main() {
4565 /* The GNU C library defines this for functions which it implements
4566 to always fail with ENOSYS. Some functions are actually named
4567 something starting with __ and the normal name is an alias. */
4568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4569 choke me
4570 #else
4571 $ac_func();
4572 #endif
4574 ; return 0; }
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4577 rm -rf conftest*
4578 eval "ac_cv_func_$ac_func=yes"
4579 else
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 rm -rf conftest*
4583 eval "ac_cv_func_$ac_func=no"
4585 rm -f conftest*
4588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_func 1
4595 else
4596 echo "$ac_t""no" 1>&6
4597 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4599 done
4602 if test x$ac_cv_func_copysignl = x"yes"; then
4603 for ac_func in __signbitl
4605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4606 echo "configure:4607: checking for $ac_func" >&5
4607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4609 else
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* System header to define __stub macros and hopefully few prototypes,
4614 which can conflict with char $ac_func(); below. */
4615 #include <assert.h>
4616 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4619 char $ac_func();
4621 int main() {
4623 /* The GNU C library defines this for functions which it implements
4624 to always fail with ENOSYS. Some functions are actually named
4625 something starting with __ and the normal name is an alias. */
4626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4627 choke me
4628 #else
4629 $ac_func();
4630 #endif
4632 ; return 0; }
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 rm -rf conftest*
4636 eval "ac_cv_func_$ac_func=yes"
4637 else
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 rm -rf conftest*
4641 eval "ac_cv_func_$ac_func=no"
4643 rm -f conftest*
4646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4649 cat >> confdefs.h <<EOF
4650 #define $ac_tr_func 1
4653 else
4654 echo "$ac_t""no" 1>&6
4655 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4657 done
4661 if test -n "$LIBMATHOBJS"; then
4662 need_libmath=yes
4668 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4669 echo "configure:4670: checking for mbstate_t" >&5
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 #include <wchar.h>
4674 int main() {
4675 mbstate_t teststate;
4676 ; return 0; }
4678 if { (eval echo configure:4679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4679 rm -rf conftest*
4680 have_mbstate_t=yes
4681 else
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 rm -rf conftest*
4685 have_mbstate_t=no
4687 rm -f conftest*
4688 echo "$ac_t""$have_mbstate_t" 1>&6
4689 if test x"$have_mbstate_t" = xyes; then
4690 cat >> confdefs.h <<\EOF
4691 #define HAVE_MBSTATE_T 1
4696 for ac_hdr in wchar.h
4698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_hdr" >&5
4701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703 else
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <$ac_hdr>
4709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4710 { (eval echo configure:4711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4712 if test -z "$ac_err"; then
4713 rm -rf conftest*
4714 eval "ac_cv_header_$ac_safe=yes"
4715 else
4716 echo "$ac_err" >&5
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 rm -rf conftest*
4720 eval "ac_cv_header_$ac_safe=no"
4722 rm -f conftest*
4724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4727 cat >> confdefs.h <<EOF
4728 #define $ac_tr_hdr 1
4730 ac_has_wchar_h=yes
4731 else
4732 echo "$ac_t""no" 1>&6
4733 ac_has_wchar_h=no
4735 done
4737 for ac_hdr in wctype.h
4739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_hdr" >&5
4742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 #include <$ac_hdr>
4750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4751 { (eval echo configure:4752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4753 if test -z "$ac_err"; then
4754 rm -rf conftest*
4755 eval "ac_cv_header_$ac_safe=yes"
4756 else
4757 echo "$ac_err" >&5
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4760 rm -rf conftest*
4761 eval "ac_cv_header_$ac_safe=no"
4763 rm -f conftest*
4765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_hdr 1
4771 ac_has_wctype_h=yes
4772 else
4773 echo "$ac_t""no" 1>&6
4774 ac_has_wctype_h=no
4776 done
4779 if test x"$ac_has_wchar_h" = xyes &&
4780 test x"$ac_has_wctype_h" = xyes &&
4781 test x"$enable_c_mbchar" != xno; then
4783 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4784 echo "configure:4785: checking for WCHAR_MIN and WCHAR_MAX" >&5
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4788 #include <wchar.h>
4789 int main() {
4790 int i = WCHAR_MIN; int j = WCHAR_MAX;
4791 ; return 0; }
4793 if { (eval echo configure:4794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4794 rm -rf conftest*
4795 has_wchar_minmax=yes
4796 else
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 rm -rf conftest*
4800 has_wchar_minmax=no
4802 rm -f conftest*
4803 echo "$ac_t""$has_wchar_minmax" 1>&6
4805 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4806 echo "configure:4807: checking for WEOF" >&5
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4811 #include <wchar.h>
4812 #include <stddef.h>
4813 int main() {
4814 wint_t i = WEOF;
4815 ; return 0; }
4817 if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4818 rm -rf conftest*
4819 has_weof=yes
4820 else
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4823 rm -rf conftest*
4824 has_weof=no
4826 rm -f conftest*
4827 echo "$ac_t""$has_weof" 1>&6
4829 ac_wfuncs=yes
4830 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4833 echo "configure:4834: checking for $ac_func" >&5
4834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4836 else
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4840 /* System header to define __stub macros and hopefully few prototypes,
4841 which can conflict with char $ac_func(); below. */
4842 #include <assert.h>
4843 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char $ac_func();
4848 int main() {
4850 /* The GNU C library defines this for functions which it implements
4851 to always fail with ENOSYS. Some functions are actually named
4852 something starting with __ and the normal name is an alias. */
4853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4854 choke me
4855 #else
4856 $ac_func();
4857 #endif
4859 ; return 0; }
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4862 rm -rf conftest*
4863 eval "ac_cv_func_$ac_func=yes"
4864 else
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 rm -rf conftest*
4868 eval "ac_cv_func_$ac_func=no"
4870 rm -f conftest*
4873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4876 cat >> confdefs.h <<EOF
4877 #define $ac_tr_func 1
4880 else
4881 echo "$ac_t""no" 1>&6
4883 ac_wfuncs=no
4885 done
4888 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4889 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4890 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4891 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4892 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4893 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4896 echo "configure:4897: checking for $ac_func" >&5
4897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4899 else
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4903 /* System header to define __stub macros and hopefully few prototypes,
4904 which can conflict with char $ac_func(); below. */
4905 #include <assert.h>
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4909 char $ac_func();
4911 int main() {
4913 /* The GNU C library defines this for functions which it implements
4914 to always fail with ENOSYS. Some functions are actually named
4915 something starting with __ and the normal name is an alias. */
4916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 choke me
4918 #else
4919 $ac_func();
4920 #endif
4922 ; return 0; }
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 rm -rf conftest*
4926 eval "ac_cv_func_$ac_func=yes"
4927 else
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 rm -rf conftest*
4931 eval "ac_cv_func_$ac_func=no"
4933 rm -f conftest*
4936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4939 cat >> confdefs.h <<EOF
4940 #define $ac_tr_func 1
4943 else
4944 echo "$ac_t""no" 1>&6
4946 ac_wfuncs=no
4948 done
4951 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4952 echo "configure:4953: checking for ISO C99 wchar_t support" >&5
4953 if test x"$has_weof" = xyes &&
4954 test x"$has_wchar_minmax" = xyes &&
4955 test x"$ac_wfuncs" = xyes; then
4956 ac_isoC99_wchar_t=yes
4957 else
4958 ac_isoC99_wchar_t=no
4960 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4962 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4963 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4964 echo "configure:4965: checking for iconv.h" >&5
4965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4967 else
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 #include <iconv.h>
4973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4974 { (eval echo configure:4975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4976 if test -z "$ac_err"; then
4977 rm -rf conftest*
4978 eval "ac_cv_header_$ac_safe=yes"
4979 else
4980 echo "$ac_err" >&5
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_header_$ac_safe=no"
4986 rm -f conftest*
4988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_has_iconv_h=yes
4991 else
4992 echo "$ac_t""no" 1>&6
4993 ac_has_iconv_h=no
4996 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4998 echo "configure:4999: checking for langinfo.h" >&5
4999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5001 else
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 #include <langinfo.h>
5007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5011 rm -rf conftest*
5012 eval "ac_cv_header_$ac_safe=yes"
5013 else
5014 echo "$ac_err" >&5
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 rm -rf conftest*
5018 eval "ac_cv_header_$ac_safe=no"
5020 rm -f conftest*
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_has_langinfo_h=yes
5025 else
5026 echo "$ac_t""no" 1>&6
5027 ac_has_langinfo_h=no
5031 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5032 echo "configure:5033: checking for iconv in -liconv" >&5
5033 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037 ac_save_LIBS="$LIBS"
5038 LIBS="-liconv $LIBS"
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5045 char iconv();
5047 int main() {
5048 iconv()
5049 ; return 0; }
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 rm -rf conftest*
5053 eval "ac_cv_lib_$ac_lib_var=yes"
5054 else
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 rm -rf conftest*
5058 eval "ac_cv_lib_$ac_lib_var=no"
5060 rm -f conftest*
5061 LIBS="$ac_save_LIBS"
5064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5065 echo "$ac_t""yes" 1>&6
5066 libiconv="-liconv"
5067 else
5068 echo "$ac_t""no" 1>&6
5071 ac_save_LIBS="$LIBS"
5072 LIBS="$LIBS $libiconv"
5074 for ac_func in iconv_open iconv_close iconv nl_langinfo
5076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5077 echo "configure:5078: checking for $ac_func" >&5
5078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5080 else
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 /* System header to define __stub macros and hopefully few prototypes,
5085 which can conflict with char $ac_func(); below. */
5086 #include <assert.h>
5087 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5090 char $ac_func();
5092 int main() {
5094 /* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5098 choke me
5099 #else
5100 $ac_func();
5101 #endif
5103 ; return 0; }
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 rm -rf conftest*
5107 eval "ac_cv_func_$ac_func=yes"
5108 else
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5111 rm -rf conftest*
5112 eval "ac_cv_func_$ac_func=no"
5114 rm -f conftest*
5117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5120 cat >> confdefs.h <<EOF
5121 #define $ac_tr_func 1
5124 ac_XPG2funcs=yes
5125 else
5126 echo "$ac_t""no" 1>&6
5127 ac_XPG2funcs=no
5129 done
5132 LIBS="$ac_save_LIBS"
5134 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5135 echo "configure:5136: checking for XPG2 wchar_t support" >&5
5136 if test x"$ac_has_iconv_h" = xyes &&
5137 test x"$ac_has_langinfo_h" = xyes &&
5138 test x"$ac_XPG2funcs" = xyes; then
5139 ac_XPG2_wchar_t=yes
5140 else
5141 ac_XPG2_wchar_t=no
5143 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5145 if test x"$ac_isoC99_wchar_t" = xyes &&
5146 test x"$ac_XPG2_wchar_t" = xyes; then
5147 cat >> confdefs.h <<\EOF
5148 #define _GLIBCXX_USE_WCHAR_T 1
5151 enable_wchar_t=yes
5154 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5155 echo "configure:5156: checking for enabled wchar_t specializations" >&5
5156 echo "$ac_t""$enable_wchar_t" 1>&6
5158 cat >> confdefs.h <<\EOF
5159 #define HAVE_LC_MESSAGES 1
5162 cat >> confdefs.h <<\EOF
5163 #define HAVE_DRAND48 1
5166 cat >> confdefs.h <<\EOF
5167 #define HAVE_GETPAGESIZE 1
5170 cat >> confdefs.h <<\EOF
5171 #define HAVE_SETENV 1
5174 cat >> confdefs.h <<\EOF
5175 #define HAVE_SIGSETJMP 1
5178 cat >> confdefs.h <<\EOF
5179 #define HAVE_COPYSIGN 1
5182 cat >> confdefs.h <<\EOF
5183 #define HAVE_COPYSIGNF 1
5186 cat >> confdefs.h <<\EOF
5187 #define HAVE_FINITEF 1
5190 cat >> confdefs.h <<\EOF
5191 #define HAVE_FINITE 1
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_FREXPF 1
5198 cat >> confdefs.h <<\EOF
5199 #define HAVE_HYPOT 1
5202 cat >> confdefs.h <<\EOF
5203 #define HAVE_HYPOTF 1
5206 cat >> confdefs.h <<\EOF
5207 #define HAVE_ISINF 1
5210 cat >> confdefs.h <<\EOF
5211 #define HAVE_ISNAN 1
5214 cat >> confdefs.h <<\EOF
5215 #define HAVE_ISNANF 1
5219 cat >> confdefs.h <<\EOF
5220 #define HAVE_MMAP 1
5223 cat >> confdefs.h <<\EOF
5224 #define HAVE_ACOSF 1
5227 cat >> confdefs.h <<\EOF
5228 #define HAVE_ASINF 1
5231 cat >> confdefs.h <<\EOF
5232 #define HAVE_ATAN2F 1
5235 cat >> confdefs.h <<\EOF
5236 #define HAVE_ATANF 1
5239 cat >> confdefs.h <<\EOF
5240 #define HAVE_CEILF 1
5243 cat >> confdefs.h <<\EOF
5244 #define HAVE_COPYSIGN 1
5247 cat >> confdefs.h <<\EOF
5248 #define HAVE_COPYSIGNF 1
5251 cat >> confdefs.h <<\EOF
5252 #define HAVE_COSF 1
5255 cat >> confdefs.h <<\EOF
5256 #define HAVE_COSHF 1
5259 cat >> confdefs.h <<\EOF
5260 #define HAVE_EXPF 1
5263 cat >> confdefs.h <<\EOF
5264 #define HAVE_FABSF 1
5267 cat >> confdefs.h <<\EOF
5268 #define HAVE_FLOORF 1
5271 cat >> confdefs.h <<\EOF
5272 #define HAVE_FMODF 1
5275 cat >> confdefs.h <<\EOF
5276 #define HAVE_FREXPF 1
5279 cat >> confdefs.h <<\EOF
5280 #define HAVE_LDEXPF 1
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_LOG10F 1
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_LOGF 1
5291 cat >> confdefs.h <<\EOF
5292 #define HAVE_MODFF 1
5295 cat >> confdefs.h <<\EOF
5296 #define HAVE_POWF 1
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_SINF 1
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_SINHF 1
5307 cat >> confdefs.h <<\EOF
5308 #define HAVE_SQRTF 1
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_TANF 1
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_TANHF 1
5319 if test x"long_double_math_on_this_cpu" = x"yes"; then
5320 cat >> confdefs.h <<\EOF
5321 #define HAVE_FINITEL 1
5324 cat >> confdefs.h <<\EOF
5325 #define HAVE_ISINFL 1
5328 cat >> confdefs.h <<\EOF
5329 #define HAVE_ISNANL 1
5334 *-hpux*)
5335 os_include_dir="os/hpux"
5336 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5337 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5338 fp.h locale.h float.h inttypes.h
5340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5342 echo "configure:5343: checking for $ac_hdr" >&5
5343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 #include <$ac_hdr>
5351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5352 { (eval echo configure:5353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5354 if test -z "$ac_err"; then
5355 rm -rf conftest*
5356 eval "ac_cv_header_$ac_safe=yes"
5357 else
5358 echo "$ac_err" >&5
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 rm -rf conftest*
5362 eval "ac_cv_header_$ac_safe=no"
5364 rm -f conftest*
5366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5369 cat >> confdefs.h <<EOF
5370 #define $ac_tr_hdr 1
5373 else
5374 echo "$ac_t""no" 1>&6
5376 done
5378 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5381 # If we're not using GNU ld, then there's no point in even trying these
5382 # tests. Check for that first. We should have already tested for gld
5383 # by now (in libtool), but require it now just to be safe...
5384 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5385 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5388 # The name set by libtool depends on the version of libtool. Shame on us
5389 # for depending on an impl detail, but c'est la vie. Older versions used
5390 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5391 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5392 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5393 # set (hence we're using an older libtool), then set it.
5394 if test x${with_gnu_ld+set} != xset; then
5395 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5396 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5397 with_gnu_ld=no
5398 else
5399 with_gnu_ld=$ac_cv_prog_gnu_ld
5403 # Start by getting the version number. I think the libtool test already
5404 # does some of this, but throws away the result.
5406 ldver=`$LD --version 2>/dev/null | head -1 | \
5407 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5409 glibcxx_gnu_ld_version=`echo $ldver | \
5410 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5412 # Set --gc-sections.
5413 if test "$with_gnu_ld" = "notbroken"; then
5414 # GNU ld it is! Joy and bunny rabbits!
5416 # All these tests are for C++; save the language and the compiler flags.
5417 # Need to do this so that g++ won't try to link in libstdc++
5418 ac_test_CFLAGS="${CFLAGS+set}"
5419 ac_save_CFLAGS="$CFLAGS"
5420 CFLAGS='-x c++ -Wl,--gc-sections'
5422 # Check for -Wl,--gc-sections
5423 # XXX This test is broken at the moment, as symbols required for
5424 # linking are now in libsupc++ (not built yet.....). In addition,
5425 # this test has cored on solaris in the past. In addition,
5426 # --gc-sections doesn't really work at the moment (keeps on discarding
5427 # used sections, first .eh_frame and now some of the glibc sections for
5428 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5429 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5430 echo "configure:5431: checking for ld that supports -Wl,--gc-sections" >&5
5431 if test "$cross_compiling" = yes; then
5432 ac_sectionLDflags=yes
5433 else
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5438 int main(void)
5440 try { throw 1; }
5441 catch (...) { };
5442 return 0;
5446 if { (eval echo configure:5447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5447 then
5448 ac_sectionLDflags=yes
5449 else
5450 echo "configure: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5452 rm -fr conftest*
5453 ac_sectionLDflags=no
5455 rm -fr conftest*
5458 if test "$ac_test_CFLAGS" = set; then
5459 CFLAGS="$ac_save_CFLAGS"
5460 else
5461 # this is the suspicious part
5462 CFLAGS=''
5464 if test "$ac_sectionLDflags" = "yes"; then
5465 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5467 echo "$ac_t""$ac_sectionLDflags" 1>&6
5470 # Set linker optimization flags.
5471 if test x"$with_gnu_ld" = x"yes"; then
5472 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5479 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5480 echo "configure:5481: checking for main in -lm" >&5
5481 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484 else
5485 ac_save_LIBS="$LIBS"
5486 LIBS="-lm $LIBS"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5491 int main() {
5492 main()
5493 ; return 0; }
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 rm -rf conftest*
5497 eval "ac_cv_lib_$ac_lib_var=yes"
5498 else
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 rm -rf conftest*
5502 eval "ac_cv_lib_$ac_lib_var=no"
5504 rm -f conftest*
5505 LIBS="$ac_save_LIBS"
5508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5510 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5512 cat >> confdefs.h <<EOF
5513 #define $ac_tr_lib 1
5516 LIBS="-lm $LIBS"
5518 else
5519 echo "$ac_t""no" 1>&6
5522 for ac_func in nan copysignf
5524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5525 echo "configure:5526: checking for $ac_func" >&5
5526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5528 else
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char $ac_func(); below. */
5534 #include <assert.h>
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5538 char $ac_func();
5540 int main() {
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5546 choke me
5547 #else
5548 $ac_func();
5549 #endif
5551 ; return 0; }
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5554 rm -rf conftest*
5555 eval "ac_cv_func_$ac_func=yes"
5556 else
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 rm -rf conftest*
5560 eval "ac_cv_func_$ac_func=no"
5562 rm -f conftest*
5565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5568 cat >> confdefs.h <<EOF
5569 #define $ac_tr_func 1
5572 else
5573 echo "$ac_t""no" 1>&6
5574 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5576 done
5579 for ac_func in __signbit
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func(); below. */
5591 #include <assert.h>
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5595 char $ac_func();
5597 int main() {
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5603 choke me
5604 #else
5605 $ac_func();
5606 #endif
5608 ; return 0; }
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=yes"
5613 else
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 rm -rf conftest*
5617 eval "ac_cv_func_$ac_func=no"
5619 rm -f conftest*
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625 cat >> confdefs.h <<EOF
5626 #define $ac_tr_func 1
5629 else
5630 echo "$ac_t""no" 1>&6
5631 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5633 done
5635 for ac_func in __signbitf
5637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5638 echo "configure:5639: checking for $ac_func" >&5
5639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5641 else
5642 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5645 /* System header to define __stub macros and hopefully few prototypes,
5646 which can conflict with char $ac_func(); below. */
5647 #include <assert.h>
5648 /* Override any gcc2 internal prototype to avoid an error. */
5649 /* We use char because int might match the return type of a gcc2
5650 builtin and then its argument prototype would still apply. */
5651 char $ac_func();
5653 int main() {
5655 /* The GNU C library defines this for functions which it implements
5656 to always fail with ENOSYS. Some functions are actually named
5657 something starting with __ and the normal name is an alias. */
5658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5659 choke me
5660 #else
5661 $ac_func();
5662 #endif
5664 ; return 0; }
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 rm -rf conftest*
5668 eval "ac_cv_func_$ac_func=yes"
5669 else
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 rm -rf conftest*
5673 eval "ac_cv_func_$ac_func=no"
5675 rm -f conftest*
5678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5679 echo "$ac_t""yes" 1>&6
5680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5681 cat >> confdefs.h <<EOF
5682 #define $ac_tr_func 1
5685 else
5686 echo "$ac_t""no" 1>&6
5687 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5689 done
5692 if test x$ac_cv_func_copysignl = x"yes"; then
5693 for ac_func in __signbitl
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5705 #include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709 char $ac_func();
5711 int main() {
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 choke me
5718 #else
5719 $ac_func();
5720 #endif
5722 ; return 0; }
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 rm -rf conftest*
5726 eval "ac_cv_func_$ac_func=yes"
5727 else
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=no"
5733 rm -f conftest*
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h <<EOF
5740 #define $ac_tr_func 1
5743 else
5744 echo "$ac_t""no" 1>&6
5745 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5747 done
5751 if test -n "$LIBMATHOBJS"; then
5752 need_libmath=yes
5758 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5759 echo "configure:5760: checking for mbstate_t" >&5
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 #include <wchar.h>
5764 int main() {
5765 mbstate_t teststate;
5766 ; return 0; }
5768 if { (eval echo configure:5769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5769 rm -rf conftest*
5770 have_mbstate_t=yes
5771 else
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5774 rm -rf conftest*
5775 have_mbstate_t=no
5777 rm -f conftest*
5778 echo "$ac_t""$have_mbstate_t" 1>&6
5779 if test x"$have_mbstate_t" = xyes; then
5780 cat >> confdefs.h <<\EOF
5781 #define HAVE_MBSTATE_T 1
5786 for ac_hdr in wchar.h
5788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_hdr" >&5
5791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5793 else
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 #include <$ac_hdr>
5799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5800 { (eval echo configure:5801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5802 if test -z "$ac_err"; then
5803 rm -rf conftest*
5804 eval "ac_cv_header_$ac_safe=yes"
5805 else
5806 echo "$ac_err" >&5
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5809 rm -rf conftest*
5810 eval "ac_cv_header_$ac_safe=no"
5812 rm -f conftest*
5814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5815 echo "$ac_t""yes" 1>&6
5816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5817 cat >> confdefs.h <<EOF
5818 #define $ac_tr_hdr 1
5820 ac_has_wchar_h=yes
5821 else
5822 echo "$ac_t""no" 1>&6
5823 ac_has_wchar_h=no
5825 done
5827 for ac_hdr in wctype.h
5829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_hdr" >&5
5832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 #include <$ac_hdr>
5840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5841 { (eval echo configure:5842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5843 if test -z "$ac_err"; then
5844 rm -rf conftest*
5845 eval "ac_cv_header_$ac_safe=yes"
5846 else
5847 echo "$ac_err" >&5
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5850 rm -rf conftest*
5851 eval "ac_cv_header_$ac_safe=no"
5853 rm -f conftest*
5855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5858 cat >> confdefs.h <<EOF
5859 #define $ac_tr_hdr 1
5861 ac_has_wctype_h=yes
5862 else
5863 echo "$ac_t""no" 1>&6
5864 ac_has_wctype_h=no
5866 done
5869 if test x"$ac_has_wchar_h" = xyes &&
5870 test x"$ac_has_wctype_h" = xyes &&
5871 test x"$enable_c_mbchar" != xno; then
5873 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5874 echo "configure:5875: checking for WCHAR_MIN and WCHAR_MAX" >&5
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 #include <wchar.h>
5879 int main() {
5880 int i = WCHAR_MIN; int j = WCHAR_MAX;
5881 ; return 0; }
5883 if { (eval echo configure:5884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5884 rm -rf conftest*
5885 has_wchar_minmax=yes
5886 else
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 rm -rf conftest*
5890 has_wchar_minmax=no
5892 rm -f conftest*
5893 echo "$ac_t""$has_wchar_minmax" 1>&6
5895 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5896 echo "configure:5897: checking for WEOF" >&5
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5901 #include <wchar.h>
5902 #include <stddef.h>
5903 int main() {
5904 wint_t i = WEOF;
5905 ; return 0; }
5907 if { (eval echo configure:5908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5908 rm -rf conftest*
5909 has_weof=yes
5910 else
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 rm -rf conftest*
5914 has_weof=no
5916 rm -f conftest*
5917 echo "$ac_t""$has_weof" 1>&6
5919 ac_wfuncs=yes
5920 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5923 echo "configure:5924: checking for $ac_func" >&5
5924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5925 echo $ac_n "(cached) $ac_c" 1>&6
5926 else
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5930 /* System header to define __stub macros and hopefully few prototypes,
5931 which can conflict with char $ac_func(); below. */
5932 #include <assert.h>
5933 /* Override any gcc2 internal prototype to avoid an error. */
5934 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */
5936 char $ac_func();
5938 int main() {
5940 /* The GNU C library defines this for functions which it implements
5941 to always fail with ENOSYS. Some functions are actually named
5942 something starting with __ and the normal name is an alias. */
5943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5944 choke me
5945 #else
5946 $ac_func();
5947 #endif
5949 ; return 0; }
5951 if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5952 rm -rf conftest*
5953 eval "ac_cv_func_$ac_func=yes"
5954 else
5955 echo "configure: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5957 rm -rf conftest*
5958 eval "ac_cv_func_$ac_func=no"
5960 rm -f conftest*
5963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5964 echo "$ac_t""yes" 1>&6
5965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5966 cat >> confdefs.h <<EOF
5967 #define $ac_tr_func 1
5970 else
5971 echo "$ac_t""no" 1>&6
5973 ac_wfuncs=no
5975 done
5978 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5979 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5980 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5981 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5982 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5983 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_func" >&5
5987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5989 else
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* System header to define __stub macros and hopefully few prototypes,
5994 which can conflict with char $ac_func(); below. */
5995 #include <assert.h>
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
5999 char $ac_func();
6001 int main() {
6003 /* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007 choke me
6008 #else
6009 $ac_func();
6010 #endif
6012 ; return 0; }
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 rm -rf conftest*
6016 eval "ac_cv_func_$ac_func=yes"
6017 else
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 rm -rf conftest*
6021 eval "ac_cv_func_$ac_func=no"
6023 rm -f conftest*
6026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6029 cat >> confdefs.h <<EOF
6030 #define $ac_tr_func 1
6033 else
6034 echo "$ac_t""no" 1>&6
6036 ac_wfuncs=no
6038 done
6041 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6042 echo "configure:6043: checking for ISO C99 wchar_t support" >&5
6043 if test x"$has_weof" = xyes &&
6044 test x"$has_wchar_minmax" = xyes &&
6045 test x"$ac_wfuncs" = xyes; then
6046 ac_isoC99_wchar_t=yes
6047 else
6048 ac_isoC99_wchar_t=no
6050 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6052 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6053 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6054 echo "configure:6055: checking for iconv.h" >&5
6055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6057 else
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 #include <iconv.h>
6063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6064 { (eval echo configure:6065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6066 if test -z "$ac_err"; then
6067 rm -rf conftest*
6068 eval "ac_cv_header_$ac_safe=yes"
6069 else
6070 echo "$ac_err" >&5
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6073 rm -rf conftest*
6074 eval "ac_cv_header_$ac_safe=no"
6076 rm -f conftest*
6078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_has_iconv_h=yes
6081 else
6082 echo "$ac_t""no" 1>&6
6083 ac_has_iconv_h=no
6086 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6088 echo "configure:6089: checking for langinfo.h" >&5
6089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6091 else
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <langinfo.h>
6097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098 { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100 if test -z "$ac_err"; then
6101 rm -rf conftest*
6102 eval "ac_cv_header_$ac_safe=yes"
6103 else
6104 echo "$ac_err" >&5
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6107 rm -rf conftest*
6108 eval "ac_cv_header_$ac_safe=no"
6110 rm -f conftest*
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_has_langinfo_h=yes
6115 else
6116 echo "$ac_t""no" 1>&6
6117 ac_has_langinfo_h=no
6121 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6122 echo "configure:6123: checking for iconv in -liconv" >&5
6123 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6126 else
6127 ac_save_LIBS="$LIBS"
6128 LIBS="-liconv $LIBS"
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6135 char iconv();
6137 int main() {
6138 iconv()
6139 ; return 0; }
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 rm -rf conftest*
6143 eval "ac_cv_lib_$ac_lib_var=yes"
6144 else
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6147 rm -rf conftest*
6148 eval "ac_cv_lib_$ac_lib_var=no"
6150 rm -f conftest*
6151 LIBS="$ac_save_LIBS"
6154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 libiconv="-liconv"
6157 else
6158 echo "$ac_t""no" 1>&6
6161 ac_save_LIBS="$LIBS"
6162 LIBS="$LIBS $libiconv"
6164 for ac_func in iconv_open iconv_close iconv nl_langinfo
6166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6167 echo "configure:6168: checking for $ac_func" >&5
6168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6170 else
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6174 /* System header to define __stub macros and hopefully few prototypes,
6175 which can conflict with char $ac_func(); below. */
6176 #include <assert.h>
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180 char $ac_func();
6182 int main() {
6184 /* The GNU C library defines this for functions which it implements
6185 to always fail with ENOSYS. Some functions are actually named
6186 something starting with __ and the normal name is an alias. */
6187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6188 choke me
6189 #else
6190 $ac_func();
6191 #endif
6193 ; return 0; }
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 rm -rf conftest*
6197 eval "ac_cv_func_$ac_func=yes"
6198 else
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 rm -rf conftest*
6202 eval "ac_cv_func_$ac_func=no"
6204 rm -f conftest*
6207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6208 echo "$ac_t""yes" 1>&6
6209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6210 cat >> confdefs.h <<EOF
6211 #define $ac_tr_func 1
6214 ac_XPG2funcs=yes
6215 else
6216 echo "$ac_t""no" 1>&6
6217 ac_XPG2funcs=no
6219 done
6222 LIBS="$ac_save_LIBS"
6224 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6225 echo "configure:6226: checking for XPG2 wchar_t support" >&5
6226 if test x"$ac_has_iconv_h" = xyes &&
6227 test x"$ac_has_langinfo_h" = xyes &&
6228 test x"$ac_XPG2funcs" = xyes; then
6229 ac_XPG2_wchar_t=yes
6230 else
6231 ac_XPG2_wchar_t=no
6233 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6235 if test x"$ac_isoC99_wchar_t" = xyes &&
6236 test x"$ac_XPG2_wchar_t" = xyes; then
6237 cat >> confdefs.h <<\EOF
6238 #define _GLIBCXX_USE_WCHAR_T 1
6241 enable_wchar_t=yes
6244 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6245 echo "configure:6246: checking for enabled wchar_t specializations" >&5
6246 echo "$ac_t""$enable_wchar_t" 1>&6
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE_COPYSIGN 1
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_COPYSIGNF 1
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE_FREXPF 1
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_HYPOT 1
6264 case "$target" in
6265 *-hpux10*)
6266 cat >> confdefs.h <<\EOF
6267 #define HAVE_FINITE 1
6270 cat >> confdefs.h <<\EOF
6271 #define HAVE_FINITEF 1
6274 cat >> confdefs.h <<\EOF
6275 #define HAVE_ISINF 1
6278 cat >> confdefs.h <<\EOF
6279 #define HAVE_ISINFF 1
6282 cat >> confdefs.h <<\EOF
6283 #define HAVE_ISNAN 1
6286 cat >> confdefs.h <<\EOF
6287 #define HAVE_ISNANF 1
6291 esac
6293 *-linux*)
6294 os_include_dir="os/gnu-linux"
6295 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6296 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6297 fp.h locale.h float.h inttypes.h
6299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_hdr" >&5
6302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 #include <$ac_hdr>
6310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6311 { (eval echo configure:6312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6313 if test -z "$ac_err"; then
6314 rm -rf conftest*
6315 eval "ac_cv_header_$ac_safe=yes"
6316 else
6317 echo "$ac_err" >&5
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 rm -rf conftest*
6321 eval "ac_cv_header_$ac_safe=no"
6323 rm -f conftest*
6325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_hdr 1
6332 else
6333 echo "$ac_t""no" 1>&6
6335 done
6337 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6340 # If we're not using GNU ld, then there's no point in even trying these
6341 # tests. Check for that first. We should have already tested for gld
6342 # by now (in libtool), but require it now just to be safe...
6343 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6344 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6347 # The name set by libtool depends on the version of libtool. Shame on us
6348 # for depending on an impl detail, but c'est la vie. Older versions used
6349 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6350 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6351 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6352 # set (hence we're using an older libtool), then set it.
6353 if test x${with_gnu_ld+set} != xset; then
6354 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6355 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6356 with_gnu_ld=no
6357 else
6358 with_gnu_ld=$ac_cv_prog_gnu_ld
6362 # Start by getting the version number. I think the libtool test already
6363 # does some of this, but throws away the result.
6365 ldver=`$LD --version 2>/dev/null | head -1 | \
6366 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6368 glibcxx_gnu_ld_version=`echo $ldver | \
6369 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6371 # Set --gc-sections.
6372 if test "$with_gnu_ld" = "notbroken"; then
6373 # GNU ld it is! Joy and bunny rabbits!
6375 # All these tests are for C++; save the language and the compiler flags.
6376 # Need to do this so that g++ won't try to link in libstdc++
6377 ac_test_CFLAGS="${CFLAGS+set}"
6378 ac_save_CFLAGS="$CFLAGS"
6379 CFLAGS='-x c++ -Wl,--gc-sections'
6381 # Check for -Wl,--gc-sections
6382 # XXX This test is broken at the moment, as symbols required for
6383 # linking are now in libsupc++ (not built yet.....). In addition,
6384 # this test has cored on solaris in the past. In addition,
6385 # --gc-sections doesn't really work at the moment (keeps on discarding
6386 # used sections, first .eh_frame and now some of the glibc sections for
6387 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6388 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6389 echo "configure:6390: checking for ld that supports -Wl,--gc-sections" >&5
6390 if test "$cross_compiling" = yes; then
6391 ac_sectionLDflags=yes
6392 else
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6397 int main(void)
6399 try { throw 1; }
6400 catch (...) { };
6401 return 0;
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6406 then
6407 ac_sectionLDflags=yes
6408 else
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6411 rm -fr conftest*
6412 ac_sectionLDflags=no
6414 rm -fr conftest*
6417 if test "$ac_test_CFLAGS" = set; then
6418 CFLAGS="$ac_save_CFLAGS"
6419 else
6420 # this is the suspicious part
6421 CFLAGS=''
6423 if test "$ac_sectionLDflags" = "yes"; then
6424 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6426 echo "$ac_t""$ac_sectionLDflags" 1>&6
6429 # Set linker optimization flags.
6430 if test x"$with_gnu_ld" = x"yes"; then
6431 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6438 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6439 echo "configure:6440: checking for main in -lm" >&5
6440 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443 else
6444 ac_save_LIBS="$LIBS"
6445 LIBS="-lm $LIBS"
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6450 int main() {
6451 main()
6452 ; return 0; }
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6455 rm -rf conftest*
6456 eval "ac_cv_lib_$ac_lib_var=yes"
6457 else
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 rm -rf conftest*
6461 eval "ac_cv_lib_$ac_lib_var=no"
6463 rm -f conftest*
6464 LIBS="$ac_save_LIBS"
6467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6470 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6471 cat >> confdefs.h <<EOF
6472 #define $ac_tr_lib 1
6475 LIBS="-lm $LIBS"
6477 else
6478 echo "$ac_t""no" 1>&6
6481 for ac_func in nan copysignf
6483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_func" >&5
6485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6487 else
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 /* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char $ac_func(); below. */
6493 #include <assert.h>
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6497 char $ac_func();
6499 int main() {
6501 /* The GNU C library defines this for functions which it implements
6502 to always fail with ENOSYS. Some functions are actually named
6503 something starting with __ and the normal name is an alias. */
6504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6505 choke me
6506 #else
6507 $ac_func();
6508 #endif
6510 ; return 0; }
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6513 rm -rf conftest*
6514 eval "ac_cv_func_$ac_func=yes"
6515 else
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6518 rm -rf conftest*
6519 eval "ac_cv_func_$ac_func=no"
6521 rm -f conftest*
6524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6527 cat >> confdefs.h <<EOF
6528 #define $ac_tr_func 1
6531 else
6532 echo "$ac_t""no" 1>&6
6533 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6535 done
6538 for ac_func in __signbit
6540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6541 echo "configure:6542: checking for $ac_func" >&5
6542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6544 else
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 /* System header to define __stub macros and hopefully few prototypes,
6549 which can conflict with char $ac_func(); below. */
6550 #include <assert.h>
6551 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554 char $ac_func();
6556 int main() {
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 choke me
6563 #else
6564 $ac_func();
6565 #endif
6567 ; return 0; }
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570 rm -rf conftest*
6571 eval "ac_cv_func_$ac_func=yes"
6572 else
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6575 rm -rf conftest*
6576 eval "ac_cv_func_$ac_func=no"
6578 rm -f conftest*
6581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6582 echo "$ac_t""yes" 1>&6
6583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6584 cat >> confdefs.h <<EOF
6585 #define $ac_tr_func 1
6588 else
6589 echo "$ac_t""no" 1>&6
6590 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6592 done
6594 for ac_func in __signbitf
6596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6597 echo "configure:6598: checking for $ac_func" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char $ac_func(); below. */
6606 #include <assert.h>
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char $ac_func();
6612 int main() {
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6618 choke me
6619 #else
6620 $ac_func();
6621 #endif
6623 ; return 0; }
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 rm -rf conftest*
6627 eval "ac_cv_func_$ac_func=yes"
6628 else
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6631 rm -rf conftest*
6632 eval "ac_cv_func_$ac_func=no"
6634 rm -f conftest*
6637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6640 cat >> confdefs.h <<EOF
6641 #define $ac_tr_func 1
6644 else
6645 echo "$ac_t""no" 1>&6
6646 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6648 done
6651 if test x$ac_cv_func_copysignl = x"yes"; then
6652 for ac_func in __signbitl
6654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6655 echo "configure:6656: checking for $ac_func" >&5
6656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6658 else
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 /* System header to define __stub macros and hopefully few prototypes,
6663 which can conflict with char $ac_func(); below. */
6664 #include <assert.h>
6665 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6668 char $ac_func();
6670 int main() {
6672 /* The GNU C library defines this for functions which it implements
6673 to always fail with ENOSYS. Some functions are actually named
6674 something starting with __ and the normal name is an alias. */
6675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6676 choke me
6677 #else
6678 $ac_func();
6679 #endif
6681 ; return 0; }
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6684 rm -rf conftest*
6685 eval "ac_cv_func_$ac_func=yes"
6686 else
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 rm -rf conftest*
6690 eval "ac_cv_func_$ac_func=no"
6692 rm -f conftest*
6695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6696 echo "$ac_t""yes" 1>&6
6697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6698 cat >> confdefs.h <<EOF
6699 #define $ac_tr_func 1
6702 else
6703 echo "$ac_t""no" 1>&6
6704 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6706 done
6710 if test -n "$LIBMATHOBJS"; then
6711 need_libmath=yes
6717 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6718 echo "configure:6719: checking for mbstate_t" >&5
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 #include <wchar.h>
6723 int main() {
6724 mbstate_t teststate;
6725 ; return 0; }
6727 if { (eval echo configure:6728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6728 rm -rf conftest*
6729 have_mbstate_t=yes
6730 else
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 rm -rf conftest*
6734 have_mbstate_t=no
6736 rm -f conftest*
6737 echo "$ac_t""$have_mbstate_t" 1>&6
6738 if test x"$have_mbstate_t" = xyes; then
6739 cat >> confdefs.h <<\EOF
6740 #define HAVE_MBSTATE_T 1
6745 for ac_hdr in wchar.h
6747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_hdr" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <$ac_hdr>
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then
6762 rm -rf conftest*
6763 eval "ac_cv_header_$ac_safe=yes"
6764 else
6765 echo "$ac_err" >&5
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6768 rm -rf conftest*
6769 eval "ac_cv_header_$ac_safe=no"
6771 rm -f conftest*
6773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6774 echo "$ac_t""yes" 1>&6
6775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6776 cat >> confdefs.h <<EOF
6777 #define $ac_tr_hdr 1
6779 ac_has_wchar_h=yes
6780 else
6781 echo "$ac_t""no" 1>&6
6782 ac_has_wchar_h=no
6784 done
6786 for ac_hdr in wctype.h
6788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6790 echo "configure:6791: checking for $ac_hdr" >&5
6791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793 else
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 #include <$ac_hdr>
6799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6800 { (eval echo configure:6801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6802 if test -z "$ac_err"; then
6803 rm -rf conftest*
6804 eval "ac_cv_header_$ac_safe=yes"
6805 else
6806 echo "$ac_err" >&5
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 rm -rf conftest*
6810 eval "ac_cv_header_$ac_safe=no"
6812 rm -f conftest*
6814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6817 cat >> confdefs.h <<EOF
6818 #define $ac_tr_hdr 1
6820 ac_has_wctype_h=yes
6821 else
6822 echo "$ac_t""no" 1>&6
6823 ac_has_wctype_h=no
6825 done
6828 if test x"$ac_has_wchar_h" = xyes &&
6829 test x"$ac_has_wctype_h" = xyes &&
6830 test x"$enable_c_mbchar" != xno; then
6832 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6833 echo "configure:6834: checking for WCHAR_MIN and WCHAR_MAX" >&5
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 #include <wchar.h>
6838 int main() {
6839 int i = WCHAR_MIN; int j = WCHAR_MAX;
6840 ; return 0; }
6842 if { (eval echo configure:6843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6843 rm -rf conftest*
6844 has_wchar_minmax=yes
6845 else
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -rf conftest*
6849 has_wchar_minmax=no
6851 rm -f conftest*
6852 echo "$ac_t""$has_wchar_minmax" 1>&6
6854 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6855 echo "configure:6856: checking for WEOF" >&5
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6860 #include <wchar.h>
6861 #include <stddef.h>
6862 int main() {
6863 wint_t i = WEOF;
6864 ; return 0; }
6866 if { (eval echo configure:6867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6867 rm -rf conftest*
6868 has_weof=yes
6869 else
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 rm -rf conftest*
6873 has_weof=no
6875 rm -f conftest*
6876 echo "$ac_t""$has_weof" 1>&6
6878 ac_wfuncs=yes
6879 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6885 else
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6891 #include <assert.h>
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6895 char $ac_func();
6897 int main() {
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6903 choke me
6904 #else
6905 $ac_func();
6906 #endif
6908 ; return 0; }
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 rm -rf conftest*
6912 eval "ac_cv_func_$ac_func=yes"
6913 else
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=no"
6919 rm -f conftest*
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_func 1
6929 else
6930 echo "$ac_t""no" 1>&6
6932 ac_wfuncs=no
6934 done
6937 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6938 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6939 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6940 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6941 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6942 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6948 else
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func(); below. */
6954 #include <assert.h>
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958 char $ac_func();
6960 int main() {
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 choke me
6967 #else
6968 $ac_func();
6969 #endif
6971 ; return 0; }
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 rm -rf conftest*
6975 eval "ac_cv_func_$ac_func=yes"
6976 else
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 eval "ac_cv_func_$ac_func=no"
6982 rm -f conftest*
6985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6992 else
6993 echo "$ac_t""no" 1>&6
6995 ac_wfuncs=no
6997 done
7000 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7001 echo "configure:7002: checking for ISO C99 wchar_t support" >&5
7002 if test x"$has_weof" = xyes &&
7003 test x"$has_wchar_minmax" = xyes &&
7004 test x"$ac_wfuncs" = xyes; then
7005 ac_isoC99_wchar_t=yes
7006 else
7007 ac_isoC99_wchar_t=no
7009 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7011 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7012 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7013 echo "configure:7014: checking for iconv.h" >&5
7014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7016 else
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 #include <iconv.h>
7022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7023 { (eval echo configure:7024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7025 if test -z "$ac_err"; then
7026 rm -rf conftest*
7027 eval "ac_cv_header_$ac_safe=yes"
7028 else
7029 echo "$ac_err" >&5
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 rm -rf conftest*
7033 eval "ac_cv_header_$ac_safe=no"
7035 rm -f conftest*
7037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7038 echo "$ac_t""yes" 1>&6
7039 ac_has_iconv_h=yes
7040 else
7041 echo "$ac_t""no" 1>&6
7042 ac_has_iconv_h=no
7045 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7046 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7047 echo "configure:7048: checking for langinfo.h" >&5
7048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 #include <langinfo.h>
7056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7057 { (eval echo configure:7058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7059 if test -z "$ac_err"; then
7060 rm -rf conftest*
7061 eval "ac_cv_header_$ac_safe=yes"
7062 else
7063 echo "$ac_err" >&5
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7066 rm -rf conftest*
7067 eval "ac_cv_header_$ac_safe=no"
7069 rm -f conftest*
7071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7073 ac_has_langinfo_h=yes
7074 else
7075 echo "$ac_t""no" 1>&6
7076 ac_has_langinfo_h=no
7080 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7081 echo "configure:7082: checking for iconv in -liconv" >&5
7082 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7085 else
7086 ac_save_LIBS="$LIBS"
7087 LIBS="-liconv $LIBS"
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7091 /* Override any gcc2 internal prototype to avoid an error. */
7092 /* We use char because int might match the return type of a gcc2
7093 builtin and then its argument prototype would still apply. */
7094 char iconv();
7096 int main() {
7097 iconv()
7098 ; return 0; }
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7101 rm -rf conftest*
7102 eval "ac_cv_lib_$ac_lib_var=yes"
7103 else
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 rm -rf conftest*
7107 eval "ac_cv_lib_$ac_lib_var=no"
7109 rm -f conftest*
7110 LIBS="$ac_save_LIBS"
7113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7115 libiconv="-liconv"
7116 else
7117 echo "$ac_t""no" 1>&6
7120 ac_save_LIBS="$LIBS"
7121 LIBS="$LIBS $libiconv"
7123 for ac_func in iconv_open iconv_close iconv nl_langinfo
7125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7126 echo "configure:7127: checking for $ac_func" >&5
7127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7129 else
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* System header to define __stub macros and hopefully few prototypes,
7134 which can conflict with char $ac_func(); below. */
7135 #include <assert.h>
7136 /* Override any gcc2 internal prototype to avoid an error. */
7137 /* We use char because int might match the return type of a gcc2
7138 builtin and then its argument prototype would still apply. */
7139 char $ac_func();
7141 int main() {
7143 /* The GNU C library defines this for functions which it implements
7144 to always fail with ENOSYS. Some functions are actually named
7145 something starting with __ and the normal name is an alias. */
7146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7147 choke me
7148 #else
7149 $ac_func();
7150 #endif
7152 ; return 0; }
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 rm -rf conftest*
7156 eval "ac_cv_func_$ac_func=yes"
7157 else
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 rm -rf conftest*
7161 eval "ac_cv_func_$ac_func=no"
7163 rm -f conftest*
7166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7167 echo "$ac_t""yes" 1>&6
7168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7169 cat >> confdefs.h <<EOF
7170 #define $ac_tr_func 1
7173 ac_XPG2funcs=yes
7174 else
7175 echo "$ac_t""no" 1>&6
7176 ac_XPG2funcs=no
7178 done
7181 LIBS="$ac_save_LIBS"
7183 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7184 echo "configure:7185: checking for XPG2 wchar_t support" >&5
7185 if test x"$ac_has_iconv_h" = xyes &&
7186 test x"$ac_has_langinfo_h" = xyes &&
7187 test x"$ac_XPG2funcs" = xyes; then
7188 ac_XPG2_wchar_t=yes
7189 else
7190 ac_XPG2_wchar_t=no
7192 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7194 if test x"$ac_isoC99_wchar_t" = xyes &&
7195 test x"$ac_XPG2_wchar_t" = xyes; then
7196 cat >> confdefs.h <<\EOF
7197 #define _GLIBCXX_USE_WCHAR_T 1
7200 enable_wchar_t=yes
7203 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7204 echo "configure:7205: checking for enabled wchar_t specializations" >&5
7205 echo "$ac_t""$enable_wchar_t" 1>&6
7207 cat >> confdefs.h <<\EOF
7208 #define HAVE_COPYSIGN 1
7211 cat >> confdefs.h <<\EOF
7212 #define HAVE_COPYSIGNF 1
7215 cat >> confdefs.h <<\EOF
7216 #define HAVE_FINITE 1
7219 cat >> confdefs.h <<\EOF
7220 #define HAVE_FINITEF 1
7223 cat >> confdefs.h <<\EOF
7224 #define HAVE_FREXPF 1
7227 cat >> confdefs.h <<\EOF
7228 #define HAVE_HYPOTF 1
7231 cat >> confdefs.h <<\EOF
7232 #define HAVE_ISINF 1
7235 cat >> confdefs.h <<\EOF
7236 #define HAVE_ISINFF 1
7239 cat >> confdefs.h <<\EOF
7240 #define HAVE_ISNAN 1
7243 cat >> confdefs.h <<\EOF
7244 #define HAVE_ISNANF 1
7247 cat >> confdefs.h <<\EOF
7248 #define HAVE_SINCOS 1
7251 cat >> confdefs.h <<\EOF
7252 #define HAVE_SINCOSF 1
7255 if test x"long_double_math_on_this_cpu" = x"yes"; then
7256 cat >> confdefs.h <<\EOF
7257 #define HAVE_FINITEL 1
7260 cat >> confdefs.h <<\EOF
7261 #define HAVE_HYPOTL 1
7264 cat >> confdefs.h <<\EOF
7265 #define HAVE_ISINFL 1
7268 cat >> confdefs.h <<\EOF
7269 #define HAVE_ISNANL 1
7274 *-mingw32*)
7275 os_include_dir="os/mingw32"
7276 for ac_hdr in sys/types.h locale.h float.h
7278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7280 echo "configure:7281: checking for $ac_hdr" >&5
7281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7282 echo $ac_n "(cached) $ac_c" 1>&6
7283 else
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 #include <$ac_hdr>
7289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7290 { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7292 if test -z "$ac_err"; then
7293 rm -rf conftest*
7294 eval "ac_cv_header_$ac_safe=yes"
7295 else
7296 echo "$ac_err" >&5
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7299 rm -rf conftest*
7300 eval "ac_cv_header_$ac_safe=no"
7302 rm -f conftest*
7304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7305 echo "$ac_t""yes" 1>&6
7306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7307 cat >> confdefs.h <<EOF
7308 #define $ac_tr_hdr 1
7311 else
7312 echo "$ac_t""no" 1>&6
7314 done
7317 # If we're not using GNU ld, then there's no point in even trying these
7318 # tests. Check for that first. We should have already tested for gld
7319 # by now (in libtool), but require it now just to be safe...
7320 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7321 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7324 # The name set by libtool depends on the version of libtool. Shame on us
7325 # for depending on an impl detail, but c'est la vie. Older versions used
7326 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7327 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7328 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7329 # set (hence we're using an older libtool), then set it.
7330 if test x${with_gnu_ld+set} != xset; then
7331 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7332 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7333 with_gnu_ld=no
7334 else
7335 with_gnu_ld=$ac_cv_prog_gnu_ld
7339 # Start by getting the version number. I think the libtool test already
7340 # does some of this, but throws away the result.
7342 ldver=`$LD --version 2>/dev/null | head -1 | \
7343 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7345 glibcxx_gnu_ld_version=`echo $ldver | \
7346 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7348 # Set --gc-sections.
7349 if test "$with_gnu_ld" = "notbroken"; then
7350 # GNU ld it is! Joy and bunny rabbits!
7352 # All these tests are for C++; save the language and the compiler flags.
7353 # Need to do this so that g++ won't try to link in libstdc++
7354 ac_test_CFLAGS="${CFLAGS+set}"
7355 ac_save_CFLAGS="$CFLAGS"
7356 CFLAGS='-x c++ -Wl,--gc-sections'
7358 # Check for -Wl,--gc-sections
7359 # XXX This test is broken at the moment, as symbols required for
7360 # linking are now in libsupc++ (not built yet.....). In addition,
7361 # this test has cored on solaris in the past. In addition,
7362 # --gc-sections doesn't really work at the moment (keeps on discarding
7363 # used sections, first .eh_frame and now some of the glibc sections for
7364 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7365 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7366 echo "configure:7367: checking for ld that supports -Wl,--gc-sections" >&5
7367 if test "$cross_compiling" = yes; then
7368 ac_sectionLDflags=yes
7369 else
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7374 int main(void)
7376 try { throw 1; }
7377 catch (...) { };
7378 return 0;
7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7383 then
7384 ac_sectionLDflags=yes
7385 else
7386 echo "configure: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 rm -fr conftest*
7389 ac_sectionLDflags=no
7391 rm -fr conftest*
7394 if test "$ac_test_CFLAGS" = set; then
7395 CFLAGS="$ac_save_CFLAGS"
7396 else
7397 # this is the suspicious part
7398 CFLAGS=''
7400 if test "$ac_sectionLDflags" = "yes"; then
7401 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7403 echo "$ac_t""$ac_sectionLDflags" 1>&6
7406 # Set linker optimization flags.
7407 if test x"$with_gnu_ld" = x"yes"; then
7408 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7415 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7416 echo "configure:7417: checking for main in -lm" >&5
7417 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7420 else
7421 ac_save_LIBS="$LIBS"
7422 LIBS="-lm $LIBS"
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7427 int main() {
7428 main()
7429 ; return 0; }
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7432 rm -rf conftest*
7433 eval "ac_cv_lib_$ac_lib_var=yes"
7434 else
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 rm -rf conftest*
7438 eval "ac_cv_lib_$ac_lib_var=no"
7440 rm -f conftest*
7441 LIBS="$ac_save_LIBS"
7444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7448 cat >> confdefs.h <<EOF
7449 #define $ac_tr_lib 1
7452 LIBS="-lm $LIBS"
7454 else
7455 echo "$ac_t""no" 1>&6
7458 for ac_func in nan copysignf
7460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7461 echo "configure:7462: checking for $ac_func" >&5
7462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7464 else
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 /* System header to define __stub macros and hopefully few prototypes,
7469 which can conflict with char $ac_func(); below. */
7470 #include <assert.h>
7471 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474 char $ac_func();
7476 int main() {
7478 /* The GNU C library defines this for functions which it implements
7479 to always fail with ENOSYS. Some functions are actually named
7480 something starting with __ and the normal name is an alias. */
7481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7482 choke me
7483 #else
7484 $ac_func();
7485 #endif
7487 ; return 0; }
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7490 rm -rf conftest*
7491 eval "ac_cv_func_$ac_func=yes"
7492 else
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7495 rm -rf conftest*
7496 eval "ac_cv_func_$ac_func=no"
7498 rm -f conftest*
7501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7502 echo "$ac_t""yes" 1>&6
7503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7504 cat >> confdefs.h <<EOF
7505 #define $ac_tr_func 1
7508 else
7509 echo "$ac_t""no" 1>&6
7510 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7512 done
7515 for ac_func in __signbit
7517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_func" >&5
7519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 /* System header to define __stub macros and hopefully few prototypes,
7526 which can conflict with char $ac_func(); below. */
7527 #include <assert.h>
7528 /* Override any gcc2 internal prototype to avoid an error. */
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7531 char $ac_func();
7533 int main() {
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7539 choke me
7540 #else
7541 $ac_func();
7542 #endif
7544 ; return 0; }
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 rm -rf conftest*
7548 eval "ac_cv_func_$ac_func=yes"
7549 else
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7552 rm -rf conftest*
7553 eval "ac_cv_func_$ac_func=no"
7555 rm -f conftest*
7558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7559 echo "$ac_t""yes" 1>&6
7560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7561 cat >> confdefs.h <<EOF
7562 #define $ac_tr_func 1
7565 else
7566 echo "$ac_t""no" 1>&6
7567 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7569 done
7571 for ac_func in __signbitf
7573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7574 echo "configure:7575: checking for $ac_func" >&5
7575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7577 else
7578 cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7581 /* System header to define __stub macros and hopefully few prototypes,
7582 which can conflict with char $ac_func(); below. */
7583 #include <assert.h>
7584 /* Override any gcc2 internal prototype to avoid an error. */
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7587 char $ac_func();
7589 int main() {
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7595 choke me
7596 #else
7597 $ac_func();
7598 #endif
7600 ; return 0; }
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=yes"
7605 else
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 rm -rf conftest*
7609 eval "ac_cv_func_$ac_func=no"
7611 rm -f conftest*
7614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7617 cat >> confdefs.h <<EOF
7618 #define $ac_tr_func 1
7621 else
7622 echo "$ac_t""no" 1>&6
7623 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7625 done
7628 if test x$ac_cv_func_copysignl = x"yes"; then
7629 for ac_func in __signbitl
7631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7632 echo "configure:7633: checking for $ac_func" >&5
7633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7635 else
7636 cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7639 /* System header to define __stub macros and hopefully few prototypes,
7640 which can conflict with char $ac_func(); below. */
7641 #include <assert.h>
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7645 char $ac_func();
7647 int main() {
7649 /* The GNU C library defines this for functions which it implements
7650 to always fail with ENOSYS. Some functions are actually named
7651 something starting with __ and the normal name is an alias. */
7652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7653 choke me
7654 #else
7655 $ac_func();
7656 #endif
7658 ; return 0; }
7660 if { (eval echo configure:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7661 rm -rf conftest*
7662 eval "ac_cv_func_$ac_func=yes"
7663 else
7664 echo "configure: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 rm -rf conftest*
7667 eval "ac_cv_func_$ac_func=no"
7669 rm -f conftest*
7672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7673 echo "$ac_t""yes" 1>&6
7674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7675 cat >> confdefs.h <<EOF
7676 #define $ac_tr_func 1
7679 else
7680 echo "$ac_t""no" 1>&6
7681 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7683 done
7687 if test -n "$LIBMATHOBJS"; then
7688 need_libmath=yes
7694 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7695 echo "configure:7696: checking for mbstate_t" >&5
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 #include <wchar.h>
7700 int main() {
7701 mbstate_t teststate;
7702 ; return 0; }
7704 if { (eval echo configure:7705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7705 rm -rf conftest*
7706 have_mbstate_t=yes
7707 else
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 rm -rf conftest*
7711 have_mbstate_t=no
7713 rm -f conftest*
7714 echo "$ac_t""$have_mbstate_t" 1>&6
7715 if test x"$have_mbstate_t" = xyes; then
7716 cat >> confdefs.h <<\EOF
7717 #define HAVE_MBSTATE_T 1
7722 for ac_hdr in wchar.h
7724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_hdr" >&5
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 #include <$ac_hdr>
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7738 if test -z "$ac_err"; then
7739 rm -rf conftest*
7740 eval "ac_cv_header_$ac_safe=yes"
7741 else
7742 echo "$ac_err" >&5
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 rm -rf conftest*
7746 eval "ac_cv_header_$ac_safe=no"
7748 rm -f conftest*
7750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7753 cat >> confdefs.h <<EOF
7754 #define $ac_tr_hdr 1
7756 ac_has_wchar_h=yes
7757 else
7758 echo "$ac_t""no" 1>&6
7759 ac_has_wchar_h=no
7761 done
7763 for ac_hdr in wctype.h
7765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7767 echo "configure:7768: checking for $ac_hdr" >&5
7768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 #include <$ac_hdr>
7776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7777 { (eval echo configure:7778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7779 if test -z "$ac_err"; then
7780 rm -rf conftest*
7781 eval "ac_cv_header_$ac_safe=yes"
7782 else
7783 echo "$ac_err" >&5
7784 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7786 rm -rf conftest*
7787 eval "ac_cv_header_$ac_safe=no"
7789 rm -f conftest*
7791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7792 echo "$ac_t""yes" 1>&6
7793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7794 cat >> confdefs.h <<EOF
7795 #define $ac_tr_hdr 1
7797 ac_has_wctype_h=yes
7798 else
7799 echo "$ac_t""no" 1>&6
7800 ac_has_wctype_h=no
7802 done
7805 if test x"$ac_has_wchar_h" = xyes &&
7806 test x"$ac_has_wctype_h" = xyes &&
7807 test x"$enable_c_mbchar" != xno; then
7809 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7810 echo "configure:7811: checking for WCHAR_MIN and WCHAR_MAX" >&5
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7814 #include <wchar.h>
7815 int main() {
7816 int i = WCHAR_MIN; int j = WCHAR_MAX;
7817 ; return 0; }
7819 if { (eval echo configure:7820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7820 rm -rf conftest*
7821 has_wchar_minmax=yes
7822 else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 rm -rf conftest*
7826 has_wchar_minmax=no
7828 rm -f conftest*
7829 echo "$ac_t""$has_wchar_minmax" 1>&6
7831 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7832 echo "configure:7833: checking for WEOF" >&5
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7837 #include <wchar.h>
7838 #include <stddef.h>
7839 int main() {
7840 wint_t i = WEOF;
7841 ; return 0; }
7843 if { (eval echo configure:7844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7844 rm -rf conftest*
7845 has_weof=yes
7846 else
7847 echo "configure: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 rm -rf conftest*
7850 has_weof=no
7852 rm -f conftest*
7853 echo "$ac_t""$has_weof" 1>&6
7855 ac_wfuncs=yes
7856 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_func" >&5
7860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func(); below. */
7868 #include <assert.h>
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char $ac_func();
7874 int main() {
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 choke me
7881 #else
7882 $ac_func();
7883 #endif
7885 ; return 0; }
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 rm -rf conftest*
7889 eval "ac_cv_func_$ac_func=yes"
7890 else
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 rm -rf conftest*
7894 eval "ac_cv_func_$ac_func=no"
7896 rm -f conftest*
7899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_func 1
7906 else
7907 echo "$ac_t""no" 1>&6
7909 ac_wfuncs=no
7911 done
7914 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7915 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7916 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7917 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7918 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7919 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_func" >&5
7923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926 cat > conftest.$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 /* System header to define __stub macros and hopefully few prototypes,
7930 which can conflict with char $ac_func(); below. */
7931 #include <assert.h>
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char $ac_func();
7937 int main() {
7939 /* The GNU C library defines this for functions which it implements
7940 to always fail with ENOSYS. Some functions are actually named
7941 something starting with __ and the normal name is an alias. */
7942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7943 choke me
7944 #else
7945 $ac_func();
7946 #endif
7948 ; return 0; }
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7951 rm -rf conftest*
7952 eval "ac_cv_func_$ac_func=yes"
7953 else
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 rm -rf conftest*
7957 eval "ac_cv_func_$ac_func=no"
7959 rm -f conftest*
7962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7963 echo "$ac_t""yes" 1>&6
7964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7965 cat >> confdefs.h <<EOF
7966 #define $ac_tr_func 1
7969 else
7970 echo "$ac_t""no" 1>&6
7972 ac_wfuncs=no
7974 done
7977 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7978 echo "configure:7979: checking for ISO C99 wchar_t support" >&5
7979 if test x"$has_weof" = xyes &&
7980 test x"$has_wchar_minmax" = xyes &&
7981 test x"$ac_wfuncs" = xyes; then
7982 ac_isoC99_wchar_t=yes
7983 else
7984 ac_isoC99_wchar_t=no
7986 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7988 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7989 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7990 echo "configure:7991: checking for iconv.h" >&5
7991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7993 else
7994 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997 #include <iconv.h>
7999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8000 { (eval echo configure:8001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8002 if test -z "$ac_err"; then
8003 rm -rf conftest*
8004 eval "ac_cv_header_$ac_safe=yes"
8005 else
8006 echo "$ac_err" >&5
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 eval "ac_cv_header_$ac_safe=no"
8012 rm -f conftest*
8014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8015 echo "$ac_t""yes" 1>&6
8016 ac_has_iconv_h=yes
8017 else
8018 echo "$ac_t""no" 1>&6
8019 ac_has_iconv_h=no
8022 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8023 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8024 echo "configure:8025: checking for langinfo.h" >&5
8025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8027 else
8028 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure"
8030 #include "confdefs.h"
8031 #include <langinfo.h>
8033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8034 { (eval echo configure:8035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8036 if test -z "$ac_err"; then
8037 rm -rf conftest*
8038 eval "ac_cv_header_$ac_safe=yes"
8039 else
8040 echo "$ac_err" >&5
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 rm -rf conftest*
8044 eval "ac_cv_header_$ac_safe=no"
8046 rm -f conftest*
8048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_has_langinfo_h=yes
8051 else
8052 echo "$ac_t""no" 1>&6
8053 ac_has_langinfo_h=no
8057 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8058 echo "configure:8059: checking for iconv in -liconv" >&5
8059 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8062 else
8063 ac_save_LIBS="$LIBS"
8064 LIBS="-liconv $LIBS"
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8071 char iconv();
8073 int main() {
8074 iconv()
8075 ; return 0; }
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8078 rm -rf conftest*
8079 eval "ac_cv_lib_$ac_lib_var=yes"
8080 else
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 rm -rf conftest*
8084 eval "ac_cv_lib_$ac_lib_var=no"
8086 rm -f conftest*
8087 LIBS="$ac_save_LIBS"
8090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 libiconv="-liconv"
8093 else
8094 echo "$ac_t""no" 1>&6
8097 ac_save_LIBS="$LIBS"
8098 LIBS="$LIBS $libiconv"
8100 for ac_func in iconv_open iconv_close iconv nl_langinfo
8102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_func" >&5
8104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8106 else
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* System header to define __stub macros and hopefully few prototypes,
8111 which can conflict with char $ac_func(); below. */
8112 #include <assert.h>
8113 /* Override any gcc2 internal prototype to avoid an error. */
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116 char $ac_func();
8118 int main() {
8120 /* The GNU C library defines this for functions which it implements
8121 to always fail with ENOSYS. Some functions are actually named
8122 something starting with __ and the normal name is an alias. */
8123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8124 choke me
8125 #else
8126 $ac_func();
8127 #endif
8129 ; return 0; }
8131 if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8132 rm -rf conftest*
8133 eval "ac_cv_func_$ac_func=yes"
8134 else
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 rm -rf conftest*
8138 eval "ac_cv_func_$ac_func=no"
8140 rm -f conftest*
8143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8144 echo "$ac_t""yes" 1>&6
8145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8146 cat >> confdefs.h <<EOF
8147 #define $ac_tr_func 1
8150 ac_XPG2funcs=yes
8151 else
8152 echo "$ac_t""no" 1>&6
8153 ac_XPG2funcs=no
8155 done
8158 LIBS="$ac_save_LIBS"
8160 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8161 echo "configure:8162: checking for XPG2 wchar_t support" >&5
8162 if test x"$ac_has_iconv_h" = xyes &&
8163 test x"$ac_has_langinfo_h" = xyes &&
8164 test x"$ac_XPG2funcs" = xyes; then
8165 ac_XPG2_wchar_t=yes
8166 else
8167 ac_XPG2_wchar_t=no
8169 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8171 if test x"$ac_isoC99_wchar_t" = xyes &&
8172 test x"$ac_XPG2_wchar_t" = xyes; then
8173 cat >> confdefs.h <<\EOF
8174 #define _GLIBCXX_USE_WCHAR_T 1
8177 enable_wchar_t=yes
8180 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8181 echo "configure:8182: checking for enabled wchar_t specializations" >&5
8182 echo "$ac_t""$enable_wchar_t" 1>&6
8185 *-netbsd*)
8186 os_include_dir="os/bsd/netbsd"
8187 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8188 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8189 fp.h locale.h float.h inttypes.h
8191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_hdr" >&5
8194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 #include <$ac_hdr>
8202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8203 { (eval echo configure:8204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8205 if test -z "$ac_err"; then
8206 rm -rf conftest*
8207 eval "ac_cv_header_$ac_safe=yes"
8208 else
8209 echo "$ac_err" >&5
8210 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 rm -rf conftest*
8213 eval "ac_cv_header_$ac_safe=no"
8215 rm -f conftest*
8217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8218 echo "$ac_t""yes" 1>&6
8219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8220 cat >> confdefs.h <<EOF
8221 #define $ac_tr_hdr 1
8224 else
8225 echo "$ac_t""no" 1>&6
8227 done
8229 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8232 # If we're not using GNU ld, then there's no point in even trying these
8233 # tests. Check for that first. We should have already tested for gld
8234 # by now (in libtool), but require it now just to be safe...
8235 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8236 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8239 # The name set by libtool depends on the version of libtool. Shame on us
8240 # for depending on an impl detail, but c'est la vie. Older versions used
8241 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8242 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8243 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8244 # set (hence we're using an older libtool), then set it.
8245 if test x${with_gnu_ld+set} != xset; then
8246 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8247 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8248 with_gnu_ld=no
8249 else
8250 with_gnu_ld=$ac_cv_prog_gnu_ld
8254 # Start by getting the version number. I think the libtool test already
8255 # does some of this, but throws away the result.
8257 ldver=`$LD --version 2>/dev/null | head -1 | \
8258 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8260 glibcxx_gnu_ld_version=`echo $ldver | \
8261 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8263 # Set --gc-sections.
8264 if test "$with_gnu_ld" = "notbroken"; then
8265 # GNU ld it is! Joy and bunny rabbits!
8267 # All these tests are for C++; save the language and the compiler flags.
8268 # Need to do this so that g++ won't try to link in libstdc++
8269 ac_test_CFLAGS="${CFLAGS+set}"
8270 ac_save_CFLAGS="$CFLAGS"
8271 CFLAGS='-x c++ -Wl,--gc-sections'
8273 # Check for -Wl,--gc-sections
8274 # XXX This test is broken at the moment, as symbols required for
8275 # linking are now in libsupc++ (not built yet.....). In addition,
8276 # this test has cored on solaris in the past. In addition,
8277 # --gc-sections doesn't really work at the moment (keeps on discarding
8278 # used sections, first .eh_frame and now some of the glibc sections for
8279 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8280 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8281 echo "configure:8282: checking for ld that supports -Wl,--gc-sections" >&5
8282 if test "$cross_compiling" = yes; then
8283 ac_sectionLDflags=yes
8284 else
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8289 int main(void)
8291 try { throw 1; }
8292 catch (...) { };
8293 return 0;
8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8298 then
8299 ac_sectionLDflags=yes
8300 else
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 rm -fr conftest*
8304 ac_sectionLDflags=no
8306 rm -fr conftest*
8309 if test "$ac_test_CFLAGS" = set; then
8310 CFLAGS="$ac_save_CFLAGS"
8311 else
8312 # this is the suspicious part
8313 CFLAGS=''
8315 if test "$ac_sectionLDflags" = "yes"; then
8316 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8318 echo "$ac_t""$ac_sectionLDflags" 1>&6
8321 # Set linker optimization flags.
8322 if test x"$with_gnu_ld" = x"yes"; then
8323 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8330 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8331 echo "configure:8332: checking for main in -lm" >&5
8332 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8335 else
8336 ac_save_LIBS="$LIBS"
8337 LIBS="-lm $LIBS"
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8342 int main() {
8343 main()
8344 ; return 0; }
8346 if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8347 rm -rf conftest*
8348 eval "ac_cv_lib_$ac_lib_var=yes"
8349 else
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 rm -rf conftest*
8353 eval "ac_cv_lib_$ac_lib_var=no"
8355 rm -f conftest*
8356 LIBS="$ac_save_LIBS"
8359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8360 echo "$ac_t""yes" 1>&6
8361 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8363 cat >> confdefs.h <<EOF
8364 #define $ac_tr_lib 1
8367 LIBS="-lm $LIBS"
8369 else
8370 echo "$ac_t""no" 1>&6
8373 for ac_func in nan copysignf
8375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8376 echo "configure:8377: checking for $ac_func" >&5
8377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8379 else
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* System header to define __stub macros and hopefully few prototypes,
8384 which can conflict with char $ac_func(); below. */
8385 #include <assert.h>
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389 char $ac_func();
8391 int main() {
8393 /* The GNU C library defines this for functions which it implements
8394 to always fail with ENOSYS. Some functions are actually named
8395 something starting with __ and the normal name is an alias. */
8396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8397 choke me
8398 #else
8399 $ac_func();
8400 #endif
8402 ; return 0; }
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8405 rm -rf conftest*
8406 eval "ac_cv_func_$ac_func=yes"
8407 else
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 rm -rf conftest*
8411 eval "ac_cv_func_$ac_func=no"
8413 rm -f conftest*
8416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8419 cat >> confdefs.h <<EOF
8420 #define $ac_tr_func 1
8423 else
8424 echo "$ac_t""no" 1>&6
8425 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8427 done
8430 for ac_func in __signbit
8432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_func" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8436 else
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func(); below. */
8442 #include <assert.h>
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446 char $ac_func();
8448 int main() {
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8454 choke me
8455 #else
8456 $ac_func();
8457 #endif
8459 ; return 0; }
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 rm -rf conftest*
8463 eval "ac_cv_func_$ac_func=yes"
8464 else
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8467 rm -rf conftest*
8468 eval "ac_cv_func_$ac_func=no"
8470 rm -f conftest*
8473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8476 cat >> confdefs.h <<EOF
8477 #define $ac_tr_func 1
8480 else
8481 echo "$ac_t""no" 1>&6
8482 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8484 done
8486 for ac_func in __signbitf
8488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8489 echo "configure:8490: checking for $ac_func" >&5
8490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6
8492 else
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* System header to define __stub macros and hopefully few prototypes,
8497 which can conflict with char $ac_func(); below. */
8498 #include <assert.h>
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8502 char $ac_func();
8504 int main() {
8506 /* The GNU C library defines this for functions which it implements
8507 to always fail with ENOSYS. Some functions are actually named
8508 something starting with __ and the normal name is an alias. */
8509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8510 choke me
8511 #else
8512 $ac_func();
8513 #endif
8515 ; return 0; }
8517 if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8518 rm -rf conftest*
8519 eval "ac_cv_func_$ac_func=yes"
8520 else
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8523 rm -rf conftest*
8524 eval "ac_cv_func_$ac_func=no"
8526 rm -f conftest*
8529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8530 echo "$ac_t""yes" 1>&6
8531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8532 cat >> confdefs.h <<EOF
8533 #define $ac_tr_func 1
8536 else
8537 echo "$ac_t""no" 1>&6
8538 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8540 done
8543 if test x$ac_cv_func_copysignl = x"yes"; then
8544 for ac_func in __signbitl
8546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8547 echo "configure:8548: checking for $ac_func" >&5
8548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8550 else
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 /* System header to define __stub macros and hopefully few prototypes,
8555 which can conflict with char $ac_func(); below. */
8556 #include <assert.h>
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char $ac_func();
8562 int main() {
8564 /* The GNU C library defines this for functions which it implements
8565 to always fail with ENOSYS. Some functions are actually named
8566 something starting with __ and the normal name is an alias. */
8567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8568 choke me
8569 #else
8570 $ac_func();
8571 #endif
8573 ; return 0; }
8575 if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8576 rm -rf conftest*
8577 eval "ac_cv_func_$ac_func=yes"
8578 else
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8581 rm -rf conftest*
8582 eval "ac_cv_func_$ac_func=no"
8584 rm -f conftest*
8587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8588 echo "$ac_t""yes" 1>&6
8589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8590 cat >> confdefs.h <<EOF
8591 #define $ac_tr_func 1
8594 else
8595 echo "$ac_t""no" 1>&6
8596 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8598 done
8602 if test -n "$LIBMATHOBJS"; then
8603 need_libmath=yes
8609 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8610 echo "configure:8611: checking for mbstate_t" >&5
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <wchar.h>
8615 int main() {
8616 mbstate_t teststate;
8617 ; return 0; }
8619 if { (eval echo configure:8620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620 rm -rf conftest*
8621 have_mbstate_t=yes
8622 else
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 rm -rf conftest*
8626 have_mbstate_t=no
8628 rm -f conftest*
8629 echo "$ac_t""$have_mbstate_t" 1>&6
8630 if test x"$have_mbstate_t" = xyes; then
8631 cat >> confdefs.h <<\EOF
8632 #define HAVE_MBSTATE_T 1
8637 for ac_hdr in wchar.h
8639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8641 echo "configure:8642: checking for $ac_hdr" >&5
8642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8644 else
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 #include <$ac_hdr>
8650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8651 { (eval echo configure:8652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8653 if test -z "$ac_err"; then
8654 rm -rf conftest*
8655 eval "ac_cv_header_$ac_safe=yes"
8656 else
8657 echo "$ac_err" >&5
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 eval "ac_cv_header_$ac_safe=no"
8663 rm -f conftest*
8665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8668 cat >> confdefs.h <<EOF
8669 #define $ac_tr_hdr 1
8671 ac_has_wchar_h=yes
8672 else
8673 echo "$ac_t""no" 1>&6
8674 ac_has_wchar_h=no
8676 done
8678 for ac_hdr in wctype.h
8680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8682 echo "configure:8683: checking for $ac_hdr" >&5
8683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 #include <$ac_hdr>
8691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8692 { (eval echo configure:8693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8694 if test -z "$ac_err"; then
8695 rm -rf conftest*
8696 eval "ac_cv_header_$ac_safe=yes"
8697 else
8698 echo "$ac_err" >&5
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 rm -rf conftest*
8702 eval "ac_cv_header_$ac_safe=no"
8704 rm -f conftest*
8706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8707 echo "$ac_t""yes" 1>&6
8708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8709 cat >> confdefs.h <<EOF
8710 #define $ac_tr_hdr 1
8712 ac_has_wctype_h=yes
8713 else
8714 echo "$ac_t""no" 1>&6
8715 ac_has_wctype_h=no
8717 done
8720 if test x"$ac_has_wchar_h" = xyes &&
8721 test x"$ac_has_wctype_h" = xyes &&
8722 test x"$enable_c_mbchar" != xno; then
8724 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8725 echo "configure:8726: checking for WCHAR_MIN and WCHAR_MAX" >&5
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 #include <wchar.h>
8730 int main() {
8731 int i = WCHAR_MIN; int j = WCHAR_MAX;
8732 ; return 0; }
8734 if { (eval echo configure:8735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8735 rm -rf conftest*
8736 has_wchar_minmax=yes
8737 else
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 has_wchar_minmax=no
8743 rm -f conftest*
8744 echo "$ac_t""$has_wchar_minmax" 1>&6
8746 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8747 echo "configure:8748: checking for WEOF" >&5
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8752 #include <wchar.h>
8753 #include <stddef.h>
8754 int main() {
8755 wint_t i = WEOF;
8756 ; return 0; }
8758 if { (eval echo configure:8759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8759 rm -rf conftest*
8760 has_weof=yes
8761 else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 rm -rf conftest*
8765 has_weof=no
8767 rm -f conftest*
8768 echo "$ac_t""$has_weof" 1>&6
8770 ac_wfuncs=yes
8771 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8774 echo "configure:8775: checking for $ac_func" >&5
8775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8777 else
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char $ac_func(); below. */
8783 #include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8787 char $ac_func();
8789 int main() {
8791 /* The GNU C library defines this for functions which it implements
8792 to always fail with ENOSYS. Some functions are actually named
8793 something starting with __ and the normal name is an alias. */
8794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8795 choke me
8796 #else
8797 $ac_func();
8798 #endif
8800 ; return 0; }
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8803 rm -rf conftest*
8804 eval "ac_cv_func_$ac_func=yes"
8805 else
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=no"
8811 rm -f conftest*
8814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8817 cat >> confdefs.h <<EOF
8818 #define $ac_tr_func 1
8821 else
8822 echo "$ac_t""no" 1>&6
8824 ac_wfuncs=no
8826 done
8829 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8830 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8831 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8832 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8833 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8834 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_func" >&5
8838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840 else
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 /* System header to define __stub macros and hopefully few prototypes,
8845 which can conflict with char $ac_func(); below. */
8846 #include <assert.h>
8847 /* Override any gcc2 internal prototype to avoid an error. */
8848 /* We use char because int might match the return type of a gcc2
8849 builtin and then its argument prototype would still apply. */
8850 char $ac_func();
8852 int main() {
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8858 choke me
8859 #else
8860 $ac_func();
8861 #endif
8863 ; return 0; }
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8866 rm -rf conftest*
8867 eval "ac_cv_func_$ac_func=yes"
8868 else
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 rm -rf conftest*
8872 eval "ac_cv_func_$ac_func=no"
8874 rm -f conftest*
8877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8880 cat >> confdefs.h <<EOF
8881 #define $ac_tr_func 1
8884 else
8885 echo "$ac_t""no" 1>&6
8887 ac_wfuncs=no
8889 done
8892 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8893 echo "configure:8894: checking for ISO C99 wchar_t support" >&5
8894 if test x"$has_weof" = xyes &&
8895 test x"$has_wchar_minmax" = xyes &&
8896 test x"$ac_wfuncs" = xyes; then
8897 ac_isoC99_wchar_t=yes
8898 else
8899 ac_isoC99_wchar_t=no
8901 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8903 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8904 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8905 echo "configure:8906: checking for iconv.h" >&5
8906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 #include <iconv.h>
8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8917 if test -z "$ac_err"; then
8918 rm -rf conftest*
8919 eval "ac_cv_header_$ac_safe=yes"
8920 else
8921 echo "$ac_err" >&5
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8924 rm -rf conftest*
8925 eval "ac_cv_header_$ac_safe=no"
8927 rm -f conftest*
8929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_has_iconv_h=yes
8932 else
8933 echo "$ac_t""no" 1>&6
8934 ac_has_iconv_h=no
8937 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8938 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8939 echo "configure:8940: checking for langinfo.h" >&5
8940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 #include <langinfo.h>
8948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8949 { (eval echo configure:8950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8951 if test -z "$ac_err"; then
8952 rm -rf conftest*
8953 eval "ac_cv_header_$ac_safe=yes"
8954 else
8955 echo "$ac_err" >&5
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8958 rm -rf conftest*
8959 eval "ac_cv_header_$ac_safe=no"
8961 rm -f conftest*
8963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8964 echo "$ac_t""yes" 1>&6
8965 ac_has_langinfo_h=yes
8966 else
8967 echo "$ac_t""no" 1>&6
8968 ac_has_langinfo_h=no
8972 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8973 echo "configure:8974: checking for iconv in -liconv" >&5
8974 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8977 else
8978 ac_save_LIBS="$LIBS"
8979 LIBS="-liconv $LIBS"
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char iconv();
8988 int main() {
8989 iconv()
8990 ; return 0; }
8992 if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 rm -rf conftest*
8994 eval "ac_cv_lib_$ac_lib_var=yes"
8995 else
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 eval "ac_cv_lib_$ac_lib_var=no"
9001 rm -f conftest*
9002 LIBS="$ac_save_LIBS"
9005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 libiconv="-liconv"
9008 else
9009 echo "$ac_t""no" 1>&6
9012 ac_save_LIBS="$LIBS"
9013 LIBS="$LIBS $libiconv"
9015 for ac_func in iconv_open iconv_close iconv nl_langinfo
9017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9018 echo "configure:9019: checking for $ac_func" >&5
9019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9021 else
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char $ac_func(); below. */
9027 #include <assert.h>
9028 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031 char $ac_func();
9033 int main() {
9035 /* The GNU C library defines this for functions which it implements
9036 to always fail with ENOSYS. Some functions are actually named
9037 something starting with __ and the normal name is an alias. */
9038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9039 choke me
9040 #else
9041 $ac_func();
9042 #endif
9044 ; return 0; }
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9047 rm -rf conftest*
9048 eval "ac_cv_func_$ac_func=yes"
9049 else
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9052 rm -rf conftest*
9053 eval "ac_cv_func_$ac_func=no"
9055 rm -f conftest*
9058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9059 echo "$ac_t""yes" 1>&6
9060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9061 cat >> confdefs.h <<EOF
9062 #define $ac_tr_func 1
9065 ac_XPG2funcs=yes
9066 else
9067 echo "$ac_t""no" 1>&6
9068 ac_XPG2funcs=no
9070 done
9073 LIBS="$ac_save_LIBS"
9075 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9076 echo "configure:9077: checking for XPG2 wchar_t support" >&5
9077 if test x"$ac_has_iconv_h" = xyes &&
9078 test x"$ac_has_langinfo_h" = xyes &&
9079 test x"$ac_XPG2funcs" = xyes; then
9080 ac_XPG2_wchar_t=yes
9081 else
9082 ac_XPG2_wchar_t=no
9084 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9086 if test x"$ac_isoC99_wchar_t" = xyes &&
9087 test x"$ac_XPG2_wchar_t" = xyes; then
9088 cat >> confdefs.h <<\EOF
9089 #define _GLIBCXX_USE_WCHAR_T 1
9092 enable_wchar_t=yes
9095 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9096 echo "configure:9097: checking for enabled wchar_t specializations" >&5
9097 echo "$ac_t""$enable_wchar_t" 1>&6
9099 cat >> confdefs.h <<\EOF
9100 #define HAVE_COPYSIGN 1
9103 cat >> confdefs.h <<\EOF
9104 #define HAVE_COPYSIGNF 1
9107 cat >> confdefs.h <<\EOF
9108 #define HAVE_FINITEF 1
9111 cat >> confdefs.h <<\EOF
9112 #define HAVE_FINITE 1
9115 cat >> confdefs.h <<\EOF
9116 #define HAVE_FREXPF 1
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_HYPOTF 1
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_ISINF 1
9127 cat >> confdefs.h <<\EOF
9128 #define HAVE_ISINFF 1
9131 cat >> confdefs.h <<\EOF
9132 #define HAVE_ISNAN 1
9135 cat >> confdefs.h <<\EOF
9136 #define HAVE_ISNANF 1
9139 if test x"long_double_math_on_this_cpu" = x"yes"; then
9140 cat >> confdefs.h <<\EOF
9141 #define HAVE_FINITEL 1
9144 cat >> confdefs.h <<\EOF
9145 #define HAVE_ISINFL 1
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_ISNANL 1
9154 *-qnx6.1* | *-qnx6.2*)
9155 os_include_dir="os/qnx/qnx6.1"
9156 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9159 # If we're not using GNU ld, then there's no point in even trying these
9160 # tests. Check for that first. We should have already tested for gld
9161 # by now (in libtool), but require it now just to be safe...
9162 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9163 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9166 # The name set by libtool depends on the version of libtool. Shame on us
9167 # for depending on an impl detail, but c'est la vie. Older versions used
9168 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9169 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9170 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9171 # set (hence we're using an older libtool), then set it.
9172 if test x${with_gnu_ld+set} != xset; then
9173 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9174 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9175 with_gnu_ld=no
9176 else
9177 with_gnu_ld=$ac_cv_prog_gnu_ld
9181 # Start by getting the version number. I think the libtool test already
9182 # does some of this, but throws away the result.
9184 ldver=`$LD --version 2>/dev/null | head -1 | \
9185 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9187 glibcxx_gnu_ld_version=`echo $ldver | \
9188 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9190 # Set --gc-sections.
9191 if test "$with_gnu_ld" = "notbroken"; then
9192 # GNU ld it is! Joy and bunny rabbits!
9194 # All these tests are for C++; save the language and the compiler flags.
9195 # Need to do this so that g++ won't try to link in libstdc++
9196 ac_test_CFLAGS="${CFLAGS+set}"
9197 ac_save_CFLAGS="$CFLAGS"
9198 CFLAGS='-x c++ -Wl,--gc-sections'
9200 # Check for -Wl,--gc-sections
9201 # XXX This test is broken at the moment, as symbols required for
9202 # linking are now in libsupc++ (not built yet.....). In addition,
9203 # this test has cored on solaris in the past. In addition,
9204 # --gc-sections doesn't really work at the moment (keeps on discarding
9205 # used sections, first .eh_frame and now some of the glibc sections for
9206 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9207 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9208 echo "configure:9209: checking for ld that supports -Wl,--gc-sections" >&5
9209 if test "$cross_compiling" = yes; then
9210 ac_sectionLDflags=yes
9211 else
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9216 int main(void)
9218 try { throw 1; }
9219 catch (...) { };
9220 return 0;
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9225 then
9226 ac_sectionLDflags=yes
9227 else
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 rm -fr conftest*
9231 ac_sectionLDflags=no
9233 rm -fr conftest*
9236 if test "$ac_test_CFLAGS" = set; then
9237 CFLAGS="$ac_save_CFLAGS"
9238 else
9239 # this is the suspicious part
9240 CFLAGS=''
9242 if test "$ac_sectionLDflags" = "yes"; then
9243 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9245 echo "$ac_t""$ac_sectionLDflags" 1>&6
9248 # Set linker optimization flags.
9249 if test x"$with_gnu_ld" = x"yes"; then
9250 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9257 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9258 echo "configure:9259: checking for main in -lm" >&5
9259 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9261 echo $ac_n "(cached) $ac_c" 1>&6
9262 else
9263 ac_save_LIBS="$LIBS"
9264 LIBS="-lm $LIBS"
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9269 int main() {
9270 main()
9271 ; return 0; }
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9274 rm -rf conftest*
9275 eval "ac_cv_lib_$ac_lib_var=yes"
9276 else
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 rm -rf conftest*
9280 eval "ac_cv_lib_$ac_lib_var=no"
9282 rm -f conftest*
9283 LIBS="$ac_save_LIBS"
9286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9287 echo "$ac_t""yes" 1>&6
9288 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9290 cat >> confdefs.h <<EOF
9291 #define $ac_tr_lib 1
9294 LIBS="-lm $LIBS"
9296 else
9297 echo "$ac_t""no" 1>&6
9300 for ac_func in nan copysignf
9302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9303 echo "configure:9304: checking for $ac_func" >&5
9304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9305 echo $ac_n "(cached) $ac_c" 1>&6
9306 else
9307 cat > conftest.$ac_ext <<EOF
9308 #line 9309 "configure"
9309 #include "confdefs.h"
9310 /* System header to define __stub macros and hopefully few prototypes,
9311 which can conflict with char $ac_func(); below. */
9312 #include <assert.h>
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9316 char $ac_func();
9318 int main() {
9320 /* The GNU C library defines this for functions which it implements
9321 to always fail with ENOSYS. Some functions are actually named
9322 something starting with __ and the normal name is an alias. */
9323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9324 choke me
9325 #else
9326 $ac_func();
9327 #endif
9329 ; return 0; }
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 rm -rf conftest*
9333 eval "ac_cv_func_$ac_func=yes"
9334 else
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -rf conftest*
9338 eval "ac_cv_func_$ac_func=no"
9340 rm -f conftest*
9343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9344 echo "$ac_t""yes" 1>&6
9345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9346 cat >> confdefs.h <<EOF
9347 #define $ac_tr_func 1
9350 else
9351 echo "$ac_t""no" 1>&6
9352 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9354 done
9357 for ac_func in __signbit
9359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9360 echo "configure:9361: checking for $ac_func" >&5
9361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9367 /* System header to define __stub macros and hopefully few prototypes,
9368 which can conflict with char $ac_func(); below. */
9369 #include <assert.h>
9370 /* Override any gcc2 internal prototype to avoid an error. */
9371 /* We use char because int might match the return type of a gcc2
9372 builtin and then its argument prototype would still apply. */
9373 char $ac_func();
9375 int main() {
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9381 choke me
9382 #else
9383 $ac_func();
9384 #endif
9386 ; return 0; }
9388 if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 rm -rf conftest*
9390 eval "ac_cv_func_$ac_func=yes"
9391 else
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9394 rm -rf conftest*
9395 eval "ac_cv_func_$ac_func=no"
9397 rm -f conftest*
9400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9401 echo "$ac_t""yes" 1>&6
9402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9403 cat >> confdefs.h <<EOF
9404 #define $ac_tr_func 1
9407 else
9408 echo "$ac_t""no" 1>&6
9409 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9411 done
9413 for ac_func in __signbitf
9415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9416 echo "configure:9417: checking for $ac_func" >&5
9417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func(); below. */
9425 #include <assert.h>
9426 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char $ac_func();
9431 int main() {
9433 /* The GNU C library defines this for functions which it implements
9434 to always fail with ENOSYS. Some functions are actually named
9435 something starting with __ and the normal name is an alias. */
9436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437 choke me
9438 #else
9439 $ac_func();
9440 #endif
9442 ; return 0; }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 rm -rf conftest*
9446 eval "ac_cv_func_$ac_func=yes"
9447 else
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 rm -rf conftest*
9451 eval "ac_cv_func_$ac_func=no"
9453 rm -f conftest*
9456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9457 echo "$ac_t""yes" 1>&6
9458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9459 cat >> confdefs.h <<EOF
9460 #define $ac_tr_func 1
9463 else
9464 echo "$ac_t""no" 1>&6
9465 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9467 done
9470 if test x$ac_cv_func_copysignl = x"yes"; then
9471 for ac_func in __signbitl
9473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9474 echo "configure:9475: checking for $ac_func" >&5
9475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9477 else
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 /* System header to define __stub macros and hopefully few prototypes,
9482 which can conflict with char $ac_func(); below. */
9483 #include <assert.h>
9484 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char $ac_func();
9489 int main() {
9491 /* The GNU C library defines this for functions which it implements
9492 to always fail with ENOSYS. Some functions are actually named
9493 something starting with __ and the normal name is an alias. */
9494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9495 choke me
9496 #else
9497 $ac_func();
9498 #endif
9500 ; return 0; }
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9503 rm -rf conftest*
9504 eval "ac_cv_func_$ac_func=yes"
9505 else
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 rm -rf conftest*
9509 eval "ac_cv_func_$ac_func=no"
9511 rm -f conftest*
9514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9515 echo "$ac_t""yes" 1>&6
9516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9517 cat >> confdefs.h <<EOF
9518 #define $ac_tr_func 1
9521 else
9522 echo "$ac_t""no" 1>&6
9523 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9525 done
9529 if test -n "$LIBMATHOBJS"; then
9530 need_libmath=yes
9536 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9537 echo "configure:9538: checking for mbstate_t" >&5
9538 cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9541 #include <wchar.h>
9542 int main() {
9543 mbstate_t teststate;
9544 ; return 0; }
9546 if { (eval echo configure:9547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9547 rm -rf conftest*
9548 have_mbstate_t=yes
9549 else
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9552 rm -rf conftest*
9553 have_mbstate_t=no
9555 rm -f conftest*
9556 echo "$ac_t""$have_mbstate_t" 1>&6
9557 if test x"$have_mbstate_t" = xyes; then
9558 cat >> confdefs.h <<\EOF
9559 #define HAVE_MBSTATE_T 1
9564 for ac_hdr in wchar.h
9566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9568 echo "configure:9569: checking for $ac_hdr" >&5
9569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9571 else
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 #include <$ac_hdr>
9577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9578 { (eval echo configure:9579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9580 if test -z "$ac_err"; then
9581 rm -rf conftest*
9582 eval "ac_cv_header_$ac_safe=yes"
9583 else
9584 echo "$ac_err" >&5
9585 echo "configure: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9587 rm -rf conftest*
9588 eval "ac_cv_header_$ac_safe=no"
9590 rm -f conftest*
9592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9593 echo "$ac_t""yes" 1>&6
9594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9595 cat >> confdefs.h <<EOF
9596 #define $ac_tr_hdr 1
9598 ac_has_wchar_h=yes
9599 else
9600 echo "$ac_t""no" 1>&6
9601 ac_has_wchar_h=no
9603 done
9605 for ac_hdr in wctype.h
9607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9609 echo "configure:9610: checking for $ac_hdr" >&5
9610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9612 else
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <$ac_hdr>
9618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9619 { (eval echo configure:9620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9621 if test -z "$ac_err"; then
9622 rm -rf conftest*
9623 eval "ac_cv_header_$ac_safe=yes"
9624 else
9625 echo "$ac_err" >&5
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -rf conftest*
9629 eval "ac_cv_header_$ac_safe=no"
9631 rm -f conftest*
9633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9634 echo "$ac_t""yes" 1>&6
9635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9636 cat >> confdefs.h <<EOF
9637 #define $ac_tr_hdr 1
9639 ac_has_wctype_h=yes
9640 else
9641 echo "$ac_t""no" 1>&6
9642 ac_has_wctype_h=no
9644 done
9647 if test x"$ac_has_wchar_h" = xyes &&
9648 test x"$ac_has_wctype_h" = xyes &&
9649 test x"$enable_c_mbchar" != xno; then
9651 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9652 echo "configure:9653: checking for WCHAR_MIN and WCHAR_MAX" >&5
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <wchar.h>
9657 int main() {
9658 int i = WCHAR_MIN; int j = WCHAR_MAX;
9659 ; return 0; }
9661 if { (eval echo configure:9662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9662 rm -rf conftest*
9663 has_wchar_minmax=yes
9664 else
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9667 rm -rf conftest*
9668 has_wchar_minmax=no
9670 rm -f conftest*
9671 echo "$ac_t""$has_wchar_minmax" 1>&6
9673 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9674 echo "configure:9675: checking for WEOF" >&5
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9679 #include <wchar.h>
9680 #include <stddef.h>
9681 int main() {
9682 wint_t i = WEOF;
9683 ; return 0; }
9685 if { (eval echo configure:9686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9686 rm -rf conftest*
9687 has_weof=yes
9688 else
9689 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 rm -rf conftest*
9692 has_weof=no
9694 rm -f conftest*
9695 echo "$ac_t""$has_weof" 1>&6
9697 ac_wfuncs=yes
9698 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9701 echo "configure:9702: checking for $ac_func" >&5
9702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9704 else
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 /* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char $ac_func(); below. */
9710 #include <assert.h>
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9714 char $ac_func();
9716 int main() {
9718 /* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9722 choke me
9723 #else
9724 $ac_func();
9725 #endif
9727 ; return 0; }
9729 if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9730 rm -rf conftest*
9731 eval "ac_cv_func_$ac_func=yes"
9732 else
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -rf conftest*
9736 eval "ac_cv_func_$ac_func=no"
9738 rm -f conftest*
9741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9742 echo "$ac_t""yes" 1>&6
9743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9744 cat >> confdefs.h <<EOF
9745 #define $ac_tr_func 1
9748 else
9749 echo "$ac_t""no" 1>&6
9751 ac_wfuncs=no
9753 done
9756 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9757 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9758 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9759 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9760 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9761 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9764 echo "configure:9765: checking for $ac_func" >&5
9765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9767 else
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* System header to define __stub macros and hopefully few prototypes,
9772 which can conflict with char $ac_func(); below. */
9773 #include <assert.h>
9774 /* Override any gcc2 internal prototype to avoid an error. */
9775 /* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9777 char $ac_func();
9779 int main() {
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9785 choke me
9786 #else
9787 $ac_func();
9788 #endif
9790 ; return 0; }
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9793 rm -rf conftest*
9794 eval "ac_cv_func_$ac_func=yes"
9795 else
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 rm -rf conftest*
9799 eval "ac_cv_func_$ac_func=no"
9801 rm -f conftest*
9804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9805 echo "$ac_t""yes" 1>&6
9806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9807 cat >> confdefs.h <<EOF
9808 #define $ac_tr_func 1
9811 else
9812 echo "$ac_t""no" 1>&6
9814 ac_wfuncs=no
9816 done
9819 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9820 echo "configure:9821: checking for ISO C99 wchar_t support" >&5
9821 if test x"$has_weof" = xyes &&
9822 test x"$has_wchar_minmax" = xyes &&
9823 test x"$ac_wfuncs" = xyes; then
9824 ac_isoC99_wchar_t=yes
9825 else
9826 ac_isoC99_wchar_t=no
9828 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9830 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9831 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9832 echo "configure:9833: checking for iconv.h" >&5
9833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9834 echo $ac_n "(cached) $ac_c" 1>&6
9835 else
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <iconv.h>
9841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9842 { (eval echo configure:9843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9844 if test -z "$ac_err"; then
9845 rm -rf conftest*
9846 eval "ac_cv_header_$ac_safe=yes"
9847 else
9848 echo "$ac_err" >&5
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -rf conftest*
9852 eval "ac_cv_header_$ac_safe=no"
9854 rm -f conftest*
9856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9857 echo "$ac_t""yes" 1>&6
9858 ac_has_iconv_h=yes
9859 else
9860 echo "$ac_t""no" 1>&6
9861 ac_has_iconv_h=no
9864 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9865 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9866 echo "configure:9867: checking for langinfo.h" >&5
9867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9869 else
9870 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure"
9872 #include "confdefs.h"
9873 #include <langinfo.h>
9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9878 if test -z "$ac_err"; then
9879 rm -rf conftest*
9880 eval "ac_cv_header_$ac_safe=yes"
9881 else
9882 echo "$ac_err" >&5
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 rm -rf conftest*
9886 eval "ac_cv_header_$ac_safe=no"
9888 rm -f conftest*
9890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9891 echo "$ac_t""yes" 1>&6
9892 ac_has_langinfo_h=yes
9893 else
9894 echo "$ac_t""no" 1>&6
9895 ac_has_langinfo_h=no
9899 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9900 echo "configure:9901: checking for iconv in -liconv" >&5
9901 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9905 ac_save_LIBS="$LIBS"
9906 LIBS="-liconv $LIBS"
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char iconv();
9915 int main() {
9916 iconv()
9917 ; return 0; }
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9920 rm -rf conftest*
9921 eval "ac_cv_lib_$ac_lib_var=yes"
9922 else
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9925 rm -rf conftest*
9926 eval "ac_cv_lib_$ac_lib_var=no"
9928 rm -f conftest*
9929 LIBS="$ac_save_LIBS"
9932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 libiconv="-liconv"
9935 else
9936 echo "$ac_t""no" 1>&6
9939 ac_save_LIBS="$LIBS"
9940 LIBS="$LIBS $libiconv"
9942 for ac_func in iconv_open iconv_close iconv nl_langinfo
9944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9945 echo "configure:9946: checking for $ac_func" >&5
9946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9947 echo $ac_n "(cached) $ac_c" 1>&6
9948 else
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* System header to define __stub macros and hopefully few prototypes,
9953 which can conflict with char $ac_func(); below. */
9954 #include <assert.h>
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9958 char $ac_func();
9960 int main() {
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9966 choke me
9967 #else
9968 $ac_func();
9969 #endif
9971 ; return 0; }
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 rm -rf conftest*
9975 eval "ac_cv_func_$ac_func=yes"
9976 else
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9979 rm -rf conftest*
9980 eval "ac_cv_func_$ac_func=no"
9982 rm -f conftest*
9985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9986 echo "$ac_t""yes" 1>&6
9987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9988 cat >> confdefs.h <<EOF
9989 #define $ac_tr_func 1
9992 ac_XPG2funcs=yes
9993 else
9994 echo "$ac_t""no" 1>&6
9995 ac_XPG2funcs=no
9997 done
10000 LIBS="$ac_save_LIBS"
10002 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10003 echo "configure:10004: checking for XPG2 wchar_t support" >&5
10004 if test x"$ac_has_iconv_h" = xyes &&
10005 test x"$ac_has_langinfo_h" = xyes &&
10006 test x"$ac_XPG2funcs" = xyes; then
10007 ac_XPG2_wchar_t=yes
10008 else
10009 ac_XPG2_wchar_t=no
10011 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10013 if test x"$ac_isoC99_wchar_t" = xyes &&
10014 test x"$ac_XPG2_wchar_t" = xyes; then
10015 cat >> confdefs.h <<\EOF
10016 #define _GLIBCXX_USE_WCHAR_T 1
10019 enable_wchar_t=yes
10022 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10023 echo "configure:10024: checking for enabled wchar_t specializations" >&5
10024 echo "$ac_t""$enable_wchar_t" 1>&6
10026 cat >> confdefs.h <<\EOF
10027 #define HAVE_COSF 1
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_COSL 1
10034 cat >> confdefs.h <<\EOF
10035 #define HAVE_COSHF 1
10038 cat >> confdefs.h <<\EOF
10039 #define HAVE_COSHL 1
10042 cat >> confdefs.h <<\EOF
10043 #define HAVE_LOGF 1
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_LOGL 1
10050 cat >> confdefs.h <<\EOF
10051 #define HAVE_LOG10F 1
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_LOG10L 1
10058 cat >> confdefs.h <<\EOF
10059 #define HAVE_SINF 1
10062 cat >> confdefs.h <<\EOF
10063 #define HAVE_SINL 1
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_SINHF 1
10070 cat >> confdefs.h <<\EOF
10071 #define HAVE_SINHL 1
10075 *-solaris*)
10076 case "$target" in
10077 *-solaris2.5)
10078 os_include_dir="os/solaris/solaris2.5"
10080 *-solaris2.6)
10081 os_include_dir="os/solaris/solaris2.6"
10083 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10084 os_include_dir="os/solaris/solaris2.7"
10086 esac
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_STRTOF 1
10091 cat >> confdefs.h <<\EOF
10092 #define HAVE_STRTOLD 1
10095 cat >> confdefs.h <<\EOF
10096 #define HAVE_MMAP 1
10099 cat >> confdefs.h <<\EOF
10100 #define HAVE_COPYSIGN 1
10103 cat >> confdefs.h <<\EOF
10104 #define HAVE_ISNAN 1
10107 cat >> confdefs.h <<\EOF
10108 #define HAVE_ISNANF 1
10111 cat >> confdefs.h <<\EOF
10112 #define HAVE_MODFF 1
10115 cat >> confdefs.h <<\EOF
10116 #define HAVE_HYPOT 1
10120 *-windiss*)
10121 os_include_dir="os/windiss"
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_ACOSF 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_ASINF 1
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_ATAN2F 1
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_ATANF 1
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_CEILF 1
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_COPYSIGN 1
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_COPYSIGNF 1
10150 cat >> confdefs.h <<\EOF
10151 #define HAVE_COSF 1
10154 cat >> confdefs.h <<\EOF
10155 #define HAVE_COSHF 1
10158 cat >> confdefs.h <<\EOF
10159 #define HAVE_EXPF 1
10162 cat >> confdefs.h <<\EOF
10163 #define HAVE_FABSF 1
10166 cat >> confdefs.h <<\EOF
10167 #define HAVE_FLOORF 1
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_FMODF 1
10174 cat >> confdefs.h <<\EOF
10175 #define HAVE_FREXPF 1
10178 cat >> confdefs.h <<\EOF
10179 #define HAVE_LDEXPF 1
10182 cat >> confdefs.h <<\EOF
10183 #define HAVE_LOG10F 1
10186 cat >> confdefs.h <<\EOF
10187 #define HAVE_LOGF 1
10190 cat >> confdefs.h <<\EOF
10191 #define HAVE_MODFF 1
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_POWF 1
10198 cat >> confdefs.h <<\EOF
10199 #define HAVE_SINF 1
10202 cat >> confdefs.h <<\EOF
10203 #define HAVE_SINHF 1
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_SQRTF 1
10210 cat >> confdefs.h <<\EOF
10211 #define HAVE_TANF 1
10214 cat >> confdefs.h <<\EOF
10215 #define HAVE_TANHF 1
10220 if test "x${with_newlib}" = "xyes"; then
10221 os_include_dir="os/newlib"
10222 cat >> confdefs.h <<\EOF
10223 #define HAVE_HYPOT 1
10227 # GLIBCXX_CHECK_STDLIB_SUPPORT
10228 cat >> confdefs.h <<\EOF
10229 #define HAVE_STRTOF 1
10232 cat >> confdefs.h <<\EOF
10233 #define HAVE_STRTOLD 1
10236 # AC_FUNC_MMAP
10237 cat >> confdefs.h <<\EOF
10238 #define HAVE_MMAP 1
10242 cat >> confdefs.h <<\EOF
10243 #define HAVE_ACOSF 1
10246 cat >> confdefs.h <<\EOF
10247 #define HAVE_ASINF 1
10250 cat >> confdefs.h <<\EOF
10251 #define HAVE_ATAN2F 1
10254 cat >> confdefs.h <<\EOF
10255 #define HAVE_ATANF 1
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_CEILF 1
10262 cat >> confdefs.h <<\EOF
10263 #define HAVE_COPYSIGN 1
10266 cat >> confdefs.h <<\EOF
10267 #define HAVE_COPYSIGNF 1
10270 cat >> confdefs.h <<\EOF
10271 #define HAVE_COSF 1
10274 cat >> confdefs.h <<\EOF
10275 #define HAVE_COSHF 1
10278 cat >> confdefs.h <<\EOF
10279 #define HAVE_EXPF 1
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_FABSF 1
10286 cat >> confdefs.h <<\EOF
10287 #define HAVE_FLOORF 1
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_FMODF 1
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_FREXPF 1
10298 cat >> confdefs.h <<\EOF
10299 #define HAVE_LDEXPF 1
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_LOG10F 1
10306 cat >> confdefs.h <<\EOF
10307 #define HAVE_LOGF 1
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_MODFF 1
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_POWF 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_SINF 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_SINHF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_SQRTF 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_TANF 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_TANHF 1
10338 else
10339 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10342 esac
10344 # At some point, we should differentiate between architectures
10345 # like x86, which have long double versions, and alpha/powerpc/etc.,
10346 # which don't. For the time being, punt.
10347 if test x"long_double_math_on_this_cpu" = x"yes"; then
10348 cat >> confdefs.h <<\EOF
10349 #define HAVE_ACOSL 1
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_ASINL 1
10356 cat >> confdefs.h <<\EOF
10357 #define HAVE_ATAN2L 1
10360 cat >> confdefs.h <<\EOF
10361 #define HAVE_ATANL 1
10364 cat >> confdefs.h <<\EOF
10365 #define HAVE_CEILL 1
10368 cat >> confdefs.h <<\EOF
10369 #define HAVE_COPYSIGNL 1
10372 cat >> confdefs.h <<\EOF
10373 #define HAVE_COSL 1
10376 cat >> confdefs.h <<\EOF
10377 #define HAVE_COSHL 1
10380 cat >> confdefs.h <<\EOF
10381 #define HAVE_EXPL 1
10384 cat >> confdefs.h <<\EOF
10385 #define HAVE_FABSL 1
10388 cat >> confdefs.h <<\EOF
10389 #define HAVE_FLOORL 1
10392 cat >> confdefs.h <<\EOF
10393 #define HAVE_FMODL 1
10396 cat >> confdefs.h <<\EOF
10397 #define HAVE_FREXPL 1
10400 cat >> confdefs.h <<\EOF
10401 #define HAVE_LDEXPL 1
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_LOG10L 1
10408 cat >> confdefs.h <<\EOF
10409 #define HAVE_LOGL 1
10412 cat >> confdefs.h <<\EOF
10413 #define HAVE_MODFL 1
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE_POWL 1
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_SINCOSL 1
10424 cat >> confdefs.h <<\EOF
10425 #define HAVE_SINL 1
10428 cat >> confdefs.h <<\EOF
10429 #define HAVE_SINHL 1
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_SQRTL 1
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_TANL 1
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_TANHL 1
10446 else
10448 # We are being configured natively. We can do more elaborate tests
10449 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10450 # working.
10451 GLIBCXX_IS_CROSS_COMPILING=false
10452 CANADIAN=no
10454 # Check for available headers.
10455 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10456 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10457 sys/types.h
10459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10461 echo "configure:10462: checking for $ac_hdr" >&5
10462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10463 echo $ac_n "(cached) $ac_c" 1>&6
10464 else
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10468 #include <$ac_hdr>
10470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10471 { (eval echo configure:10472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10473 if test -z "$ac_err"; then
10474 rm -rf conftest*
10475 eval "ac_cv_header_$ac_safe=yes"
10476 else
10477 echo "$ac_err" >&5
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -rf conftest*
10481 eval "ac_cv_header_$ac_safe=no"
10483 rm -f conftest*
10485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10486 echo "$ac_t""yes" 1>&6
10487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10488 cat >> confdefs.h <<EOF
10489 #define $ac_tr_hdr 1
10492 else
10493 echo "$ac_t""no" 1>&6
10495 done
10499 # All these tests are for C++; save the language and the compiler flags.
10500 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10501 # found in GLIBCXX_CONFIGURE.
10503 ac_ext=C
10504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10505 ac_cpp='$CXXCPP $CPPFLAGS'
10506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10508 cross_compiling=$ac_cv_prog_cxx_cross
10510 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10511 ac_save_CXXFLAGS="$CXXFLAGS"
10513 # Check for maintainer-mode bits.
10514 if test x"$USE_MAINTAINER_MODE" = xno; then
10515 WERROR=''
10516 else
10517 WERROR='-Werror'
10520 # Check for -ffunction-sections -fdata-sections
10521 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10522 echo "configure:10523: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10523 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10524 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure"
10526 #include "confdefs.h"
10528 int main() {
10529 int foo;
10531 ; return 0; }
10533 if { (eval echo configure:10534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10534 rm -rf conftest*
10535 ac_fdsections=yes
10536 else
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 rm -rf conftest*
10540 ac_fdsections=no
10542 rm -f conftest*
10543 if test "$ac_test_CXXFLAGS" = set; then
10544 CXXFLAGS="$ac_save_CXXFLAGS"
10545 else
10546 # this is the suspicious part
10547 CXXFLAGS=''
10549 if test x"$ac_fdsections" = x"yes"; then
10550 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10552 echo "$ac_t""$ac_fdsections" 1>&6
10554 ac_ext=c
10555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10556 ac_cpp='$CPP $CPPFLAGS'
10557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10559 cross_compiling=$ac_cv_prog_cc_cross
10565 # If we're not using GNU ld, then there's no point in even trying these
10566 # tests. Check for that first. We should have already tested for gld
10567 # by now (in libtool), but require it now just to be safe...
10568 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10569 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10572 # The name set by libtool depends on the version of libtool. Shame on us
10573 # for depending on an impl detail, but c'est la vie. Older versions used
10574 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10575 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10576 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10577 # set (hence we're using an older libtool), then set it.
10578 if test x${with_gnu_ld+set} != xset; then
10579 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10580 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10581 with_gnu_ld=no
10582 else
10583 with_gnu_ld=$ac_cv_prog_gnu_ld
10587 # Start by getting the version number. I think the libtool test already
10588 # does some of this, but throws away the result.
10590 ldver=`$LD --version 2>/dev/null | head -1 | \
10591 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10593 glibcxx_gnu_ld_version=`echo $ldver | \
10594 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10596 # Set --gc-sections.
10597 if test "$with_gnu_ld" = "notbroken"; then
10598 # GNU ld it is! Joy and bunny rabbits!
10600 # All these tests are for C++; save the language and the compiler flags.
10601 # Need to do this so that g++ won't try to link in libstdc++
10602 ac_test_CFLAGS="${CFLAGS+set}"
10603 ac_save_CFLAGS="$CFLAGS"
10604 CFLAGS='-x c++ -Wl,--gc-sections'
10606 # Check for -Wl,--gc-sections
10607 # XXX This test is broken at the moment, as symbols required for
10608 # linking are now in libsupc++ (not built yet.....). In addition,
10609 # this test has cored on solaris in the past. In addition,
10610 # --gc-sections doesn't really work at the moment (keeps on discarding
10611 # used sections, first .eh_frame and now some of the glibc sections for
10612 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10613 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10614 echo "configure:10615: checking for ld that supports -Wl,--gc-sections" >&5
10615 if test "$cross_compiling" = yes; then
10616 ac_sectionLDflags=yes
10617 else
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10622 int main(void)
10624 try { throw 1; }
10625 catch (...) { };
10626 return 0;
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 then
10632 ac_sectionLDflags=yes
10633 else
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 rm -fr conftest*
10637 ac_sectionLDflags=no
10639 rm -fr conftest*
10642 if test "$ac_test_CFLAGS" = set; then
10643 CFLAGS="$ac_save_CFLAGS"
10644 else
10645 # this is the suspicious part
10646 CFLAGS=''
10648 if test "$ac_sectionLDflags" = "yes"; then
10649 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10651 echo "$ac_t""$ac_sectionLDflags" 1>&6
10654 # Set linker optimization flags.
10655 if test x"$with_gnu_ld" = x"yes"; then
10656 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10663 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10664 ac_save_CXXFLAGS="$CXXFLAGS"
10665 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
10667 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10668 echo "configure:10669: checking for sin in -lm" >&5
10669 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10672 else
10673 ac_save_LIBS="$LIBS"
10674 LIBS="-lm $LIBS"
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 /* Override any gcc2 internal prototype to avoid an error. */
10679 /* We use char because int might match the return type of a gcc2
10680 builtin and then its argument prototype would still apply. */
10681 char sin();
10683 int main() {
10684 sin()
10685 ; return 0; }
10687 if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10688 rm -rf conftest*
10689 eval "ac_cv_lib_$ac_lib_var=yes"
10690 else
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 rm -rf conftest*
10694 eval "ac_cv_lib_$ac_lib_var=no"
10696 rm -f conftest*
10697 LIBS="$ac_save_LIBS"
10700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10701 echo "$ac_t""yes" 1>&6
10702 libm="-lm"
10703 else
10704 echo "$ac_t""no" 1>&6
10707 ac_save_LIBS="$LIBS"
10708 LIBS="$LIBS $libm"
10712 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10713 echo "configure:10714: checking for isinf declaration" >&5
10714 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
10715 if eval "test \"`echo '$''{'glibcxx_cv_func_isinf_use'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10720 ac_ext=C
10721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10725 cross_compiling=$ac_cv_prog_cxx_cross
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 #include <math.h>
10731 #ifdef HAVE_IEEEFP_H
10732 #include <ieeefp.h>
10733 #endif
10735 int main() {
10736 isinf(0);
10737 ; return 0; }
10739 if { (eval echo configure:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10740 rm -rf conftest*
10741 glibcxx_cv_func_isinf_use=yes
10742 else
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -rf conftest*
10746 glibcxx_cv_func_isinf_use=no
10748 rm -f conftest*
10749 ac_ext=c
10750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751 ac_cpp='$CPP $CPPFLAGS'
10752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754 cross_compiling=$ac_cv_prog_cc_cross
10760 echo "$ac_t""$glibcxx_cv_func_isinf_use" 1>&6
10762 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
10763 for ac_func in isinf
10765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10766 echo "configure:10767: checking for $ac_func" >&5
10767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10768 echo $ac_n "(cached) $ac_c" 1>&6
10769 else
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func(); below. */
10775 #include <assert.h>
10776 /* Override any gcc2 internal prototype to avoid an error. */
10777 /* We use char because int might match the return type of a gcc2
10778 builtin and then its argument prototype would still apply. */
10779 char $ac_func();
10781 int main() {
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 $ac_func();
10790 #endif
10792 ; return 0; }
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10795 rm -rf conftest*
10796 eval "ac_cv_func_$ac_func=yes"
10797 else
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 rm -rf conftest*
10801 eval "ac_cv_func_$ac_func=no"
10803 rm -f conftest*
10806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10807 echo "$ac_t""yes" 1>&6
10808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10809 cat >> confdefs.h <<EOF
10810 #define $ac_tr_func 1
10813 else
10814 echo "$ac_t""no" 1>&6
10816 done
10818 else
10820 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10821 echo "configure:10822: checking for _isinf declaration" >&5
10822 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
10823 if eval "test \"`echo '$''{'glibcxx_cv_func__isinf_use'+set}'`\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10825 else
10828 ac_ext=C
10829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10830 ac_cpp='$CXXCPP $CPPFLAGS'
10831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10833 cross_compiling=$ac_cv_prog_cxx_cross
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 #include <math.h>
10839 #ifdef HAVE_IEEEFP_H
10840 #include <ieeefp.h>
10841 #endif
10843 int main() {
10844 _isinf(0);
10845 ; return 0; }
10847 if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10848 rm -rf conftest*
10849 glibcxx_cv_func__isinf_use=yes
10850 else
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 rm -rf conftest*
10854 glibcxx_cv_func__isinf_use=no
10856 rm -f conftest*
10857 ac_ext=c
10858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10859 ac_cpp='$CPP $CPPFLAGS'
10860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10862 cross_compiling=$ac_cv_prog_cc_cross
10868 echo "$ac_t""$glibcxx_cv_func__isinf_use" 1>&6
10870 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
10871 for ac_func in _isinf
10873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10874 echo "configure:10875: checking for $ac_func" >&5
10875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10877 else
10878 cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func(); below. */
10883 #include <assert.h>
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10887 char $ac_func();
10889 int main() {
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 choke me
10896 #else
10897 $ac_func();
10898 #endif
10900 ; return 0; }
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903 rm -rf conftest*
10904 eval "ac_cv_func_$ac_func=yes"
10905 else
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 rm -rf conftest*
10909 eval "ac_cv_func_$ac_func=no"
10911 rm -f conftest*
10914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10917 cat >> confdefs.h <<EOF
10918 #define $ac_tr_func 1
10921 else
10922 echo "$ac_t""no" 1>&6
10924 done
10931 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10932 echo "configure:10933: checking for isnan declaration" >&5
10933 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
10934 if eval "test \"`echo '$''{'glibcxx_cv_func_isnan_use'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10939 ac_ext=C
10940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10941 ac_cpp='$CXXCPP $CPPFLAGS'
10942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10944 cross_compiling=$ac_cv_prog_cxx_cross
10946 cat > conftest.$ac_ext <<EOF
10947 #line 10948 "configure"
10948 #include "confdefs.h"
10949 #include <math.h>
10950 #ifdef HAVE_IEEEFP_H
10951 #include <ieeefp.h>
10952 #endif
10954 int main() {
10955 isnan(0);
10956 ; return 0; }
10958 if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10959 rm -rf conftest*
10960 glibcxx_cv_func_isnan_use=yes
10961 else
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 rm -rf conftest*
10965 glibcxx_cv_func_isnan_use=no
10967 rm -f conftest*
10968 ac_ext=c
10969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10970 ac_cpp='$CPP $CPPFLAGS'
10971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10973 cross_compiling=$ac_cv_prog_cc_cross
10979 echo "$ac_t""$glibcxx_cv_func_isnan_use" 1>&6
10981 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
10982 for ac_func in isnan
10984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_func" >&5
10986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func(); below. */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char $ac_func();
11000 int main() {
11002 /* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 choke me
11007 #else
11008 $ac_func();
11009 #endif
11011 ; return 0; }
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 rm -rf conftest*
11015 eval "ac_cv_func_$ac_func=yes"
11016 else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_func_$ac_func=no"
11022 rm -f conftest*
11025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028 cat >> confdefs.h <<EOF
11029 #define $ac_tr_func 1
11032 else
11033 echo "$ac_t""no" 1>&6
11035 done
11037 else
11039 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11040 echo "configure:11041: checking for _isnan declaration" >&5
11041 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
11042 if eval "test \"`echo '$''{'glibcxx_cv_func__isnan_use'+set}'`\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11044 else
11047 ac_ext=C
11048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11049 ac_cpp='$CXXCPP $CPPFLAGS'
11050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11052 cross_compiling=$ac_cv_prog_cxx_cross
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11057 #include <math.h>
11058 #ifdef HAVE_IEEEFP_H
11059 #include <ieeefp.h>
11060 #endif
11062 int main() {
11063 _isnan(0);
11064 ; return 0; }
11066 if { (eval echo configure:11067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11067 rm -rf conftest*
11068 glibcxx_cv_func__isnan_use=yes
11069 else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 glibcxx_cv_func__isnan_use=no
11075 rm -f conftest*
11076 ac_ext=c
11077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11078 ac_cpp='$CPP $CPPFLAGS'
11079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11081 cross_compiling=$ac_cv_prog_cc_cross
11087 echo "$ac_t""$glibcxx_cv_func__isnan_use" 1>&6
11089 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
11090 for ac_func in _isnan
11092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11093 echo "configure:11094: checking for $ac_func" >&5
11094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11095 echo $ac_n "(cached) $ac_c" 1>&6
11096 else
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* System header to define __stub macros and hopefully few prototypes,
11101 which can conflict with char $ac_func(); below. */
11102 #include <assert.h>
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11106 char $ac_func();
11108 int main() {
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 choke me
11115 #else
11116 $ac_func();
11117 #endif
11119 ; return 0; }
11121 if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11122 rm -rf conftest*
11123 eval "ac_cv_func_$ac_func=yes"
11124 else
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11127 rm -rf conftest*
11128 eval "ac_cv_func_$ac_func=no"
11130 rm -f conftest*
11133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11134 echo "$ac_t""yes" 1>&6
11135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11136 cat >> confdefs.h <<EOF
11137 #define $ac_tr_func 1
11140 else
11141 echo "$ac_t""no" 1>&6
11143 done
11150 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11151 echo "configure:11152: checking for finite declaration" >&5
11152 if test x${glibcxx_cv_func_finite_use+set} != xset; then
11153 if eval "test \"`echo '$''{'glibcxx_cv_func_finite_use'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11158 ac_ext=C
11159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11160 ac_cpp='$CXXCPP $CPPFLAGS'
11161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11163 cross_compiling=$ac_cv_prog_cxx_cross
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <math.h>
11169 #ifdef HAVE_IEEEFP_H
11170 #include <ieeefp.h>
11171 #endif
11173 int main() {
11174 finite(0);
11175 ; return 0; }
11177 if { (eval echo configure:11178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11178 rm -rf conftest*
11179 glibcxx_cv_func_finite_use=yes
11180 else
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11183 rm -rf conftest*
11184 glibcxx_cv_func_finite_use=no
11186 rm -f conftest*
11187 ac_ext=c
11188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11189 ac_cpp='$CPP $CPPFLAGS'
11190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11192 cross_compiling=$ac_cv_prog_cc_cross
11198 echo "$ac_t""$glibcxx_cv_func_finite_use" 1>&6
11200 if test x$glibcxx_cv_func_finite_use = x"yes"; then
11201 for ac_func in finite
11203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11204 echo "configure:11205: checking for $ac_func" >&5
11205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11207 else
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func(); below. */
11213 #include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char $ac_func();
11219 int main() {
11221 /* The GNU C library defines this for functions which it implements
11222 to always fail with ENOSYS. Some functions are actually named
11223 something starting with __ and the normal name is an alias. */
11224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225 choke me
11226 #else
11227 $ac_func();
11228 #endif
11230 ; return 0; }
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11233 rm -rf conftest*
11234 eval "ac_cv_func_$ac_func=yes"
11235 else
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11238 rm -rf conftest*
11239 eval "ac_cv_func_$ac_func=no"
11241 rm -f conftest*
11244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11247 cat >> confdefs.h <<EOF
11248 #define $ac_tr_func 1
11251 else
11252 echo "$ac_t""no" 1>&6
11254 done
11256 else
11258 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11259 echo "configure:11260: checking for _finite declaration" >&5
11260 if test x${glibcxx_cv_func__finite_use+set} != xset; then
11261 if eval "test \"`echo '$''{'glibcxx_cv_func__finite_use'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11263 else
11266 ac_ext=C
11267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11268 ac_cpp='$CXXCPP $CPPFLAGS'
11269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11271 cross_compiling=$ac_cv_prog_cxx_cross
11273 cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include <math.h>
11277 #ifdef HAVE_IEEEFP_H
11278 #include <ieeefp.h>
11279 #endif
11281 int main() {
11282 _finite(0);
11283 ; return 0; }
11285 if { (eval echo configure:11286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11286 rm -rf conftest*
11287 glibcxx_cv_func__finite_use=yes
11288 else
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11291 rm -rf conftest*
11292 glibcxx_cv_func__finite_use=no
11294 rm -f conftest*
11295 ac_ext=c
11296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cc_cross
11306 echo "$ac_t""$glibcxx_cv_func__finite_use" 1>&6
11308 if test x$glibcxx_cv_func__finite_use = x"yes"; then
11309 for ac_func in _finite
11311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11312 echo "configure:11313: checking for $ac_func" >&5
11313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11314 echo $ac_n "(cached) $ac_c" 1>&6
11315 else
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char $ac_func(); below. */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11325 char $ac_func();
11327 int main() {
11329 /* The GNU C library defines this for functions which it implements
11330 to always fail with ENOSYS. Some functions are actually named
11331 something starting with __ and the normal name is an alias. */
11332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11333 choke me
11334 #else
11335 $ac_func();
11336 #endif
11338 ; return 0; }
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341 rm -rf conftest*
11342 eval "ac_cv_func_$ac_func=yes"
11343 else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -rf conftest*
11347 eval "ac_cv_func_$ac_func=no"
11349 rm -f conftest*
11352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11353 echo "$ac_t""yes" 1>&6
11354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11355 cat >> confdefs.h <<EOF
11356 #define $ac_tr_func 1
11359 else
11360 echo "$ac_t""no" 1>&6
11362 done
11369 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11370 echo "configure:11371: checking for copysign declaration" >&5
11371 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
11372 if eval "test \"`echo '$''{'glibcxx_cv_func_copysign_use'+set}'`\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11374 else
11377 ac_ext=C
11378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11379 ac_cpp='$CXXCPP $CPPFLAGS'
11380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11382 cross_compiling=$ac_cv_prog_cxx_cross
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11387 #include <math.h>
11388 int main() {
11389 copysign(0, 0);
11390 ; return 0; }
11392 if { (eval echo configure:11393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11393 rm -rf conftest*
11394 glibcxx_cv_func_copysign_use=yes
11395 else
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11398 rm -rf conftest*
11399 glibcxx_cv_func_copysign_use=no
11401 rm -f conftest*
11402 ac_ext=c
11403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11404 ac_cpp='$CPP $CPPFLAGS'
11405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11407 cross_compiling=$ac_cv_prog_cc_cross
11413 echo "$ac_t""$glibcxx_cv_func_copysign_use" 1>&6
11415 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
11416 for ac_func in copysign
11418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11419 echo "configure:11420: checking for $ac_func" >&5
11420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11422 else
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func(); below. */
11428 #include <assert.h>
11429 /* Override any gcc2 internal prototype to avoid an error. */
11430 /* We use char because int might match the return type of a gcc2
11431 builtin and then its argument prototype would still apply. */
11432 char $ac_func();
11434 int main() {
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11440 choke me
11441 #else
11442 $ac_func();
11443 #endif
11445 ; return 0; }
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 rm -rf conftest*
11449 eval "ac_cv_func_$ac_func=yes"
11450 else
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 rm -rf conftest*
11454 eval "ac_cv_func_$ac_func=no"
11456 rm -f conftest*
11459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11460 echo "$ac_t""yes" 1>&6
11461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11462 cat >> confdefs.h <<EOF
11463 #define $ac_tr_func 1
11466 else
11467 echo "$ac_t""no" 1>&6
11469 done
11471 else
11473 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11474 echo "configure:11475: checking for _copysign declaration" >&5
11475 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
11476 if eval "test \"`echo '$''{'glibcxx_cv_func__copysign_use'+set}'`\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11481 ac_ext=C
11482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11483 ac_cpp='$CXXCPP $CPPFLAGS'
11484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11486 cross_compiling=$ac_cv_prog_cxx_cross
11488 cat > conftest.$ac_ext <<EOF
11489 #line 11490 "configure"
11490 #include "confdefs.h"
11491 #include <math.h>
11492 int main() {
11493 _copysign(0, 0);
11494 ; return 0; }
11496 if { (eval echo configure:11497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11497 rm -rf conftest*
11498 glibcxx_cv_func__copysign_use=yes
11499 else
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 glibcxx_cv_func__copysign_use=no
11505 rm -f conftest*
11506 ac_ext=c
11507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11511 cross_compiling=$ac_cv_prog_cc_cross
11517 echo "$ac_t""$glibcxx_cv_func__copysign_use" 1>&6
11519 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
11520 for ac_func in _copysign
11522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11523 echo "configure:11524: checking for $ac_func" >&5
11524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11525 echo $ac_n "(cached) $ac_c" 1>&6
11526 else
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11530 /* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char $ac_func(); below. */
11532 #include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error. */
11534 /* We use char because int might match the return type of a gcc2
11535 builtin and then its argument prototype would still apply. */
11536 char $ac_func();
11538 int main() {
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11544 choke me
11545 #else
11546 $ac_func();
11547 #endif
11549 ; return 0; }
11551 if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552 rm -rf conftest*
11553 eval "ac_cv_func_$ac_func=yes"
11554 else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558 eval "ac_cv_func_$ac_func=no"
11560 rm -f conftest*
11563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11564 echo "$ac_t""yes" 1>&6
11565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11566 cat >> confdefs.h <<EOF
11567 #define $ac_tr_func 1
11570 else
11571 echo "$ac_t""no" 1>&6
11573 done
11580 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11581 echo "configure:11582: checking for sincos declaration" >&5
11582 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
11583 if eval "test \"`echo '$''{'glibcxx_cv_func_sincos_use'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11585 else
11588 ac_ext=C
11589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CXXCPP $CPPFLAGS'
11591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cxx_cross
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 #include <math.h>
11599 int main() {
11600 sincos(0, 0, 0);
11601 ; return 0; }
11603 if { (eval echo configure:11604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11604 rm -rf conftest*
11605 glibcxx_cv_func_sincos_use=yes
11606 else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -rf conftest*
11610 glibcxx_cv_func_sincos_use=no
11612 rm -f conftest*
11613 ac_ext=c
11614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11618 cross_compiling=$ac_cv_prog_cc_cross
11624 echo "$ac_t""$glibcxx_cv_func_sincos_use" 1>&6
11626 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
11627 for ac_func in sincos
11629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11630 echo "configure:11631: checking for $ac_func" >&5
11631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11633 else
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 /* System header to define __stub macros and hopefully few prototypes,
11638 which can conflict with char $ac_func(); below. */
11639 #include <assert.h>
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 /* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643 char $ac_func();
11645 int main() {
11647 /* The GNU C library defines this for functions which it implements
11648 to always fail with ENOSYS. Some functions are actually named
11649 something starting with __ and the normal name is an alias. */
11650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11651 choke me
11652 #else
11653 $ac_func();
11654 #endif
11656 ; return 0; }
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11659 rm -rf conftest*
11660 eval "ac_cv_func_$ac_func=yes"
11661 else
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 rm -rf conftest*
11665 eval "ac_cv_func_$ac_func=no"
11667 rm -f conftest*
11670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11671 echo "$ac_t""yes" 1>&6
11672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11673 cat >> confdefs.h <<EOF
11674 #define $ac_tr_func 1
11677 else
11678 echo "$ac_t""no" 1>&6
11680 done
11682 else
11684 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11685 echo "configure:11686: checking for _sincos declaration" >&5
11686 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
11687 if eval "test \"`echo '$''{'glibcxx_cv_func__sincos_use'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11689 else
11692 ac_ext=C
11693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11694 ac_cpp='$CXXCPP $CPPFLAGS'
11695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11697 cross_compiling=$ac_cv_prog_cxx_cross
11699 cat > conftest.$ac_ext <<EOF
11700 #line 11701 "configure"
11701 #include "confdefs.h"
11702 #include <math.h>
11703 int main() {
11704 _sincos(0, 0, 0);
11705 ; return 0; }
11707 if { (eval echo configure:11708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11708 rm -rf conftest*
11709 glibcxx_cv_func__sincos_use=yes
11710 else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -rf conftest*
11714 glibcxx_cv_func__sincos_use=no
11716 rm -f conftest*
11717 ac_ext=c
11718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11722 cross_compiling=$ac_cv_prog_cc_cross
11728 echo "$ac_t""$glibcxx_cv_func__sincos_use" 1>&6
11730 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
11731 for ac_func in _sincos
11733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11734 echo "configure:11735: checking for $ac_func" >&5
11735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11736 echo $ac_n "(cached) $ac_c" 1>&6
11737 else
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 /* System header to define __stub macros and hopefully few prototypes,
11742 which can conflict with char $ac_func(); below. */
11743 #include <assert.h>
11744 /* Override any gcc2 internal prototype to avoid an error. */
11745 /* We use char because int might match the return type of a gcc2
11746 builtin and then its argument prototype would still apply. */
11747 char $ac_func();
11749 int main() {
11751 /* The GNU C library defines this for functions which it implements
11752 to always fail with ENOSYS. Some functions are actually named
11753 something starting with __ and the normal name is an alias. */
11754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11755 choke me
11756 #else
11757 $ac_func();
11758 #endif
11760 ; return 0; }
11762 if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11763 rm -rf conftest*
11764 eval "ac_cv_func_$ac_func=yes"
11765 else
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11768 rm -rf conftest*
11769 eval "ac_cv_func_$ac_func=no"
11771 rm -f conftest*
11774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11775 echo "$ac_t""yes" 1>&6
11776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11777 cat >> confdefs.h <<EOF
11778 #define $ac_tr_func 1
11781 else
11782 echo "$ac_t""no" 1>&6
11784 done
11791 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11792 echo "configure:11793: checking for fpclass declaration" >&5
11793 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
11794 if eval "test \"`echo '$''{'glibcxx_cv_func_fpclass_use'+set}'`\" = set"; then
11795 echo $ac_n "(cached) $ac_c" 1>&6
11796 else
11799 ac_ext=C
11800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11801 ac_cpp='$CXXCPP $CPPFLAGS'
11802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11804 cross_compiling=$ac_cv_prog_cxx_cross
11806 cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11809 #include <math.h>
11810 #ifdef HAVE_IEEEFP_H
11811 #include <ieeefp.h>
11812 #endif
11814 int main() {
11815 fpclass(0);
11816 ; return 0; }
11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11819 rm -rf conftest*
11820 glibcxx_cv_func_fpclass_use=yes
11821 else
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11824 rm -rf conftest*
11825 glibcxx_cv_func_fpclass_use=no
11827 rm -f conftest*
11828 ac_ext=c
11829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11833 cross_compiling=$ac_cv_prog_cc_cross
11839 echo "$ac_t""$glibcxx_cv_func_fpclass_use" 1>&6
11841 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
11842 for ac_func in fpclass
11844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11845 echo "configure:11846: checking for $ac_func" >&5
11846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11848 else
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 /* System header to define __stub macros and hopefully few prototypes,
11853 which can conflict with char $ac_func(); below. */
11854 #include <assert.h>
11855 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11858 char $ac_func();
11860 int main() {
11862 /* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11866 choke me
11867 #else
11868 $ac_func();
11869 #endif
11871 ; return 0; }
11873 if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 rm -rf conftest*
11875 eval "ac_cv_func_$ac_func=yes"
11876 else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 rm -rf conftest*
11880 eval "ac_cv_func_$ac_func=no"
11882 rm -f conftest*
11885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11886 echo "$ac_t""yes" 1>&6
11887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11888 cat >> confdefs.h <<EOF
11889 #define $ac_tr_func 1
11892 else
11893 echo "$ac_t""no" 1>&6
11895 done
11897 else
11899 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11900 echo "configure:11901: checking for _fpclass declaration" >&5
11901 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
11902 if eval "test \"`echo '$''{'glibcxx_cv_func__fpclass_use'+set}'`\" = set"; then
11903 echo $ac_n "(cached) $ac_c" 1>&6
11904 else
11907 ac_ext=C
11908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11909 ac_cpp='$CXXCPP $CPPFLAGS'
11910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11912 cross_compiling=$ac_cv_prog_cxx_cross
11914 cat > conftest.$ac_ext <<EOF
11915 #line 11916 "configure"
11916 #include "confdefs.h"
11917 #include <math.h>
11918 #ifdef HAVE_IEEEFP_H
11919 #include <ieeefp.h>
11920 #endif
11922 int main() {
11923 _fpclass(0);
11924 ; return 0; }
11926 if { (eval echo configure:11927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11927 rm -rf conftest*
11928 glibcxx_cv_func__fpclass_use=yes
11929 else
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11932 rm -rf conftest*
11933 glibcxx_cv_func__fpclass_use=no
11935 rm -f conftest*
11936 ac_ext=c
11937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11941 cross_compiling=$ac_cv_prog_cc_cross
11947 echo "$ac_t""$glibcxx_cv_func__fpclass_use" 1>&6
11949 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
11950 for ac_func in _fpclass
11952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11953 echo "configure:11954: checking for $ac_func" >&5
11954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956 else
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char $ac_func(); below. */
11962 #include <assert.h>
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966 char $ac_func();
11968 int main() {
11970 /* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974 choke me
11975 #else
11976 $ac_func();
11977 #endif
11979 ; return 0; }
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11982 rm -rf conftest*
11983 eval "ac_cv_func_$ac_func=yes"
11984 else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 eval "ac_cv_func_$ac_func=no"
11990 rm -f conftest*
11993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11994 echo "$ac_t""yes" 1>&6
11995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11996 cat >> confdefs.h <<EOF
11997 #define $ac_tr_func 1
12000 else
12001 echo "$ac_t""no" 1>&6
12003 done
12010 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12011 echo "configure:12012: checking for qfpclass declaration" >&5
12012 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
12013 if eval "test \"`echo '$''{'glibcxx_cv_func_qfpclass_use'+set}'`\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12015 else
12018 ac_ext=C
12019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12020 ac_cpp='$CXXCPP $CPPFLAGS'
12021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12023 cross_compiling=$ac_cv_prog_cxx_cross
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12028 #include <math.h>
12029 #ifdef HAVE_IEEEFP_H
12030 #include <ieeefp.h>
12031 #endif
12033 int main() {
12034 qfpclass(0);
12035 ; return 0; }
12037 if { (eval echo configure:12038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12038 rm -rf conftest*
12039 glibcxx_cv_func_qfpclass_use=yes
12040 else
12041 echo "configure: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12043 rm -rf conftest*
12044 glibcxx_cv_func_qfpclass_use=no
12046 rm -f conftest*
12047 ac_ext=c
12048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12052 cross_compiling=$ac_cv_prog_cc_cross
12058 echo "$ac_t""$glibcxx_cv_func_qfpclass_use" 1>&6
12060 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
12061 for ac_func in qfpclass
12063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12064 echo "configure:12065: checking for $ac_func" >&5
12065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12066 echo $ac_n "(cached) $ac_c" 1>&6
12067 else
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 /* System header to define __stub macros and hopefully few prototypes,
12072 which can conflict with char $ac_func(); below. */
12073 #include <assert.h>
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12077 char $ac_func();
12079 int main() {
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 $ac_func();
12088 #endif
12090 ; return 0; }
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093 rm -rf conftest*
12094 eval "ac_cv_func_$ac_func=yes"
12095 else
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_func_$ac_func=no"
12101 rm -f conftest*
12104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12105 echo "$ac_t""yes" 1>&6
12106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12107 cat >> confdefs.h <<EOF
12108 #define $ac_tr_func 1
12111 else
12112 echo "$ac_t""no" 1>&6
12114 done
12116 else
12118 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12119 echo "configure:12120: checking for _qfpclass declaration" >&5
12120 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
12121 if eval "test \"`echo '$''{'glibcxx_cv_func__qfpclass_use'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12126 ac_ext=C
12127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12128 ac_cpp='$CXXCPP $CPPFLAGS'
12129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12131 cross_compiling=$ac_cv_prog_cxx_cross
12133 cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 #include <math.h>
12137 #ifdef HAVE_IEEEFP_H
12138 #include <ieeefp.h>
12139 #endif
12141 int main() {
12142 _qfpclass(0);
12143 ; return 0; }
12145 if { (eval echo configure:12146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12146 rm -rf conftest*
12147 glibcxx_cv_func__qfpclass_use=yes
12148 else
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -rf conftest*
12152 glibcxx_cv_func__qfpclass_use=no
12154 rm -f conftest*
12155 ac_ext=c
12156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12160 cross_compiling=$ac_cv_prog_cc_cross
12166 echo "$ac_t""$glibcxx_cv_func__qfpclass_use" 1>&6
12168 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
12169 for ac_func in _qfpclass
12171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12172 echo "configure:12173: checking for $ac_func" >&5
12173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func(); below. */
12181 #include <assert.h>
12182 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char $ac_func();
12187 int main() {
12189 /* The GNU C library defines this for functions which it implements
12190 to always fail with ENOSYS. Some functions are actually named
12191 something starting with __ and the normal name is an alias. */
12192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 choke me
12194 #else
12195 $ac_func();
12196 #endif
12198 ; return 0; }
12200 if { (eval echo configure:12201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12201 rm -rf conftest*
12202 eval "ac_cv_func_$ac_func=yes"
12203 else
12204 echo "configure: failed program was:" >&5
12205 cat conftest.$ac_ext >&5
12206 rm -rf conftest*
12207 eval "ac_cv_func_$ac_func=no"
12209 rm -f conftest*
12212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12213 echo "$ac_t""yes" 1>&6
12214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12215 cat >> confdefs.h <<EOF
12216 #define $ac_tr_func 1
12219 else
12220 echo "$ac_t""no" 1>&6
12222 done
12229 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12230 echo "configure:12231: checking for hypot declaration" >&5
12231 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
12232 if eval "test \"`echo '$''{'glibcxx_cv_func_hypot_use'+set}'`\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12234 else
12237 ac_ext=C
12238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12239 ac_cpp='$CXXCPP $CPPFLAGS'
12240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12242 cross_compiling=$ac_cv_prog_cxx_cross
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 #include <math.h>
12248 int main() {
12249 hypot(0, 0);
12250 ; return 0; }
12252 if { (eval echo configure:12253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12253 rm -rf conftest*
12254 glibcxx_cv_func_hypot_use=yes
12255 else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -rf conftest*
12259 glibcxx_cv_func_hypot_use=no
12261 rm -f conftest*
12262 ac_ext=c
12263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12264 ac_cpp='$CPP $CPPFLAGS'
12265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12267 cross_compiling=$ac_cv_prog_cc_cross
12273 echo "$ac_t""$glibcxx_cv_func_hypot_use" 1>&6
12275 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
12276 for ac_func in hypot
12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12279 echo "configure:12280: checking for $ac_func" >&5
12280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12282 else
12283 cat > conftest.$ac_ext <<EOF
12284 #line 12285 "configure"
12285 #include "confdefs.h"
12286 /* System header to define __stub macros and hopefully few prototypes,
12287 which can conflict with char $ac_func(); below. */
12288 #include <assert.h>
12289 /* Override any gcc2 internal prototype to avoid an error. */
12290 /* We use char because int might match the return type of a gcc2
12291 builtin and then its argument prototype would still apply. */
12292 char $ac_func();
12294 int main() {
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12300 choke me
12301 #else
12302 $ac_func();
12303 #endif
12305 ; return 0; }
12307 if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12308 rm -rf conftest*
12309 eval "ac_cv_func_$ac_func=yes"
12310 else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -rf conftest*
12314 eval "ac_cv_func_$ac_func=no"
12316 rm -f conftest*
12319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12320 echo "$ac_t""yes" 1>&6
12321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12322 cat >> confdefs.h <<EOF
12323 #define $ac_tr_func 1
12326 else
12327 echo "$ac_t""no" 1>&6
12329 done
12331 else
12333 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12334 echo "configure:12335: checking for _hypot declaration" >&5
12335 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
12336 if eval "test \"`echo '$''{'glibcxx_cv_func__hypot_use'+set}'`\" = set"; then
12337 echo $ac_n "(cached) $ac_c" 1>&6
12338 else
12341 ac_ext=C
12342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12343 ac_cpp='$CXXCPP $CPPFLAGS'
12344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12346 cross_compiling=$ac_cv_prog_cxx_cross
12348 cat > conftest.$ac_ext <<EOF
12349 #line 12350 "configure"
12350 #include "confdefs.h"
12351 #include <math.h>
12352 int main() {
12353 _hypot(0, 0);
12354 ; return 0; }
12356 if { (eval echo configure:12357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12357 rm -rf conftest*
12358 glibcxx_cv_func__hypot_use=yes
12359 else
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12362 rm -rf conftest*
12363 glibcxx_cv_func__hypot_use=no
12365 rm -f conftest*
12366 ac_ext=c
12367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12371 cross_compiling=$ac_cv_prog_cc_cross
12377 echo "$ac_t""$glibcxx_cv_func__hypot_use" 1>&6
12379 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
12380 for ac_func in _hypot
12382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12383 echo "configure:12384: checking for $ac_func" >&5
12384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12385 echo $ac_n "(cached) $ac_c" 1>&6
12386 else
12387 cat > conftest.$ac_ext <<EOF
12388 #line 12389 "configure"
12389 #include "confdefs.h"
12390 /* System header to define __stub macros and hopefully few prototypes,
12391 which can conflict with char $ac_func(); below. */
12392 #include <assert.h>
12393 /* Override any gcc2 internal prototype to avoid an error. */
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char $ac_func();
12398 int main() {
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12404 choke me
12405 #else
12406 $ac_func();
12407 #endif
12409 ; return 0; }
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12412 rm -rf conftest*
12413 eval "ac_cv_func_$ac_func=yes"
12414 else
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12417 rm -rf conftest*
12418 eval "ac_cv_func_$ac_func=no"
12420 rm -f conftest*
12423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12424 echo "$ac_t""yes" 1>&6
12425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12426 cat >> confdefs.h <<EOF
12427 #define $ac_tr_func 1
12430 else
12431 echo "$ac_t""no" 1>&6
12433 done
12440 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12441 echo "configure:12442: checking for float trig functions" >&5
12442 if eval "test \"`echo '$''{'glibcxx_cv_func_float_trig_use'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12447 ac_ext=C
12448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12449 ac_cpp='$CXXCPP $CPPFLAGS'
12450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12452 cross_compiling=$ac_cv_prog_cxx_cross
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 #include <math.h>
12458 int main() {
12459 `for x in acosf asinf atanf \
12460 cosf sinf tanf \
12461 coshf sinhf tanhf; do echo "$x (0);"; done`
12462 ; return 0; }
12464 if { (eval echo configure:12465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12465 rm -rf conftest*
12466 glibcxx_cv_func_float_trig_use=yes
12467 else
12468 echo "configure: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12470 rm -rf conftest*
12471 glibcxx_cv_func_float_trig_use=no
12473 rm -f conftest*
12474 ac_ext=c
12475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12476 ac_cpp='$CPP $CPPFLAGS'
12477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12479 cross_compiling=$ac_cv_prog_cc_cross
12483 echo "$ac_t""$glibcxx_cv_func_float_trig_use" 1>&6
12484 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
12485 for ac_func in acosf asinf atanf \
12486 cosf sinf tanf \
12487 coshf sinhf tanhf
12489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12490 echo "configure:12491: checking for $ac_func" >&5
12491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12493 else
12494 cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure"
12496 #include "confdefs.h"
12497 /* System header to define __stub macros and hopefully few prototypes,
12498 which can conflict with char $ac_func(); below. */
12499 #include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error. */
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char $ac_func();
12505 int main() {
12507 /* The GNU C library defines this for functions which it implements
12508 to always fail with ENOSYS. Some functions are actually named
12509 something starting with __ and the normal name is an alias. */
12510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12511 choke me
12512 #else
12513 $ac_func();
12514 #endif
12516 ; return 0; }
12518 if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12519 rm -rf conftest*
12520 eval "ac_cv_func_$ac_func=yes"
12521 else
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525 eval "ac_cv_func_$ac_func=no"
12527 rm -f conftest*
12530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12531 echo "$ac_t""yes" 1>&6
12532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12533 cat >> confdefs.h <<EOF
12534 #define $ac_tr_func 1
12537 else
12538 echo "$ac_t""no" 1>&6
12540 done
12545 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12546 echo "configure:12547: checking for float round functions" >&5
12547 if eval "test \"`echo '$''{'glibcxx_cv_func_float_round_use'+set}'`\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12549 else
12552 ac_ext=C
12553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12554 ac_cpp='$CXXCPP $CPPFLAGS'
12555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12557 cross_compiling=$ac_cv_prog_cxx_cross
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12562 #include <math.h>
12563 int main() {
12564 `for x in ceilf floorf; do echo "$x (0);"; done`
12565 ; return 0; }
12567 if { (eval echo configure:12568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12568 rm -rf conftest*
12569 glibcxx_cv_func_float_round_use=yes
12570 else
12571 echo "configure: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 rm -rf conftest*
12574 glibcxx_cv_func_float_round_use=no
12576 rm -f conftest*
12577 ac_ext=c
12578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12579 ac_cpp='$CPP $CPPFLAGS'
12580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12582 cross_compiling=$ac_cv_prog_cc_cross
12586 echo "$ac_t""$glibcxx_cv_func_float_round_use" 1>&6
12587 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
12588 for ac_func in ceilf floorf
12590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12591 echo "configure:12592: checking for $ac_func" >&5
12592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 /* System header to define __stub macros and hopefully few prototypes,
12599 which can conflict with char $ac_func(); below. */
12600 #include <assert.h>
12601 /* Override any gcc2 internal prototype to avoid an error. */
12602 /* We use char because int might match the return type of a gcc2
12603 builtin and then its argument prototype would still apply. */
12604 char $ac_func();
12606 int main() {
12608 /* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12612 choke me
12613 #else
12614 $ac_func();
12615 #endif
12617 ; return 0; }
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 rm -rf conftest*
12621 eval "ac_cv_func_$ac_func=yes"
12622 else
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12625 rm -rf conftest*
12626 eval "ac_cv_func_$ac_func=no"
12628 rm -f conftest*
12631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12632 echo "$ac_t""yes" 1>&6
12633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12634 cat >> confdefs.h <<EOF
12635 #define $ac_tr_func 1
12638 else
12639 echo "$ac_t""no" 1>&6
12641 done
12647 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12648 echo "configure:12649: checking for expf declaration" >&5
12649 if test x${glibcxx_cv_func_expf_use+set} != xset; then
12650 if eval "test \"`echo '$''{'glibcxx_cv_func_expf_use'+set}'`\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12652 else
12655 ac_ext=C
12656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12657 ac_cpp='$CXXCPP $CPPFLAGS'
12658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12660 cross_compiling=$ac_cv_prog_cxx_cross
12662 cat > conftest.$ac_ext <<EOF
12663 #line 12664 "configure"
12664 #include "confdefs.h"
12665 #include <math.h>
12666 #ifdef HAVE_IEEEFP_H
12667 #include <ieeefp.h>
12668 #endif
12670 int main() {
12671 expf(0);
12672 ; return 0; }
12674 if { (eval echo configure:12675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12675 rm -rf conftest*
12676 glibcxx_cv_func_expf_use=yes
12677 else
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 rm -rf conftest*
12681 glibcxx_cv_func_expf_use=no
12683 rm -f conftest*
12684 ac_ext=c
12685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12689 cross_compiling=$ac_cv_prog_cc_cross
12695 echo "$ac_t""$glibcxx_cv_func_expf_use" 1>&6
12697 if test x$glibcxx_cv_func_expf_use = x"yes"; then
12698 for ac_func in expf
12700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_func" >&5
12702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* System header to define __stub macros and hopefully few prototypes,
12709 which can conflict with char $ac_func(); below. */
12710 #include <assert.h>
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char $ac_func();
12716 int main() {
12718 /* The GNU C library defines this for functions which it implements
12719 to always fail with ENOSYS. Some functions are actually named
12720 something starting with __ and the normal name is an alias. */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12722 choke me
12723 #else
12724 $ac_func();
12725 #endif
12727 ; return 0; }
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730 rm -rf conftest*
12731 eval "ac_cv_func_$ac_func=yes"
12732 else
12733 echo "configure: failed program was:" >&5
12734 cat conftest.$ac_ext >&5
12735 rm -rf conftest*
12736 eval "ac_cv_func_$ac_func=no"
12738 rm -f conftest*
12741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12742 echo "$ac_t""yes" 1>&6
12743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12744 cat >> confdefs.h <<EOF
12745 #define $ac_tr_func 1
12748 else
12749 echo "$ac_t""no" 1>&6
12751 done
12753 else
12755 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12756 echo "configure:12757: checking for _expf declaration" >&5
12757 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12758 if eval "test \"`echo '$''{'glibcxx_cv_func__expf_use'+set}'`\" = set"; then
12759 echo $ac_n "(cached) $ac_c" 1>&6
12760 else
12763 ac_ext=C
12764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12765 ac_cpp='$CXXCPP $CPPFLAGS'
12766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12768 cross_compiling=$ac_cv_prog_cxx_cross
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 #include <math.h>
12774 #ifdef HAVE_IEEEFP_H
12775 #include <ieeefp.h>
12776 #endif
12778 int main() {
12779 _expf(0);
12780 ; return 0; }
12782 if { (eval echo configure:12783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12783 rm -rf conftest*
12784 glibcxx_cv_func__expf_use=yes
12785 else
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 rm -rf conftest*
12789 glibcxx_cv_func__expf_use=no
12791 rm -f conftest*
12792 ac_ext=c
12793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12794 ac_cpp='$CPP $CPPFLAGS'
12795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12797 cross_compiling=$ac_cv_prog_cc_cross
12803 echo "$ac_t""$glibcxx_cv_func__expf_use" 1>&6
12805 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12806 for ac_func in _expf
12808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12809 echo "configure:12810: checking for $ac_func" >&5
12810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12813 cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 /* System header to define __stub macros and hopefully few prototypes,
12817 which can conflict with char $ac_func(); below. */
12818 #include <assert.h>
12819 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char $ac_func();
12824 int main() {
12826 /* The GNU C library defines this for functions which it implements
12827 to always fail with ENOSYS. Some functions are actually named
12828 something starting with __ and the normal name is an alias. */
12829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12830 choke me
12831 #else
12832 $ac_func();
12833 #endif
12835 ; return 0; }
12837 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838 rm -rf conftest*
12839 eval "ac_cv_func_$ac_func=yes"
12840 else
12841 echo "configure: failed program was:" >&5
12842 cat conftest.$ac_ext >&5
12843 rm -rf conftest*
12844 eval "ac_cv_func_$ac_func=no"
12846 rm -f conftest*
12849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12850 echo "$ac_t""yes" 1>&6
12851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12852 cat >> confdefs.h <<EOF
12853 #define $ac_tr_func 1
12856 else
12857 echo "$ac_t""no" 1>&6
12859 done
12866 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12867 echo "configure:12868: checking for isnanf declaration" >&5
12868 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12869 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanf_use'+set}'`\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12871 else
12874 ac_ext=C
12875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12876 ac_cpp='$CXXCPP $CPPFLAGS'
12877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12879 cross_compiling=$ac_cv_prog_cxx_cross
12881 cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <math.h>
12885 #ifdef HAVE_IEEEFP_H
12886 #include <ieeefp.h>
12887 #endif
12889 int main() {
12890 isnanf(0);
12891 ; return 0; }
12893 if { (eval echo configure:12894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12894 rm -rf conftest*
12895 glibcxx_cv_func_isnanf_use=yes
12896 else
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 rm -rf conftest*
12900 glibcxx_cv_func_isnanf_use=no
12902 rm -f conftest*
12903 ac_ext=c
12904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12905 ac_cpp='$CPP $CPPFLAGS'
12906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12908 cross_compiling=$ac_cv_prog_cc_cross
12914 echo "$ac_t""$glibcxx_cv_func_isnanf_use" 1>&6
12916 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12917 for ac_func in isnanf
12919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_func" >&5
12921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func(); below. */
12929 #include <assert.h>
12930 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933 char $ac_func();
12935 int main() {
12937 /* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941 choke me
12942 #else
12943 $ac_func();
12944 #endif
12946 ; return 0; }
12948 if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949 rm -rf conftest*
12950 eval "ac_cv_func_$ac_func=yes"
12951 else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=no"
12957 rm -f conftest*
12960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12961 echo "$ac_t""yes" 1>&6
12962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12963 cat >> confdefs.h <<EOF
12964 #define $ac_tr_func 1
12967 else
12968 echo "$ac_t""no" 1>&6
12970 done
12972 else
12974 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12975 echo "configure:12976: checking for _isnanf declaration" >&5
12976 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12977 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanf_use'+set}'`\" = set"; then
12978 echo $ac_n "(cached) $ac_c" 1>&6
12979 else
12982 ac_ext=C
12983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12984 ac_cpp='$CXXCPP $CPPFLAGS'
12985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12987 cross_compiling=$ac_cv_prog_cxx_cross
12989 cat > conftest.$ac_ext <<EOF
12990 #line 12991 "configure"
12991 #include "confdefs.h"
12992 #include <math.h>
12993 #ifdef HAVE_IEEEFP_H
12994 #include <ieeefp.h>
12995 #endif
12997 int main() {
12998 _isnanf(0);
12999 ; return 0; }
13001 if { (eval echo configure:13002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13002 rm -rf conftest*
13003 glibcxx_cv_func__isnanf_use=yes
13004 else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008 glibcxx_cv_func__isnanf_use=no
13010 rm -f conftest*
13011 ac_ext=c
13012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cc_cross
13022 echo "$ac_t""$glibcxx_cv_func__isnanf_use" 1>&6
13024 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
13025 for ac_func in _isnanf
13027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13028 echo "configure:13029: checking for $ac_func" >&5
13029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13030 echo $ac_n "(cached) $ac_c" 1>&6
13031 else
13032 cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 /* System header to define __stub macros and hopefully few prototypes,
13036 which can conflict with char $ac_func(); below. */
13037 #include <assert.h>
13038 /* Override any gcc2 internal prototype to avoid an error. */
13039 /* We use char because int might match the return type of a gcc2
13040 builtin and then its argument prototype would still apply. */
13041 char $ac_func();
13043 int main() {
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13049 choke me
13050 #else
13051 $ac_func();
13052 #endif
13054 ; return 0; }
13056 if { (eval echo configure:13057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13057 rm -rf conftest*
13058 eval "ac_cv_func_$ac_func=yes"
13059 else
13060 echo "configure: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13062 rm -rf conftest*
13063 eval "ac_cv_func_$ac_func=no"
13065 rm -f conftest*
13068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13069 echo "$ac_t""yes" 1>&6
13070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13071 cat >> confdefs.h <<EOF
13072 #define $ac_tr_func 1
13075 else
13076 echo "$ac_t""no" 1>&6
13078 done
13085 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13086 echo "configure:13087: checking for isinff declaration" >&5
13087 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
13088 if eval "test \"`echo '$''{'glibcxx_cv_func_isinff_use'+set}'`\" = set"; then
13089 echo $ac_n "(cached) $ac_c" 1>&6
13090 else
13093 ac_ext=C
13094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13095 ac_cpp='$CXXCPP $CPPFLAGS'
13096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13098 cross_compiling=$ac_cv_prog_cxx_cross
13100 cat > conftest.$ac_ext <<EOF
13101 #line 13102 "configure"
13102 #include "confdefs.h"
13103 #include <math.h>
13104 #ifdef HAVE_IEEEFP_H
13105 #include <ieeefp.h>
13106 #endif
13108 int main() {
13109 isinff(0);
13110 ; return 0; }
13112 if { (eval echo configure:13113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13113 rm -rf conftest*
13114 glibcxx_cv_func_isinff_use=yes
13115 else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 glibcxx_cv_func_isinff_use=no
13121 rm -f conftest*
13122 ac_ext=c
13123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127 cross_compiling=$ac_cv_prog_cc_cross
13133 echo "$ac_t""$glibcxx_cv_func_isinff_use" 1>&6
13135 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
13136 for ac_func in isinff
13138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13139 echo "configure:13140: checking for $ac_func" >&5
13140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13141 echo $ac_n "(cached) $ac_c" 1>&6
13142 else
13143 cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 /* System header to define __stub macros and hopefully few prototypes,
13147 which can conflict with char $ac_func(); below. */
13148 #include <assert.h>
13149 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char $ac_func();
13154 int main() {
13156 /* The GNU C library defines this for functions which it implements
13157 to always fail with ENOSYS. Some functions are actually named
13158 something starting with __ and the normal name is an alias. */
13159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13160 choke me
13161 #else
13162 $ac_func();
13163 #endif
13165 ; return 0; }
13167 if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13168 rm -rf conftest*
13169 eval "ac_cv_func_$ac_func=yes"
13170 else
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 rm -rf conftest*
13174 eval "ac_cv_func_$ac_func=no"
13176 rm -f conftest*
13179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13182 cat >> confdefs.h <<EOF
13183 #define $ac_tr_func 1
13186 else
13187 echo "$ac_t""no" 1>&6
13189 done
13191 else
13193 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13194 echo "configure:13195: checking for _isinff declaration" >&5
13195 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
13196 if eval "test \"`echo '$''{'glibcxx_cv_func__isinff_use'+set}'`\" = set"; then
13197 echo $ac_n "(cached) $ac_c" 1>&6
13198 else
13201 ac_ext=C
13202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13203 ac_cpp='$CXXCPP $CPPFLAGS'
13204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13206 cross_compiling=$ac_cv_prog_cxx_cross
13208 cat > conftest.$ac_ext <<EOF
13209 #line 13210 "configure"
13210 #include "confdefs.h"
13211 #include <math.h>
13212 #ifdef HAVE_IEEEFP_H
13213 #include <ieeefp.h>
13214 #endif
13216 int main() {
13217 _isinff(0);
13218 ; return 0; }
13220 if { (eval echo configure:13221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13221 rm -rf conftest*
13222 glibcxx_cv_func__isinff_use=yes
13223 else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 glibcxx_cv_func__isinff_use=no
13229 rm -f conftest*
13230 ac_ext=c
13231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13235 cross_compiling=$ac_cv_prog_cc_cross
13241 echo "$ac_t""$glibcxx_cv_func__isinff_use" 1>&6
13243 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
13244 for ac_func in _isinff
13246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13247 echo "configure:13248: checking for $ac_func" >&5
13248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13250 else
13251 cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254 /* System header to define __stub macros and hopefully few prototypes,
13255 which can conflict with char $ac_func(); below. */
13256 #include <assert.h>
13257 /* Override any gcc2 internal prototype to avoid an error. */
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char $ac_func();
13262 int main() {
13264 /* The GNU C library defines this for functions which it implements
13265 to always fail with ENOSYS. Some functions are actually named
13266 something starting with __ and the normal name is an alias. */
13267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13268 choke me
13269 #else
13270 $ac_func();
13271 #endif
13273 ; return 0; }
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276 rm -rf conftest*
13277 eval "ac_cv_func_$ac_func=yes"
13278 else
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 rm -rf conftest*
13282 eval "ac_cv_func_$ac_func=no"
13284 rm -f conftest*
13287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13288 echo "$ac_t""yes" 1>&6
13289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13290 cat >> confdefs.h <<EOF
13291 #define $ac_tr_func 1
13294 else
13295 echo "$ac_t""no" 1>&6
13297 done
13304 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13305 echo "configure:13306: checking for atan2f declaration" >&5
13306 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
13307 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2f_use'+set}'`\" = set"; then
13308 echo $ac_n "(cached) $ac_c" 1>&6
13309 else
13312 ac_ext=C
13313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13314 ac_cpp='$CXXCPP $CPPFLAGS'
13315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13317 cross_compiling=$ac_cv_prog_cxx_cross
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 #include <math.h>
13323 int main() {
13324 atan2f(0, 0);
13325 ; return 0; }
13327 if { (eval echo configure:13328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13328 rm -rf conftest*
13329 glibcxx_cv_func_atan2f_use=yes
13330 else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334 glibcxx_cv_func_atan2f_use=no
13336 rm -f conftest*
13337 ac_ext=c
13338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13342 cross_compiling=$ac_cv_prog_cc_cross
13348 echo "$ac_t""$glibcxx_cv_func_atan2f_use" 1>&6
13350 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13351 for ac_func in atan2f
13353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13354 echo "configure:13355: checking for $ac_func" >&5
13355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 /* System header to define __stub macros and hopefully few prototypes,
13362 which can conflict with char $ac_func(); below. */
13363 #include <assert.h>
13364 /* Override any gcc2 internal prototype to avoid an error. */
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367 char $ac_func();
13369 int main() {
13371 /* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13375 choke me
13376 #else
13377 $ac_func();
13378 #endif
13380 ; return 0; }
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13383 rm -rf conftest*
13384 eval "ac_cv_func_$ac_func=yes"
13385 else
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=no"
13391 rm -f conftest*
13394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13397 cat >> confdefs.h <<EOF
13398 #define $ac_tr_func 1
13401 else
13402 echo "$ac_t""no" 1>&6
13404 done
13406 else
13408 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13409 echo "configure:13410: checking for _atan2f declaration" >&5
13410 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13411 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2f_use'+set}'`\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13413 else
13416 ac_ext=C
13417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CXXCPP $CPPFLAGS'
13419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cxx_cross
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 #include <math.h>
13427 int main() {
13428 _atan2f(0, 0);
13429 ; return 0; }
13431 if { (eval echo configure:13432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13432 rm -rf conftest*
13433 glibcxx_cv_func__atan2f_use=yes
13434 else
13435 echo "configure: failed program was:" >&5
13436 cat conftest.$ac_ext >&5
13437 rm -rf conftest*
13438 glibcxx_cv_func__atan2f_use=no
13440 rm -f conftest*
13441 ac_ext=c
13442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13443 ac_cpp='$CPP $CPPFLAGS'
13444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13446 cross_compiling=$ac_cv_prog_cc_cross
13452 echo "$ac_t""$glibcxx_cv_func__atan2f_use" 1>&6
13454 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13455 for ac_func in _atan2f
13457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13458 echo "configure:13459: checking for $ac_func" >&5
13459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13460 echo $ac_n "(cached) $ac_c" 1>&6
13461 else
13462 cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure"
13464 #include "confdefs.h"
13465 /* System header to define __stub macros and hopefully few prototypes,
13466 which can conflict with char $ac_func(); below. */
13467 #include <assert.h>
13468 /* Override any gcc2 internal prototype to avoid an error. */
13469 /* We use char because int might match the return type of a gcc2
13470 builtin and then its argument prototype would still apply. */
13471 char $ac_func();
13473 int main() {
13475 /* The GNU C library defines this for functions which it implements
13476 to always fail with ENOSYS. Some functions are actually named
13477 something starting with __ and the normal name is an alias. */
13478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13479 choke me
13480 #else
13481 $ac_func();
13482 #endif
13484 ; return 0; }
13486 if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13487 rm -rf conftest*
13488 eval "ac_cv_func_$ac_func=yes"
13489 else
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13492 rm -rf conftest*
13493 eval "ac_cv_func_$ac_func=no"
13495 rm -f conftest*
13498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13499 echo "$ac_t""yes" 1>&6
13500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13501 cat >> confdefs.h <<EOF
13502 #define $ac_tr_func 1
13505 else
13506 echo "$ac_t""no" 1>&6
13508 done
13515 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13516 echo "configure:13517: checking for fabsf declaration" >&5
13517 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13518 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsf_use'+set}'`\" = set"; then
13519 echo $ac_n "(cached) $ac_c" 1>&6
13520 else
13523 ac_ext=C
13524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CXXCPP $CPPFLAGS'
13526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cxx_cross
13530 cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 #include <math.h>
13534 #ifdef HAVE_IEEEFP_H
13535 #include <ieeefp.h>
13536 #endif
13538 int main() {
13539 fabsf(0);
13540 ; return 0; }
13542 if { (eval echo configure:13543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13543 rm -rf conftest*
13544 glibcxx_cv_func_fabsf_use=yes
13545 else
13546 echo "configure: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13548 rm -rf conftest*
13549 glibcxx_cv_func_fabsf_use=no
13551 rm -f conftest*
13552 ac_ext=c
13553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13554 ac_cpp='$CPP $CPPFLAGS'
13555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13557 cross_compiling=$ac_cv_prog_cc_cross
13563 echo "$ac_t""$glibcxx_cv_func_fabsf_use" 1>&6
13565 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13566 for ac_func in fabsf
13568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13569 echo "configure:13570: checking for $ac_func" >&5
13570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13571 echo $ac_n "(cached) $ac_c" 1>&6
13572 else
13573 cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576 /* System header to define __stub macros and hopefully few prototypes,
13577 which can conflict with char $ac_func(); below. */
13578 #include <assert.h>
13579 /* Override any gcc2 internal prototype to avoid an error. */
13580 /* We use char because int might match the return type of a gcc2
13581 builtin and then its argument prototype would still apply. */
13582 char $ac_func();
13584 int main() {
13586 /* The GNU C library defines this for functions which it implements
13587 to always fail with ENOSYS. Some functions are actually named
13588 something starting with __ and the normal name is an alias. */
13589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13590 choke me
13591 #else
13592 $ac_func();
13593 #endif
13595 ; return 0; }
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13598 rm -rf conftest*
13599 eval "ac_cv_func_$ac_func=yes"
13600 else
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13603 rm -rf conftest*
13604 eval "ac_cv_func_$ac_func=no"
13606 rm -f conftest*
13609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13610 echo "$ac_t""yes" 1>&6
13611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13612 cat >> confdefs.h <<EOF
13613 #define $ac_tr_func 1
13616 else
13617 echo "$ac_t""no" 1>&6
13619 done
13621 else
13623 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13624 echo "configure:13625: checking for _fabsf declaration" >&5
13625 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13626 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsf_use'+set}'`\" = set"; then
13627 echo $ac_n "(cached) $ac_c" 1>&6
13628 else
13631 ac_ext=C
13632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13633 ac_cpp='$CXXCPP $CPPFLAGS'
13634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13636 cross_compiling=$ac_cv_prog_cxx_cross
13638 cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13641 #include <math.h>
13642 #ifdef HAVE_IEEEFP_H
13643 #include <ieeefp.h>
13644 #endif
13646 int main() {
13647 _fabsf(0);
13648 ; return 0; }
13650 if { (eval echo configure:13651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13651 rm -rf conftest*
13652 glibcxx_cv_func__fabsf_use=yes
13653 else
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 rm -rf conftest*
13657 glibcxx_cv_func__fabsf_use=no
13659 rm -f conftest*
13660 ac_ext=c
13661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13662 ac_cpp='$CPP $CPPFLAGS'
13663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13665 cross_compiling=$ac_cv_prog_cc_cross
13671 echo "$ac_t""$glibcxx_cv_func__fabsf_use" 1>&6
13673 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13674 for ac_func in _fabsf
13676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13677 echo "configure:13678: checking for $ac_func" >&5
13678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13679 echo $ac_n "(cached) $ac_c" 1>&6
13680 else
13681 cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 /* System header to define __stub macros and hopefully few prototypes,
13685 which can conflict with char $ac_func(); below. */
13686 #include <assert.h>
13687 /* Override any gcc2 internal prototype to avoid an error. */
13688 /* We use char because int might match the return type of a gcc2
13689 builtin and then its argument prototype would still apply. */
13690 char $ac_func();
13692 int main() {
13694 /* The GNU C library defines this for functions which it implements
13695 to always fail with ENOSYS. Some functions are actually named
13696 something starting with __ and the normal name is an alias. */
13697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13698 choke me
13699 #else
13700 $ac_func();
13701 #endif
13703 ; return 0; }
13705 if { (eval echo configure:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13706 rm -rf conftest*
13707 eval "ac_cv_func_$ac_func=yes"
13708 else
13709 echo "configure: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 rm -rf conftest*
13712 eval "ac_cv_func_$ac_func=no"
13714 rm -f conftest*
13717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13718 echo "$ac_t""yes" 1>&6
13719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13720 cat >> confdefs.h <<EOF
13721 #define $ac_tr_func 1
13724 else
13725 echo "$ac_t""no" 1>&6
13727 done
13734 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13735 echo "configure:13736: checking for fmodf declaration" >&5
13736 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13737 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodf_use'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13739 else
13742 ac_ext=C
13743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744 ac_cpp='$CXXCPP $CPPFLAGS'
13745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747 cross_compiling=$ac_cv_prog_cxx_cross
13749 cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure"
13751 #include "confdefs.h"
13752 #include <math.h>
13753 int main() {
13754 fmodf(0, 0);
13755 ; return 0; }
13757 if { (eval echo configure:13758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13758 rm -rf conftest*
13759 glibcxx_cv_func_fmodf_use=yes
13760 else
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 glibcxx_cv_func_fmodf_use=no
13766 rm -f conftest*
13767 ac_ext=c
13768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13769 ac_cpp='$CPP $CPPFLAGS'
13770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13772 cross_compiling=$ac_cv_prog_cc_cross
13778 echo "$ac_t""$glibcxx_cv_func_fmodf_use" 1>&6
13780 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13781 for ac_func in fmodf
13783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13784 echo "configure:13785: checking for $ac_func" >&5
13785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13786 echo $ac_n "(cached) $ac_c" 1>&6
13787 else
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 /* System header to define __stub macros and hopefully few prototypes,
13792 which can conflict with char $ac_func(); below. */
13793 #include <assert.h>
13794 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char $ac_func();
13799 int main() {
13801 /* The GNU C library defines this for functions which it implements
13802 to always fail with ENOSYS. Some functions are actually named
13803 something starting with __ and the normal name is an alias. */
13804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13805 choke me
13806 #else
13807 $ac_func();
13808 #endif
13810 ; return 0; }
13812 if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813 rm -rf conftest*
13814 eval "ac_cv_func_$ac_func=yes"
13815 else
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13818 rm -rf conftest*
13819 eval "ac_cv_func_$ac_func=no"
13821 rm -f conftest*
13824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13827 cat >> confdefs.h <<EOF
13828 #define $ac_tr_func 1
13831 else
13832 echo "$ac_t""no" 1>&6
13834 done
13836 else
13838 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13839 echo "configure:13840: checking for _fmodf declaration" >&5
13840 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13841 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodf_use'+set}'`\" = set"; then
13842 echo $ac_n "(cached) $ac_c" 1>&6
13843 else
13846 ac_ext=C
13847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CXXCPP $CPPFLAGS'
13849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cxx_cross
13853 cat > conftest.$ac_ext <<EOF
13854 #line 13855 "configure"
13855 #include "confdefs.h"
13856 #include <math.h>
13857 int main() {
13858 _fmodf(0, 0);
13859 ; return 0; }
13861 if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13862 rm -rf conftest*
13863 glibcxx_cv_func__fmodf_use=yes
13864 else
13865 echo "configure: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 rm -rf conftest*
13868 glibcxx_cv_func__fmodf_use=no
13870 rm -f conftest*
13871 ac_ext=c
13872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13873 ac_cpp='$CPP $CPPFLAGS'
13874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13876 cross_compiling=$ac_cv_prog_cc_cross
13882 echo "$ac_t""$glibcxx_cv_func__fmodf_use" 1>&6
13884 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13885 for ac_func in _fmodf
13887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13888 echo "configure:13889: checking for $ac_func" >&5
13889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13891 else
13892 cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 /* System header to define __stub macros and hopefully few prototypes,
13896 which can conflict with char $ac_func(); below. */
13897 #include <assert.h>
13898 /* Override any gcc2 internal prototype to avoid an error. */
13899 /* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13901 char $ac_func();
13903 int main() {
13905 /* The GNU C library defines this for functions which it implements
13906 to always fail with ENOSYS. Some functions are actually named
13907 something starting with __ and the normal name is an alias. */
13908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13909 choke me
13910 #else
13911 $ac_func();
13912 #endif
13914 ; return 0; }
13916 if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13917 rm -rf conftest*
13918 eval "ac_cv_func_$ac_func=yes"
13919 else
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
13922 rm -rf conftest*
13923 eval "ac_cv_func_$ac_func=no"
13925 rm -f conftest*
13928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13929 echo "$ac_t""yes" 1>&6
13930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13931 cat >> confdefs.h <<EOF
13932 #define $ac_tr_func 1
13935 else
13936 echo "$ac_t""no" 1>&6
13938 done
13945 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13946 echo "configure:13947: checking for frexpf declaration" >&5
13947 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13948 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpf_use'+set}'`\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13950 else
13953 ac_ext=C
13954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13955 ac_cpp='$CXXCPP $CPPFLAGS'
13956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13958 cross_compiling=$ac_cv_prog_cxx_cross
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include <math.h>
13964 int main() {
13965 frexpf(0, 0);
13966 ; return 0; }
13968 if { (eval echo configure:13969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13969 rm -rf conftest*
13970 glibcxx_cv_func_frexpf_use=yes
13971 else
13972 echo "configure: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 rm -rf conftest*
13975 glibcxx_cv_func_frexpf_use=no
13977 rm -f conftest*
13978 ac_ext=c
13979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13983 cross_compiling=$ac_cv_prog_cc_cross
13989 echo "$ac_t""$glibcxx_cv_func_frexpf_use" 1>&6
13991 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
13992 for ac_func in frexpf
13994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13995 echo "configure:13996: checking for $ac_func" >&5
13996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13997 echo $ac_n "(cached) $ac_c" 1>&6
13998 else
13999 cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func(); below. */
14004 #include <assert.h>
14005 /* Override any gcc2 internal prototype to avoid an error. */
14006 /* We use char because int might match the return type of a gcc2
14007 builtin and then its argument prototype would still apply. */
14008 char $ac_func();
14010 int main() {
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14016 choke me
14017 #else
14018 $ac_func();
14019 #endif
14021 ; return 0; }
14023 if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 rm -rf conftest*
14025 eval "ac_cv_func_$ac_func=yes"
14026 else
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 eval "ac_cv_func_$ac_func=no"
14032 rm -f conftest*
14035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14036 echo "$ac_t""yes" 1>&6
14037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14038 cat >> confdefs.h <<EOF
14039 #define $ac_tr_func 1
14042 else
14043 echo "$ac_t""no" 1>&6
14045 done
14047 else
14049 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14050 echo "configure:14051: checking for _frexpf declaration" >&5
14051 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14052 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpf_use'+set}'`\" = set"; then
14053 echo $ac_n "(cached) $ac_c" 1>&6
14054 else
14057 ac_ext=C
14058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CXXCPP $CPPFLAGS'
14060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cxx_cross
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 #include <math.h>
14068 int main() {
14069 _frexpf(0, 0);
14070 ; return 0; }
14072 if { (eval echo configure:14073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14073 rm -rf conftest*
14074 glibcxx_cv_func__frexpf_use=yes
14075 else
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 rm -rf conftest*
14079 glibcxx_cv_func__frexpf_use=no
14081 rm -f conftest*
14082 ac_ext=c
14083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14084 ac_cpp='$CPP $CPPFLAGS'
14085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14087 cross_compiling=$ac_cv_prog_cc_cross
14093 echo "$ac_t""$glibcxx_cv_func__frexpf_use" 1>&6
14095 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14096 for ac_func in _frexpf
14098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14099 echo "configure:14100: checking for $ac_func" >&5
14100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14101 echo $ac_n "(cached) $ac_c" 1>&6
14102 else
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 /* System header to define __stub macros and hopefully few prototypes,
14107 which can conflict with char $ac_func(); below. */
14108 #include <assert.h>
14109 /* Override any gcc2 internal prototype to avoid an error. */
14110 /* We use char because int might match the return type of a gcc2
14111 builtin and then its argument prototype would still apply. */
14112 char $ac_func();
14114 int main() {
14116 /* The GNU C library defines this for functions which it implements
14117 to always fail with ENOSYS. Some functions are actually named
14118 something starting with __ and the normal name is an alias. */
14119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14120 choke me
14121 #else
14122 $ac_func();
14123 #endif
14125 ; return 0; }
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 rm -rf conftest*
14129 eval "ac_cv_func_$ac_func=yes"
14130 else
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -rf conftest*
14134 eval "ac_cv_func_$ac_func=no"
14136 rm -f conftest*
14139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14140 echo "$ac_t""yes" 1>&6
14141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14142 cat >> confdefs.h <<EOF
14143 #define $ac_tr_func 1
14146 else
14147 echo "$ac_t""no" 1>&6
14149 done
14156 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14157 echo "configure:14158: checking for hypotf declaration" >&5
14158 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14159 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotf_use'+set}'`\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14161 else
14164 ac_ext=C
14165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14166 ac_cpp='$CXXCPP $CPPFLAGS'
14167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14169 cross_compiling=$ac_cv_prog_cxx_cross
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 #include <math.h>
14175 int main() {
14176 hypotf(0, 0);
14177 ; return 0; }
14179 if { (eval echo configure:14180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14180 rm -rf conftest*
14181 glibcxx_cv_func_hypotf_use=yes
14182 else
14183 echo "configure: failed program was:" >&5
14184 cat conftest.$ac_ext >&5
14185 rm -rf conftest*
14186 glibcxx_cv_func_hypotf_use=no
14188 rm -f conftest*
14189 ac_ext=c
14190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14191 ac_cpp='$CPP $CPPFLAGS'
14192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14194 cross_compiling=$ac_cv_prog_cc_cross
14200 echo "$ac_t""$glibcxx_cv_func_hypotf_use" 1>&6
14202 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14203 for ac_func in hypotf
14205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14206 echo "configure:14207: checking for $ac_func" >&5
14207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14209 else
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14213 /* System header to define __stub macros and hopefully few prototypes,
14214 which can conflict with char $ac_func(); below. */
14215 #include <assert.h>
14216 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14219 char $ac_func();
14221 int main() {
14223 /* The GNU C library defines this for functions which it implements
14224 to always fail with ENOSYS. Some functions are actually named
14225 something starting with __ and the normal name is an alias. */
14226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14227 choke me
14228 #else
14229 $ac_func();
14230 #endif
14232 ; return 0; }
14234 if { (eval echo configure:14235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14235 rm -rf conftest*
14236 eval "ac_cv_func_$ac_func=yes"
14237 else
14238 echo "configure: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14240 rm -rf conftest*
14241 eval "ac_cv_func_$ac_func=no"
14243 rm -f conftest*
14246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14247 echo "$ac_t""yes" 1>&6
14248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14249 cat >> confdefs.h <<EOF
14250 #define $ac_tr_func 1
14253 else
14254 echo "$ac_t""no" 1>&6
14256 done
14258 else
14260 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14261 echo "configure:14262: checking for _hypotf declaration" >&5
14262 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14263 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotf_use'+set}'`\" = set"; then
14264 echo $ac_n "(cached) $ac_c" 1>&6
14265 else
14268 ac_ext=C
14269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CXXCPP $CPPFLAGS'
14271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cxx_cross
14275 cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 #include <math.h>
14279 int main() {
14280 _hypotf(0, 0);
14281 ; return 0; }
14283 if { (eval echo configure:14284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14284 rm -rf conftest*
14285 glibcxx_cv_func__hypotf_use=yes
14286 else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 glibcxx_cv_func__hypotf_use=no
14292 rm -f conftest*
14293 ac_ext=c
14294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14298 cross_compiling=$ac_cv_prog_cc_cross
14304 echo "$ac_t""$glibcxx_cv_func__hypotf_use" 1>&6
14306 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14307 for ac_func in _hypotf
14309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14310 echo "configure:14311: checking for $ac_func" >&5
14311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14312 echo $ac_n "(cached) $ac_c" 1>&6
14313 else
14314 cat > conftest.$ac_ext <<EOF
14315 #line 14316 "configure"
14316 #include "confdefs.h"
14317 /* System header to define __stub macros and hopefully few prototypes,
14318 which can conflict with char $ac_func(); below. */
14319 #include <assert.h>
14320 /* Override any gcc2 internal prototype to avoid an error. */
14321 /* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14323 char $ac_func();
14325 int main() {
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331 choke me
14332 #else
14333 $ac_func();
14334 #endif
14336 ; return 0; }
14338 if { (eval echo configure:14339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14339 rm -rf conftest*
14340 eval "ac_cv_func_$ac_func=yes"
14341 else
14342 echo "configure: failed program was:" >&5
14343 cat conftest.$ac_ext >&5
14344 rm -rf conftest*
14345 eval "ac_cv_func_$ac_func=no"
14347 rm -f conftest*
14350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14351 echo "$ac_t""yes" 1>&6
14352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14353 cat >> confdefs.h <<EOF
14354 #define $ac_tr_func 1
14357 else
14358 echo "$ac_t""no" 1>&6
14360 done
14367 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14368 echo "configure:14369: checking for ldexpf declaration" >&5
14369 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14370 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpf_use'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14375 ac_ext=C
14376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cxx_cross
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 #include <math.h>
14386 int main() {
14387 ldexpf(0, 0);
14388 ; return 0; }
14390 if { (eval echo configure:14391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14391 rm -rf conftest*
14392 glibcxx_cv_func_ldexpf_use=yes
14393 else
14394 echo "configure: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 rm -rf conftest*
14397 glibcxx_cv_func_ldexpf_use=no
14399 rm -f conftest*
14400 ac_ext=c
14401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14405 cross_compiling=$ac_cv_prog_cc_cross
14411 echo "$ac_t""$glibcxx_cv_func_ldexpf_use" 1>&6
14413 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14414 for ac_func in ldexpf
14416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14417 echo "configure:14418: checking for $ac_func" >&5
14418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14419 echo $ac_n "(cached) $ac_c" 1>&6
14420 else
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* System header to define __stub macros and hopefully few prototypes,
14425 which can conflict with char $ac_func(); below. */
14426 #include <assert.h>
14427 /* Override any gcc2 internal prototype to avoid an error. */
14428 /* We use char because int might match the return type of a gcc2
14429 builtin and then its argument prototype would still apply. */
14430 char $ac_func();
14432 int main() {
14434 /* The GNU C library defines this for functions which it implements
14435 to always fail with ENOSYS. Some functions are actually named
14436 something starting with __ and the normal name is an alias. */
14437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14438 choke me
14439 #else
14440 $ac_func();
14441 #endif
14443 ; return 0; }
14445 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446 rm -rf conftest*
14447 eval "ac_cv_func_$ac_func=yes"
14448 else
14449 echo "configure: failed program was:" >&5
14450 cat conftest.$ac_ext >&5
14451 rm -rf conftest*
14452 eval "ac_cv_func_$ac_func=no"
14454 rm -f conftest*
14457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14458 echo "$ac_t""yes" 1>&6
14459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14460 cat >> confdefs.h <<EOF
14461 #define $ac_tr_func 1
14464 else
14465 echo "$ac_t""no" 1>&6
14467 done
14469 else
14471 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14472 echo "configure:14473: checking for _ldexpf declaration" >&5
14473 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14474 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpf_use'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14476 else
14479 ac_ext=C
14480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14481 ac_cpp='$CXXCPP $CPPFLAGS'
14482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14484 cross_compiling=$ac_cv_prog_cxx_cross
14486 cat > conftest.$ac_ext <<EOF
14487 #line 14488 "configure"
14488 #include "confdefs.h"
14489 #include <math.h>
14490 int main() {
14491 _ldexpf(0, 0);
14492 ; return 0; }
14494 if { (eval echo configure:14495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14495 rm -rf conftest*
14496 glibcxx_cv_func__ldexpf_use=yes
14497 else
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14500 rm -rf conftest*
14501 glibcxx_cv_func__ldexpf_use=no
14503 rm -f conftest*
14504 ac_ext=c
14505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14506 ac_cpp='$CPP $CPPFLAGS'
14507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14509 cross_compiling=$ac_cv_prog_cc_cross
14515 echo "$ac_t""$glibcxx_cv_func__ldexpf_use" 1>&6
14517 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14518 for ac_func in _ldexpf
14520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14521 echo "configure:14522: checking for $ac_func" >&5
14522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14523 echo $ac_n "(cached) $ac_c" 1>&6
14524 else
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 /* System header to define __stub macros and hopefully few prototypes,
14529 which can conflict with char $ac_func(); below. */
14530 #include <assert.h>
14531 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534 char $ac_func();
14536 int main() {
14538 /* The GNU C library defines this for functions which it implements
14539 to always fail with ENOSYS. Some functions are actually named
14540 something starting with __ and the normal name is an alias. */
14541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14542 choke me
14543 #else
14544 $ac_func();
14545 #endif
14547 ; return 0; }
14549 if { (eval echo configure:14550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14550 rm -rf conftest*
14551 eval "ac_cv_func_$ac_func=yes"
14552 else
14553 echo "configure: failed program was:" >&5
14554 cat conftest.$ac_ext >&5
14555 rm -rf conftest*
14556 eval "ac_cv_func_$ac_func=no"
14558 rm -f conftest*
14561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14562 echo "$ac_t""yes" 1>&6
14563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14564 cat >> confdefs.h <<EOF
14565 #define $ac_tr_func 1
14568 else
14569 echo "$ac_t""no" 1>&6
14571 done
14578 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14579 echo "configure:14580: checking for logf declaration" >&5
14580 if test x${glibcxx_cv_func_logf_use+set} != xset; then
14581 if eval "test \"`echo '$''{'glibcxx_cv_func_logf_use'+set}'`\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14583 else
14586 ac_ext=C
14587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14588 ac_cpp='$CXXCPP $CPPFLAGS'
14589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14591 cross_compiling=$ac_cv_prog_cxx_cross
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14596 #include <math.h>
14597 #ifdef HAVE_IEEEFP_H
14598 #include <ieeefp.h>
14599 #endif
14601 int main() {
14602 logf(0);
14603 ; return 0; }
14605 if { (eval echo configure:14606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14606 rm -rf conftest*
14607 glibcxx_cv_func_logf_use=yes
14608 else
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14611 rm -rf conftest*
14612 glibcxx_cv_func_logf_use=no
14614 rm -f conftest*
14615 ac_ext=c
14616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14617 ac_cpp='$CPP $CPPFLAGS'
14618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14620 cross_compiling=$ac_cv_prog_cc_cross
14626 echo "$ac_t""$glibcxx_cv_func_logf_use" 1>&6
14628 if test x$glibcxx_cv_func_logf_use = x"yes"; then
14629 for ac_func in logf
14631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14632 echo "configure:14633: checking for $ac_func" >&5
14633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14634 echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636 cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14639 /* System header to define __stub macros and hopefully few prototypes,
14640 which can conflict with char $ac_func(); below. */
14641 #include <assert.h>
14642 /* Override any gcc2 internal prototype to avoid an error. */
14643 /* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14645 char $ac_func();
14647 int main() {
14649 /* The GNU C library defines this for functions which it implements
14650 to always fail with ENOSYS. Some functions are actually named
14651 something starting with __ and the normal name is an alias. */
14652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653 choke me
14654 #else
14655 $ac_func();
14656 #endif
14658 ; return 0; }
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14661 rm -rf conftest*
14662 eval "ac_cv_func_$ac_func=yes"
14663 else
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -rf conftest*
14667 eval "ac_cv_func_$ac_func=no"
14669 rm -f conftest*
14672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14673 echo "$ac_t""yes" 1>&6
14674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14675 cat >> confdefs.h <<EOF
14676 #define $ac_tr_func 1
14679 else
14680 echo "$ac_t""no" 1>&6
14682 done
14684 else
14686 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14687 echo "configure:14688: checking for _logf declaration" >&5
14688 if test x${glibcxx_cv_func__logf_use+set} != xset; then
14689 if eval "test \"`echo '$''{'glibcxx_cv_func__logf_use'+set}'`\" = set"; then
14690 echo $ac_n "(cached) $ac_c" 1>&6
14691 else
14694 ac_ext=C
14695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14699 cross_compiling=$ac_cv_prog_cxx_cross
14701 cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 #include <math.h>
14705 #ifdef HAVE_IEEEFP_H
14706 #include <ieeefp.h>
14707 #endif
14709 int main() {
14710 _logf(0);
14711 ; return 0; }
14713 if { (eval echo configure:14714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14714 rm -rf conftest*
14715 glibcxx_cv_func__logf_use=yes
14716 else
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 rm -rf conftest*
14720 glibcxx_cv_func__logf_use=no
14722 rm -f conftest*
14723 ac_ext=c
14724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14728 cross_compiling=$ac_cv_prog_cc_cross
14734 echo "$ac_t""$glibcxx_cv_func__logf_use" 1>&6
14736 if test x$glibcxx_cv_func__logf_use = x"yes"; then
14737 for ac_func in _logf
14739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14740 echo "configure:14741: checking for $ac_func" >&5
14741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14742 echo $ac_n "(cached) $ac_c" 1>&6
14743 else
14744 cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14747 /* System header to define __stub macros and hopefully few prototypes,
14748 which can conflict with char $ac_func(); below. */
14749 #include <assert.h>
14750 /* Override any gcc2 internal prototype to avoid an error. */
14751 /* We use char because int might match the return type of a gcc2
14752 builtin and then its argument prototype would still apply. */
14753 char $ac_func();
14755 int main() {
14757 /* The GNU C library defines this for functions which it implements
14758 to always fail with ENOSYS. Some functions are actually named
14759 something starting with __ and the normal name is an alias. */
14760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14761 choke me
14762 #else
14763 $ac_func();
14764 #endif
14766 ; return 0; }
14768 if { (eval echo configure:14769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14769 rm -rf conftest*
14770 eval "ac_cv_func_$ac_func=yes"
14771 else
14772 echo "configure: failed program was:" >&5
14773 cat conftest.$ac_ext >&5
14774 rm -rf conftest*
14775 eval "ac_cv_func_$ac_func=no"
14777 rm -f conftest*
14780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14781 echo "$ac_t""yes" 1>&6
14782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14783 cat >> confdefs.h <<EOF
14784 #define $ac_tr_func 1
14787 else
14788 echo "$ac_t""no" 1>&6
14790 done
14797 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14798 echo "configure:14799: checking for log10f declaration" >&5
14799 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
14800 if eval "test \"`echo '$''{'glibcxx_cv_func_log10f_use'+set}'`\" = set"; then
14801 echo $ac_n "(cached) $ac_c" 1>&6
14802 else
14805 ac_ext=C
14806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14807 ac_cpp='$CXXCPP $CPPFLAGS'
14808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14810 cross_compiling=$ac_cv_prog_cxx_cross
14812 cat > conftest.$ac_ext <<EOF
14813 #line 14814 "configure"
14814 #include "confdefs.h"
14815 #include <math.h>
14816 #ifdef HAVE_IEEEFP_H
14817 #include <ieeefp.h>
14818 #endif
14820 int main() {
14821 log10f(0);
14822 ; return 0; }
14824 if { (eval echo configure:14825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14825 rm -rf conftest*
14826 glibcxx_cv_func_log10f_use=yes
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 glibcxx_cv_func_log10f_use=no
14833 rm -f conftest*
14834 ac_ext=c
14835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14839 cross_compiling=$ac_cv_prog_cc_cross
14845 echo "$ac_t""$glibcxx_cv_func_log10f_use" 1>&6
14847 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14848 for ac_func in log10f
14850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14851 echo "configure:14852: checking for $ac_func" >&5
14852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14854 else
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 /* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func(); below. */
14860 #include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error. */
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14864 char $ac_func();
14866 int main() {
14868 /* The GNU C library defines this for functions which it implements
14869 to always fail with ENOSYS. Some functions are actually named
14870 something starting with __ and the normal name is an alias. */
14871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872 choke me
14873 #else
14874 $ac_func();
14875 #endif
14877 ; return 0; }
14879 if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14880 rm -rf conftest*
14881 eval "ac_cv_func_$ac_func=yes"
14882 else
14883 echo "configure: failed program was:" >&5
14884 cat conftest.$ac_ext >&5
14885 rm -rf conftest*
14886 eval "ac_cv_func_$ac_func=no"
14888 rm -f conftest*
14891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14892 echo "$ac_t""yes" 1>&6
14893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14894 cat >> confdefs.h <<EOF
14895 #define $ac_tr_func 1
14898 else
14899 echo "$ac_t""no" 1>&6
14901 done
14903 else
14905 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14906 echo "configure:14907: checking for _log10f declaration" >&5
14907 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14908 if eval "test \"`echo '$''{'glibcxx_cv_func__log10f_use'+set}'`\" = set"; then
14909 echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14913 ac_ext=C
14914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14915 ac_cpp='$CXXCPP $CPPFLAGS'
14916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14918 cross_compiling=$ac_cv_prog_cxx_cross
14920 cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure"
14922 #include "confdefs.h"
14923 #include <math.h>
14924 #ifdef HAVE_IEEEFP_H
14925 #include <ieeefp.h>
14926 #endif
14928 int main() {
14929 _log10f(0);
14930 ; return 0; }
14932 if { (eval echo configure:14933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14933 rm -rf conftest*
14934 glibcxx_cv_func__log10f_use=yes
14935 else
14936 echo "configure: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14938 rm -rf conftest*
14939 glibcxx_cv_func__log10f_use=no
14941 rm -f conftest*
14942 ac_ext=c
14943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14947 cross_compiling=$ac_cv_prog_cc_cross
14953 echo "$ac_t""$glibcxx_cv_func__log10f_use" 1>&6
14955 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14956 for ac_func in _log10f
14958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14959 echo "configure:14960: checking for $ac_func" >&5
14960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14961 echo $ac_n "(cached) $ac_c" 1>&6
14962 else
14963 cat > conftest.$ac_ext <<EOF
14964 #line 14965 "configure"
14965 #include "confdefs.h"
14966 /* System header to define __stub macros and hopefully few prototypes,
14967 which can conflict with char $ac_func(); below. */
14968 #include <assert.h>
14969 /* Override any gcc2 internal prototype to avoid an error. */
14970 /* We use char because int might match the return type of a gcc2
14971 builtin and then its argument prototype would still apply. */
14972 char $ac_func();
14974 int main() {
14976 /* The GNU C library defines this for functions which it implements
14977 to always fail with ENOSYS. Some functions are actually named
14978 something starting with __ and the normal name is an alias. */
14979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14980 choke me
14981 #else
14982 $ac_func();
14983 #endif
14985 ; return 0; }
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988 rm -rf conftest*
14989 eval "ac_cv_func_$ac_func=yes"
14990 else
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -rf conftest*
14994 eval "ac_cv_func_$ac_func=no"
14996 rm -f conftest*
14999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15000 echo "$ac_t""yes" 1>&6
15001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15002 cat >> confdefs.h <<EOF
15003 #define $ac_tr_func 1
15006 else
15007 echo "$ac_t""no" 1>&6
15009 done
15016 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15017 echo "configure:15018: checking for modff declaration" >&5
15018 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15019 if eval "test \"`echo '$''{'glibcxx_cv_func_modff_use'+set}'`\" = set"; then
15020 echo $ac_n "(cached) $ac_c" 1>&6
15021 else
15024 ac_ext=C
15025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15026 ac_cpp='$CXXCPP $CPPFLAGS'
15027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15029 cross_compiling=$ac_cv_prog_cxx_cross
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 #include <math.h>
15035 int main() {
15036 modff(0, 0);
15037 ; return 0; }
15039 if { (eval echo configure:15040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15040 rm -rf conftest*
15041 glibcxx_cv_func_modff_use=yes
15042 else
15043 echo "configure: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15045 rm -rf conftest*
15046 glibcxx_cv_func_modff_use=no
15048 rm -f conftest*
15049 ac_ext=c
15050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15051 ac_cpp='$CPP $CPPFLAGS'
15052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15054 cross_compiling=$ac_cv_prog_cc_cross
15060 echo "$ac_t""$glibcxx_cv_func_modff_use" 1>&6
15062 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15063 for ac_func in modff
15065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15066 echo "configure:15067: checking for $ac_func" >&5
15067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15068 echo $ac_n "(cached) $ac_c" 1>&6
15069 else
15070 cat > conftest.$ac_ext <<EOF
15071 #line 15072 "configure"
15072 #include "confdefs.h"
15073 /* System header to define __stub macros and hopefully few prototypes,
15074 which can conflict with char $ac_func(); below. */
15075 #include <assert.h>
15076 /* Override any gcc2 internal prototype to avoid an error. */
15077 /* We use char because int might match the return type of a gcc2
15078 builtin and then its argument prototype would still apply. */
15079 char $ac_func();
15081 int main() {
15083 /* The GNU C library defines this for functions which it implements
15084 to always fail with ENOSYS. Some functions are actually named
15085 something starting with __ and the normal name is an alias. */
15086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15087 choke me
15088 #else
15089 $ac_func();
15090 #endif
15092 ; return 0; }
15094 if { (eval echo configure:15095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15095 rm -rf conftest*
15096 eval "ac_cv_func_$ac_func=yes"
15097 else
15098 echo "configure: failed program was:" >&5
15099 cat conftest.$ac_ext >&5
15100 rm -rf conftest*
15101 eval "ac_cv_func_$ac_func=no"
15103 rm -f conftest*
15106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15107 echo "$ac_t""yes" 1>&6
15108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15109 cat >> confdefs.h <<EOF
15110 #define $ac_tr_func 1
15113 else
15114 echo "$ac_t""no" 1>&6
15116 done
15118 else
15120 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15121 echo "configure:15122: checking for _modff declaration" >&5
15122 if test x${glibcxx_cv_func__modff_use+set} != xset; then
15123 if eval "test \"`echo '$''{'glibcxx_cv_func__modff_use'+set}'`\" = set"; then
15124 echo $ac_n "(cached) $ac_c" 1>&6
15125 else
15128 ac_ext=C
15129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15130 ac_cpp='$CXXCPP $CPPFLAGS'
15131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15133 cross_compiling=$ac_cv_prog_cxx_cross
15135 cat > conftest.$ac_ext <<EOF
15136 #line 15137 "configure"
15137 #include "confdefs.h"
15138 #include <math.h>
15139 int main() {
15140 _modff(0, 0);
15141 ; return 0; }
15143 if { (eval echo configure:15144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15144 rm -rf conftest*
15145 glibcxx_cv_func__modff_use=yes
15146 else
15147 echo "configure: failed program was:" >&5
15148 cat conftest.$ac_ext >&5
15149 rm -rf conftest*
15150 glibcxx_cv_func__modff_use=no
15152 rm -f conftest*
15153 ac_ext=c
15154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15155 ac_cpp='$CPP $CPPFLAGS'
15156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15158 cross_compiling=$ac_cv_prog_cc_cross
15164 echo "$ac_t""$glibcxx_cv_func__modff_use" 1>&6
15166 if test x$glibcxx_cv_func__modff_use = x"yes"; then
15167 for ac_func in _modff
15169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15170 echo "configure:15171: checking for $ac_func" >&5
15171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
15173 else
15174 cat > conftest.$ac_ext <<EOF
15175 #line 15176 "configure"
15176 #include "confdefs.h"
15177 /* System header to define __stub macros and hopefully few prototypes,
15178 which can conflict with char $ac_func(); below. */
15179 #include <assert.h>
15180 /* Override any gcc2 internal prototype to avoid an error. */
15181 /* We use char because int might match the return type of a gcc2
15182 builtin and then its argument prototype would still apply. */
15183 char $ac_func();
15185 int main() {
15187 /* The GNU C library defines this for functions which it implements
15188 to always fail with ENOSYS. Some functions are actually named
15189 something starting with __ and the normal name is an alias. */
15190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15191 choke me
15192 #else
15193 $ac_func();
15194 #endif
15196 ; return 0; }
15198 if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15199 rm -rf conftest*
15200 eval "ac_cv_func_$ac_func=yes"
15201 else
15202 echo "configure: failed program was:" >&5
15203 cat conftest.$ac_ext >&5
15204 rm -rf conftest*
15205 eval "ac_cv_func_$ac_func=no"
15207 rm -f conftest*
15210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15211 echo "$ac_t""yes" 1>&6
15212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15213 cat >> confdefs.h <<EOF
15214 #define $ac_tr_func 1
15217 else
15218 echo "$ac_t""no" 1>&6
15220 done
15227 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15228 echo "configure:15229: checking for powf declaration" >&5
15229 if test x${glibcxx_cv_func_powf_use+set} != xset; then
15230 if eval "test \"`echo '$''{'glibcxx_cv_func_powf_use'+set}'`\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15232 else
15235 ac_ext=C
15236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15237 ac_cpp='$CXXCPP $CPPFLAGS'
15238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15240 cross_compiling=$ac_cv_prog_cxx_cross
15242 cat > conftest.$ac_ext <<EOF
15243 #line 15244 "configure"
15244 #include "confdefs.h"
15245 #include <math.h>
15246 int main() {
15247 powf(0, 0);
15248 ; return 0; }
15250 if { (eval echo configure:15251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15251 rm -rf conftest*
15252 glibcxx_cv_func_powf_use=yes
15253 else
15254 echo "configure: failed program was:" >&5
15255 cat conftest.$ac_ext >&5
15256 rm -rf conftest*
15257 glibcxx_cv_func_powf_use=no
15259 rm -f conftest*
15260 ac_ext=c
15261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15262 ac_cpp='$CPP $CPPFLAGS'
15263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15265 cross_compiling=$ac_cv_prog_cc_cross
15271 echo "$ac_t""$glibcxx_cv_func_powf_use" 1>&6
15273 if test x$glibcxx_cv_func_powf_use = x"yes"; then
15274 for ac_func in powf
15276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15277 echo "configure:15278: checking for $ac_func" >&5
15278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
15280 else
15281 cat > conftest.$ac_ext <<EOF
15282 #line 15283 "configure"
15283 #include "confdefs.h"
15284 /* System header to define __stub macros and hopefully few prototypes,
15285 which can conflict with char $ac_func(); below. */
15286 #include <assert.h>
15287 /* Override any gcc2 internal prototype to avoid an error. */
15288 /* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15290 char $ac_func();
15292 int main() {
15294 /* The GNU C library defines this for functions which it implements
15295 to always fail with ENOSYS. Some functions are actually named
15296 something starting with __ and the normal name is an alias. */
15297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15298 choke me
15299 #else
15300 $ac_func();
15301 #endif
15303 ; return 0; }
15305 if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15306 rm -rf conftest*
15307 eval "ac_cv_func_$ac_func=yes"
15308 else
15309 echo "configure: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 rm -rf conftest*
15312 eval "ac_cv_func_$ac_func=no"
15314 rm -f conftest*
15317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320 cat >> confdefs.h <<EOF
15321 #define $ac_tr_func 1
15324 else
15325 echo "$ac_t""no" 1>&6
15327 done
15329 else
15331 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15332 echo "configure:15333: checking for _powf declaration" >&5
15333 if test x${glibcxx_cv_func__powf_use+set} != xset; then
15334 if eval "test \"`echo '$''{'glibcxx_cv_func__powf_use'+set}'`\" = set"; then
15335 echo $ac_n "(cached) $ac_c" 1>&6
15336 else
15339 ac_ext=C
15340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15341 ac_cpp='$CXXCPP $CPPFLAGS'
15342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15344 cross_compiling=$ac_cv_prog_cxx_cross
15346 cat > conftest.$ac_ext <<EOF
15347 #line 15348 "configure"
15348 #include "confdefs.h"
15349 #include <math.h>
15350 int main() {
15351 _powf(0, 0);
15352 ; return 0; }
15354 if { (eval echo configure:15355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15355 rm -rf conftest*
15356 glibcxx_cv_func__powf_use=yes
15357 else
15358 echo "configure: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15360 rm -rf conftest*
15361 glibcxx_cv_func__powf_use=no
15363 rm -f conftest*
15364 ac_ext=c
15365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15366 ac_cpp='$CPP $CPPFLAGS'
15367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15369 cross_compiling=$ac_cv_prog_cc_cross
15375 echo "$ac_t""$glibcxx_cv_func__powf_use" 1>&6
15377 if test x$glibcxx_cv_func__powf_use = x"yes"; then
15378 for ac_func in _powf
15380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15381 echo "configure:15382: checking for $ac_func" >&5
15382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15383 echo $ac_n "(cached) $ac_c" 1>&6
15384 else
15385 cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure"
15387 #include "confdefs.h"
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char $ac_func(); below. */
15390 #include <assert.h>
15391 /* Override any gcc2 internal prototype to avoid an error. */
15392 /* We use char because int might match the return type of a gcc2
15393 builtin and then its argument prototype would still apply. */
15394 char $ac_func();
15396 int main() {
15398 /* The GNU C library defines this for functions which it implements
15399 to always fail with ENOSYS. Some functions are actually named
15400 something starting with __ and the normal name is an alias. */
15401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15402 choke me
15403 #else
15404 $ac_func();
15405 #endif
15407 ; return 0; }
15409 if { (eval echo configure:15410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15410 rm -rf conftest*
15411 eval "ac_cv_func_$ac_func=yes"
15412 else
15413 echo "configure: failed program was:" >&5
15414 cat conftest.$ac_ext >&5
15415 rm -rf conftest*
15416 eval "ac_cv_func_$ac_func=no"
15418 rm -f conftest*
15421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15422 echo "$ac_t""yes" 1>&6
15423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15424 cat >> confdefs.h <<EOF
15425 #define $ac_tr_func 1
15428 else
15429 echo "$ac_t""no" 1>&6
15431 done
15438 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15439 echo "configure:15440: checking for sqrtf declaration" >&5
15440 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
15441 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtf_use'+set}'`\" = set"; then
15442 echo $ac_n "(cached) $ac_c" 1>&6
15443 else
15446 ac_ext=C
15447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15448 ac_cpp='$CXXCPP $CPPFLAGS'
15449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15451 cross_compiling=$ac_cv_prog_cxx_cross
15453 cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 #include <math.h>
15457 #ifdef HAVE_IEEEFP_H
15458 #include <ieeefp.h>
15459 #endif
15461 int main() {
15462 sqrtf(0);
15463 ; return 0; }
15465 if { (eval echo configure:15466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15466 rm -rf conftest*
15467 glibcxx_cv_func_sqrtf_use=yes
15468 else
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15471 rm -rf conftest*
15472 glibcxx_cv_func_sqrtf_use=no
15474 rm -f conftest*
15475 ac_ext=c
15476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480 cross_compiling=$ac_cv_prog_cc_cross
15486 echo "$ac_t""$glibcxx_cv_func_sqrtf_use" 1>&6
15488 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
15489 for ac_func in sqrtf
15491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15492 echo "configure:15493: checking for $ac_func" >&5
15493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15494 echo $ac_n "(cached) $ac_c" 1>&6
15495 else
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 /* System header to define __stub macros and hopefully few prototypes,
15500 which can conflict with char $ac_func(); below. */
15501 #include <assert.h>
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 /* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15505 char $ac_func();
15507 int main() {
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513 choke me
15514 #else
15515 $ac_func();
15516 #endif
15518 ; return 0; }
15520 if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15521 rm -rf conftest*
15522 eval "ac_cv_func_$ac_func=yes"
15523 else
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 rm -rf conftest*
15527 eval "ac_cv_func_$ac_func=no"
15529 rm -f conftest*
15532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15533 echo "$ac_t""yes" 1>&6
15534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15535 cat >> confdefs.h <<EOF
15536 #define $ac_tr_func 1
15539 else
15540 echo "$ac_t""no" 1>&6
15542 done
15544 else
15546 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15547 echo "configure:15548: checking for _sqrtf declaration" >&5
15548 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15549 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtf_use'+set}'`\" = set"; then
15550 echo $ac_n "(cached) $ac_c" 1>&6
15551 else
15554 ac_ext=C
15555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15556 ac_cpp='$CXXCPP $CPPFLAGS'
15557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15559 cross_compiling=$ac_cv_prog_cxx_cross
15561 cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 #include <math.h>
15565 #ifdef HAVE_IEEEFP_H
15566 #include <ieeefp.h>
15567 #endif
15569 int main() {
15570 _sqrtf(0);
15571 ; return 0; }
15573 if { (eval echo configure:15574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15574 rm -rf conftest*
15575 glibcxx_cv_func__sqrtf_use=yes
15576 else
15577 echo "configure: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 rm -rf conftest*
15580 glibcxx_cv_func__sqrtf_use=no
15582 rm -f conftest*
15583 ac_ext=c
15584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15585 ac_cpp='$CPP $CPPFLAGS'
15586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15588 cross_compiling=$ac_cv_prog_cc_cross
15594 echo "$ac_t""$glibcxx_cv_func__sqrtf_use" 1>&6
15596 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15597 for ac_func in _sqrtf
15599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_func" >&5
15601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15607 /* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char $ac_func(); below. */
15609 #include <assert.h>
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 /* We use char because int might match the return type of a gcc2
15612 builtin and then its argument prototype would still apply. */
15613 char $ac_func();
15615 int main() {
15617 /* The GNU C library defines this for functions which it implements
15618 to always fail with ENOSYS. Some functions are actually named
15619 something starting with __ and the normal name is an alias. */
15620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15621 choke me
15622 #else
15623 $ac_func();
15624 #endif
15626 ; return 0; }
15628 if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15629 rm -rf conftest*
15630 eval "ac_cv_func_$ac_func=yes"
15631 else
15632 echo "configure: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15634 rm -rf conftest*
15635 eval "ac_cv_func_$ac_func=no"
15637 rm -f conftest*
15640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15641 echo "$ac_t""yes" 1>&6
15642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15643 cat >> confdefs.h <<EOF
15644 #define $ac_tr_func 1
15647 else
15648 echo "$ac_t""no" 1>&6
15650 done
15657 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15658 echo "configure:15659: checking for sincosf declaration" >&5
15659 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15660 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosf_use'+set}'`\" = set"; then
15661 echo $ac_n "(cached) $ac_c" 1>&6
15662 else
15665 ac_ext=C
15666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15667 ac_cpp='$CXXCPP $CPPFLAGS'
15668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15670 cross_compiling=$ac_cv_prog_cxx_cross
15672 cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15675 #include <math.h>
15676 int main() {
15677 sincosf(0, 0, 0);
15678 ; return 0; }
15680 if { (eval echo configure:15681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15681 rm -rf conftest*
15682 glibcxx_cv_func_sincosf_use=yes
15683 else
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 glibcxx_cv_func_sincosf_use=no
15689 rm -f conftest*
15690 ac_ext=c
15691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15695 cross_compiling=$ac_cv_prog_cc_cross
15701 echo "$ac_t""$glibcxx_cv_func_sincosf_use" 1>&6
15703 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15704 for ac_func in sincosf
15706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15707 echo "configure:15708: checking for $ac_func" >&5
15708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15709 echo $ac_n "(cached) $ac_c" 1>&6
15710 else
15711 cat > conftest.$ac_ext <<EOF
15712 #line 15713 "configure"
15713 #include "confdefs.h"
15714 /* System header to define __stub macros and hopefully few prototypes,
15715 which can conflict with char $ac_func(); below. */
15716 #include <assert.h>
15717 /* Override any gcc2 internal prototype to avoid an error. */
15718 /* We use char because int might match the return type of a gcc2
15719 builtin and then its argument prototype would still apply. */
15720 char $ac_func();
15722 int main() {
15724 /* The GNU C library defines this for functions which it implements
15725 to always fail with ENOSYS. Some functions are actually named
15726 something starting with __ and the normal name is an alias. */
15727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15728 choke me
15729 #else
15730 $ac_func();
15731 #endif
15733 ; return 0; }
15735 if { (eval echo configure:15736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15736 rm -rf conftest*
15737 eval "ac_cv_func_$ac_func=yes"
15738 else
15739 echo "configure: failed program was:" >&5
15740 cat conftest.$ac_ext >&5
15741 rm -rf conftest*
15742 eval "ac_cv_func_$ac_func=no"
15744 rm -f conftest*
15747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6
15749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15750 cat >> confdefs.h <<EOF
15751 #define $ac_tr_func 1
15754 else
15755 echo "$ac_t""no" 1>&6
15757 done
15759 else
15761 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15762 echo "configure:15763: checking for _sincosf declaration" >&5
15763 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15764 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosf_use'+set}'`\" = set"; then
15765 echo $ac_n "(cached) $ac_c" 1>&6
15766 else
15769 ac_ext=C
15770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15771 ac_cpp='$CXXCPP $CPPFLAGS'
15772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15774 cross_compiling=$ac_cv_prog_cxx_cross
15776 cat > conftest.$ac_ext <<EOF
15777 #line 15778 "configure"
15778 #include "confdefs.h"
15779 #include <math.h>
15780 int main() {
15781 _sincosf(0, 0, 0);
15782 ; return 0; }
15784 if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15785 rm -rf conftest*
15786 glibcxx_cv_func__sincosf_use=yes
15787 else
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
15791 glibcxx_cv_func__sincosf_use=no
15793 rm -f conftest*
15794 ac_ext=c
15795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15799 cross_compiling=$ac_cv_prog_cc_cross
15805 echo "$ac_t""$glibcxx_cv_func__sincosf_use" 1>&6
15807 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15808 for ac_func in _sincosf
15810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15811 echo "configure:15812: checking for $ac_func" >&5
15812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15813 echo $ac_n "(cached) $ac_c" 1>&6
15814 else
15815 cat > conftest.$ac_ext <<EOF
15816 #line 15817 "configure"
15817 #include "confdefs.h"
15818 /* System header to define __stub macros and hopefully few prototypes,
15819 which can conflict with char $ac_func(); below. */
15820 #include <assert.h>
15821 /* Override any gcc2 internal prototype to avoid an error. */
15822 /* We use char because int might match the return type of a gcc2
15823 builtin and then its argument prototype would still apply. */
15824 char $ac_func();
15826 int main() {
15828 /* The GNU C library defines this for functions which it implements
15829 to always fail with ENOSYS. Some functions are actually named
15830 something starting with __ and the normal name is an alias. */
15831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15832 choke me
15833 #else
15834 $ac_func();
15835 #endif
15837 ; return 0; }
15839 if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15840 rm -rf conftest*
15841 eval "ac_cv_func_$ac_func=yes"
15842 else
15843 echo "configure: failed program was:" >&5
15844 cat conftest.$ac_ext >&5
15845 rm -rf conftest*
15846 eval "ac_cv_func_$ac_func=no"
15848 rm -f conftest*
15851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15852 echo "$ac_t""yes" 1>&6
15853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15854 cat >> confdefs.h <<EOF
15855 #define $ac_tr_func 1
15858 else
15859 echo "$ac_t""no" 1>&6
15861 done
15868 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15869 echo "configure:15870: checking for finitef declaration" >&5
15870 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15871 if eval "test \"`echo '$''{'glibcxx_cv_func_finitef_use'+set}'`\" = set"; then
15872 echo $ac_n "(cached) $ac_c" 1>&6
15873 else
15876 ac_ext=C
15877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15878 ac_cpp='$CXXCPP $CPPFLAGS'
15879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15881 cross_compiling=$ac_cv_prog_cxx_cross
15883 cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15886 #include <math.h>
15887 #ifdef HAVE_IEEEFP_H
15888 #include <ieeefp.h>
15889 #endif
15891 int main() {
15892 finitef(0);
15893 ; return 0; }
15895 if { (eval echo configure:15896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15896 rm -rf conftest*
15897 glibcxx_cv_func_finitef_use=yes
15898 else
15899 echo "configure: failed program was:" >&5
15900 cat conftest.$ac_ext >&5
15901 rm -rf conftest*
15902 glibcxx_cv_func_finitef_use=no
15904 rm -f conftest*
15905 ac_ext=c
15906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15907 ac_cpp='$CPP $CPPFLAGS'
15908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15910 cross_compiling=$ac_cv_prog_cc_cross
15916 echo "$ac_t""$glibcxx_cv_func_finitef_use" 1>&6
15918 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15919 for ac_func in finitef
15921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15922 echo "configure:15923: checking for $ac_func" >&5
15923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15924 echo $ac_n "(cached) $ac_c" 1>&6
15925 else
15926 cat > conftest.$ac_ext <<EOF
15927 #line 15928 "configure"
15928 #include "confdefs.h"
15929 /* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func(); below. */
15931 #include <assert.h>
15932 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15935 char $ac_func();
15937 int main() {
15939 /* The GNU C library defines this for functions which it implements
15940 to always fail with ENOSYS. Some functions are actually named
15941 something starting with __ and the normal name is an alias. */
15942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15943 choke me
15944 #else
15945 $ac_func();
15946 #endif
15948 ; return 0; }
15950 if { (eval echo configure:15951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15951 rm -rf conftest*
15952 eval "ac_cv_func_$ac_func=yes"
15953 else
15954 echo "configure: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 rm -rf conftest*
15957 eval "ac_cv_func_$ac_func=no"
15959 rm -f conftest*
15962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15963 echo "$ac_t""yes" 1>&6
15964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15965 cat >> confdefs.h <<EOF
15966 #define $ac_tr_func 1
15969 else
15970 echo "$ac_t""no" 1>&6
15972 done
15974 else
15976 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15977 echo "configure:15978: checking for _finitef declaration" >&5
15978 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15979 if eval "test \"`echo '$''{'glibcxx_cv_func__finitef_use'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15984 ac_ext=C
15985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15986 ac_cpp='$CXXCPP $CPPFLAGS'
15987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15989 cross_compiling=$ac_cv_prog_cxx_cross
15991 cat > conftest.$ac_ext <<EOF
15992 #line 15993 "configure"
15993 #include "confdefs.h"
15994 #include <math.h>
15995 #ifdef HAVE_IEEEFP_H
15996 #include <ieeefp.h>
15997 #endif
15999 int main() {
16000 _finitef(0);
16001 ; return 0; }
16003 if { (eval echo configure:16004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16004 rm -rf conftest*
16005 glibcxx_cv_func__finitef_use=yes
16006 else
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 rm -rf conftest*
16010 glibcxx_cv_func__finitef_use=no
16012 rm -f conftest*
16013 ac_ext=c
16014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16015 ac_cpp='$CPP $CPPFLAGS'
16016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16018 cross_compiling=$ac_cv_prog_cc_cross
16024 echo "$ac_t""$glibcxx_cv_func__finitef_use" 1>&6
16026 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
16027 for ac_func in _finitef
16029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16030 echo "configure:16031: checking for $ac_func" >&5
16031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16032 echo $ac_n "(cached) $ac_c" 1>&6
16033 else
16034 cat > conftest.$ac_ext <<EOF
16035 #line 16036 "configure"
16036 #include "confdefs.h"
16037 /* System header to define __stub macros and hopefully few prototypes,
16038 which can conflict with char $ac_func(); below. */
16039 #include <assert.h>
16040 /* Override any gcc2 internal prototype to avoid an error. */
16041 /* We use char because int might match the return type of a gcc2
16042 builtin and then its argument prototype would still apply. */
16043 char $ac_func();
16045 int main() {
16047 /* The GNU C library defines this for functions which it implements
16048 to always fail with ENOSYS. Some functions are actually named
16049 something starting with __ and the normal name is an alias. */
16050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16051 choke me
16052 #else
16053 $ac_func();
16054 #endif
16056 ; return 0; }
16058 if { (eval echo configure:16059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16059 rm -rf conftest*
16060 eval "ac_cv_func_$ac_func=yes"
16061 else
16062 echo "configure: failed program was:" >&5
16063 cat conftest.$ac_ext >&5
16064 rm -rf conftest*
16065 eval "ac_cv_func_$ac_func=no"
16067 rm -f conftest*
16070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16071 echo "$ac_t""yes" 1>&6
16072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16073 cat >> confdefs.h <<EOF
16074 #define $ac_tr_func 1
16077 else
16078 echo "$ac_t""no" 1>&6
16080 done
16087 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16088 echo "configure:16089: checking for long double trig functions" >&5
16089 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_trig_use'+set}'`\" = set"; then
16090 echo $ac_n "(cached) $ac_c" 1>&6
16091 else
16094 ac_ext=C
16095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16096 ac_cpp='$CXXCPP $CPPFLAGS'
16097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16099 cross_compiling=$ac_cv_prog_cxx_cross
16101 cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16104 #include <math.h>
16105 int main() {
16106 `for x in acosl asinl atanl \
16107 cosl sinl tanl \
16108 coshl sinhl tanhl; do echo "$x (0);"; done`
16109 ; return 0; }
16111 if { (eval echo configure:16112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16112 rm -rf conftest*
16113 glibcxx_cv_func_long_double_trig_use=yes
16114 else
16115 echo "configure: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 rm -rf conftest*
16118 glibcxx_cv_func_long_double_trig_use=no
16120 rm -f conftest*
16121 ac_ext=c
16122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16123 ac_cpp='$CPP $CPPFLAGS'
16124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16126 cross_compiling=$ac_cv_prog_cc_cross
16130 echo "$ac_t""$glibcxx_cv_func_long_double_trig_use" 1>&6
16131 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
16132 for ac_func in acosl asinl atanl \
16133 cosl sinl tanl \
16134 coshl sinhl tanhl
16136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16137 echo "configure:16138: checking for $ac_func" >&5
16138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16139 echo $ac_n "(cached) $ac_c" 1>&6
16140 else
16141 cat > conftest.$ac_ext <<EOF
16142 #line 16143 "configure"
16143 #include "confdefs.h"
16144 /* System header to define __stub macros and hopefully few prototypes,
16145 which can conflict with char $ac_func(); below. */
16146 #include <assert.h>
16147 /* Override any gcc2 internal prototype to avoid an error. */
16148 /* We use char because int might match the return type of a gcc2
16149 builtin and then its argument prototype would still apply. */
16150 char $ac_func();
16152 int main() {
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 $ac_func();
16161 #endif
16163 ; return 0; }
16165 if { (eval echo configure:16166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16166 rm -rf conftest*
16167 eval "ac_cv_func_$ac_func=yes"
16168 else
16169 echo "configure: failed program was:" >&5
16170 cat conftest.$ac_ext >&5
16171 rm -rf conftest*
16172 eval "ac_cv_func_$ac_func=no"
16174 rm -f conftest*
16177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16178 echo "$ac_t""yes" 1>&6
16179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16180 cat >> confdefs.h <<EOF
16181 #define $ac_tr_func 1
16184 else
16185 echo "$ac_t""no" 1>&6
16187 done
16192 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16193 echo "configure:16194: checking for long double round functions" >&5
16194 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_round_use'+set}'`\" = set"; then
16195 echo $ac_n "(cached) $ac_c" 1>&6
16196 else
16199 ac_ext=C
16200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16201 ac_cpp='$CXXCPP $CPPFLAGS'
16202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16204 cross_compiling=$ac_cv_prog_cxx_cross
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16209 #include <math.h>
16210 int main() {
16211 `for x in ceill floorl; do echo "$x (0);"; done`
16212 ; return 0; }
16214 if { (eval echo configure:16215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16215 rm -rf conftest*
16216 glibcxx_cv_func_long_double_round_use=yes
16217 else
16218 echo "configure: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16220 rm -rf conftest*
16221 glibcxx_cv_func_long_double_round_use=no
16223 rm -f conftest*
16224 ac_ext=c
16225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16226 ac_cpp='$CPP $CPPFLAGS'
16227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16229 cross_compiling=$ac_cv_prog_cc_cross
16233 echo "$ac_t""$glibcxx_cv_func_long_double_round_use" 1>&6
16234 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16235 for ac_func in ceill floorl
16237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16238 echo "configure:16239: checking for $ac_func" >&5
16239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16242 cat > conftest.$ac_ext <<EOF
16243 #line 16244 "configure"
16244 #include "confdefs.h"
16245 /* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char $ac_func(); below. */
16247 #include <assert.h>
16248 /* Override any gcc2 internal prototype to avoid an error. */
16249 /* We use char because int might match the return type of a gcc2
16250 builtin and then its argument prototype would still apply. */
16251 char $ac_func();
16253 int main() {
16255 /* The GNU C library defines this for functions which it implements
16256 to always fail with ENOSYS. Some functions are actually named
16257 something starting with __ and the normal name is an alias. */
16258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259 choke me
16260 #else
16261 $ac_func();
16262 #endif
16264 ; return 0; }
16266 if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267 rm -rf conftest*
16268 eval "ac_cv_func_$ac_func=yes"
16269 else
16270 echo "configure: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 rm -rf conftest*
16273 eval "ac_cv_func_$ac_func=no"
16275 rm -f conftest*
16278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16279 echo "$ac_t""yes" 1>&6
16280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16281 cat >> confdefs.h <<EOF
16282 #define $ac_tr_func 1
16285 else
16286 echo "$ac_t""no" 1>&6
16288 done
16294 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16295 echo "configure:16296: checking for isnanl declaration" >&5
16296 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16297 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanl_use'+set}'`\" = set"; then
16298 echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16302 ac_ext=C
16303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16304 ac_cpp='$CXXCPP $CPPFLAGS'
16305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16307 cross_compiling=$ac_cv_prog_cxx_cross
16309 cat > conftest.$ac_ext <<EOF
16310 #line 16311 "configure"
16311 #include "confdefs.h"
16312 #include <math.h>
16313 #ifdef HAVE_IEEEFP_H
16314 #include <ieeefp.h>
16315 #endif
16317 int main() {
16318 isnanl(0);
16319 ; return 0; }
16321 if { (eval echo configure:16322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16322 rm -rf conftest*
16323 glibcxx_cv_func_isnanl_use=yes
16324 else
16325 echo "configure: failed program was:" >&5
16326 cat conftest.$ac_ext >&5
16327 rm -rf conftest*
16328 glibcxx_cv_func_isnanl_use=no
16330 rm -f conftest*
16331 ac_ext=c
16332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16333 ac_cpp='$CPP $CPPFLAGS'
16334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16336 cross_compiling=$ac_cv_prog_cc_cross
16342 echo "$ac_t""$glibcxx_cv_func_isnanl_use" 1>&6
16344 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16345 for ac_func in isnanl
16347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16348 echo "configure:16349: checking for $ac_func" >&5
16349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16350 echo $ac_n "(cached) $ac_c" 1>&6
16351 else
16352 cat > conftest.$ac_ext <<EOF
16353 #line 16354 "configure"
16354 #include "confdefs.h"
16355 /* System header to define __stub macros and hopefully few prototypes,
16356 which can conflict with char $ac_func(); below. */
16357 #include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error. */
16359 /* We use char because int might match the return type of a gcc2
16360 builtin and then its argument prototype would still apply. */
16361 char $ac_func();
16363 int main() {
16365 /* The GNU C library defines this for functions which it implements
16366 to always fail with ENOSYS. Some functions are actually named
16367 something starting with __ and the normal name is an alias. */
16368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16369 choke me
16370 #else
16371 $ac_func();
16372 #endif
16374 ; return 0; }
16376 if { (eval echo configure:16377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16377 rm -rf conftest*
16378 eval "ac_cv_func_$ac_func=yes"
16379 else
16380 echo "configure: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 rm -rf conftest*
16383 eval "ac_cv_func_$ac_func=no"
16385 rm -f conftest*
16388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16389 echo "$ac_t""yes" 1>&6
16390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16391 cat >> confdefs.h <<EOF
16392 #define $ac_tr_func 1
16395 else
16396 echo "$ac_t""no" 1>&6
16398 done
16400 else
16402 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16403 echo "configure:16404: checking for _isnanl declaration" >&5
16404 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16405 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanl_use'+set}'`\" = set"; then
16406 echo $ac_n "(cached) $ac_c" 1>&6
16407 else
16410 ac_ext=C
16411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16412 ac_cpp='$CXXCPP $CPPFLAGS'
16413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16415 cross_compiling=$ac_cv_prog_cxx_cross
16417 cat > conftest.$ac_ext <<EOF
16418 #line 16419 "configure"
16419 #include "confdefs.h"
16420 #include <math.h>
16421 #ifdef HAVE_IEEEFP_H
16422 #include <ieeefp.h>
16423 #endif
16425 int main() {
16426 _isnanl(0);
16427 ; return 0; }
16429 if { (eval echo configure:16430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16430 rm -rf conftest*
16431 glibcxx_cv_func__isnanl_use=yes
16432 else
16433 echo "configure: failed program was:" >&5
16434 cat conftest.$ac_ext >&5
16435 rm -rf conftest*
16436 glibcxx_cv_func__isnanl_use=no
16438 rm -f conftest*
16439 ac_ext=c
16440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16441 ac_cpp='$CPP $CPPFLAGS'
16442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16444 cross_compiling=$ac_cv_prog_cc_cross
16450 echo "$ac_t""$glibcxx_cv_func__isnanl_use" 1>&6
16452 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16453 for ac_func in _isnanl
16455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16456 echo "configure:16457: checking for $ac_func" >&5
16457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16460 cat > conftest.$ac_ext <<EOF
16461 #line 16462 "configure"
16462 #include "confdefs.h"
16463 /* System header to define __stub macros and hopefully few prototypes,
16464 which can conflict with char $ac_func(); below. */
16465 #include <assert.h>
16466 /* Override any gcc2 internal prototype to avoid an error. */
16467 /* We use char because int might match the return type of a gcc2
16468 builtin and then its argument prototype would still apply. */
16469 char $ac_func();
16471 int main() {
16473 /* The GNU C library defines this for functions which it implements
16474 to always fail with ENOSYS. Some functions are actually named
16475 something starting with __ and the normal name is an alias. */
16476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16477 choke me
16478 #else
16479 $ac_func();
16480 #endif
16482 ; return 0; }
16484 if { (eval echo configure:16485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16485 rm -rf conftest*
16486 eval "ac_cv_func_$ac_func=yes"
16487 else
16488 echo "configure: failed program was:" >&5
16489 cat conftest.$ac_ext >&5
16490 rm -rf conftest*
16491 eval "ac_cv_func_$ac_func=no"
16493 rm -f conftest*
16496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16497 echo "$ac_t""yes" 1>&6
16498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16499 cat >> confdefs.h <<EOF
16500 #define $ac_tr_func 1
16503 else
16504 echo "$ac_t""no" 1>&6
16506 done
16513 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16514 echo "configure:16515: checking for isinfl declaration" >&5
16515 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16516 if eval "test \"`echo '$''{'glibcxx_cv_func_isinfl_use'+set}'`\" = set"; then
16517 echo $ac_n "(cached) $ac_c" 1>&6
16518 else
16521 ac_ext=C
16522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16523 ac_cpp='$CXXCPP $CPPFLAGS'
16524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16526 cross_compiling=$ac_cv_prog_cxx_cross
16528 cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 #include <math.h>
16532 #ifdef HAVE_IEEEFP_H
16533 #include <ieeefp.h>
16534 #endif
16536 int main() {
16537 isinfl(0);
16538 ; return 0; }
16540 if { (eval echo configure:16541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16541 rm -rf conftest*
16542 glibcxx_cv_func_isinfl_use=yes
16543 else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 glibcxx_cv_func_isinfl_use=no
16549 rm -f conftest*
16550 ac_ext=c
16551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16552 ac_cpp='$CPP $CPPFLAGS'
16553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16555 cross_compiling=$ac_cv_prog_cc_cross
16561 echo "$ac_t""$glibcxx_cv_func_isinfl_use" 1>&6
16563 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16564 for ac_func in isinfl
16566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16567 echo "configure:16568: checking for $ac_func" >&5
16568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16569 echo $ac_n "(cached) $ac_c" 1>&6
16570 else
16571 cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func(); below. */
16576 #include <assert.h>
16577 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16580 char $ac_func();
16582 int main() {
16584 /* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16588 choke me
16589 #else
16590 $ac_func();
16591 #endif
16593 ; return 0; }
16595 if { (eval echo configure:16596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16596 rm -rf conftest*
16597 eval "ac_cv_func_$ac_func=yes"
16598 else
16599 echo "configure: failed program was:" >&5
16600 cat conftest.$ac_ext >&5
16601 rm -rf conftest*
16602 eval "ac_cv_func_$ac_func=no"
16604 rm -f conftest*
16607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16608 echo "$ac_t""yes" 1>&6
16609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16610 cat >> confdefs.h <<EOF
16611 #define $ac_tr_func 1
16614 else
16615 echo "$ac_t""no" 1>&6
16617 done
16619 else
16621 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16622 echo "configure:16623: checking for _isinfl declaration" >&5
16623 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16624 if eval "test \"`echo '$''{'glibcxx_cv_func__isinfl_use'+set}'`\" = set"; then
16625 echo $ac_n "(cached) $ac_c" 1>&6
16626 else
16629 ac_ext=C
16630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16631 ac_cpp='$CXXCPP $CPPFLAGS'
16632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16634 cross_compiling=$ac_cv_prog_cxx_cross
16636 cat > conftest.$ac_ext <<EOF
16637 #line 16638 "configure"
16638 #include "confdefs.h"
16639 #include <math.h>
16640 #ifdef HAVE_IEEEFP_H
16641 #include <ieeefp.h>
16642 #endif
16644 int main() {
16645 _isinfl(0);
16646 ; return 0; }
16648 if { (eval echo configure:16649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16649 rm -rf conftest*
16650 glibcxx_cv_func__isinfl_use=yes
16651 else
16652 echo "configure: failed program was:" >&5
16653 cat conftest.$ac_ext >&5
16654 rm -rf conftest*
16655 glibcxx_cv_func__isinfl_use=no
16657 rm -f conftest*
16658 ac_ext=c
16659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16660 ac_cpp='$CPP $CPPFLAGS'
16661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16663 cross_compiling=$ac_cv_prog_cc_cross
16669 echo "$ac_t""$glibcxx_cv_func__isinfl_use" 1>&6
16671 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16672 for ac_func in _isinfl
16674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16675 echo "configure:16676: checking for $ac_func" >&5
16676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16677 echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 /* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char $ac_func(); below. */
16684 #include <assert.h>
16685 /* Override any gcc2 internal prototype to avoid an error. */
16686 /* We use char because int might match the return type of a gcc2
16687 builtin and then its argument prototype would still apply. */
16688 char $ac_func();
16690 int main() {
16692 /* The GNU C library defines this for functions which it implements
16693 to always fail with ENOSYS. Some functions are actually named
16694 something starting with __ and the normal name is an alias. */
16695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16696 choke me
16697 #else
16698 $ac_func();
16699 #endif
16701 ; return 0; }
16703 if { (eval echo configure:16704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16704 rm -rf conftest*
16705 eval "ac_cv_func_$ac_func=yes"
16706 else
16707 echo "configure: failed program was:" >&5
16708 cat conftest.$ac_ext >&5
16709 rm -rf conftest*
16710 eval "ac_cv_func_$ac_func=no"
16712 rm -f conftest*
16715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16716 echo "$ac_t""yes" 1>&6
16717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16718 cat >> confdefs.h <<EOF
16719 #define $ac_tr_func 1
16722 else
16723 echo "$ac_t""no" 1>&6
16725 done
16732 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16733 echo "configure:16734: checking for copysignl declaration" >&5
16734 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16735 if eval "test \"`echo '$''{'glibcxx_cv_func_copysignl_use'+set}'`\" = set"; then
16736 echo $ac_n "(cached) $ac_c" 1>&6
16737 else
16740 ac_ext=C
16741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16742 ac_cpp='$CXXCPP $CPPFLAGS'
16743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16745 cross_compiling=$ac_cv_prog_cxx_cross
16747 cat > conftest.$ac_ext <<EOF
16748 #line 16749 "configure"
16749 #include "confdefs.h"
16750 #include <math.h>
16751 int main() {
16752 copysignl(0, 0);
16753 ; return 0; }
16755 if { (eval echo configure:16756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16756 rm -rf conftest*
16757 glibcxx_cv_func_copysignl_use=yes
16758 else
16759 echo "configure: failed program was:" >&5
16760 cat conftest.$ac_ext >&5
16761 rm -rf conftest*
16762 glibcxx_cv_func_copysignl_use=no
16764 rm -f conftest*
16765 ac_ext=c
16766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16767 ac_cpp='$CPP $CPPFLAGS'
16768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16770 cross_compiling=$ac_cv_prog_cc_cross
16776 echo "$ac_t""$glibcxx_cv_func_copysignl_use" 1>&6
16778 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16779 for ac_func in copysignl
16781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16782 echo "configure:16783: checking for $ac_func" >&5
16783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16784 echo $ac_n "(cached) $ac_c" 1>&6
16785 else
16786 cat > conftest.$ac_ext <<EOF
16787 #line 16788 "configure"
16788 #include "confdefs.h"
16789 /* System header to define __stub macros and hopefully few prototypes,
16790 which can conflict with char $ac_func(); below. */
16791 #include <assert.h>
16792 /* Override any gcc2 internal prototype to avoid an error. */
16793 /* We use char because int might match the return type of a gcc2
16794 builtin and then its argument prototype would still apply. */
16795 char $ac_func();
16797 int main() {
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 $ac_func();
16806 #endif
16808 ; return 0; }
16810 if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16811 rm -rf conftest*
16812 eval "ac_cv_func_$ac_func=yes"
16813 else
16814 echo "configure: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16816 rm -rf conftest*
16817 eval "ac_cv_func_$ac_func=no"
16819 rm -f conftest*
16822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16823 echo "$ac_t""yes" 1>&6
16824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16825 cat >> confdefs.h <<EOF
16826 #define $ac_tr_func 1
16829 else
16830 echo "$ac_t""no" 1>&6
16832 done
16834 else
16836 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16837 echo "configure:16838: checking for _copysignl declaration" >&5
16838 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
16839 if eval "test \"`echo '$''{'glibcxx_cv_func__copysignl_use'+set}'`\" = set"; then
16840 echo $ac_n "(cached) $ac_c" 1>&6
16841 else
16844 ac_ext=C
16845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846 ac_cpp='$CXXCPP $CPPFLAGS'
16847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849 cross_compiling=$ac_cv_prog_cxx_cross
16851 cat > conftest.$ac_ext <<EOF
16852 #line 16853 "configure"
16853 #include "confdefs.h"
16854 #include <math.h>
16855 int main() {
16856 _copysignl(0, 0);
16857 ; return 0; }
16859 if { (eval echo configure:16860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16860 rm -rf conftest*
16861 glibcxx_cv_func__copysignl_use=yes
16862 else
16863 echo "configure: failed program was:" >&5
16864 cat conftest.$ac_ext >&5
16865 rm -rf conftest*
16866 glibcxx_cv_func__copysignl_use=no
16868 rm -f conftest*
16869 ac_ext=c
16870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16874 cross_compiling=$ac_cv_prog_cc_cross
16880 echo "$ac_t""$glibcxx_cv_func__copysignl_use" 1>&6
16882 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
16883 for ac_func in _copysignl
16885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16886 echo "configure:16887: checking for $ac_func" >&5
16887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16888 echo $ac_n "(cached) $ac_c" 1>&6
16889 else
16890 cat > conftest.$ac_ext <<EOF
16891 #line 16892 "configure"
16892 #include "confdefs.h"
16893 /* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func(); below. */
16895 #include <assert.h>
16896 /* Override any gcc2 internal prototype to avoid an error. */
16897 /* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16899 char $ac_func();
16901 int main() {
16903 /* The GNU C library defines this for functions which it implements
16904 to always fail with ENOSYS. Some functions are actually named
16905 something starting with __ and the normal name is an alias. */
16906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16907 choke me
16908 #else
16909 $ac_func();
16910 #endif
16912 ; return 0; }
16914 if { (eval echo configure:16915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16915 rm -rf conftest*
16916 eval "ac_cv_func_$ac_func=yes"
16917 else
16918 echo "configure: failed program was:" >&5
16919 cat conftest.$ac_ext >&5
16920 rm -rf conftest*
16921 eval "ac_cv_func_$ac_func=no"
16923 rm -f conftest*
16926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16927 echo "$ac_t""yes" 1>&6
16928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16929 cat >> confdefs.h <<EOF
16930 #define $ac_tr_func 1
16933 else
16934 echo "$ac_t""no" 1>&6
16936 done
16943 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16944 echo "configure:16945: checking for atan2l declaration" >&5
16945 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
16946 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2l_use'+set}'`\" = set"; then
16947 echo $ac_n "(cached) $ac_c" 1>&6
16948 else
16951 ac_ext=C
16952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CXXCPP $CPPFLAGS'
16954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cxx_cross
16958 cat > conftest.$ac_ext <<EOF
16959 #line 16960 "configure"
16960 #include "confdefs.h"
16961 #include <math.h>
16962 int main() {
16963 atan2l(0, 0);
16964 ; return 0; }
16966 if { (eval echo configure:16967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16967 rm -rf conftest*
16968 glibcxx_cv_func_atan2l_use=yes
16969 else
16970 echo "configure: failed program was:" >&5
16971 cat conftest.$ac_ext >&5
16972 rm -rf conftest*
16973 glibcxx_cv_func_atan2l_use=no
16975 rm -f conftest*
16976 ac_ext=c
16977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16978 ac_cpp='$CPP $CPPFLAGS'
16979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16981 cross_compiling=$ac_cv_prog_cc_cross
16987 echo "$ac_t""$glibcxx_cv_func_atan2l_use" 1>&6
16989 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
16990 for ac_func in atan2l
16992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16993 echo "configure:16994: checking for $ac_func" >&5
16994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16995 echo $ac_n "(cached) $ac_c" 1>&6
16996 else
16997 cat > conftest.$ac_ext <<EOF
16998 #line 16999 "configure"
16999 #include "confdefs.h"
17000 /* System header to define __stub macros and hopefully few prototypes,
17001 which can conflict with char $ac_func(); below. */
17002 #include <assert.h>
17003 /* Override any gcc2 internal prototype to avoid an error. */
17004 /* We use char because int might match the return type of a gcc2
17005 builtin and then its argument prototype would still apply. */
17006 char $ac_func();
17008 int main() {
17010 /* The GNU C library defines this for functions which it implements
17011 to always fail with ENOSYS. Some functions are actually named
17012 something starting with __ and the normal name is an alias. */
17013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17014 choke me
17015 #else
17016 $ac_func();
17017 #endif
17019 ; return 0; }
17021 if { (eval echo configure:17022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17022 rm -rf conftest*
17023 eval "ac_cv_func_$ac_func=yes"
17024 else
17025 echo "configure: failed program was:" >&5
17026 cat conftest.$ac_ext >&5
17027 rm -rf conftest*
17028 eval "ac_cv_func_$ac_func=no"
17030 rm -f conftest*
17033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17034 echo "$ac_t""yes" 1>&6
17035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17036 cat >> confdefs.h <<EOF
17037 #define $ac_tr_func 1
17040 else
17041 echo "$ac_t""no" 1>&6
17043 done
17045 else
17047 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17048 echo "configure:17049: checking for _atan2l declaration" >&5
17049 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17050 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2l_use'+set}'`\" = set"; then
17051 echo $ac_n "(cached) $ac_c" 1>&6
17052 else
17055 ac_ext=C
17056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17057 ac_cpp='$CXXCPP $CPPFLAGS'
17058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17060 cross_compiling=$ac_cv_prog_cxx_cross
17062 cat > conftest.$ac_ext <<EOF
17063 #line 17064 "configure"
17064 #include "confdefs.h"
17065 #include <math.h>
17066 int main() {
17067 _atan2l(0, 0);
17068 ; return 0; }
17070 if { (eval echo configure:17071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17071 rm -rf conftest*
17072 glibcxx_cv_func__atan2l_use=yes
17073 else
17074 echo "configure: failed program was:" >&5
17075 cat conftest.$ac_ext >&5
17076 rm -rf conftest*
17077 glibcxx_cv_func__atan2l_use=no
17079 rm -f conftest*
17080 ac_ext=c
17081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17082 ac_cpp='$CPP $CPPFLAGS'
17083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17085 cross_compiling=$ac_cv_prog_cc_cross
17091 echo "$ac_t""$glibcxx_cv_func__atan2l_use" 1>&6
17093 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17094 for ac_func in _atan2l
17096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17097 echo "configure:17098: checking for $ac_func" >&5
17098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17099 echo $ac_n "(cached) $ac_c" 1>&6
17100 else
17101 cat > conftest.$ac_ext <<EOF
17102 #line 17103 "configure"
17103 #include "confdefs.h"
17104 /* System header to define __stub macros and hopefully few prototypes,
17105 which can conflict with char $ac_func(); below. */
17106 #include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error. */
17108 /* We use char because int might match the return type of a gcc2
17109 builtin and then its argument prototype would still apply. */
17110 char $ac_func();
17112 int main() {
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 $ac_func();
17121 #endif
17123 ; return 0; }
17125 if { (eval echo configure:17126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17126 rm -rf conftest*
17127 eval "ac_cv_func_$ac_func=yes"
17128 else
17129 echo "configure: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17131 rm -rf conftest*
17132 eval "ac_cv_func_$ac_func=no"
17134 rm -f conftest*
17137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17138 echo "$ac_t""yes" 1>&6
17139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17140 cat >> confdefs.h <<EOF
17141 #define $ac_tr_func 1
17144 else
17145 echo "$ac_t""no" 1>&6
17147 done
17154 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17155 echo "configure:17156: checking for expl declaration" >&5
17156 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17157 if eval "test \"`echo '$''{'glibcxx_cv_func_expl_use'+set}'`\" = set"; then
17158 echo $ac_n "(cached) $ac_c" 1>&6
17159 else
17162 ac_ext=C
17163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17164 ac_cpp='$CXXCPP $CPPFLAGS'
17165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17167 cross_compiling=$ac_cv_prog_cxx_cross
17169 cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17172 #include <math.h>
17173 #ifdef HAVE_IEEEFP_H
17174 #include <ieeefp.h>
17175 #endif
17177 int main() {
17178 expl(0);
17179 ; return 0; }
17181 if { (eval echo configure:17182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17182 rm -rf conftest*
17183 glibcxx_cv_func_expl_use=yes
17184 else
17185 echo "configure: failed program was:" >&5
17186 cat conftest.$ac_ext >&5
17187 rm -rf conftest*
17188 glibcxx_cv_func_expl_use=no
17190 rm -f conftest*
17191 ac_ext=c
17192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17193 ac_cpp='$CPP $CPPFLAGS'
17194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17196 cross_compiling=$ac_cv_prog_cc_cross
17202 echo "$ac_t""$glibcxx_cv_func_expl_use" 1>&6
17204 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17205 for ac_func in expl
17207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17208 echo "configure:17209: checking for $ac_func" >&5
17209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17210 echo $ac_n "(cached) $ac_c" 1>&6
17211 else
17212 cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17215 /* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char $ac_func(); below. */
17217 #include <assert.h>
17218 /* Override any gcc2 internal prototype to avoid an error. */
17219 /* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221 char $ac_func();
17223 int main() {
17225 /* The GNU C library defines this for functions which it implements
17226 to always fail with ENOSYS. Some functions are actually named
17227 something starting with __ and the normal name is an alias. */
17228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17229 choke me
17230 #else
17231 $ac_func();
17232 #endif
17234 ; return 0; }
17236 if { (eval echo configure:17237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17237 rm -rf conftest*
17238 eval "ac_cv_func_$ac_func=yes"
17239 else
17240 echo "configure: failed program was:" >&5
17241 cat conftest.$ac_ext >&5
17242 rm -rf conftest*
17243 eval "ac_cv_func_$ac_func=no"
17245 rm -f conftest*
17248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17249 echo "$ac_t""yes" 1>&6
17250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17251 cat >> confdefs.h <<EOF
17252 #define $ac_tr_func 1
17255 else
17256 echo "$ac_t""no" 1>&6
17258 done
17260 else
17262 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17263 echo "configure:17264: checking for _expl declaration" >&5
17264 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17265 if eval "test \"`echo '$''{'glibcxx_cv_func__expl_use'+set}'`\" = set"; then
17266 echo $ac_n "(cached) $ac_c" 1>&6
17267 else
17270 ac_ext=C
17271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17272 ac_cpp='$CXXCPP $CPPFLAGS'
17273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17275 cross_compiling=$ac_cv_prog_cxx_cross
17277 cat > conftest.$ac_ext <<EOF
17278 #line 17279 "configure"
17279 #include "confdefs.h"
17280 #include <math.h>
17281 #ifdef HAVE_IEEEFP_H
17282 #include <ieeefp.h>
17283 #endif
17285 int main() {
17286 _expl(0);
17287 ; return 0; }
17289 if { (eval echo configure:17290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17290 rm -rf conftest*
17291 glibcxx_cv_func__expl_use=yes
17292 else
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 rm -rf conftest*
17296 glibcxx_cv_func__expl_use=no
17298 rm -f conftest*
17299 ac_ext=c
17300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17301 ac_cpp='$CPP $CPPFLAGS'
17302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17304 cross_compiling=$ac_cv_prog_cc_cross
17310 echo "$ac_t""$glibcxx_cv_func__expl_use" 1>&6
17312 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17313 for ac_func in _expl
17315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17316 echo "configure:17317: checking for $ac_func" >&5
17317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17318 echo $ac_n "(cached) $ac_c" 1>&6
17319 else
17320 cat > conftest.$ac_ext <<EOF
17321 #line 17322 "configure"
17322 #include "confdefs.h"
17323 /* System header to define __stub macros and hopefully few prototypes,
17324 which can conflict with char $ac_func(); below. */
17325 #include <assert.h>
17326 /* Override any gcc2 internal prototype to avoid an error. */
17327 /* We use char because int might match the return type of a gcc2
17328 builtin and then its argument prototype would still apply. */
17329 char $ac_func();
17331 int main() {
17333 /* The GNU C library defines this for functions which it implements
17334 to always fail with ENOSYS. Some functions are actually named
17335 something starting with __ and the normal name is an alias. */
17336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17337 choke me
17338 #else
17339 $ac_func();
17340 #endif
17342 ; return 0; }
17344 if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 rm -rf conftest*
17346 eval "ac_cv_func_$ac_func=yes"
17347 else
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17350 rm -rf conftest*
17351 eval "ac_cv_func_$ac_func=no"
17353 rm -f conftest*
17356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17357 echo "$ac_t""yes" 1>&6
17358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17359 cat >> confdefs.h <<EOF
17360 #define $ac_tr_func 1
17363 else
17364 echo "$ac_t""no" 1>&6
17366 done
17373 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17374 echo "configure:17375: checking for fabsl declaration" >&5
17375 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17376 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsl_use'+set}'`\" = set"; then
17377 echo $ac_n "(cached) $ac_c" 1>&6
17378 else
17381 ac_ext=C
17382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17383 ac_cpp='$CXXCPP $CPPFLAGS'
17384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17386 cross_compiling=$ac_cv_prog_cxx_cross
17388 cat > conftest.$ac_ext <<EOF
17389 #line 17390 "configure"
17390 #include "confdefs.h"
17391 #include <math.h>
17392 #ifdef HAVE_IEEEFP_H
17393 #include <ieeefp.h>
17394 #endif
17396 int main() {
17397 fabsl(0);
17398 ; return 0; }
17400 if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17401 rm -rf conftest*
17402 glibcxx_cv_func_fabsl_use=yes
17403 else
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17406 rm -rf conftest*
17407 glibcxx_cv_func_fabsl_use=no
17409 rm -f conftest*
17410 ac_ext=c
17411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17412 ac_cpp='$CPP $CPPFLAGS'
17413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17415 cross_compiling=$ac_cv_prog_cc_cross
17421 echo "$ac_t""$glibcxx_cv_func_fabsl_use" 1>&6
17423 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17424 for ac_func in fabsl
17426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17427 echo "configure:17428: checking for $ac_func" >&5
17428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17429 echo $ac_n "(cached) $ac_c" 1>&6
17430 else
17431 cat > conftest.$ac_ext <<EOF
17432 #line 17433 "configure"
17433 #include "confdefs.h"
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func(); below. */
17436 #include <assert.h>
17437 /* Override any gcc2 internal prototype to avoid an error. */
17438 /* We use char because int might match the return type of a gcc2
17439 builtin and then its argument prototype would still apply. */
17440 char $ac_func();
17442 int main() {
17444 /* The GNU C library defines this for functions which it implements
17445 to always fail with ENOSYS. Some functions are actually named
17446 something starting with __ and the normal name is an alias. */
17447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17448 choke me
17449 #else
17450 $ac_func();
17451 #endif
17453 ; return 0; }
17455 if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17456 rm -rf conftest*
17457 eval "ac_cv_func_$ac_func=yes"
17458 else
17459 echo "configure: failed program was:" >&5
17460 cat conftest.$ac_ext >&5
17461 rm -rf conftest*
17462 eval "ac_cv_func_$ac_func=no"
17464 rm -f conftest*
17467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17468 echo "$ac_t""yes" 1>&6
17469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17470 cat >> confdefs.h <<EOF
17471 #define $ac_tr_func 1
17474 else
17475 echo "$ac_t""no" 1>&6
17477 done
17479 else
17481 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17482 echo "configure:17483: checking for _fabsl declaration" >&5
17483 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17484 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsl_use'+set}'`\" = set"; then
17485 echo $ac_n "(cached) $ac_c" 1>&6
17486 else
17489 ac_ext=C
17490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17491 ac_cpp='$CXXCPP $CPPFLAGS'
17492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17494 cross_compiling=$ac_cv_prog_cxx_cross
17496 cat > conftest.$ac_ext <<EOF
17497 #line 17498 "configure"
17498 #include "confdefs.h"
17499 #include <math.h>
17500 #ifdef HAVE_IEEEFP_H
17501 #include <ieeefp.h>
17502 #endif
17504 int main() {
17505 _fabsl(0);
17506 ; return 0; }
17508 if { (eval echo configure:17509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17509 rm -rf conftest*
17510 glibcxx_cv_func__fabsl_use=yes
17511 else
17512 echo "configure: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17514 rm -rf conftest*
17515 glibcxx_cv_func__fabsl_use=no
17517 rm -f conftest*
17518 ac_ext=c
17519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17520 ac_cpp='$CPP $CPPFLAGS'
17521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17523 cross_compiling=$ac_cv_prog_cc_cross
17529 echo "$ac_t""$glibcxx_cv_func__fabsl_use" 1>&6
17531 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
17532 for ac_func in _fabsl
17534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17535 echo "configure:17536: checking for $ac_func" >&5
17536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17537 echo $ac_n "(cached) $ac_c" 1>&6
17538 else
17539 cat > conftest.$ac_ext <<EOF
17540 #line 17541 "configure"
17541 #include "confdefs.h"
17542 /* System header to define __stub macros and hopefully few prototypes,
17543 which can conflict with char $ac_func(); below. */
17544 #include <assert.h>
17545 /* Override any gcc2 internal prototype to avoid an error. */
17546 /* We use char because int might match the return type of a gcc2
17547 builtin and then its argument prototype would still apply. */
17548 char $ac_func();
17550 int main() {
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17556 choke me
17557 #else
17558 $ac_func();
17559 #endif
17561 ; return 0; }
17563 if { (eval echo configure:17564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17564 rm -rf conftest*
17565 eval "ac_cv_func_$ac_func=yes"
17566 else
17567 echo "configure: failed program was:" >&5
17568 cat conftest.$ac_ext >&5
17569 rm -rf conftest*
17570 eval "ac_cv_func_$ac_func=no"
17572 rm -f conftest*
17575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17576 echo "$ac_t""yes" 1>&6
17577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17578 cat >> confdefs.h <<EOF
17579 #define $ac_tr_func 1
17582 else
17583 echo "$ac_t""no" 1>&6
17585 done
17592 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17593 echo "configure:17594: checking for fmodl declaration" >&5
17594 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
17595 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodl_use'+set}'`\" = set"; then
17596 echo $ac_n "(cached) $ac_c" 1>&6
17597 else
17600 ac_ext=C
17601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17602 ac_cpp='$CXXCPP $CPPFLAGS'
17603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17605 cross_compiling=$ac_cv_prog_cxx_cross
17607 cat > conftest.$ac_ext <<EOF
17608 #line 17609 "configure"
17609 #include "confdefs.h"
17610 #include <math.h>
17611 int main() {
17612 fmodl(0, 0);
17613 ; return 0; }
17615 if { (eval echo configure:17616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17616 rm -rf conftest*
17617 glibcxx_cv_func_fmodl_use=yes
17618 else
17619 echo "configure: failed program was:" >&5
17620 cat conftest.$ac_ext >&5
17621 rm -rf conftest*
17622 glibcxx_cv_func_fmodl_use=no
17624 rm -f conftest*
17625 ac_ext=c
17626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17627 ac_cpp='$CPP $CPPFLAGS'
17628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17630 cross_compiling=$ac_cv_prog_cc_cross
17636 echo "$ac_t""$glibcxx_cv_func_fmodl_use" 1>&6
17638 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
17639 for ac_func in fmodl
17641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17642 echo "configure:17643: checking for $ac_func" >&5
17643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17644 echo $ac_n "(cached) $ac_c" 1>&6
17645 else
17646 cat > conftest.$ac_ext <<EOF
17647 #line 17648 "configure"
17648 #include "confdefs.h"
17649 /* System header to define __stub macros and hopefully few prototypes,
17650 which can conflict with char $ac_func(); below. */
17651 #include <assert.h>
17652 /* Override any gcc2 internal prototype to avoid an error. */
17653 /* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17655 char $ac_func();
17657 int main() {
17659 /* The GNU C library defines this for functions which it implements
17660 to always fail with ENOSYS. Some functions are actually named
17661 something starting with __ and the normal name is an alias. */
17662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17663 choke me
17664 #else
17665 $ac_func();
17666 #endif
17668 ; return 0; }
17670 if { (eval echo configure:17671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17671 rm -rf conftest*
17672 eval "ac_cv_func_$ac_func=yes"
17673 else
17674 echo "configure: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17676 rm -rf conftest*
17677 eval "ac_cv_func_$ac_func=no"
17679 rm -f conftest*
17682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17683 echo "$ac_t""yes" 1>&6
17684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17685 cat >> confdefs.h <<EOF
17686 #define $ac_tr_func 1
17689 else
17690 echo "$ac_t""no" 1>&6
17692 done
17694 else
17696 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17697 echo "configure:17698: checking for _fmodl declaration" >&5
17698 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
17699 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodl_use'+set}'`\" = set"; then
17700 echo $ac_n "(cached) $ac_c" 1>&6
17701 else
17704 ac_ext=C
17705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CXXCPP $CPPFLAGS'
17707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cxx_cross
17711 cat > conftest.$ac_ext <<EOF
17712 #line 17713 "configure"
17713 #include "confdefs.h"
17714 #include <math.h>
17715 int main() {
17716 _fmodl(0, 0);
17717 ; return 0; }
17719 if { (eval echo configure:17720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17720 rm -rf conftest*
17721 glibcxx_cv_func__fmodl_use=yes
17722 else
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17725 rm -rf conftest*
17726 glibcxx_cv_func__fmodl_use=no
17728 rm -f conftest*
17729 ac_ext=c
17730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17731 ac_cpp='$CPP $CPPFLAGS'
17732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17734 cross_compiling=$ac_cv_prog_cc_cross
17740 echo "$ac_t""$glibcxx_cv_func__fmodl_use" 1>&6
17742 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
17743 for ac_func in _fmodl
17745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17746 echo "configure:17747: checking for $ac_func" >&5
17747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17748 echo $ac_n "(cached) $ac_c" 1>&6
17749 else
17750 cat > conftest.$ac_ext <<EOF
17751 #line 17752 "configure"
17752 #include "confdefs.h"
17753 /* System header to define __stub macros and hopefully few prototypes,
17754 which can conflict with char $ac_func(); below. */
17755 #include <assert.h>
17756 /* Override any gcc2 internal prototype to avoid an error. */
17757 /* We use char because int might match the return type of a gcc2
17758 builtin and then its argument prototype would still apply. */
17759 char $ac_func();
17761 int main() {
17763 /* The GNU C library defines this for functions which it implements
17764 to always fail with ENOSYS. Some functions are actually named
17765 something starting with __ and the normal name is an alias. */
17766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17767 choke me
17768 #else
17769 $ac_func();
17770 #endif
17772 ; return 0; }
17774 if { (eval echo configure:17775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17775 rm -rf conftest*
17776 eval "ac_cv_func_$ac_func=yes"
17777 else
17778 echo "configure: failed program was:" >&5
17779 cat conftest.$ac_ext >&5
17780 rm -rf conftest*
17781 eval "ac_cv_func_$ac_func=no"
17783 rm -f conftest*
17786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17787 echo "$ac_t""yes" 1>&6
17788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17789 cat >> confdefs.h <<EOF
17790 #define $ac_tr_func 1
17793 else
17794 echo "$ac_t""no" 1>&6
17796 done
17803 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17804 echo "configure:17805: checking for frexpl declaration" >&5
17805 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
17806 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpl_use'+set}'`\" = set"; then
17807 echo $ac_n "(cached) $ac_c" 1>&6
17808 else
17811 ac_ext=C
17812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17813 ac_cpp='$CXXCPP $CPPFLAGS'
17814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17816 cross_compiling=$ac_cv_prog_cxx_cross
17818 cat > conftest.$ac_ext <<EOF
17819 #line 17820 "configure"
17820 #include "confdefs.h"
17821 #include <math.h>
17822 int main() {
17823 frexpl(0, 0);
17824 ; return 0; }
17826 if { (eval echo configure:17827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17827 rm -rf conftest*
17828 glibcxx_cv_func_frexpl_use=yes
17829 else
17830 echo "configure: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17832 rm -rf conftest*
17833 glibcxx_cv_func_frexpl_use=no
17835 rm -f conftest*
17836 ac_ext=c
17837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17841 cross_compiling=$ac_cv_prog_cc_cross
17847 echo "$ac_t""$glibcxx_cv_func_frexpl_use" 1>&6
17849 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
17850 for ac_func in frexpl
17852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17853 echo "configure:17854: checking for $ac_func" >&5
17854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17855 echo $ac_n "(cached) $ac_c" 1>&6
17856 else
17857 cat > conftest.$ac_ext <<EOF
17858 #line 17859 "configure"
17859 #include "confdefs.h"
17860 /* System header to define __stub macros and hopefully few prototypes,
17861 which can conflict with char $ac_func(); below. */
17862 #include <assert.h>
17863 /* Override any gcc2 internal prototype to avoid an error. */
17864 /* We use char because int might match the return type of a gcc2
17865 builtin and then its argument prototype would still apply. */
17866 char $ac_func();
17868 int main() {
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17874 choke me
17875 #else
17876 $ac_func();
17877 #endif
17879 ; return 0; }
17881 if { (eval echo configure:17882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17882 rm -rf conftest*
17883 eval "ac_cv_func_$ac_func=yes"
17884 else
17885 echo "configure: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17887 rm -rf conftest*
17888 eval "ac_cv_func_$ac_func=no"
17890 rm -f conftest*
17893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17894 echo "$ac_t""yes" 1>&6
17895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17896 cat >> confdefs.h <<EOF
17897 #define $ac_tr_func 1
17900 else
17901 echo "$ac_t""no" 1>&6
17903 done
17905 else
17907 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17908 echo "configure:17909: checking for _frexpl declaration" >&5
17909 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
17910 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpl_use'+set}'`\" = set"; then
17911 echo $ac_n "(cached) $ac_c" 1>&6
17912 else
17915 ac_ext=C
17916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17917 ac_cpp='$CXXCPP $CPPFLAGS'
17918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17920 cross_compiling=$ac_cv_prog_cxx_cross
17922 cat > conftest.$ac_ext <<EOF
17923 #line 17924 "configure"
17924 #include "confdefs.h"
17925 #include <math.h>
17926 int main() {
17927 _frexpl(0, 0);
17928 ; return 0; }
17930 if { (eval echo configure:17931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17931 rm -rf conftest*
17932 glibcxx_cv_func__frexpl_use=yes
17933 else
17934 echo "configure: failed program was:" >&5
17935 cat conftest.$ac_ext >&5
17936 rm -rf conftest*
17937 glibcxx_cv_func__frexpl_use=no
17939 rm -f conftest*
17940 ac_ext=c
17941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17942 ac_cpp='$CPP $CPPFLAGS'
17943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17945 cross_compiling=$ac_cv_prog_cc_cross
17951 echo "$ac_t""$glibcxx_cv_func__frexpl_use" 1>&6
17953 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
17954 for ac_func in _frexpl
17956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17957 echo "configure:17958: checking for $ac_func" >&5
17958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17959 echo $ac_n "(cached) $ac_c" 1>&6
17960 else
17961 cat > conftest.$ac_ext <<EOF
17962 #line 17963 "configure"
17963 #include "confdefs.h"
17964 /* System header to define __stub macros and hopefully few prototypes,
17965 which can conflict with char $ac_func(); below. */
17966 #include <assert.h>
17967 /* Override any gcc2 internal prototype to avoid an error. */
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17970 char $ac_func();
17972 int main() {
17974 /* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 choke me
17979 #else
17980 $ac_func();
17981 #endif
17983 ; return 0; }
17985 if { (eval echo configure:17986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17986 rm -rf conftest*
17987 eval "ac_cv_func_$ac_func=yes"
17988 else
17989 echo "configure: failed program was:" >&5
17990 cat conftest.$ac_ext >&5
17991 rm -rf conftest*
17992 eval "ac_cv_func_$ac_func=no"
17994 rm -f conftest*
17997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17998 echo "$ac_t""yes" 1>&6
17999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18000 cat >> confdefs.h <<EOF
18001 #define $ac_tr_func 1
18004 else
18005 echo "$ac_t""no" 1>&6
18007 done
18014 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18015 echo "configure:18016: checking for hypotl declaration" >&5
18016 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18017 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotl_use'+set}'`\" = set"; then
18018 echo $ac_n "(cached) $ac_c" 1>&6
18019 else
18022 ac_ext=C
18023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18024 ac_cpp='$CXXCPP $CPPFLAGS'
18025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18027 cross_compiling=$ac_cv_prog_cxx_cross
18029 cat > conftest.$ac_ext <<EOF
18030 #line 18031 "configure"
18031 #include "confdefs.h"
18032 #include <math.h>
18033 int main() {
18034 hypotl(0, 0);
18035 ; return 0; }
18037 if { (eval echo configure:18038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18038 rm -rf conftest*
18039 glibcxx_cv_func_hypotl_use=yes
18040 else
18041 echo "configure: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18043 rm -rf conftest*
18044 glibcxx_cv_func_hypotl_use=no
18046 rm -f conftest*
18047 ac_ext=c
18048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18049 ac_cpp='$CPP $CPPFLAGS'
18050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18052 cross_compiling=$ac_cv_prog_cc_cross
18058 echo "$ac_t""$glibcxx_cv_func_hypotl_use" 1>&6
18060 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18061 for ac_func in hypotl
18063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18064 echo "configure:18065: checking for $ac_func" >&5
18065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18066 echo $ac_n "(cached) $ac_c" 1>&6
18067 else
18068 cat > conftest.$ac_ext <<EOF
18069 #line 18070 "configure"
18070 #include "confdefs.h"
18071 /* System header to define __stub macros and hopefully few prototypes,
18072 which can conflict with char $ac_func(); below. */
18073 #include <assert.h>
18074 /* Override any gcc2 internal prototype to avoid an error. */
18075 /* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077 char $ac_func();
18079 int main() {
18081 /* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085 choke me
18086 #else
18087 $ac_func();
18088 #endif
18090 ; return 0; }
18092 if { (eval echo configure:18093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18093 rm -rf conftest*
18094 eval "ac_cv_func_$ac_func=yes"
18095 else
18096 echo "configure: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18098 rm -rf conftest*
18099 eval "ac_cv_func_$ac_func=no"
18101 rm -f conftest*
18104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18105 echo "$ac_t""yes" 1>&6
18106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18107 cat >> confdefs.h <<EOF
18108 #define $ac_tr_func 1
18111 else
18112 echo "$ac_t""no" 1>&6
18114 done
18116 else
18118 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18119 echo "configure:18120: checking for _hypotl declaration" >&5
18120 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18121 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotl_use'+set}'`\" = set"; then
18122 echo $ac_n "(cached) $ac_c" 1>&6
18123 else
18126 ac_ext=C
18127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18128 ac_cpp='$CXXCPP $CPPFLAGS'
18129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18131 cross_compiling=$ac_cv_prog_cxx_cross
18133 cat > conftest.$ac_ext <<EOF
18134 #line 18135 "configure"
18135 #include "confdefs.h"
18136 #include <math.h>
18137 int main() {
18138 _hypotl(0, 0);
18139 ; return 0; }
18141 if { (eval echo configure:18142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18142 rm -rf conftest*
18143 glibcxx_cv_func__hypotl_use=yes
18144 else
18145 echo "configure: failed program was:" >&5
18146 cat conftest.$ac_ext >&5
18147 rm -rf conftest*
18148 glibcxx_cv_func__hypotl_use=no
18150 rm -f conftest*
18151 ac_ext=c
18152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18153 ac_cpp='$CPP $CPPFLAGS'
18154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18156 cross_compiling=$ac_cv_prog_cc_cross
18162 echo "$ac_t""$glibcxx_cv_func__hypotl_use" 1>&6
18164 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18165 for ac_func in _hypotl
18167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18168 echo "configure:18169: checking for $ac_func" >&5
18169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18170 echo $ac_n "(cached) $ac_c" 1>&6
18171 else
18172 cat > conftest.$ac_ext <<EOF
18173 #line 18174 "configure"
18174 #include "confdefs.h"
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func(); below. */
18177 #include <assert.h>
18178 /* Override any gcc2 internal prototype to avoid an error. */
18179 /* We use char because int might match the return type of a gcc2
18180 builtin and then its argument prototype would still apply. */
18181 char $ac_func();
18183 int main() {
18185 /* The GNU C library defines this for functions which it implements
18186 to always fail with ENOSYS. Some functions are actually named
18187 something starting with __ and the normal name is an alias. */
18188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18189 choke me
18190 #else
18191 $ac_func();
18192 #endif
18194 ; return 0; }
18196 if { (eval echo configure:18197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18197 rm -rf conftest*
18198 eval "ac_cv_func_$ac_func=yes"
18199 else
18200 echo "configure: failed program was:" >&5
18201 cat conftest.$ac_ext >&5
18202 rm -rf conftest*
18203 eval "ac_cv_func_$ac_func=no"
18205 rm -f conftest*
18208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18209 echo "$ac_t""yes" 1>&6
18210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18211 cat >> confdefs.h <<EOF
18212 #define $ac_tr_func 1
18215 else
18216 echo "$ac_t""no" 1>&6
18218 done
18225 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18226 echo "configure:18227: checking for ldexpl declaration" >&5
18227 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
18228 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpl_use'+set}'`\" = set"; then
18229 echo $ac_n "(cached) $ac_c" 1>&6
18230 else
18233 ac_ext=C
18234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18235 ac_cpp='$CXXCPP $CPPFLAGS'
18236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18238 cross_compiling=$ac_cv_prog_cxx_cross
18240 cat > conftest.$ac_ext <<EOF
18241 #line 18242 "configure"
18242 #include "confdefs.h"
18243 #include <math.h>
18244 int main() {
18245 ldexpl(0, 0);
18246 ; return 0; }
18248 if { (eval echo configure:18249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18249 rm -rf conftest*
18250 glibcxx_cv_func_ldexpl_use=yes
18251 else
18252 echo "configure: failed program was:" >&5
18253 cat conftest.$ac_ext >&5
18254 rm -rf conftest*
18255 glibcxx_cv_func_ldexpl_use=no
18257 rm -f conftest*
18258 ac_ext=c
18259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18260 ac_cpp='$CPP $CPPFLAGS'
18261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18263 cross_compiling=$ac_cv_prog_cc_cross
18269 echo "$ac_t""$glibcxx_cv_func_ldexpl_use" 1>&6
18271 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
18272 for ac_func in ldexpl
18274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18275 echo "configure:18276: checking for $ac_func" >&5
18276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18277 echo $ac_n "(cached) $ac_c" 1>&6
18278 else
18279 cat > conftest.$ac_ext <<EOF
18280 #line 18281 "configure"
18281 #include "confdefs.h"
18282 /* System header to define __stub macros and hopefully few prototypes,
18283 which can conflict with char $ac_func(); below. */
18284 #include <assert.h>
18285 /* Override any gcc2 internal prototype to avoid an error. */
18286 /* We use char because int might match the return type of a gcc2
18287 builtin and then its argument prototype would still apply. */
18288 char $ac_func();
18290 int main() {
18292 /* The GNU C library defines this for functions which it implements
18293 to always fail with ENOSYS. Some functions are actually named
18294 something starting with __ and the normal name is an alias. */
18295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18296 choke me
18297 #else
18298 $ac_func();
18299 #endif
18301 ; return 0; }
18303 if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18304 rm -rf conftest*
18305 eval "ac_cv_func_$ac_func=yes"
18306 else
18307 echo "configure: failed program was:" >&5
18308 cat conftest.$ac_ext >&5
18309 rm -rf conftest*
18310 eval "ac_cv_func_$ac_func=no"
18312 rm -f conftest*
18315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18316 echo "$ac_t""yes" 1>&6
18317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18318 cat >> confdefs.h <<EOF
18319 #define $ac_tr_func 1
18322 else
18323 echo "$ac_t""no" 1>&6
18325 done
18327 else
18329 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18330 echo "configure:18331: checking for _ldexpl declaration" >&5
18331 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
18332 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpl_use'+set}'`\" = set"; then
18333 echo $ac_n "(cached) $ac_c" 1>&6
18334 else
18337 ac_ext=C
18338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339 ac_cpp='$CXXCPP $CPPFLAGS'
18340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342 cross_compiling=$ac_cv_prog_cxx_cross
18344 cat > conftest.$ac_ext <<EOF
18345 #line 18346 "configure"
18346 #include "confdefs.h"
18347 #include <math.h>
18348 int main() {
18349 _ldexpl(0, 0);
18350 ; return 0; }
18352 if { (eval echo configure:18353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18353 rm -rf conftest*
18354 glibcxx_cv_func__ldexpl_use=yes
18355 else
18356 echo "configure: failed program was:" >&5
18357 cat conftest.$ac_ext >&5
18358 rm -rf conftest*
18359 glibcxx_cv_func__ldexpl_use=no
18361 rm -f conftest*
18362 ac_ext=c
18363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18364 ac_cpp='$CPP $CPPFLAGS'
18365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18367 cross_compiling=$ac_cv_prog_cc_cross
18373 echo "$ac_t""$glibcxx_cv_func__ldexpl_use" 1>&6
18375 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
18376 for ac_func in _ldexpl
18378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18379 echo "configure:18380: checking for $ac_func" >&5
18380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18381 echo $ac_n "(cached) $ac_c" 1>&6
18382 else
18383 cat > conftest.$ac_ext <<EOF
18384 #line 18385 "configure"
18385 #include "confdefs.h"
18386 /* System header to define __stub macros and hopefully few prototypes,
18387 which can conflict with char $ac_func(); below. */
18388 #include <assert.h>
18389 /* Override any gcc2 internal prototype to avoid an error. */
18390 /* We use char because int might match the return type of a gcc2
18391 builtin and then its argument prototype would still apply. */
18392 char $ac_func();
18394 int main() {
18396 /* The GNU C library defines this for functions which it implements
18397 to always fail with ENOSYS. Some functions are actually named
18398 something starting with __ and the normal name is an alias. */
18399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18400 choke me
18401 #else
18402 $ac_func();
18403 #endif
18405 ; return 0; }
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18408 rm -rf conftest*
18409 eval "ac_cv_func_$ac_func=yes"
18410 else
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413 rm -rf conftest*
18414 eval "ac_cv_func_$ac_func=no"
18416 rm -f conftest*
18419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18420 echo "$ac_t""yes" 1>&6
18421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18422 cat >> confdefs.h <<EOF
18423 #define $ac_tr_func 1
18426 else
18427 echo "$ac_t""no" 1>&6
18429 done
18436 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18437 echo "configure:18438: checking for logl declaration" >&5
18438 if test x${glibcxx_cv_func_logl_use+set} != xset; then
18439 if eval "test \"`echo '$''{'glibcxx_cv_func_logl_use'+set}'`\" = set"; then
18440 echo $ac_n "(cached) $ac_c" 1>&6
18441 else
18444 ac_ext=C
18445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18446 ac_cpp='$CXXCPP $CPPFLAGS'
18447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18449 cross_compiling=$ac_cv_prog_cxx_cross
18451 cat > conftest.$ac_ext <<EOF
18452 #line 18453 "configure"
18453 #include "confdefs.h"
18454 #include <math.h>
18455 #ifdef HAVE_IEEEFP_H
18456 #include <ieeefp.h>
18457 #endif
18459 int main() {
18460 logl(0);
18461 ; return 0; }
18463 if { (eval echo configure:18464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18464 rm -rf conftest*
18465 glibcxx_cv_func_logl_use=yes
18466 else
18467 echo "configure: failed program was:" >&5
18468 cat conftest.$ac_ext >&5
18469 rm -rf conftest*
18470 glibcxx_cv_func_logl_use=no
18472 rm -f conftest*
18473 ac_ext=c
18474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18475 ac_cpp='$CPP $CPPFLAGS'
18476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18478 cross_compiling=$ac_cv_prog_cc_cross
18484 echo "$ac_t""$glibcxx_cv_func_logl_use" 1>&6
18486 if test x$glibcxx_cv_func_logl_use = x"yes"; then
18487 for ac_func in logl
18489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18490 echo "configure:18491: checking for $ac_func" >&5
18491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18492 echo $ac_n "(cached) $ac_c" 1>&6
18493 else
18494 cat > conftest.$ac_ext <<EOF
18495 #line 18496 "configure"
18496 #include "confdefs.h"
18497 /* System header to define __stub macros and hopefully few prototypes,
18498 which can conflict with char $ac_func(); below. */
18499 #include <assert.h>
18500 /* Override any gcc2 internal prototype to avoid an error. */
18501 /* We use char because int might match the return type of a gcc2
18502 builtin and then its argument prototype would still apply. */
18503 char $ac_func();
18505 int main() {
18507 /* The GNU C library defines this for functions which it implements
18508 to always fail with ENOSYS. Some functions are actually named
18509 something starting with __ and the normal name is an alias. */
18510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18511 choke me
18512 #else
18513 $ac_func();
18514 #endif
18516 ; return 0; }
18518 if { (eval echo configure:18519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18519 rm -rf conftest*
18520 eval "ac_cv_func_$ac_func=yes"
18521 else
18522 echo "configure: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18524 rm -rf conftest*
18525 eval "ac_cv_func_$ac_func=no"
18527 rm -f conftest*
18530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18531 echo "$ac_t""yes" 1>&6
18532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18533 cat >> confdefs.h <<EOF
18534 #define $ac_tr_func 1
18537 else
18538 echo "$ac_t""no" 1>&6
18540 done
18542 else
18544 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18545 echo "configure:18546: checking for _logl declaration" >&5
18546 if test x${glibcxx_cv_func__logl_use+set} != xset; then
18547 if eval "test \"`echo '$''{'glibcxx_cv_func__logl_use'+set}'`\" = set"; then
18548 echo $ac_n "(cached) $ac_c" 1>&6
18549 else
18552 ac_ext=C
18553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18554 ac_cpp='$CXXCPP $CPPFLAGS'
18555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18557 cross_compiling=$ac_cv_prog_cxx_cross
18559 cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 #include <math.h>
18563 #ifdef HAVE_IEEEFP_H
18564 #include <ieeefp.h>
18565 #endif
18567 int main() {
18568 _logl(0);
18569 ; return 0; }
18571 if { (eval echo configure:18572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18572 rm -rf conftest*
18573 glibcxx_cv_func__logl_use=yes
18574 else
18575 echo "configure: failed program was:" >&5
18576 cat conftest.$ac_ext >&5
18577 rm -rf conftest*
18578 glibcxx_cv_func__logl_use=no
18580 rm -f conftest*
18581 ac_ext=c
18582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18583 ac_cpp='$CPP $CPPFLAGS'
18584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18586 cross_compiling=$ac_cv_prog_cc_cross
18592 echo "$ac_t""$glibcxx_cv_func__logl_use" 1>&6
18594 if test x$glibcxx_cv_func__logl_use = x"yes"; then
18595 for ac_func in _logl
18597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18598 echo "configure:18599: checking for $ac_func" >&5
18599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18600 echo $ac_n "(cached) $ac_c" 1>&6
18601 else
18602 cat > conftest.$ac_ext <<EOF
18603 #line 18604 "configure"
18604 #include "confdefs.h"
18605 /* System header to define __stub macros and hopefully few prototypes,
18606 which can conflict with char $ac_func(); below. */
18607 #include <assert.h>
18608 /* Override any gcc2 internal prototype to avoid an error. */
18609 /* We use char because int might match the return type of a gcc2
18610 builtin and then its argument prototype would still apply. */
18611 char $ac_func();
18613 int main() {
18615 /* The GNU C library defines this for functions which it implements
18616 to always fail with ENOSYS. Some functions are actually named
18617 something starting with __ and the normal name is an alias. */
18618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18619 choke me
18620 #else
18621 $ac_func();
18622 #endif
18624 ; return 0; }
18626 if { (eval echo configure:18627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18627 rm -rf conftest*
18628 eval "ac_cv_func_$ac_func=yes"
18629 else
18630 echo "configure: failed program was:" >&5
18631 cat conftest.$ac_ext >&5
18632 rm -rf conftest*
18633 eval "ac_cv_func_$ac_func=no"
18635 rm -f conftest*
18638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18639 echo "$ac_t""yes" 1>&6
18640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18641 cat >> confdefs.h <<EOF
18642 #define $ac_tr_func 1
18645 else
18646 echo "$ac_t""no" 1>&6
18648 done
18655 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18656 echo "configure:18657: checking for log10l declaration" >&5
18657 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
18658 if eval "test \"`echo '$''{'glibcxx_cv_func_log10l_use'+set}'`\" = set"; then
18659 echo $ac_n "(cached) $ac_c" 1>&6
18660 else
18663 ac_ext=C
18664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18665 ac_cpp='$CXXCPP $CPPFLAGS'
18666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18668 cross_compiling=$ac_cv_prog_cxx_cross
18670 cat > conftest.$ac_ext <<EOF
18671 #line 18672 "configure"
18672 #include "confdefs.h"
18673 #include <math.h>
18674 #ifdef HAVE_IEEEFP_H
18675 #include <ieeefp.h>
18676 #endif
18678 int main() {
18679 log10l(0);
18680 ; return 0; }
18682 if { (eval echo configure:18683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18683 rm -rf conftest*
18684 glibcxx_cv_func_log10l_use=yes
18685 else
18686 echo "configure: failed program was:" >&5
18687 cat conftest.$ac_ext >&5
18688 rm -rf conftest*
18689 glibcxx_cv_func_log10l_use=no
18691 rm -f conftest*
18692 ac_ext=c
18693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18694 ac_cpp='$CPP $CPPFLAGS'
18695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18697 cross_compiling=$ac_cv_prog_cc_cross
18703 echo "$ac_t""$glibcxx_cv_func_log10l_use" 1>&6
18705 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
18706 for ac_func in log10l
18708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18709 echo "configure:18710: checking for $ac_func" >&5
18710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18711 echo $ac_n "(cached) $ac_c" 1>&6
18712 else
18713 cat > conftest.$ac_ext <<EOF
18714 #line 18715 "configure"
18715 #include "confdefs.h"
18716 /* System header to define __stub macros and hopefully few prototypes,
18717 which can conflict with char $ac_func(); below. */
18718 #include <assert.h>
18719 /* Override any gcc2 internal prototype to avoid an error. */
18720 /* We use char because int might match the return type of a gcc2
18721 builtin and then its argument prototype would still apply. */
18722 char $ac_func();
18724 int main() {
18726 /* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18730 choke me
18731 #else
18732 $ac_func();
18733 #endif
18735 ; return 0; }
18737 if { (eval echo configure:18738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18738 rm -rf conftest*
18739 eval "ac_cv_func_$ac_func=yes"
18740 else
18741 echo "configure: failed program was:" >&5
18742 cat conftest.$ac_ext >&5
18743 rm -rf conftest*
18744 eval "ac_cv_func_$ac_func=no"
18746 rm -f conftest*
18749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18750 echo "$ac_t""yes" 1>&6
18751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18752 cat >> confdefs.h <<EOF
18753 #define $ac_tr_func 1
18756 else
18757 echo "$ac_t""no" 1>&6
18759 done
18761 else
18763 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18764 echo "configure:18765: checking for _log10l declaration" >&5
18765 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
18766 if eval "test \"`echo '$''{'glibcxx_cv_func__log10l_use'+set}'`\" = set"; then
18767 echo $ac_n "(cached) $ac_c" 1>&6
18768 else
18771 ac_ext=C
18772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18773 ac_cpp='$CXXCPP $CPPFLAGS'
18774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18776 cross_compiling=$ac_cv_prog_cxx_cross
18778 cat > conftest.$ac_ext <<EOF
18779 #line 18780 "configure"
18780 #include "confdefs.h"
18781 #include <math.h>
18782 #ifdef HAVE_IEEEFP_H
18783 #include <ieeefp.h>
18784 #endif
18786 int main() {
18787 _log10l(0);
18788 ; return 0; }
18790 if { (eval echo configure:18791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18791 rm -rf conftest*
18792 glibcxx_cv_func__log10l_use=yes
18793 else
18794 echo "configure: failed program was:" >&5
18795 cat conftest.$ac_ext >&5
18796 rm -rf conftest*
18797 glibcxx_cv_func__log10l_use=no
18799 rm -f conftest*
18800 ac_ext=c
18801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18802 ac_cpp='$CPP $CPPFLAGS'
18803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18805 cross_compiling=$ac_cv_prog_cc_cross
18811 echo "$ac_t""$glibcxx_cv_func__log10l_use" 1>&6
18813 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
18814 for ac_func in _log10l
18816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18817 echo "configure:18818: checking for $ac_func" >&5
18818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18819 echo $ac_n "(cached) $ac_c" 1>&6
18820 else
18821 cat > conftest.$ac_ext <<EOF
18822 #line 18823 "configure"
18823 #include "confdefs.h"
18824 /* System header to define __stub macros and hopefully few prototypes,
18825 which can conflict with char $ac_func(); below. */
18826 #include <assert.h>
18827 /* Override any gcc2 internal prototype to avoid an error. */
18828 /* We use char because int might match the return type of a gcc2
18829 builtin and then its argument prototype would still apply. */
18830 char $ac_func();
18832 int main() {
18834 /* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
18837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18838 choke me
18839 #else
18840 $ac_func();
18841 #endif
18843 ; return 0; }
18845 if { (eval echo configure:18846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18846 rm -rf conftest*
18847 eval "ac_cv_func_$ac_func=yes"
18848 else
18849 echo "configure: failed program was:" >&5
18850 cat conftest.$ac_ext >&5
18851 rm -rf conftest*
18852 eval "ac_cv_func_$ac_func=no"
18854 rm -f conftest*
18857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18858 echo "$ac_t""yes" 1>&6
18859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18860 cat >> confdefs.h <<EOF
18861 #define $ac_tr_func 1
18864 else
18865 echo "$ac_t""no" 1>&6
18867 done
18874 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18875 echo "configure:18876: checking for modfl declaration" >&5
18876 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
18877 if eval "test \"`echo '$''{'glibcxx_cv_func_modfl_use'+set}'`\" = set"; then
18878 echo $ac_n "(cached) $ac_c" 1>&6
18879 else
18882 ac_ext=C
18883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18884 ac_cpp='$CXXCPP $CPPFLAGS'
18885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18887 cross_compiling=$ac_cv_prog_cxx_cross
18889 cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18892 #include <math.h>
18893 int main() {
18894 modfl(0, 0);
18895 ; return 0; }
18897 if { (eval echo configure:18898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18898 rm -rf conftest*
18899 glibcxx_cv_func_modfl_use=yes
18900 else
18901 echo "configure: failed program was:" >&5
18902 cat conftest.$ac_ext >&5
18903 rm -rf conftest*
18904 glibcxx_cv_func_modfl_use=no
18906 rm -f conftest*
18907 ac_ext=c
18908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18909 ac_cpp='$CPP $CPPFLAGS'
18910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18912 cross_compiling=$ac_cv_prog_cc_cross
18918 echo "$ac_t""$glibcxx_cv_func_modfl_use" 1>&6
18920 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
18921 for ac_func in modfl
18923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18924 echo "configure:18925: checking for $ac_func" >&5
18925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18926 echo $ac_n "(cached) $ac_c" 1>&6
18927 else
18928 cat > conftest.$ac_ext <<EOF
18929 #line 18930 "configure"
18930 #include "confdefs.h"
18931 /* System header to define __stub macros and hopefully few prototypes,
18932 which can conflict with char $ac_func(); below. */
18933 #include <assert.h>
18934 /* Override any gcc2 internal prototype to avoid an error. */
18935 /* We use char because int might match the return type of a gcc2
18936 builtin and then its argument prototype would still apply. */
18937 char $ac_func();
18939 int main() {
18941 /* The GNU C library defines this for functions which it implements
18942 to always fail with ENOSYS. Some functions are actually named
18943 something starting with __ and the normal name is an alias. */
18944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18945 choke me
18946 #else
18947 $ac_func();
18948 #endif
18950 ; return 0; }
18952 if { (eval echo configure:18953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18953 rm -rf conftest*
18954 eval "ac_cv_func_$ac_func=yes"
18955 else
18956 echo "configure: failed program was:" >&5
18957 cat conftest.$ac_ext >&5
18958 rm -rf conftest*
18959 eval "ac_cv_func_$ac_func=no"
18961 rm -f conftest*
18964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18965 echo "$ac_t""yes" 1>&6
18966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18967 cat >> confdefs.h <<EOF
18968 #define $ac_tr_func 1
18971 else
18972 echo "$ac_t""no" 1>&6
18974 done
18976 else
18978 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18979 echo "configure:18980: checking for _modfl declaration" >&5
18980 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
18981 if eval "test \"`echo '$''{'glibcxx_cv_func__modfl_use'+set}'`\" = set"; then
18982 echo $ac_n "(cached) $ac_c" 1>&6
18983 else
18986 ac_ext=C
18987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18988 ac_cpp='$CXXCPP $CPPFLAGS'
18989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18991 cross_compiling=$ac_cv_prog_cxx_cross
18993 cat > conftest.$ac_ext <<EOF
18994 #line 18995 "configure"
18995 #include "confdefs.h"
18996 #include <math.h>
18997 int main() {
18998 _modfl(0, 0);
18999 ; return 0; }
19001 if { (eval echo configure:19002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19002 rm -rf conftest*
19003 glibcxx_cv_func__modfl_use=yes
19004 else
19005 echo "configure: failed program was:" >&5
19006 cat conftest.$ac_ext >&5
19007 rm -rf conftest*
19008 glibcxx_cv_func__modfl_use=no
19010 rm -f conftest*
19011 ac_ext=c
19012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19013 ac_cpp='$CPP $CPPFLAGS'
19014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19016 cross_compiling=$ac_cv_prog_cc_cross
19022 echo "$ac_t""$glibcxx_cv_func__modfl_use" 1>&6
19024 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
19025 for ac_func in _modfl
19027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19028 echo "configure:19029: checking for $ac_func" >&5
19029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19030 echo $ac_n "(cached) $ac_c" 1>&6
19031 else
19032 cat > conftest.$ac_ext <<EOF
19033 #line 19034 "configure"
19034 #include "confdefs.h"
19035 /* System header to define __stub macros and hopefully few prototypes,
19036 which can conflict with char $ac_func(); below. */
19037 #include <assert.h>
19038 /* Override any gcc2 internal prototype to avoid an error. */
19039 /* We use char because int might match the return type of a gcc2
19040 builtin and then its argument prototype would still apply. */
19041 char $ac_func();
19043 int main() {
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19049 choke me
19050 #else
19051 $ac_func();
19052 #endif
19054 ; return 0; }
19056 if { (eval echo configure:19057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19057 rm -rf conftest*
19058 eval "ac_cv_func_$ac_func=yes"
19059 else
19060 echo "configure: failed program was:" >&5
19061 cat conftest.$ac_ext >&5
19062 rm -rf conftest*
19063 eval "ac_cv_func_$ac_func=no"
19065 rm -f conftest*
19068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19069 echo "$ac_t""yes" 1>&6
19070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19071 cat >> confdefs.h <<EOF
19072 #define $ac_tr_func 1
19075 else
19076 echo "$ac_t""no" 1>&6
19078 done
19085 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19086 echo "configure:19087: checking for powl declaration" >&5
19087 if test x${glibcxx_cv_func_powl_use+set} != xset; then
19088 if eval "test \"`echo '$''{'glibcxx_cv_func_powl_use'+set}'`\" = set"; then
19089 echo $ac_n "(cached) $ac_c" 1>&6
19090 else
19093 ac_ext=C
19094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19095 ac_cpp='$CXXCPP $CPPFLAGS'
19096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19098 cross_compiling=$ac_cv_prog_cxx_cross
19100 cat > conftest.$ac_ext <<EOF
19101 #line 19102 "configure"
19102 #include "confdefs.h"
19103 #include <math.h>
19104 int main() {
19105 powl(0, 0);
19106 ; return 0; }
19108 if { (eval echo configure:19109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19109 rm -rf conftest*
19110 glibcxx_cv_func_powl_use=yes
19111 else
19112 echo "configure: failed program was:" >&5
19113 cat conftest.$ac_ext >&5
19114 rm -rf conftest*
19115 glibcxx_cv_func_powl_use=no
19117 rm -f conftest*
19118 ac_ext=c
19119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19123 cross_compiling=$ac_cv_prog_cc_cross
19129 echo "$ac_t""$glibcxx_cv_func_powl_use" 1>&6
19131 if test x$glibcxx_cv_func_powl_use = x"yes"; then
19132 for ac_func in powl
19134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19135 echo "configure:19136: checking for $ac_func" >&5
19136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19137 echo $ac_n "(cached) $ac_c" 1>&6
19138 else
19139 cat > conftest.$ac_ext <<EOF
19140 #line 19141 "configure"
19141 #include "confdefs.h"
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char $ac_func(); below. */
19144 #include <assert.h>
19145 /* Override any gcc2 internal prototype to avoid an error. */
19146 /* We use char because int might match the return type of a gcc2
19147 builtin and then its argument prototype would still apply. */
19148 char $ac_func();
19150 int main() {
19152 /* The GNU C library defines this for functions which it implements
19153 to always fail with ENOSYS. Some functions are actually named
19154 something starting with __ and the normal name is an alias. */
19155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19156 choke me
19157 #else
19158 $ac_func();
19159 #endif
19161 ; return 0; }
19163 if { (eval echo configure:19164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19164 rm -rf conftest*
19165 eval "ac_cv_func_$ac_func=yes"
19166 else
19167 echo "configure: failed program was:" >&5
19168 cat conftest.$ac_ext >&5
19169 rm -rf conftest*
19170 eval "ac_cv_func_$ac_func=no"
19172 rm -f conftest*
19175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19176 echo "$ac_t""yes" 1>&6
19177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19178 cat >> confdefs.h <<EOF
19179 #define $ac_tr_func 1
19182 else
19183 echo "$ac_t""no" 1>&6
19185 done
19187 else
19189 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19190 echo "configure:19191: checking for _powl declaration" >&5
19191 if test x${glibcxx_cv_func__powl_use+set} != xset; then
19192 if eval "test \"`echo '$''{'glibcxx_cv_func__powl_use'+set}'`\" = set"; then
19193 echo $ac_n "(cached) $ac_c" 1>&6
19194 else
19197 ac_ext=C
19198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19202 cross_compiling=$ac_cv_prog_cxx_cross
19204 cat > conftest.$ac_ext <<EOF
19205 #line 19206 "configure"
19206 #include "confdefs.h"
19207 #include <math.h>
19208 int main() {
19209 _powl(0, 0);
19210 ; return 0; }
19212 if { (eval echo configure:19213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19213 rm -rf conftest*
19214 glibcxx_cv_func__powl_use=yes
19215 else
19216 echo "configure: failed program was:" >&5
19217 cat conftest.$ac_ext >&5
19218 rm -rf conftest*
19219 glibcxx_cv_func__powl_use=no
19221 rm -f conftest*
19222 ac_ext=c
19223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19227 cross_compiling=$ac_cv_prog_cc_cross
19233 echo "$ac_t""$glibcxx_cv_func__powl_use" 1>&6
19235 if test x$glibcxx_cv_func__powl_use = x"yes"; then
19236 for ac_func in _powl
19238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19239 echo "configure:19240: checking for $ac_func" >&5
19240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19241 echo $ac_n "(cached) $ac_c" 1>&6
19242 else
19243 cat > conftest.$ac_ext <<EOF
19244 #line 19245 "configure"
19245 #include "confdefs.h"
19246 /* System header to define __stub macros and hopefully few prototypes,
19247 which can conflict with char $ac_func(); below. */
19248 #include <assert.h>
19249 /* Override any gcc2 internal prototype to avoid an error. */
19250 /* We use char because int might match the return type of a gcc2
19251 builtin and then its argument prototype would still apply. */
19252 char $ac_func();
19254 int main() {
19256 /* The GNU C library defines this for functions which it implements
19257 to always fail with ENOSYS. Some functions are actually named
19258 something starting with __ and the normal name is an alias. */
19259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19260 choke me
19261 #else
19262 $ac_func();
19263 #endif
19265 ; return 0; }
19267 if { (eval echo configure:19268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19268 rm -rf conftest*
19269 eval "ac_cv_func_$ac_func=yes"
19270 else
19271 echo "configure: failed program was:" >&5
19272 cat conftest.$ac_ext >&5
19273 rm -rf conftest*
19274 eval "ac_cv_func_$ac_func=no"
19276 rm -f conftest*
19279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19280 echo "$ac_t""yes" 1>&6
19281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19282 cat >> confdefs.h <<EOF
19283 #define $ac_tr_func 1
19286 else
19287 echo "$ac_t""no" 1>&6
19289 done
19296 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19297 echo "configure:19298: checking for sqrtl declaration" >&5
19298 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
19299 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtl_use'+set}'`\" = set"; then
19300 echo $ac_n "(cached) $ac_c" 1>&6
19301 else
19304 ac_ext=C
19305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19306 ac_cpp='$CXXCPP $CPPFLAGS'
19307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19309 cross_compiling=$ac_cv_prog_cxx_cross
19311 cat > conftest.$ac_ext <<EOF
19312 #line 19313 "configure"
19313 #include "confdefs.h"
19314 #include <math.h>
19315 #ifdef HAVE_IEEEFP_H
19316 #include <ieeefp.h>
19317 #endif
19319 int main() {
19320 sqrtl(0);
19321 ; return 0; }
19323 if { (eval echo configure:19324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19324 rm -rf conftest*
19325 glibcxx_cv_func_sqrtl_use=yes
19326 else
19327 echo "configure: failed program was:" >&5
19328 cat conftest.$ac_ext >&5
19329 rm -rf conftest*
19330 glibcxx_cv_func_sqrtl_use=no
19332 rm -f conftest*
19333 ac_ext=c
19334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19335 ac_cpp='$CPP $CPPFLAGS'
19336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19338 cross_compiling=$ac_cv_prog_cc_cross
19344 echo "$ac_t""$glibcxx_cv_func_sqrtl_use" 1>&6
19346 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
19347 for ac_func in sqrtl
19349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19350 echo "configure:19351: checking for $ac_func" >&5
19351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19352 echo $ac_n "(cached) $ac_c" 1>&6
19353 else
19354 cat > conftest.$ac_ext <<EOF
19355 #line 19356 "configure"
19356 #include "confdefs.h"
19357 /* System header to define __stub macros and hopefully few prototypes,
19358 which can conflict with char $ac_func(); below. */
19359 #include <assert.h>
19360 /* Override any gcc2 internal prototype to avoid an error. */
19361 /* We use char because int might match the return type of a gcc2
19362 builtin and then its argument prototype would still apply. */
19363 char $ac_func();
19365 int main() {
19367 /* The GNU C library defines this for functions which it implements
19368 to always fail with ENOSYS. Some functions are actually named
19369 something starting with __ and the normal name is an alias. */
19370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19371 choke me
19372 #else
19373 $ac_func();
19374 #endif
19376 ; return 0; }
19378 if { (eval echo configure:19379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19379 rm -rf conftest*
19380 eval "ac_cv_func_$ac_func=yes"
19381 else
19382 echo "configure: failed program was:" >&5
19383 cat conftest.$ac_ext >&5
19384 rm -rf conftest*
19385 eval "ac_cv_func_$ac_func=no"
19387 rm -f conftest*
19390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19391 echo "$ac_t""yes" 1>&6
19392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19393 cat >> confdefs.h <<EOF
19394 #define $ac_tr_func 1
19397 else
19398 echo "$ac_t""no" 1>&6
19400 done
19402 else
19404 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19405 echo "configure:19406: checking for _sqrtl declaration" >&5
19406 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
19407 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtl_use'+set}'`\" = set"; then
19408 echo $ac_n "(cached) $ac_c" 1>&6
19409 else
19412 ac_ext=C
19413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19414 ac_cpp='$CXXCPP $CPPFLAGS'
19415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19417 cross_compiling=$ac_cv_prog_cxx_cross
19419 cat > conftest.$ac_ext <<EOF
19420 #line 19421 "configure"
19421 #include "confdefs.h"
19422 #include <math.h>
19423 #ifdef HAVE_IEEEFP_H
19424 #include <ieeefp.h>
19425 #endif
19427 int main() {
19428 _sqrtl(0);
19429 ; return 0; }
19431 if { (eval echo configure:19432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19432 rm -rf conftest*
19433 glibcxx_cv_func__sqrtl_use=yes
19434 else
19435 echo "configure: failed program was:" >&5
19436 cat conftest.$ac_ext >&5
19437 rm -rf conftest*
19438 glibcxx_cv_func__sqrtl_use=no
19440 rm -f conftest*
19441 ac_ext=c
19442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19446 cross_compiling=$ac_cv_prog_cc_cross
19452 echo "$ac_t""$glibcxx_cv_func__sqrtl_use" 1>&6
19454 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
19455 for ac_func in _sqrtl
19457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19458 echo "configure:19459: checking for $ac_func" >&5
19459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19460 echo $ac_n "(cached) $ac_c" 1>&6
19461 else
19462 cat > conftest.$ac_ext <<EOF
19463 #line 19464 "configure"
19464 #include "confdefs.h"
19465 /* System header to define __stub macros and hopefully few prototypes,
19466 which can conflict with char $ac_func(); below. */
19467 #include <assert.h>
19468 /* Override any gcc2 internal prototype to avoid an error. */
19469 /* We use char because int might match the return type of a gcc2
19470 builtin and then its argument prototype would still apply. */
19471 char $ac_func();
19473 int main() {
19475 /* The GNU C library defines this for functions which it implements
19476 to always fail with ENOSYS. Some functions are actually named
19477 something starting with __ and the normal name is an alias. */
19478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19479 choke me
19480 #else
19481 $ac_func();
19482 #endif
19484 ; return 0; }
19486 if { (eval echo configure:19487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19487 rm -rf conftest*
19488 eval "ac_cv_func_$ac_func=yes"
19489 else
19490 echo "configure: failed program was:" >&5
19491 cat conftest.$ac_ext >&5
19492 rm -rf conftest*
19493 eval "ac_cv_func_$ac_func=no"
19495 rm -f conftest*
19498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19499 echo "$ac_t""yes" 1>&6
19500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19501 cat >> confdefs.h <<EOF
19502 #define $ac_tr_func 1
19505 else
19506 echo "$ac_t""no" 1>&6
19508 done
19515 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19516 echo "configure:19517: checking for sincosl declaration" >&5
19517 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
19518 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosl_use'+set}'`\" = set"; then
19519 echo $ac_n "(cached) $ac_c" 1>&6
19520 else
19523 ac_ext=C
19524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19525 ac_cpp='$CXXCPP $CPPFLAGS'
19526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19528 cross_compiling=$ac_cv_prog_cxx_cross
19530 cat > conftest.$ac_ext <<EOF
19531 #line 19532 "configure"
19532 #include "confdefs.h"
19533 #include <math.h>
19534 int main() {
19535 sincosl(0, 0, 0);
19536 ; return 0; }
19538 if { (eval echo configure:19539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19539 rm -rf conftest*
19540 glibcxx_cv_func_sincosl_use=yes
19541 else
19542 echo "configure: failed program was:" >&5
19543 cat conftest.$ac_ext >&5
19544 rm -rf conftest*
19545 glibcxx_cv_func_sincosl_use=no
19547 rm -f conftest*
19548 ac_ext=c
19549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19550 ac_cpp='$CPP $CPPFLAGS'
19551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19553 cross_compiling=$ac_cv_prog_cc_cross
19559 echo "$ac_t""$glibcxx_cv_func_sincosl_use" 1>&6
19561 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
19562 for ac_func in sincosl
19564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19565 echo "configure:19566: checking for $ac_func" >&5
19566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19567 echo $ac_n "(cached) $ac_c" 1>&6
19568 else
19569 cat > conftest.$ac_ext <<EOF
19570 #line 19571 "configure"
19571 #include "confdefs.h"
19572 /* System header to define __stub macros and hopefully few prototypes,
19573 which can conflict with char $ac_func(); below. */
19574 #include <assert.h>
19575 /* Override any gcc2 internal prototype to avoid an error. */
19576 /* We use char because int might match the return type of a gcc2
19577 builtin and then its argument prototype would still apply. */
19578 char $ac_func();
19580 int main() {
19582 /* The GNU C library defines this for functions which it implements
19583 to always fail with ENOSYS. Some functions are actually named
19584 something starting with __ and the normal name is an alias. */
19585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19586 choke me
19587 #else
19588 $ac_func();
19589 #endif
19591 ; return 0; }
19593 if { (eval echo configure:19594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19594 rm -rf conftest*
19595 eval "ac_cv_func_$ac_func=yes"
19596 else
19597 echo "configure: failed program was:" >&5
19598 cat conftest.$ac_ext >&5
19599 rm -rf conftest*
19600 eval "ac_cv_func_$ac_func=no"
19602 rm -f conftest*
19605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19606 echo "$ac_t""yes" 1>&6
19607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19608 cat >> confdefs.h <<EOF
19609 #define $ac_tr_func 1
19612 else
19613 echo "$ac_t""no" 1>&6
19615 done
19617 else
19619 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19620 echo "configure:19621: checking for _sincosl declaration" >&5
19621 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
19622 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosl_use'+set}'`\" = set"; then
19623 echo $ac_n "(cached) $ac_c" 1>&6
19624 else
19627 ac_ext=C
19628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19629 ac_cpp='$CXXCPP $CPPFLAGS'
19630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19632 cross_compiling=$ac_cv_prog_cxx_cross
19634 cat > conftest.$ac_ext <<EOF
19635 #line 19636 "configure"
19636 #include "confdefs.h"
19637 #include <math.h>
19638 int main() {
19639 _sincosl(0, 0, 0);
19640 ; return 0; }
19642 if { (eval echo configure:19643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19643 rm -rf conftest*
19644 glibcxx_cv_func__sincosl_use=yes
19645 else
19646 echo "configure: failed program was:" >&5
19647 cat conftest.$ac_ext >&5
19648 rm -rf conftest*
19649 glibcxx_cv_func__sincosl_use=no
19651 rm -f conftest*
19652 ac_ext=c
19653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19657 cross_compiling=$ac_cv_prog_cc_cross
19663 echo "$ac_t""$glibcxx_cv_func__sincosl_use" 1>&6
19665 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
19666 for ac_func in _sincosl
19668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19669 echo "configure:19670: checking for $ac_func" >&5
19670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19671 echo $ac_n "(cached) $ac_c" 1>&6
19672 else
19673 cat > conftest.$ac_ext <<EOF
19674 #line 19675 "configure"
19675 #include "confdefs.h"
19676 /* System header to define __stub macros and hopefully few prototypes,
19677 which can conflict with char $ac_func(); below. */
19678 #include <assert.h>
19679 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char $ac_func();
19684 int main() {
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19690 choke me
19691 #else
19692 $ac_func();
19693 #endif
19695 ; return 0; }
19697 if { (eval echo configure:19698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19698 rm -rf conftest*
19699 eval "ac_cv_func_$ac_func=yes"
19700 else
19701 echo "configure: failed program was:" >&5
19702 cat conftest.$ac_ext >&5
19703 rm -rf conftest*
19704 eval "ac_cv_func_$ac_func=no"
19706 rm -f conftest*
19709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19710 echo "$ac_t""yes" 1>&6
19711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19712 cat >> confdefs.h <<EOF
19713 #define $ac_tr_func 1
19716 else
19717 echo "$ac_t""no" 1>&6
19719 done
19726 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19727 echo "configure:19728: checking for finitel declaration" >&5
19728 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
19729 if eval "test \"`echo '$''{'glibcxx_cv_func_finitel_use'+set}'`\" = set"; then
19730 echo $ac_n "(cached) $ac_c" 1>&6
19731 else
19734 ac_ext=C
19735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19739 cross_compiling=$ac_cv_prog_cxx_cross
19741 cat > conftest.$ac_ext <<EOF
19742 #line 19743 "configure"
19743 #include "confdefs.h"
19744 #include <math.h>
19745 #ifdef HAVE_IEEEFP_H
19746 #include <ieeefp.h>
19747 #endif
19749 int main() {
19750 finitel(0);
19751 ; return 0; }
19753 if { (eval echo configure:19754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19754 rm -rf conftest*
19755 glibcxx_cv_func_finitel_use=yes
19756 else
19757 echo "configure: failed program was:" >&5
19758 cat conftest.$ac_ext >&5
19759 rm -rf conftest*
19760 glibcxx_cv_func_finitel_use=no
19762 rm -f conftest*
19763 ac_ext=c
19764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19765 ac_cpp='$CPP $CPPFLAGS'
19766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19768 cross_compiling=$ac_cv_prog_cc_cross
19774 echo "$ac_t""$glibcxx_cv_func_finitel_use" 1>&6
19776 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
19777 for ac_func in finitel
19779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19780 echo "configure:19781: checking for $ac_func" >&5
19781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19782 echo $ac_n "(cached) $ac_c" 1>&6
19783 else
19784 cat > conftest.$ac_ext <<EOF
19785 #line 19786 "configure"
19786 #include "confdefs.h"
19787 /* System header to define __stub macros and hopefully few prototypes,
19788 which can conflict with char $ac_func(); below. */
19789 #include <assert.h>
19790 /* Override any gcc2 internal prototype to avoid an error. */
19791 /* We use char because int might match the return type of a gcc2
19792 builtin and then its argument prototype would still apply. */
19793 char $ac_func();
19795 int main() {
19797 /* The GNU C library defines this for functions which it implements
19798 to always fail with ENOSYS. Some functions are actually named
19799 something starting with __ and the normal name is an alias. */
19800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19801 choke me
19802 #else
19803 $ac_func();
19804 #endif
19806 ; return 0; }
19808 if { (eval echo configure:19809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19809 rm -rf conftest*
19810 eval "ac_cv_func_$ac_func=yes"
19811 else
19812 echo "configure: failed program was:" >&5
19813 cat conftest.$ac_ext >&5
19814 rm -rf conftest*
19815 eval "ac_cv_func_$ac_func=no"
19817 rm -f conftest*
19820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19821 echo "$ac_t""yes" 1>&6
19822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19823 cat >> confdefs.h <<EOF
19824 #define $ac_tr_func 1
19827 else
19828 echo "$ac_t""no" 1>&6
19830 done
19832 else
19834 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19835 echo "configure:19836: checking for _finitel declaration" >&5
19836 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
19837 if eval "test \"`echo '$''{'glibcxx_cv_func__finitel_use'+set}'`\" = set"; then
19838 echo $ac_n "(cached) $ac_c" 1>&6
19839 else
19842 ac_ext=C
19843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19847 cross_compiling=$ac_cv_prog_cxx_cross
19849 cat > conftest.$ac_ext <<EOF
19850 #line 19851 "configure"
19851 #include "confdefs.h"
19852 #include <math.h>
19853 #ifdef HAVE_IEEEFP_H
19854 #include <ieeefp.h>
19855 #endif
19857 int main() {
19858 _finitel(0);
19859 ; return 0; }
19861 if { (eval echo configure:19862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19862 rm -rf conftest*
19863 glibcxx_cv_func__finitel_use=yes
19864 else
19865 echo "configure: failed program was:" >&5
19866 cat conftest.$ac_ext >&5
19867 rm -rf conftest*
19868 glibcxx_cv_func__finitel_use=no
19870 rm -f conftest*
19871 ac_ext=c
19872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19873 ac_cpp='$CPP $CPPFLAGS'
19874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19876 cross_compiling=$ac_cv_prog_cc_cross
19882 echo "$ac_t""$glibcxx_cv_func__finitel_use" 1>&6
19884 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
19885 for ac_func in _finitel
19887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19888 echo "configure:19889: checking for $ac_func" >&5
19889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19890 echo $ac_n "(cached) $ac_c" 1>&6
19891 else
19892 cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 /* System header to define __stub macros and hopefully few prototypes,
19896 which can conflict with char $ac_func(); below. */
19897 #include <assert.h>
19898 /* Override any gcc2 internal prototype to avoid an error. */
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19901 char $ac_func();
19903 int main() {
19905 /* The GNU C library defines this for functions which it implements
19906 to always fail with ENOSYS. Some functions are actually named
19907 something starting with __ and the normal name is an alias. */
19908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19909 choke me
19910 #else
19911 $ac_func();
19912 #endif
19914 ; return 0; }
19916 if { (eval echo configure:19917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19917 rm -rf conftest*
19918 eval "ac_cv_func_$ac_func=yes"
19919 else
19920 echo "configure: failed program was:" >&5
19921 cat conftest.$ac_ext >&5
19922 rm -rf conftest*
19923 eval "ac_cv_func_$ac_func=no"
19925 rm -f conftest*
19928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19929 echo "$ac_t""yes" 1>&6
19930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19931 cat >> confdefs.h <<EOF
19932 #define $ac_tr_func 1
19935 else
19936 echo "$ac_t""no" 1>&6
19938 done
19946 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19947 echo "configure:19948: checking for _float trig functions" >&5
19948 if eval "test \"`echo '$''{'glibcxx_cv_func__float_trig_use'+set}'`\" = set"; then
19949 echo $ac_n "(cached) $ac_c" 1>&6
19950 else
19953 ac_ext=C
19954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19955 ac_cpp='$CXXCPP $CPPFLAGS'
19956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19958 cross_compiling=$ac_cv_prog_cxx_cross
19960 cat > conftest.$ac_ext <<EOF
19961 #line 19962 "configure"
19962 #include "confdefs.h"
19963 #include <math.h>
19964 int main() {
19965 `for x in _acosf _asinf _atanf \
19966 _cosf _sinf _tanf \
19967 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19968 ; return 0; }
19970 if { (eval echo configure:19971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19971 rm -rf conftest*
19972 glibcxx_cv_func__float_trig_use=yes
19973 else
19974 echo "configure: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19976 rm -rf conftest*
19977 glibcxx_cv_func__float_trig_use=no
19979 rm -f conftest*
19980 ac_ext=c
19981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19982 ac_cpp='$CPP $CPPFLAGS'
19983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19985 cross_compiling=$ac_cv_prog_cc_cross
19989 echo "$ac_t""$glibcxx_cv_func__float_trig_use" 1>&6
19990 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
19991 for ac_func in _acosf _asinf _atanf \
19992 _cosf _sinf _tanf \
19993 _coshf _sinhf _tanhf
19995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19996 echo "configure:19997: checking for $ac_func" >&5
19997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19998 echo $ac_n "(cached) $ac_c" 1>&6
19999 else
20000 cat > conftest.$ac_ext <<EOF
20001 #line 20002 "configure"
20002 #include "confdefs.h"
20003 /* System header to define __stub macros and hopefully few prototypes,
20004 which can conflict with char $ac_func(); below. */
20005 #include <assert.h>
20006 /* Override any gcc2 internal prototype to avoid an error. */
20007 /* We use char because int might match the return type of a gcc2
20008 builtin and then its argument prototype would still apply. */
20009 char $ac_func();
20011 int main() {
20013 /* The GNU C library defines this for functions which it implements
20014 to always fail with ENOSYS. Some functions are actually named
20015 something starting with __ and the normal name is an alias. */
20016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20017 choke me
20018 #else
20019 $ac_func();
20020 #endif
20022 ; return 0; }
20024 if { (eval echo configure:20025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20025 rm -rf conftest*
20026 eval "ac_cv_func_$ac_func=yes"
20027 else
20028 echo "configure: failed program was:" >&5
20029 cat conftest.$ac_ext >&5
20030 rm -rf conftest*
20031 eval "ac_cv_func_$ac_func=no"
20033 rm -f conftest*
20036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20037 echo "$ac_t""yes" 1>&6
20038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20039 cat >> confdefs.h <<EOF
20040 #define $ac_tr_func 1
20043 else
20044 echo "$ac_t""no" 1>&6
20046 done
20051 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20052 echo "configure:20053: checking for _float round functions" >&5
20053 if eval "test \"`echo '$''{'glibcxx_cv_func__float_round_use'+set}'`\" = set"; then
20054 echo $ac_n "(cached) $ac_c" 1>&6
20055 else
20058 ac_ext=C
20059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20060 ac_cpp='$CXXCPP $CPPFLAGS'
20061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20063 cross_compiling=$ac_cv_prog_cxx_cross
20065 cat > conftest.$ac_ext <<EOF
20066 #line 20067 "configure"
20067 #include "confdefs.h"
20068 #include <math.h>
20069 int main() {
20070 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20071 ; return 0; }
20073 if { (eval echo configure:20074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20074 rm -rf conftest*
20075 glibcxx_cv_func__float_round_use=yes
20076 else
20077 echo "configure: failed program was:" >&5
20078 cat conftest.$ac_ext >&5
20079 rm -rf conftest*
20080 glibcxx_cv_func__float_round_use=no
20082 rm -f conftest*
20083 ac_ext=c
20084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20085 ac_cpp='$CPP $CPPFLAGS'
20086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20088 cross_compiling=$ac_cv_prog_cc_cross
20092 echo "$ac_t""$glibcxx_cv_func__float_round_use" 1>&6
20093 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
20094 for ac_func in _ceilf _floorf
20096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20097 echo "configure:20098: checking for $ac_func" >&5
20098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20099 echo $ac_n "(cached) $ac_c" 1>&6
20100 else
20101 cat > conftest.$ac_ext <<EOF
20102 #line 20103 "configure"
20103 #include "confdefs.h"
20104 /* System header to define __stub macros and hopefully few prototypes,
20105 which can conflict with char $ac_func(); below. */
20106 #include <assert.h>
20107 /* Override any gcc2 internal prototype to avoid an error. */
20108 /* We use char because int might match the return type of a gcc2
20109 builtin and then its argument prototype would still apply. */
20110 char $ac_func();
20112 int main() {
20114 /* The GNU C library defines this for functions which it implements
20115 to always fail with ENOSYS. Some functions are actually named
20116 something starting with __ and the normal name is an alias. */
20117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20118 choke me
20119 #else
20120 $ac_func();
20121 #endif
20123 ; return 0; }
20125 if { (eval echo configure:20126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20126 rm -rf conftest*
20127 eval "ac_cv_func_$ac_func=yes"
20128 else
20129 echo "configure: failed program was:" >&5
20130 cat conftest.$ac_ext >&5
20131 rm -rf conftest*
20132 eval "ac_cv_func_$ac_func=no"
20134 rm -f conftest*
20137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20138 echo "$ac_t""yes" 1>&6
20139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20140 cat >> confdefs.h <<EOF
20141 #define $ac_tr_func 1
20144 else
20145 echo "$ac_t""no" 1>&6
20147 done
20153 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20154 echo "configure:20155: checking for _long double trig functions" >&5
20155 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_trig_use'+set}'`\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20157 else
20160 ac_ext=C
20161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20162 ac_cpp='$CXXCPP $CPPFLAGS'
20163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20165 cross_compiling=$ac_cv_prog_cxx_cross
20167 cat > conftest.$ac_ext <<EOF
20168 #line 20169 "configure"
20169 #include "confdefs.h"
20170 #include <math.h>
20171 int main() {
20172 `for x in _acosl _asinl _atanl \
20173 _cosl _sinl _tanl \
20174 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20175 ; return 0; }
20177 if { (eval echo configure:20178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20178 rm -rf conftest*
20179 glibcxx_cv_func__long_double_trig_use=yes
20180 else
20181 echo "configure: failed program was:" >&5
20182 cat conftest.$ac_ext >&5
20183 rm -rf conftest*
20184 glibcxx_cv_func__long_double_trig_use=no
20186 rm -f conftest*
20187 ac_ext=c
20188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20192 cross_compiling=$ac_cv_prog_cc_cross
20196 echo "$ac_t""$glibcxx_cv_func__long_double_trig_use" 1>&6
20197 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
20198 for ac_func in _acosl _asinl _atanl \
20199 _cosl _sinl _tanl \
20200 _coshl _sinhl _tanhl
20202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20203 echo "configure:20204: checking for $ac_func" >&5
20204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20205 echo $ac_n "(cached) $ac_c" 1>&6
20206 else
20207 cat > conftest.$ac_ext <<EOF
20208 #line 20209 "configure"
20209 #include "confdefs.h"
20210 /* System header to define __stub macros and hopefully few prototypes,
20211 which can conflict with char $ac_func(); below. */
20212 #include <assert.h>
20213 /* Override any gcc2 internal prototype to avoid an error. */
20214 /* We use char because int might match the return type of a gcc2
20215 builtin and then its argument prototype would still apply. */
20216 char $ac_func();
20218 int main() {
20220 /* The GNU C library defines this for functions which it implements
20221 to always fail with ENOSYS. Some functions are actually named
20222 something starting with __ and the normal name is an alias. */
20223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20224 choke me
20225 #else
20226 $ac_func();
20227 #endif
20229 ; return 0; }
20231 if { (eval echo configure:20232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20232 rm -rf conftest*
20233 eval "ac_cv_func_$ac_func=yes"
20234 else
20235 echo "configure: failed program was:" >&5
20236 cat conftest.$ac_ext >&5
20237 rm -rf conftest*
20238 eval "ac_cv_func_$ac_func=no"
20240 rm -f conftest*
20243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20244 echo "$ac_t""yes" 1>&6
20245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20246 cat >> confdefs.h <<EOF
20247 #define $ac_tr_func 1
20250 else
20251 echo "$ac_t""no" 1>&6
20253 done
20258 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20259 echo "configure:20260: checking for _long double round functions" >&5
20260 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_round_use'+set}'`\" = set"; then
20261 echo $ac_n "(cached) $ac_c" 1>&6
20262 else
20265 ac_ext=C
20266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20267 ac_cpp='$CXXCPP $CPPFLAGS'
20268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20270 cross_compiling=$ac_cv_prog_cxx_cross
20272 cat > conftest.$ac_ext <<EOF
20273 #line 20274 "configure"
20274 #include "confdefs.h"
20275 #include <math.h>
20276 int main() {
20277 `for x in _ceill _floorl; do echo "$x (0);"; done`
20278 ; return 0; }
20280 if { (eval echo configure:20281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20281 rm -rf conftest*
20282 glibcxx_cv_func__long_double_round_use=yes
20283 else
20284 echo "configure: failed program was:" >&5
20285 cat conftest.$ac_ext >&5
20286 rm -rf conftest*
20287 glibcxx_cv_func__long_double_round_use=no
20289 rm -f conftest*
20290 ac_ext=c
20291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20292 ac_cpp='$CPP $CPPFLAGS'
20293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20295 cross_compiling=$ac_cv_prog_cc_cross
20299 echo "$ac_t""$glibcxx_cv_func__long_double_round_use" 1>&6
20300 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
20301 for ac_func in _ceill _floorl
20303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20304 echo "configure:20305: checking for $ac_func" >&5
20305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20306 echo $ac_n "(cached) $ac_c" 1>&6
20307 else
20308 cat > conftest.$ac_ext <<EOF
20309 #line 20310 "configure"
20310 #include "confdefs.h"
20311 /* System header to define __stub macros and hopefully few prototypes,
20312 which can conflict with char $ac_func(); below. */
20313 #include <assert.h>
20314 /* Override any gcc2 internal prototype to avoid an error. */
20315 /* We use char because int might match the return type of a gcc2
20316 builtin and then its argument prototype would still apply. */
20317 char $ac_func();
20319 int main() {
20321 /* The GNU C library defines this for functions which it implements
20322 to always fail with ENOSYS. Some functions are actually named
20323 something starting with __ and the normal name is an alias. */
20324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20325 choke me
20326 #else
20327 $ac_func();
20328 #endif
20330 ; return 0; }
20332 if { (eval echo configure:20333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20333 rm -rf conftest*
20334 eval "ac_cv_func_$ac_func=yes"
20335 else
20336 echo "configure: failed program was:" >&5
20337 cat conftest.$ac_ext >&5
20338 rm -rf conftest*
20339 eval "ac_cv_func_$ac_func=no"
20341 rm -f conftest*
20344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20345 echo "$ac_t""yes" 1>&6
20346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20347 cat >> confdefs.h <<EOF
20348 #define $ac_tr_func 1
20351 else
20352 echo "$ac_t""no" 1>&6
20354 done
20359 LIBS="$ac_save_LIBS"
20360 CXXFLAGS="$ac_save_CXXFLAGS"
20364 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20365 echo "configure:20366: checking for __builtin_abs declaration" >&5
20366 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
20367 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_use'+set}'`\" = set"; then
20368 echo $ac_n "(cached) $ac_c" 1>&6
20369 else
20372 ac_ext=C
20373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20374 ac_cpp='$CXXCPP $CPPFLAGS'
20375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20377 cross_compiling=$ac_cv_prog_cxx_cross
20379 cat > conftest.$ac_ext <<EOF
20380 #line 20381 "configure"
20381 #include "confdefs.h"
20382 #include <math.h>
20383 int main() {
20384 __builtin_abs(0);
20385 ; return 0; }
20387 if { (eval echo configure:20388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20388 rm -rf conftest*
20389 glibcxx_cv_func___builtin_abs_use=yes
20390 else
20391 echo "configure: failed program was:" >&5
20392 cat conftest.$ac_ext >&5
20393 rm -rf conftest*
20394 glibcxx_cv_func___builtin_abs_use=no
20396 rm -f conftest*
20397 ac_ext=c
20398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20399 ac_cpp='$CPP $CPPFLAGS'
20400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20402 cross_compiling=$ac_cv_prog_cc_cross
20408 echo "$ac_t""$glibcxx_cv_func___builtin_abs_use" 1>&6
20409 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
20410 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20411 echo "configure:20412: checking for __builtin_abs linkage" >&5
20412 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
20413 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_link'+set}'`\" = set"; then
20414 echo $ac_n "(cached) $ac_c" 1>&6
20415 else
20417 cat > conftest.$ac_ext <<EOF
20418 #line 20419 "configure"
20419 #include "confdefs.h"
20420 #include <math.h>
20421 int main() {
20422 __builtin_abs(0);
20423 ; return 0; }
20425 if { (eval echo configure:20426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20426 rm -rf conftest*
20427 glibcxx_cv_func___builtin_abs_link=yes
20428 else
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20431 rm -rf conftest*
20432 glibcxx_cv_func___builtin_abs_link=no
20434 rm -f conftest*
20439 echo "$ac_t""$glibcxx_cv_func___builtin_abs_link" 1>&6
20440 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
20441 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20442 cat >> confdefs.h <<EOF
20443 #define ${ac_tr_func} 1
20450 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20451 echo "configure:20452: checking for __builtin_fabsf declaration" >&5
20452 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
20453 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20454 echo $ac_n "(cached) $ac_c" 1>&6
20455 else
20458 ac_ext=C
20459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20460 ac_cpp='$CXXCPP $CPPFLAGS'
20461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20463 cross_compiling=$ac_cv_prog_cxx_cross
20465 cat > conftest.$ac_ext <<EOF
20466 #line 20467 "configure"
20467 #include "confdefs.h"
20468 #include <math.h>
20469 int main() {
20470 __builtin_fabsf(0);
20471 ; return 0; }
20473 if { (eval echo configure:20474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20474 rm -rf conftest*
20475 glibcxx_cv_func___builtin_fabsf_use=yes
20476 else
20477 echo "configure: failed program was:" >&5
20478 cat conftest.$ac_ext >&5
20479 rm -rf conftest*
20480 glibcxx_cv_func___builtin_fabsf_use=no
20482 rm -f conftest*
20483 ac_ext=c
20484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20485 ac_cpp='$CPP $CPPFLAGS'
20486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20488 cross_compiling=$ac_cv_prog_cc_cross
20494 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_use" 1>&6
20495 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
20496 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20497 echo "configure:20498: checking for __builtin_fabsf linkage" >&5
20498 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
20499 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20500 echo $ac_n "(cached) $ac_c" 1>&6
20501 else
20503 cat > conftest.$ac_ext <<EOF
20504 #line 20505 "configure"
20505 #include "confdefs.h"
20506 #include <math.h>
20507 int main() {
20508 __builtin_fabsf(0);
20509 ; return 0; }
20511 if { (eval echo configure:20512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20512 rm -rf conftest*
20513 glibcxx_cv_func___builtin_fabsf_link=yes
20514 else
20515 echo "configure: failed program was:" >&5
20516 cat conftest.$ac_ext >&5
20517 rm -rf conftest*
20518 glibcxx_cv_func___builtin_fabsf_link=no
20520 rm -f conftest*
20525 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_link" 1>&6
20526 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
20527 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20528 cat >> confdefs.h <<EOF
20529 #define ${ac_tr_func} 1
20536 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20537 echo "configure:20538: checking for __builtin_fabs declaration" >&5
20538 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
20539 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20540 echo $ac_n "(cached) $ac_c" 1>&6
20541 else
20544 ac_ext=C
20545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20546 ac_cpp='$CXXCPP $CPPFLAGS'
20547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20549 cross_compiling=$ac_cv_prog_cxx_cross
20551 cat > conftest.$ac_ext <<EOF
20552 #line 20553 "configure"
20553 #include "confdefs.h"
20554 #include <math.h>
20555 int main() {
20556 __builtin_fabs(0);
20557 ; return 0; }
20559 if { (eval echo configure:20560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20560 rm -rf conftest*
20561 glibcxx_cv_func___builtin_fabs_use=yes
20562 else
20563 echo "configure: failed program was:" >&5
20564 cat conftest.$ac_ext >&5
20565 rm -rf conftest*
20566 glibcxx_cv_func___builtin_fabs_use=no
20568 rm -f conftest*
20569 ac_ext=c
20570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20571 ac_cpp='$CPP $CPPFLAGS'
20572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20574 cross_compiling=$ac_cv_prog_cc_cross
20580 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_use" 1>&6
20581 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
20582 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20583 echo "configure:20584: checking for __builtin_fabs linkage" >&5
20584 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
20585 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20586 echo $ac_n "(cached) $ac_c" 1>&6
20587 else
20589 cat > conftest.$ac_ext <<EOF
20590 #line 20591 "configure"
20591 #include "confdefs.h"
20592 #include <math.h>
20593 int main() {
20594 __builtin_fabs(0);
20595 ; return 0; }
20597 if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20598 rm -rf conftest*
20599 glibcxx_cv_func___builtin_fabs_link=yes
20600 else
20601 echo "configure: failed program was:" >&5
20602 cat conftest.$ac_ext >&5
20603 rm -rf conftest*
20604 glibcxx_cv_func___builtin_fabs_link=no
20606 rm -f conftest*
20611 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_link" 1>&6
20612 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
20613 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20614 cat >> confdefs.h <<EOF
20615 #define ${ac_tr_func} 1
20622 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20623 echo "configure:20624: checking for __builtin_fabsl declaration" >&5
20624 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
20625 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20626 echo $ac_n "(cached) $ac_c" 1>&6
20627 else
20630 ac_ext=C
20631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20632 ac_cpp='$CXXCPP $CPPFLAGS'
20633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20635 cross_compiling=$ac_cv_prog_cxx_cross
20637 cat > conftest.$ac_ext <<EOF
20638 #line 20639 "configure"
20639 #include "confdefs.h"
20640 #include <math.h>
20641 int main() {
20642 __builtin_fabsl(0);
20643 ; return 0; }
20645 if { (eval echo configure:20646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20646 rm -rf conftest*
20647 glibcxx_cv_func___builtin_fabsl_use=yes
20648 else
20649 echo "configure: failed program was:" >&5
20650 cat conftest.$ac_ext >&5
20651 rm -rf conftest*
20652 glibcxx_cv_func___builtin_fabsl_use=no
20654 rm -f conftest*
20655 ac_ext=c
20656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20657 ac_cpp='$CPP $CPPFLAGS'
20658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20660 cross_compiling=$ac_cv_prog_cc_cross
20666 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_use" 1>&6
20667 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
20668 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20669 echo "configure:20670: checking for __builtin_fabsl linkage" >&5
20670 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
20671 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20672 echo $ac_n "(cached) $ac_c" 1>&6
20673 else
20675 cat > conftest.$ac_ext <<EOF
20676 #line 20677 "configure"
20677 #include "confdefs.h"
20678 #include <math.h>
20679 int main() {
20680 __builtin_fabsl(0);
20681 ; return 0; }
20683 if { (eval echo configure:20684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20684 rm -rf conftest*
20685 glibcxx_cv_func___builtin_fabsl_link=yes
20686 else
20687 echo "configure: failed program was:" >&5
20688 cat conftest.$ac_ext >&5
20689 rm -rf conftest*
20690 glibcxx_cv_func___builtin_fabsl_link=no
20692 rm -f conftest*
20697 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_link" 1>&6
20698 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
20699 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20700 cat >> confdefs.h <<EOF
20701 #define ${ac_tr_func} 1
20708 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20709 echo "configure:20710: checking for __builtin_labs declaration" >&5
20710 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
20711 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_use'+set}'`\" = set"; then
20712 echo $ac_n "(cached) $ac_c" 1>&6
20713 else
20716 ac_ext=C
20717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20718 ac_cpp='$CXXCPP $CPPFLAGS'
20719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20721 cross_compiling=$ac_cv_prog_cxx_cross
20723 cat > conftest.$ac_ext <<EOF
20724 #line 20725 "configure"
20725 #include "confdefs.h"
20726 #include <math.h>
20727 int main() {
20728 __builtin_labs(0);
20729 ; return 0; }
20731 if { (eval echo configure:20732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20732 rm -rf conftest*
20733 glibcxx_cv_func___builtin_labs_use=yes
20734 else
20735 echo "configure: failed program was:" >&5
20736 cat conftest.$ac_ext >&5
20737 rm -rf conftest*
20738 glibcxx_cv_func___builtin_labs_use=no
20740 rm -f conftest*
20741 ac_ext=c
20742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20743 ac_cpp='$CPP $CPPFLAGS'
20744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20746 cross_compiling=$ac_cv_prog_cc_cross
20752 echo "$ac_t""$glibcxx_cv_func___builtin_labs_use" 1>&6
20753 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
20754 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20755 echo "configure:20756: checking for __builtin_labs linkage" >&5
20756 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
20757 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_link'+set}'`\" = set"; then
20758 echo $ac_n "(cached) $ac_c" 1>&6
20759 else
20761 cat > conftest.$ac_ext <<EOF
20762 #line 20763 "configure"
20763 #include "confdefs.h"
20764 #include <math.h>
20765 int main() {
20766 __builtin_labs(0);
20767 ; return 0; }
20769 if { (eval echo configure:20770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20770 rm -rf conftest*
20771 glibcxx_cv_func___builtin_labs_link=yes
20772 else
20773 echo "configure: failed program was:" >&5
20774 cat conftest.$ac_ext >&5
20775 rm -rf conftest*
20776 glibcxx_cv_func___builtin_labs_link=no
20778 rm -f conftest*
20783 echo "$ac_t""$glibcxx_cv_func___builtin_labs_link" 1>&6
20784 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
20785 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20786 cat >> confdefs.h <<EOF
20787 #define ${ac_tr_func} 1
20795 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20796 echo "configure:20797: checking for __builtin_sqrtf declaration" >&5
20797 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
20798 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20800 else
20803 ac_ext=C
20804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20808 cross_compiling=$ac_cv_prog_cxx_cross
20810 cat > conftest.$ac_ext <<EOF
20811 #line 20812 "configure"
20812 #include "confdefs.h"
20813 #include <math.h>
20814 int main() {
20815 __builtin_sqrtf(0);
20816 ; return 0; }
20818 if { (eval echo configure:20819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20819 rm -rf conftest*
20820 glibcxx_cv_func___builtin_sqrtf_use=yes
20821 else
20822 echo "configure: failed program was:" >&5
20823 cat conftest.$ac_ext >&5
20824 rm -rf conftest*
20825 glibcxx_cv_func___builtin_sqrtf_use=no
20827 rm -f conftest*
20828 ac_ext=c
20829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20830 ac_cpp='$CPP $CPPFLAGS'
20831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20833 cross_compiling=$ac_cv_prog_cc_cross
20839 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_use" 1>&6
20840 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
20841 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20842 echo "configure:20843: checking for __builtin_sqrtf linkage" >&5
20843 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
20844 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20846 else
20848 cat > conftest.$ac_ext <<EOF
20849 #line 20850 "configure"
20850 #include "confdefs.h"
20851 #include <math.h>
20852 int main() {
20853 __builtin_sqrtf(0);
20854 ; return 0; }
20856 if { (eval echo configure:20857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20857 rm -rf conftest*
20858 glibcxx_cv_func___builtin_sqrtf_link=yes
20859 else
20860 echo "configure: failed program was:" >&5
20861 cat conftest.$ac_ext >&5
20862 rm -rf conftest*
20863 glibcxx_cv_func___builtin_sqrtf_link=no
20865 rm -f conftest*
20870 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_link" 1>&6
20871 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
20872 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20873 cat >> confdefs.h <<EOF
20874 #define ${ac_tr_func} 1
20881 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20882 echo "configure:20883: checking for __builtin_sqrt declaration" >&5
20883 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
20884 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20885 echo $ac_n "(cached) $ac_c" 1>&6
20886 else
20889 ac_ext=C
20890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20891 ac_cpp='$CXXCPP $CPPFLAGS'
20892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20894 cross_compiling=$ac_cv_prog_cxx_cross
20896 cat > conftest.$ac_ext <<EOF
20897 #line 20898 "configure"
20898 #include "confdefs.h"
20899 #include <math.h>
20900 int main() {
20901 __builtin_sqrt(0);
20902 ; return 0; }
20904 if { (eval echo configure:20905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20905 rm -rf conftest*
20906 glibcxx_cv_func___builtin_sqrt_use=yes
20907 else
20908 echo "configure: failed program was:" >&5
20909 cat conftest.$ac_ext >&5
20910 rm -rf conftest*
20911 glibcxx_cv_func___builtin_sqrt_use=no
20913 rm -f conftest*
20914 ac_ext=c
20915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20916 ac_cpp='$CPP $CPPFLAGS'
20917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20919 cross_compiling=$ac_cv_prog_cc_cross
20925 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_use" 1>&6
20926 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
20927 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20928 echo "configure:20929: checking for __builtin_sqrt linkage" >&5
20929 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
20930 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20931 echo $ac_n "(cached) $ac_c" 1>&6
20932 else
20934 cat > conftest.$ac_ext <<EOF
20935 #line 20936 "configure"
20936 #include "confdefs.h"
20937 #include <math.h>
20938 int main() {
20939 __builtin_sqrt(0);
20940 ; return 0; }
20942 if { (eval echo configure:20943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20943 rm -rf conftest*
20944 glibcxx_cv_func___builtin_sqrt_link=yes
20945 else
20946 echo "configure: failed program was:" >&5
20947 cat conftest.$ac_ext >&5
20948 rm -rf conftest*
20949 glibcxx_cv_func___builtin_sqrt_link=no
20951 rm -f conftest*
20956 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_link" 1>&6
20957 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
20958 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20959 cat >> confdefs.h <<EOF
20960 #define ${ac_tr_func} 1
20967 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20968 echo "configure:20969: checking for __builtin_sqrtl declaration" >&5
20969 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
20970 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
20972 else
20975 ac_ext=C
20976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20977 ac_cpp='$CXXCPP $CPPFLAGS'
20978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20980 cross_compiling=$ac_cv_prog_cxx_cross
20982 cat > conftest.$ac_ext <<EOF
20983 #line 20984 "configure"
20984 #include "confdefs.h"
20985 #include <math.h>
20986 int main() {
20987 __builtin_sqrtl(0);
20988 ; return 0; }
20990 if { (eval echo configure:20991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20991 rm -rf conftest*
20992 glibcxx_cv_func___builtin_sqrtl_use=yes
20993 else
20994 echo "configure: failed program was:" >&5
20995 cat conftest.$ac_ext >&5
20996 rm -rf conftest*
20997 glibcxx_cv_func___builtin_sqrtl_use=no
20999 rm -f conftest*
21000 ac_ext=c
21001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21002 ac_cpp='$CPP $CPPFLAGS'
21003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21005 cross_compiling=$ac_cv_prog_cc_cross
21011 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_use" 1>&6
21012 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
21013 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21014 echo "configure:21015: checking for __builtin_sqrtl linkage" >&5
21015 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
21016 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21017 echo $ac_n "(cached) $ac_c" 1>&6
21018 else
21020 cat > conftest.$ac_ext <<EOF
21021 #line 21022 "configure"
21022 #include "confdefs.h"
21023 #include <math.h>
21024 int main() {
21025 __builtin_sqrtl(0);
21026 ; return 0; }
21028 if { (eval echo configure:21029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21029 rm -rf conftest*
21030 glibcxx_cv_func___builtin_sqrtl_link=yes
21031 else
21032 echo "configure: failed program was:" >&5
21033 cat conftest.$ac_ext >&5
21034 rm -rf conftest*
21035 glibcxx_cv_func___builtin_sqrtl_link=no
21037 rm -f conftest*
21042 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_link" 1>&6
21043 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
21044 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21045 cat >> confdefs.h <<EOF
21046 #define ${ac_tr_func} 1
21054 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21055 echo "configure:21056: checking for __builtin_sinf declaration" >&5
21056 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
21057 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21058 echo $ac_n "(cached) $ac_c" 1>&6
21059 else
21062 ac_ext=C
21063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21064 ac_cpp='$CXXCPP $CPPFLAGS'
21065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21067 cross_compiling=$ac_cv_prog_cxx_cross
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21072 #include <math.h>
21073 int main() {
21074 __builtin_sinf(0);
21075 ; return 0; }
21077 if { (eval echo configure:21078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21078 rm -rf conftest*
21079 glibcxx_cv_func___builtin_sinf_use=yes
21080 else
21081 echo "configure: failed program was:" >&5
21082 cat conftest.$ac_ext >&5
21083 rm -rf conftest*
21084 glibcxx_cv_func___builtin_sinf_use=no
21086 rm -f conftest*
21087 ac_ext=c
21088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21089 ac_cpp='$CPP $CPPFLAGS'
21090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21092 cross_compiling=$ac_cv_prog_cc_cross
21098 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_use" 1>&6
21099 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
21100 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21101 echo "configure:21102: checking for __builtin_sinf linkage" >&5
21102 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
21103 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21104 echo $ac_n "(cached) $ac_c" 1>&6
21105 else
21107 cat > conftest.$ac_ext <<EOF
21108 #line 21109 "configure"
21109 #include "confdefs.h"
21110 #include <math.h>
21111 int main() {
21112 __builtin_sinf(0);
21113 ; return 0; }
21115 if { (eval echo configure:21116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21116 rm -rf conftest*
21117 glibcxx_cv_func___builtin_sinf_link=yes
21118 else
21119 echo "configure: failed program was:" >&5
21120 cat conftest.$ac_ext >&5
21121 rm -rf conftest*
21122 glibcxx_cv_func___builtin_sinf_link=no
21124 rm -f conftest*
21129 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_link" 1>&6
21130 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
21131 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21132 cat >> confdefs.h <<EOF
21133 #define ${ac_tr_func} 1
21140 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21141 echo "configure:21142: checking for __builtin_sin declaration" >&5
21142 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
21143 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_use'+set}'`\" = set"; then
21144 echo $ac_n "(cached) $ac_c" 1>&6
21145 else
21148 ac_ext=C
21149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21153 cross_compiling=$ac_cv_prog_cxx_cross
21155 cat > conftest.$ac_ext <<EOF
21156 #line 21157 "configure"
21157 #include "confdefs.h"
21158 #include <math.h>
21159 int main() {
21160 __builtin_sin(0);
21161 ; return 0; }
21163 if { (eval echo configure:21164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21164 rm -rf conftest*
21165 glibcxx_cv_func___builtin_sin_use=yes
21166 else
21167 echo "configure: failed program was:" >&5
21168 cat conftest.$ac_ext >&5
21169 rm -rf conftest*
21170 glibcxx_cv_func___builtin_sin_use=no
21172 rm -f conftest*
21173 ac_ext=c
21174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21175 ac_cpp='$CPP $CPPFLAGS'
21176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21178 cross_compiling=$ac_cv_prog_cc_cross
21184 echo "$ac_t""$glibcxx_cv_func___builtin_sin_use" 1>&6
21185 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
21186 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21187 echo "configure:21188: checking for __builtin_sin linkage" >&5
21188 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
21189 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_link'+set}'`\" = set"; then
21190 echo $ac_n "(cached) $ac_c" 1>&6
21191 else
21193 cat > conftest.$ac_ext <<EOF
21194 #line 21195 "configure"
21195 #include "confdefs.h"
21196 #include <math.h>
21197 int main() {
21198 __builtin_sin(0);
21199 ; return 0; }
21201 if { (eval echo configure:21202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21202 rm -rf conftest*
21203 glibcxx_cv_func___builtin_sin_link=yes
21204 else
21205 echo "configure: failed program was:" >&5
21206 cat conftest.$ac_ext >&5
21207 rm -rf conftest*
21208 glibcxx_cv_func___builtin_sin_link=no
21210 rm -f conftest*
21215 echo "$ac_t""$glibcxx_cv_func___builtin_sin_link" 1>&6
21216 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
21217 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21218 cat >> confdefs.h <<EOF
21219 #define ${ac_tr_func} 1
21226 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21227 echo "configure:21228: checking for __builtin_sinl declaration" >&5
21228 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
21229 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21230 echo $ac_n "(cached) $ac_c" 1>&6
21231 else
21234 ac_ext=C
21235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21236 ac_cpp='$CXXCPP $CPPFLAGS'
21237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21239 cross_compiling=$ac_cv_prog_cxx_cross
21241 cat > conftest.$ac_ext <<EOF
21242 #line 21243 "configure"
21243 #include "confdefs.h"
21244 #include <math.h>
21245 int main() {
21246 __builtin_sinl(0);
21247 ; return 0; }
21249 if { (eval echo configure:21250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21250 rm -rf conftest*
21251 glibcxx_cv_func___builtin_sinl_use=yes
21252 else
21253 echo "configure: failed program was:" >&5
21254 cat conftest.$ac_ext >&5
21255 rm -rf conftest*
21256 glibcxx_cv_func___builtin_sinl_use=no
21258 rm -f conftest*
21259 ac_ext=c
21260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21261 ac_cpp='$CPP $CPPFLAGS'
21262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21264 cross_compiling=$ac_cv_prog_cc_cross
21270 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_use" 1>&6
21271 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
21272 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21273 echo "configure:21274: checking for __builtin_sinl linkage" >&5
21274 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
21275 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21276 echo $ac_n "(cached) $ac_c" 1>&6
21277 else
21279 cat > conftest.$ac_ext <<EOF
21280 #line 21281 "configure"
21281 #include "confdefs.h"
21282 #include <math.h>
21283 int main() {
21284 __builtin_sinl(0);
21285 ; return 0; }
21287 if { (eval echo configure:21288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21288 rm -rf conftest*
21289 glibcxx_cv_func___builtin_sinl_link=yes
21290 else
21291 echo "configure: failed program was:" >&5
21292 cat conftest.$ac_ext >&5
21293 rm -rf conftest*
21294 glibcxx_cv_func___builtin_sinl_link=no
21296 rm -f conftest*
21301 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_link" 1>&6
21302 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
21303 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21304 cat >> confdefs.h <<EOF
21305 #define ${ac_tr_func} 1
21313 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21314 echo "configure:21315: checking for __builtin_cosf declaration" >&5
21315 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
21316 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21317 echo $ac_n "(cached) $ac_c" 1>&6
21318 else
21321 ac_ext=C
21322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21323 ac_cpp='$CXXCPP $CPPFLAGS'
21324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21326 cross_compiling=$ac_cv_prog_cxx_cross
21328 cat > conftest.$ac_ext <<EOF
21329 #line 21330 "configure"
21330 #include "confdefs.h"
21331 #include <math.h>
21332 int main() {
21333 __builtin_cosf(0);
21334 ; return 0; }
21336 if { (eval echo configure:21337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21337 rm -rf conftest*
21338 glibcxx_cv_func___builtin_cosf_use=yes
21339 else
21340 echo "configure: failed program was:" >&5
21341 cat conftest.$ac_ext >&5
21342 rm -rf conftest*
21343 glibcxx_cv_func___builtin_cosf_use=no
21345 rm -f conftest*
21346 ac_ext=c
21347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21351 cross_compiling=$ac_cv_prog_cc_cross
21357 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_use" 1>&6
21358 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
21359 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21360 echo "configure:21361: checking for __builtin_cosf linkage" >&5
21361 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
21362 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21363 echo $ac_n "(cached) $ac_c" 1>&6
21364 else
21366 cat > conftest.$ac_ext <<EOF
21367 #line 21368 "configure"
21368 #include "confdefs.h"
21369 #include <math.h>
21370 int main() {
21371 __builtin_cosf(0);
21372 ; return 0; }
21374 if { (eval echo configure:21375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21375 rm -rf conftest*
21376 glibcxx_cv_func___builtin_cosf_link=yes
21377 else
21378 echo "configure: failed program was:" >&5
21379 cat conftest.$ac_ext >&5
21380 rm -rf conftest*
21381 glibcxx_cv_func___builtin_cosf_link=no
21383 rm -f conftest*
21388 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_link" 1>&6
21389 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
21390 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21391 cat >> confdefs.h <<EOF
21392 #define ${ac_tr_func} 1
21399 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21400 echo "configure:21401: checking for __builtin_cos declaration" >&5
21401 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
21402 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_use'+set}'`\" = set"; then
21403 echo $ac_n "(cached) $ac_c" 1>&6
21404 else
21407 ac_ext=C
21408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21409 ac_cpp='$CXXCPP $CPPFLAGS'
21410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21412 cross_compiling=$ac_cv_prog_cxx_cross
21414 cat > conftest.$ac_ext <<EOF
21415 #line 21416 "configure"
21416 #include "confdefs.h"
21417 #include <math.h>
21418 int main() {
21419 __builtin_cos(0);
21420 ; return 0; }
21422 if { (eval echo configure:21423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21423 rm -rf conftest*
21424 glibcxx_cv_func___builtin_cos_use=yes
21425 else
21426 echo "configure: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21428 rm -rf conftest*
21429 glibcxx_cv_func___builtin_cos_use=no
21431 rm -f conftest*
21432 ac_ext=c
21433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21437 cross_compiling=$ac_cv_prog_cc_cross
21443 echo "$ac_t""$glibcxx_cv_func___builtin_cos_use" 1>&6
21444 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
21445 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21446 echo "configure:21447: checking for __builtin_cos linkage" >&5
21447 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
21448 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_link'+set}'`\" = set"; then
21449 echo $ac_n "(cached) $ac_c" 1>&6
21450 else
21452 cat > conftest.$ac_ext <<EOF
21453 #line 21454 "configure"
21454 #include "confdefs.h"
21455 #include <math.h>
21456 int main() {
21457 __builtin_cos(0);
21458 ; return 0; }
21460 if { (eval echo configure:21461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21461 rm -rf conftest*
21462 glibcxx_cv_func___builtin_cos_link=yes
21463 else
21464 echo "configure: failed program was:" >&5
21465 cat conftest.$ac_ext >&5
21466 rm -rf conftest*
21467 glibcxx_cv_func___builtin_cos_link=no
21469 rm -f conftest*
21474 echo "$ac_t""$glibcxx_cv_func___builtin_cos_link" 1>&6
21475 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
21476 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21477 cat >> confdefs.h <<EOF
21478 #define ${ac_tr_func} 1
21485 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21486 echo "configure:21487: checking for __builtin_cosl declaration" >&5
21487 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
21488 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21489 echo $ac_n "(cached) $ac_c" 1>&6
21490 else
21493 ac_ext=C
21494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21495 ac_cpp='$CXXCPP $CPPFLAGS'
21496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21498 cross_compiling=$ac_cv_prog_cxx_cross
21500 cat > conftest.$ac_ext <<EOF
21501 #line 21502 "configure"
21502 #include "confdefs.h"
21503 #include <math.h>
21504 int main() {
21505 __builtin_cosl(0);
21506 ; return 0; }
21508 if { (eval echo configure:21509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21509 rm -rf conftest*
21510 glibcxx_cv_func___builtin_cosl_use=yes
21511 else
21512 echo "configure: failed program was:" >&5
21513 cat conftest.$ac_ext >&5
21514 rm -rf conftest*
21515 glibcxx_cv_func___builtin_cosl_use=no
21517 rm -f conftest*
21518 ac_ext=c
21519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21520 ac_cpp='$CPP $CPPFLAGS'
21521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21523 cross_compiling=$ac_cv_prog_cc_cross
21529 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_use" 1>&6
21530 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
21531 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21532 echo "configure:21533: checking for __builtin_cosl linkage" >&5
21533 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
21534 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21535 echo $ac_n "(cached) $ac_c" 1>&6
21536 else
21538 cat > conftest.$ac_ext <<EOF
21539 #line 21540 "configure"
21540 #include "confdefs.h"
21541 #include <math.h>
21542 int main() {
21543 __builtin_cosl(0);
21544 ; return 0; }
21546 if { (eval echo configure:21547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21547 rm -rf conftest*
21548 glibcxx_cv_func___builtin_cosl_link=yes
21549 else
21550 echo "configure: failed program was:" >&5
21551 cat conftest.$ac_ext >&5
21552 rm -rf conftest*
21553 glibcxx_cv_func___builtin_cosl_link=no
21555 rm -f conftest*
21560 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_link" 1>&6
21561 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
21562 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21563 cat >> confdefs.h <<EOF
21564 #define ${ac_tr_func} 1
21571 dummyvar=no
21572 if test x$dummyvar = x"yes"; then
21573 cat >> confdefs.h <<\EOF
21574 #define HAVE___BUILTIN_ABS 1
21577 cat >> confdefs.h <<\EOF
21578 #define HAVE___BUILTIN_LABS 1
21581 cat >> confdefs.h <<\EOF
21582 #define HAVE___BUILTIN_COS 1
21585 cat >> confdefs.h <<\EOF
21586 #define HAVE___BUILTIN_COSF 1
21589 cat >> confdefs.h <<\EOF
21590 #define HAVE___BUILTIN_COSL 1
21593 cat >> confdefs.h <<\EOF
21594 #define HAVE___BUILTIN_FABS 1
21597 cat >> confdefs.h <<\EOF
21598 #define HAVE___BUILTIN_FABSF 1
21601 cat >> confdefs.h <<\EOF
21602 #define HAVE___BUILTIN_FABSL 1
21605 cat >> confdefs.h <<\EOF
21606 #define HAVE___BUILTIN_SIN 1
21609 cat >> confdefs.h <<\EOF
21610 #define HAVE___BUILTIN_SINF 1
21613 cat >> confdefs.h <<\EOF
21614 #define HAVE___BUILTIN_SINL 1
21617 cat >> confdefs.h <<\EOF
21618 #define HAVE___BUILTIN_SQRT 1
21621 cat >> confdefs.h <<\EOF
21622 #define HAVE___BUILTIN_SQRTF 1
21625 cat >> confdefs.h <<\EOF
21626 #define HAVE___BUILTIN_SQRTL 1
21632 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21633 echo "configure:21634: checking for main in -lm" >&5
21634 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21636 echo $ac_n "(cached) $ac_c" 1>&6
21637 else
21638 ac_save_LIBS="$LIBS"
21639 LIBS="-lm $LIBS"
21640 cat > conftest.$ac_ext <<EOF
21641 #line 21642 "configure"
21642 #include "confdefs.h"
21644 int main() {
21645 main()
21646 ; return 0; }
21648 if { (eval echo configure:21649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21649 rm -rf conftest*
21650 eval "ac_cv_lib_$ac_lib_var=yes"
21651 else
21652 echo "configure: failed program was:" >&5
21653 cat conftest.$ac_ext >&5
21654 rm -rf conftest*
21655 eval "ac_cv_lib_$ac_lib_var=no"
21657 rm -f conftest*
21658 LIBS="$ac_save_LIBS"
21661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21662 echo "$ac_t""yes" 1>&6
21663 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21665 cat >> confdefs.h <<EOF
21666 #define $ac_tr_lib 1
21669 LIBS="-lm $LIBS"
21671 else
21672 echo "$ac_t""no" 1>&6
21675 for ac_func in nan copysignf
21677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21678 echo "configure:21679: checking for $ac_func" >&5
21679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21680 echo $ac_n "(cached) $ac_c" 1>&6
21681 else
21682 cat > conftest.$ac_ext <<EOF
21683 #line 21684 "configure"
21684 #include "confdefs.h"
21685 /* System header to define __stub macros and hopefully few prototypes,
21686 which can conflict with char $ac_func(); below. */
21687 #include <assert.h>
21688 /* Override any gcc2 internal prototype to avoid an error. */
21689 /* We use char because int might match the return type of a gcc2
21690 builtin and then its argument prototype would still apply. */
21691 char $ac_func();
21693 int main() {
21695 /* The GNU C library defines this for functions which it implements
21696 to always fail with ENOSYS. Some functions are actually named
21697 something starting with __ and the normal name is an alias. */
21698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21699 choke me
21700 #else
21701 $ac_func();
21702 #endif
21704 ; return 0; }
21706 if { (eval echo configure:21707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21707 rm -rf conftest*
21708 eval "ac_cv_func_$ac_func=yes"
21709 else
21710 echo "configure: failed program was:" >&5
21711 cat conftest.$ac_ext >&5
21712 rm -rf conftest*
21713 eval "ac_cv_func_$ac_func=no"
21715 rm -f conftest*
21718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21719 echo "$ac_t""yes" 1>&6
21720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21721 cat >> confdefs.h <<EOF
21722 #define $ac_tr_func 1
21725 else
21726 echo "$ac_t""no" 1>&6
21727 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21729 done
21732 for ac_func in __signbit
21734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21735 echo "configure:21736: checking for $ac_func" >&5
21736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21737 echo $ac_n "(cached) $ac_c" 1>&6
21738 else
21739 cat > conftest.$ac_ext <<EOF
21740 #line 21741 "configure"
21741 #include "confdefs.h"
21742 /* System header to define __stub macros and hopefully few prototypes,
21743 which can conflict with char $ac_func(); below. */
21744 #include <assert.h>
21745 /* Override any gcc2 internal prototype to avoid an error. */
21746 /* We use char because int might match the return type of a gcc2
21747 builtin and then its argument prototype would still apply. */
21748 char $ac_func();
21750 int main() {
21752 /* The GNU C library defines this for functions which it implements
21753 to always fail with ENOSYS. Some functions are actually named
21754 something starting with __ and the normal name is an alias. */
21755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21756 choke me
21757 #else
21758 $ac_func();
21759 #endif
21761 ; return 0; }
21763 if { (eval echo configure:21764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21764 rm -rf conftest*
21765 eval "ac_cv_func_$ac_func=yes"
21766 else
21767 echo "configure: failed program was:" >&5
21768 cat conftest.$ac_ext >&5
21769 rm -rf conftest*
21770 eval "ac_cv_func_$ac_func=no"
21772 rm -f conftest*
21775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21776 echo "$ac_t""yes" 1>&6
21777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21778 cat >> confdefs.h <<EOF
21779 #define $ac_tr_func 1
21782 else
21783 echo "$ac_t""no" 1>&6
21784 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21786 done
21788 for ac_func in __signbitf
21790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21791 echo "configure:21792: checking for $ac_func" >&5
21792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21793 echo $ac_n "(cached) $ac_c" 1>&6
21794 else
21795 cat > conftest.$ac_ext <<EOF
21796 #line 21797 "configure"
21797 #include "confdefs.h"
21798 /* System header to define __stub macros and hopefully few prototypes,
21799 which can conflict with char $ac_func(); below. */
21800 #include <assert.h>
21801 /* Override any gcc2 internal prototype to avoid an error. */
21802 /* We use char because int might match the return type of a gcc2
21803 builtin and then its argument prototype would still apply. */
21804 char $ac_func();
21806 int main() {
21808 /* The GNU C library defines this for functions which it implements
21809 to always fail with ENOSYS. Some functions are actually named
21810 something starting with __ and the normal name is an alias. */
21811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21812 choke me
21813 #else
21814 $ac_func();
21815 #endif
21817 ; return 0; }
21819 if { (eval echo configure:21820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21820 rm -rf conftest*
21821 eval "ac_cv_func_$ac_func=yes"
21822 else
21823 echo "configure: failed program was:" >&5
21824 cat conftest.$ac_ext >&5
21825 rm -rf conftest*
21826 eval "ac_cv_func_$ac_func=no"
21828 rm -f conftest*
21831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21832 echo "$ac_t""yes" 1>&6
21833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21834 cat >> confdefs.h <<EOF
21835 #define $ac_tr_func 1
21838 else
21839 echo "$ac_t""no" 1>&6
21840 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21842 done
21845 if test x$ac_cv_func_copysignl = x"yes"; then
21846 for ac_func in __signbitl
21848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21849 echo "configure:21850: checking for $ac_func" >&5
21850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21851 echo $ac_n "(cached) $ac_c" 1>&6
21852 else
21853 cat > conftest.$ac_ext <<EOF
21854 #line 21855 "configure"
21855 #include "confdefs.h"
21856 /* System header to define __stub macros and hopefully few prototypes,
21857 which can conflict with char $ac_func(); below. */
21858 #include <assert.h>
21859 /* Override any gcc2 internal prototype to avoid an error. */
21860 /* We use char because int might match the return type of a gcc2
21861 builtin and then its argument prototype would still apply. */
21862 char $ac_func();
21864 int main() {
21866 /* The GNU C library defines this for functions which it implements
21867 to always fail with ENOSYS. Some functions are actually named
21868 something starting with __ and the normal name is an alias. */
21869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21870 choke me
21871 #else
21872 $ac_func();
21873 #endif
21875 ; return 0; }
21877 if { (eval echo configure:21878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21878 rm -rf conftest*
21879 eval "ac_cv_func_$ac_func=yes"
21880 else
21881 echo "configure: failed program was:" >&5
21882 cat conftest.$ac_ext >&5
21883 rm -rf conftest*
21884 eval "ac_cv_func_$ac_func=no"
21886 rm -f conftest*
21889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21890 echo "$ac_t""yes" 1>&6
21891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21892 cat >> confdefs.h <<EOF
21893 #define $ac_tr_func 1
21896 else
21897 echo "$ac_t""no" 1>&6
21898 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21900 done
21904 if test -n "$LIBMATHOBJS"; then
21905 need_libmath=yes
21911 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21912 echo "configure:21913: checking for mbstate_t" >&5
21913 cat > conftest.$ac_ext <<EOF
21914 #line 21915 "configure"
21915 #include "confdefs.h"
21916 #include <wchar.h>
21917 int main() {
21918 mbstate_t teststate;
21919 ; return 0; }
21921 if { (eval echo configure:21922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21922 rm -rf conftest*
21923 have_mbstate_t=yes
21924 else
21925 echo "configure: failed program was:" >&5
21926 cat conftest.$ac_ext >&5
21927 rm -rf conftest*
21928 have_mbstate_t=no
21930 rm -f conftest*
21931 echo "$ac_t""$have_mbstate_t" 1>&6
21932 if test x"$have_mbstate_t" = xyes; then
21933 cat >> confdefs.h <<\EOF
21934 #define HAVE_MBSTATE_T 1
21939 for ac_hdr in wchar.h
21941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21943 echo "configure:21944: checking for $ac_hdr" >&5
21944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21945 echo $ac_n "(cached) $ac_c" 1>&6
21946 else
21947 cat > conftest.$ac_ext <<EOF
21948 #line 21949 "configure"
21949 #include "confdefs.h"
21950 #include <$ac_hdr>
21952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21953 { (eval echo configure:21954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21955 if test -z "$ac_err"; then
21956 rm -rf conftest*
21957 eval "ac_cv_header_$ac_safe=yes"
21958 else
21959 echo "$ac_err" >&5
21960 echo "configure: failed program was:" >&5
21961 cat conftest.$ac_ext >&5
21962 rm -rf conftest*
21963 eval "ac_cv_header_$ac_safe=no"
21965 rm -f conftest*
21967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21968 echo "$ac_t""yes" 1>&6
21969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21970 cat >> confdefs.h <<EOF
21971 #define $ac_tr_hdr 1
21973 ac_has_wchar_h=yes
21974 else
21975 echo "$ac_t""no" 1>&6
21976 ac_has_wchar_h=no
21978 done
21980 for ac_hdr in wctype.h
21982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21984 echo "configure:21985: checking for $ac_hdr" >&5
21985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21986 echo $ac_n "(cached) $ac_c" 1>&6
21987 else
21988 cat > conftest.$ac_ext <<EOF
21989 #line 21990 "configure"
21990 #include "confdefs.h"
21991 #include <$ac_hdr>
21993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21994 { (eval echo configure:21995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21996 if test -z "$ac_err"; then
21997 rm -rf conftest*
21998 eval "ac_cv_header_$ac_safe=yes"
21999 else
22000 echo "$ac_err" >&5
22001 echo "configure: failed program was:" >&5
22002 cat conftest.$ac_ext >&5
22003 rm -rf conftest*
22004 eval "ac_cv_header_$ac_safe=no"
22006 rm -f conftest*
22008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22009 echo "$ac_t""yes" 1>&6
22010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22011 cat >> confdefs.h <<EOF
22012 #define $ac_tr_hdr 1
22014 ac_has_wctype_h=yes
22015 else
22016 echo "$ac_t""no" 1>&6
22017 ac_has_wctype_h=no
22019 done
22022 if test x"$ac_has_wchar_h" = xyes &&
22023 test x"$ac_has_wctype_h" = xyes &&
22024 test x"$enable_c_mbchar" != xno; then
22026 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22027 echo "configure:22028: checking for WCHAR_MIN and WCHAR_MAX" >&5
22028 cat > conftest.$ac_ext <<EOF
22029 #line 22030 "configure"
22030 #include "confdefs.h"
22031 #include <wchar.h>
22032 int main() {
22033 int i = WCHAR_MIN; int j = WCHAR_MAX;
22034 ; return 0; }
22036 if { (eval echo configure:22037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22037 rm -rf conftest*
22038 has_wchar_minmax=yes
22039 else
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22042 rm -rf conftest*
22043 has_wchar_minmax=no
22045 rm -f conftest*
22046 echo "$ac_t""$has_wchar_minmax" 1>&6
22048 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22049 echo "configure:22050: checking for WEOF" >&5
22050 cat > conftest.$ac_ext <<EOF
22051 #line 22052 "configure"
22052 #include "confdefs.h"
22054 #include <wchar.h>
22055 #include <stddef.h>
22056 int main() {
22057 wint_t i = WEOF;
22058 ; return 0; }
22060 if { (eval echo configure:22061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22061 rm -rf conftest*
22062 has_weof=yes
22063 else
22064 echo "configure: failed program was:" >&5
22065 cat conftest.$ac_ext >&5
22066 rm -rf conftest*
22067 has_weof=no
22069 rm -f conftest*
22070 echo "$ac_t""$has_weof" 1>&6
22072 ac_wfuncs=yes
22073 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22076 echo "configure:22077: checking for $ac_func" >&5
22077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22079 else
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 /* System header to define __stub macros and hopefully few prototypes,
22084 which can conflict with char $ac_func(); below. */
22085 #include <assert.h>
22086 /* Override any gcc2 internal prototype to avoid an error. */
22087 /* We use char because int might match the return type of a gcc2
22088 builtin and then its argument prototype would still apply. */
22089 char $ac_func();
22091 int main() {
22093 /* The GNU C library defines this for functions which it implements
22094 to always fail with ENOSYS. Some functions are actually named
22095 something starting with __ and the normal name is an alias. */
22096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22097 choke me
22098 #else
22099 $ac_func();
22100 #endif
22102 ; return 0; }
22104 if { (eval echo configure:22105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22105 rm -rf conftest*
22106 eval "ac_cv_func_$ac_func=yes"
22107 else
22108 echo "configure: failed program was:" >&5
22109 cat conftest.$ac_ext >&5
22110 rm -rf conftest*
22111 eval "ac_cv_func_$ac_func=no"
22113 rm -f conftest*
22116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22117 echo "$ac_t""yes" 1>&6
22118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22119 cat >> confdefs.h <<EOF
22120 #define $ac_tr_func 1
22123 else
22124 echo "$ac_t""no" 1>&6
22126 ac_wfuncs=no
22128 done
22131 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22132 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22133 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22134 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22135 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22136 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22139 echo "configure:22140: checking for $ac_func" >&5
22140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22141 echo $ac_n "(cached) $ac_c" 1>&6
22142 else
22143 cat > conftest.$ac_ext <<EOF
22144 #line 22145 "configure"
22145 #include "confdefs.h"
22146 /* System header to define __stub macros and hopefully few prototypes,
22147 which can conflict with char $ac_func(); below. */
22148 #include <assert.h>
22149 /* Override any gcc2 internal prototype to avoid an error. */
22150 /* We use char because int might match the return type of a gcc2
22151 builtin and then its argument prototype would still apply. */
22152 char $ac_func();
22154 int main() {
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22160 choke me
22161 #else
22162 $ac_func();
22163 #endif
22165 ; return 0; }
22167 if { (eval echo configure:22168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22168 rm -rf conftest*
22169 eval "ac_cv_func_$ac_func=yes"
22170 else
22171 echo "configure: failed program was:" >&5
22172 cat conftest.$ac_ext >&5
22173 rm -rf conftest*
22174 eval "ac_cv_func_$ac_func=no"
22176 rm -f conftest*
22179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22180 echo "$ac_t""yes" 1>&6
22181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22182 cat >> confdefs.h <<EOF
22183 #define $ac_tr_func 1
22186 else
22187 echo "$ac_t""no" 1>&6
22189 ac_wfuncs=no
22191 done
22194 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22195 echo "configure:22196: checking for ISO C99 wchar_t support" >&5
22196 if test x"$has_weof" = xyes &&
22197 test x"$has_wchar_minmax" = xyes &&
22198 test x"$ac_wfuncs" = xyes; then
22199 ac_isoC99_wchar_t=yes
22200 else
22201 ac_isoC99_wchar_t=no
22203 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22205 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22206 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22207 echo "configure:22208: checking for iconv.h" >&5
22208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22209 echo $ac_n "(cached) $ac_c" 1>&6
22210 else
22211 cat > conftest.$ac_ext <<EOF
22212 #line 22213 "configure"
22213 #include "confdefs.h"
22214 #include <iconv.h>
22216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22217 { (eval echo configure:22218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22219 if test -z "$ac_err"; then
22220 rm -rf conftest*
22221 eval "ac_cv_header_$ac_safe=yes"
22222 else
22223 echo "$ac_err" >&5
22224 echo "configure: failed program was:" >&5
22225 cat conftest.$ac_ext >&5
22226 rm -rf conftest*
22227 eval "ac_cv_header_$ac_safe=no"
22229 rm -f conftest*
22231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22232 echo "$ac_t""yes" 1>&6
22233 ac_has_iconv_h=yes
22234 else
22235 echo "$ac_t""no" 1>&6
22236 ac_has_iconv_h=no
22239 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22240 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22241 echo "configure:22242: checking for langinfo.h" >&5
22242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22243 echo $ac_n "(cached) $ac_c" 1>&6
22244 else
22245 cat > conftest.$ac_ext <<EOF
22246 #line 22247 "configure"
22247 #include "confdefs.h"
22248 #include <langinfo.h>
22250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22251 { (eval echo configure:22252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22253 if test -z "$ac_err"; then
22254 rm -rf conftest*
22255 eval "ac_cv_header_$ac_safe=yes"
22256 else
22257 echo "$ac_err" >&5
22258 echo "configure: failed program was:" >&5
22259 cat conftest.$ac_ext >&5
22260 rm -rf conftest*
22261 eval "ac_cv_header_$ac_safe=no"
22263 rm -f conftest*
22265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22266 echo "$ac_t""yes" 1>&6
22267 ac_has_langinfo_h=yes
22268 else
22269 echo "$ac_t""no" 1>&6
22270 ac_has_langinfo_h=no
22274 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22275 echo "configure:22276: checking for iconv in -liconv" >&5
22276 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22278 echo $ac_n "(cached) $ac_c" 1>&6
22279 else
22280 ac_save_LIBS="$LIBS"
22281 LIBS="-liconv $LIBS"
22282 cat > conftest.$ac_ext <<EOF
22283 #line 22284 "configure"
22284 #include "confdefs.h"
22285 /* Override any gcc2 internal prototype to avoid an error. */
22286 /* We use char because int might match the return type of a gcc2
22287 builtin and then its argument prototype would still apply. */
22288 char iconv();
22290 int main() {
22291 iconv()
22292 ; return 0; }
22294 if { (eval echo configure:22295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22295 rm -rf conftest*
22296 eval "ac_cv_lib_$ac_lib_var=yes"
22297 else
22298 echo "configure: failed program was:" >&5
22299 cat conftest.$ac_ext >&5
22300 rm -rf conftest*
22301 eval "ac_cv_lib_$ac_lib_var=no"
22303 rm -f conftest*
22304 LIBS="$ac_save_LIBS"
22307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22308 echo "$ac_t""yes" 1>&6
22309 libiconv="-liconv"
22310 else
22311 echo "$ac_t""no" 1>&6
22314 ac_save_LIBS="$LIBS"
22315 LIBS="$LIBS $libiconv"
22317 for ac_func in iconv_open iconv_close iconv nl_langinfo
22319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22320 echo "configure:22321: checking for $ac_func" >&5
22321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22322 echo $ac_n "(cached) $ac_c" 1>&6
22323 else
22324 cat > conftest.$ac_ext <<EOF
22325 #line 22326 "configure"
22326 #include "confdefs.h"
22327 /* System header to define __stub macros and hopefully few prototypes,
22328 which can conflict with char $ac_func(); below. */
22329 #include <assert.h>
22330 /* Override any gcc2 internal prototype to avoid an error. */
22331 /* We use char because int might match the return type of a gcc2
22332 builtin and then its argument prototype would still apply. */
22333 char $ac_func();
22335 int main() {
22337 /* The GNU C library defines this for functions which it implements
22338 to always fail with ENOSYS. Some functions are actually named
22339 something starting with __ and the normal name is an alias. */
22340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22341 choke me
22342 #else
22343 $ac_func();
22344 #endif
22346 ; return 0; }
22348 if { (eval echo configure:22349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22349 rm -rf conftest*
22350 eval "ac_cv_func_$ac_func=yes"
22351 else
22352 echo "configure: failed program was:" >&5
22353 cat conftest.$ac_ext >&5
22354 rm -rf conftest*
22355 eval "ac_cv_func_$ac_func=no"
22357 rm -f conftest*
22360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22361 echo "$ac_t""yes" 1>&6
22362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22363 cat >> confdefs.h <<EOF
22364 #define $ac_tr_func 1
22367 ac_XPG2funcs=yes
22368 else
22369 echo "$ac_t""no" 1>&6
22370 ac_XPG2funcs=no
22372 done
22375 LIBS="$ac_save_LIBS"
22377 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22378 echo "configure:22379: checking for XPG2 wchar_t support" >&5
22379 if test x"$ac_has_iconv_h" = xyes &&
22380 test x"$ac_has_langinfo_h" = xyes &&
22381 test x"$ac_XPG2funcs" = xyes; then
22382 ac_XPG2_wchar_t=yes
22383 else
22384 ac_XPG2_wchar_t=no
22386 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22388 if test x"$ac_isoC99_wchar_t" = xyes &&
22389 test x"$ac_XPG2_wchar_t" = xyes; then
22390 cat >> confdefs.h <<\EOF
22391 #define _GLIBCXX_USE_WCHAR_T 1
22394 enable_wchar_t=yes
22397 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22398 echo "configure:22399: checking for enabled wchar_t specializations" >&5
22399 echo "$ac_t""$enable_wchar_t" 1>&6
22402 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22403 ac_save_CXXFLAGS="$CXXFLAGS"
22404 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22407 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22408 echo "configure:22409: checking for strtold declaration" >&5
22409 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
22410 if eval "test \"`echo '$''{'glibcxx_cv_func_strtold_use'+set}'`\" = set"; then
22411 echo $ac_n "(cached) $ac_c" 1>&6
22412 else
22415 ac_ext=C
22416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22417 ac_cpp='$CXXCPP $CPPFLAGS'
22418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22420 cross_compiling=$ac_cv_prog_cxx_cross
22422 cat > conftest.$ac_ext <<EOF
22423 #line 22424 "configure"
22424 #include "confdefs.h"
22425 #include <stdlib.h>
22426 int main() {
22427 strtold(0, 0);
22428 ; return 0; }
22430 if { (eval echo configure:22431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22431 rm -rf conftest*
22432 glibcxx_cv_func_strtold_use=yes
22433 else
22434 echo "configure: failed program was:" >&5
22435 cat conftest.$ac_ext >&5
22436 rm -rf conftest*
22437 glibcxx_cv_func_strtold_use=no
22439 rm -f conftest*
22440 ac_ext=c
22441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22442 ac_cpp='$CPP $CPPFLAGS'
22443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22445 cross_compiling=$ac_cv_prog_cc_cross
22451 echo "$ac_t""$glibcxx_cv_func_strtold_use" 1>&6
22452 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
22453 for ac_func in strtold
22455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22456 echo "configure:22457: checking for $ac_func" >&5
22457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22458 echo $ac_n "(cached) $ac_c" 1>&6
22459 else
22460 cat > conftest.$ac_ext <<EOF
22461 #line 22462 "configure"
22462 #include "confdefs.h"
22463 /* System header to define __stub macros and hopefully few prototypes,
22464 which can conflict with char $ac_func(); below. */
22465 #include <assert.h>
22466 /* Override any gcc2 internal prototype to avoid an error. */
22467 /* We use char because int might match the return type of a gcc2
22468 builtin and then its argument prototype would still apply. */
22469 char $ac_func();
22471 int main() {
22473 /* The GNU C library defines this for functions which it implements
22474 to always fail with ENOSYS. Some functions are actually named
22475 something starting with __ and the normal name is an alias. */
22476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22477 choke me
22478 #else
22479 $ac_func();
22480 #endif
22482 ; return 0; }
22484 if { (eval echo configure:22485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22485 rm -rf conftest*
22486 eval "ac_cv_func_$ac_func=yes"
22487 else
22488 echo "configure: failed program was:" >&5
22489 cat conftest.$ac_ext >&5
22490 rm -rf conftest*
22491 eval "ac_cv_func_$ac_func=no"
22493 rm -f conftest*
22496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22497 echo "$ac_t""yes" 1>&6
22498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22499 cat >> confdefs.h <<EOF
22500 #define $ac_tr_func 1
22503 else
22504 echo "$ac_t""no" 1>&6
22506 done
22511 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22512 echo "configure:22513: checking for strtof declaration" >&5
22513 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
22514 if eval "test \"`echo '$''{'glibcxx_cv_func_strtof_use'+set}'`\" = set"; then
22515 echo $ac_n "(cached) $ac_c" 1>&6
22516 else
22519 ac_ext=C
22520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22521 ac_cpp='$CXXCPP $CPPFLAGS'
22522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22524 cross_compiling=$ac_cv_prog_cxx_cross
22526 cat > conftest.$ac_ext <<EOF
22527 #line 22528 "configure"
22528 #include "confdefs.h"
22529 #include <stdlib.h>
22530 int main() {
22531 strtof(0, 0);
22532 ; return 0; }
22534 if { (eval echo configure:22535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22535 rm -rf conftest*
22536 glibcxx_cv_func_strtof_use=yes
22537 else
22538 echo "configure: failed program was:" >&5
22539 cat conftest.$ac_ext >&5
22540 rm -rf conftest*
22541 glibcxx_cv_func_strtof_use=no
22543 rm -f conftest*
22544 ac_ext=c
22545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22546 ac_cpp='$CPP $CPPFLAGS'
22547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22549 cross_compiling=$ac_cv_prog_cc_cross
22555 echo "$ac_t""$glibcxx_cv_func_strtof_use" 1>&6
22556 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
22557 for ac_func in strtof
22559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22560 echo "configure:22561: checking for $ac_func" >&5
22561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22562 echo $ac_n "(cached) $ac_c" 1>&6
22563 else
22564 cat > conftest.$ac_ext <<EOF
22565 #line 22566 "configure"
22566 #include "confdefs.h"
22567 /* System header to define __stub macros and hopefully few prototypes,
22568 which can conflict with char $ac_func(); below. */
22569 #include <assert.h>
22570 /* Override any gcc2 internal prototype to avoid an error. */
22571 /* We use char because int might match the return type of a gcc2
22572 builtin and then its argument prototype would still apply. */
22573 char $ac_func();
22575 int main() {
22577 /* The GNU C library defines this for functions which it implements
22578 to always fail with ENOSYS. Some functions are actually named
22579 something starting with __ and the normal name is an alias. */
22580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22581 choke me
22582 #else
22583 $ac_func();
22584 #endif
22586 ; return 0; }
22588 if { (eval echo configure:22589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22589 rm -rf conftest*
22590 eval "ac_cv_func_$ac_func=yes"
22591 else
22592 echo "configure: failed program was:" >&5
22593 cat conftest.$ac_ext >&5
22594 rm -rf conftest*
22595 eval "ac_cv_func_$ac_func=no"
22597 rm -f conftest*
22600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22601 echo "$ac_t""yes" 1>&6
22602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22603 cat >> confdefs.h <<EOF
22604 #define $ac_tr_func 1
22607 else
22608 echo "$ac_t""no" 1>&6
22610 done
22614 for ac_func in drand48
22616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22617 echo "configure:22618: checking for $ac_func" >&5
22618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22619 echo $ac_n "(cached) $ac_c" 1>&6
22620 else
22621 cat > conftest.$ac_ext <<EOF
22622 #line 22623 "configure"
22623 #include "confdefs.h"
22624 /* System header to define __stub macros and hopefully few prototypes,
22625 which can conflict with char $ac_func(); below. */
22626 #include <assert.h>
22627 /* Override any gcc2 internal prototype to avoid an error. */
22628 /* We use char because int might match the return type of a gcc2
22629 builtin and then its argument prototype would still apply. */
22630 char $ac_func();
22632 int main() {
22634 /* The GNU C library defines this for functions which it implements
22635 to always fail with ENOSYS. Some functions are actually named
22636 something starting with __ and the normal name is an alias. */
22637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22638 choke me
22639 #else
22640 $ac_func();
22641 #endif
22643 ; return 0; }
22645 if { (eval echo configure:22646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22646 rm -rf conftest*
22647 eval "ac_cv_func_$ac_func=yes"
22648 else
22649 echo "configure: failed program was:" >&5
22650 cat conftest.$ac_ext >&5
22651 rm -rf conftest*
22652 eval "ac_cv_func_$ac_func=no"
22654 rm -f conftest*
22657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22658 echo "$ac_t""yes" 1>&6
22659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22660 cat >> confdefs.h <<EOF
22661 #define $ac_tr_func 1
22664 else
22665 echo "$ac_t""no" 1>&6
22667 done
22670 CXXFLAGS="$ac_save_CXXFLAGS"
22673 # For showmanyc_helper().
22674 for ac_hdr in sys/ioctl.h sys/filio.h
22676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22678 echo "configure:22679: checking for $ac_hdr" >&5
22679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22680 echo $ac_n "(cached) $ac_c" 1>&6
22681 else
22682 cat > conftest.$ac_ext <<EOF
22683 #line 22684 "configure"
22684 #include "confdefs.h"
22685 #include <$ac_hdr>
22687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22688 { (eval echo configure:22689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22690 if test -z "$ac_err"; then
22691 rm -rf conftest*
22692 eval "ac_cv_header_$ac_safe=yes"
22693 else
22694 echo "$ac_err" >&5
22695 echo "configure: failed program was:" >&5
22696 cat conftest.$ac_ext >&5
22697 rm -rf conftest*
22698 eval "ac_cv_header_$ac_safe=no"
22700 rm -f conftest*
22702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22703 echo "$ac_t""yes" 1>&6
22704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22705 cat >> confdefs.h <<EOF
22706 #define $ac_tr_hdr 1
22709 else
22710 echo "$ac_t""no" 1>&6
22712 done
22715 if eval "test \"`echo '$''{'glibcxx_cv_POLL'+set}'`\" = set"; then
22716 echo $ac_n "(cached) $ac_c" 1>&6
22717 else
22719 cat > conftest.$ac_ext <<EOF
22720 #line 22721 "configure"
22721 #include "confdefs.h"
22722 #include <poll.h>
22723 int main() {
22724 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22725 ; return 0; }
22727 if { (eval echo configure:22728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22728 rm -rf conftest*
22729 glibcxx_cv_POLL=yes
22730 else
22731 echo "configure: failed program was:" >&5
22732 cat conftest.$ac_ext >&5
22733 rm -rf conftest*
22734 glibcxx_cv_POLL=no
22736 rm -f conftest*
22740 if test x$glibcxx_cv_POLL = xyes; then
22741 cat >> confdefs.h <<\EOF
22742 #define HAVE_POLL 1
22748 if eval "test \"`echo '$''{'glibcxx_cv_S_ISREG'+set}'`\" = set"; then
22749 echo $ac_n "(cached) $ac_c" 1>&6
22750 else
22752 cat > conftest.$ac_ext <<EOF
22753 #line 22754 "configure"
22754 #include "confdefs.h"
22755 #include <sys/stat.h>
22756 int main() {
22757 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22758 ; return 0; }
22760 if { (eval echo configure:22761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22761 rm -rf conftest*
22762 glibcxx_cv_S_ISREG=yes
22763 else
22764 echo "configure: failed program was:" >&5
22765 cat conftest.$ac_ext >&5
22766 rm -rf conftest*
22767 glibcxx_cv_S_ISREG=no
22769 rm -f conftest*
22773 if eval "test \"`echo '$''{'glibcxx_cv_S_IFREG'+set}'`\" = set"; then
22774 echo $ac_n "(cached) $ac_c" 1>&6
22775 else
22777 cat > conftest.$ac_ext <<EOF
22778 #line 22779 "configure"
22779 #include "confdefs.h"
22780 #include <sys/stat.h>
22781 int main() {
22782 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22783 ; return 0; }
22785 if { (eval echo configure:22786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22786 rm -rf conftest*
22787 glibcxx_cv_S_IFREG=yes
22788 else
22789 echo "configure: failed program was:" >&5
22790 cat conftest.$ac_ext >&5
22791 rm -rf conftest*
22792 glibcxx_cv_S_IFREG=no
22794 rm -f conftest*
22798 if test x$glibcxx_cv_S_ISREG = xyes; then
22799 cat >> confdefs.h <<\EOF
22800 #define HAVE_S_ISREG 1
22803 elif test x$glibcxx_cv_S_IFREG = xyes; then
22804 cat >> confdefs.h <<\EOF
22805 #define HAVE_S_IFREG 1
22811 # For xsputn_2().
22812 for ac_hdr in sys/uio.h
22814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22816 echo "configure:22817: checking for $ac_hdr" >&5
22817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22818 echo $ac_n "(cached) $ac_c" 1>&6
22819 else
22820 cat > conftest.$ac_ext <<EOF
22821 #line 22822 "configure"
22822 #include "confdefs.h"
22823 #include <$ac_hdr>
22825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22826 { (eval echo configure:22827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22828 if test -z "$ac_err"; then
22829 rm -rf conftest*
22830 eval "ac_cv_header_$ac_safe=yes"
22831 else
22832 echo "$ac_err" >&5
22833 echo "configure: failed program was:" >&5
22834 cat conftest.$ac_ext >&5
22835 rm -rf conftest*
22836 eval "ac_cv_header_$ac_safe=no"
22838 rm -f conftest*
22840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22841 echo "$ac_t""yes" 1>&6
22842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22843 cat >> confdefs.h <<EOF
22844 #define $ac_tr_hdr 1
22847 else
22848 echo "$ac_t""no" 1>&6
22850 done
22853 if eval "test \"`echo '$''{'glibcxx_cv_WRITEV'+set}'`\" = set"; then
22854 echo $ac_n "(cached) $ac_c" 1>&6
22855 else
22857 cat > conftest.$ac_ext <<EOF
22858 #line 22859 "configure"
22859 #include "confdefs.h"
22860 #include <sys/uio.h>
22861 int main() {
22862 struct iovec iov[2]; writev(0, iov, 0);
22863 ; return 0; }
22865 if { (eval echo configure:22866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22866 rm -rf conftest*
22867 glibcxx_cv_WRITEV=yes
22868 else
22869 echo "configure: failed program was:" >&5
22870 cat conftest.$ac_ext >&5
22871 rm -rf conftest*
22872 glibcxx_cv_WRITEV=no
22874 rm -f conftest*
22878 if test x$glibcxx_cv_WRITEV = xyes; then
22879 cat >> confdefs.h <<\EOF
22880 #define HAVE_WRITEV 1
22887 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22888 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22889 echo "configure:22890: checking for locale.h" >&5
22890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22891 echo $ac_n "(cached) $ac_c" 1>&6
22892 else
22893 cat > conftest.$ac_ext <<EOF
22894 #line 22895 "configure"
22895 #include "confdefs.h"
22896 #include <locale.h>
22898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22899 { (eval echo configure:22900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22901 if test -z "$ac_err"; then
22902 rm -rf conftest*
22903 eval "ac_cv_header_$ac_safe=yes"
22904 else
22905 echo "$ac_err" >&5
22906 echo "configure: failed program was:" >&5
22907 cat conftest.$ac_ext >&5
22908 rm -rf conftest*
22909 eval "ac_cv_header_$ac_safe=no"
22911 rm -f conftest*
22913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22914 echo "$ac_t""yes" 1>&6
22916 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22917 echo "configure:22918: checking for LC_MESSAGES" >&5
22918 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22919 echo $ac_n "(cached) $ac_c" 1>&6
22920 else
22921 cat > conftest.$ac_ext <<EOF
22922 #line 22923 "configure"
22923 #include "confdefs.h"
22924 #include <locale.h>
22925 int main() {
22926 return LC_MESSAGES
22927 ; return 0; }
22929 if { (eval echo configure:22930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22930 rm -rf conftest*
22931 ac_cv_val_LC_MESSAGES=yes
22932 else
22933 echo "configure: failed program was:" >&5
22934 cat conftest.$ac_ext >&5
22935 rm -rf conftest*
22936 ac_cv_val_LC_MESSAGES=no
22938 rm -f conftest*
22941 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22942 if test $ac_cv_val_LC_MESSAGES = yes; then
22943 cat >> confdefs.h <<\EOF
22944 #define HAVE_LC_MESSAGES 1
22949 else
22950 echo "$ac_t""no" 1>&6
22955 cat > conftest.$ac_ext <<EOF
22956 #line 22957 "configure"
22957 #include "confdefs.h"
22959 #include <setjmp.h>
22961 int main() {
22962 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22963 ; return 0; }
22965 if { (eval echo configure:22966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22966 rm -rf conftest*
22967 cat >> confdefs.h <<\EOF
22968 #define HAVE_SIGSETJMP 1
22972 else
22973 echo "configure: failed program was:" >&5
22974 cat conftest.$ac_ext >&5
22976 rm -f conftest*
22978 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22982 echo "configure:22983: checking for $ac_hdr" >&5
22983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22984 echo $ac_n "(cached) $ac_c" 1>&6
22985 else
22986 cat > conftest.$ac_ext <<EOF
22987 #line 22988 "configure"
22988 #include "confdefs.h"
22989 #include <$ac_hdr>
22991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22992 { (eval echo configure:22993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22994 if test -z "$ac_err"; then
22995 rm -rf conftest*
22996 eval "ac_cv_header_$ac_safe=yes"
22997 else
22998 echo "$ac_err" >&5
22999 echo "configure: failed program was:" >&5
23000 cat conftest.$ac_ext >&5
23001 rm -rf conftest*
23002 eval "ac_cv_header_$ac_safe=no"
23004 rm -f conftest*
23006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23007 echo "$ac_t""yes" 1>&6
23008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23009 cat >> confdefs.h <<EOF
23010 #define $ac_tr_hdr 1
23013 else
23014 echo "$ac_t""no" 1>&6
23016 done
23018 for ac_func in getpagesize
23020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23021 echo "configure:23022: checking for $ac_func" >&5
23022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23023 echo $ac_n "(cached) $ac_c" 1>&6
23024 else
23025 cat > conftest.$ac_ext <<EOF
23026 #line 23027 "configure"
23027 #include "confdefs.h"
23028 /* System header to define __stub macros and hopefully few prototypes,
23029 which can conflict with char $ac_func(); below. */
23030 #include <assert.h>
23031 /* Override any gcc2 internal prototype to avoid an error. */
23032 /* We use char because int might match the return type of a gcc2
23033 builtin and then its argument prototype would still apply. */
23034 char $ac_func();
23036 int main() {
23038 /* The GNU C library defines this for functions which it implements
23039 to always fail with ENOSYS. Some functions are actually named
23040 something starting with __ and the normal name is an alias. */
23041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23042 choke me
23043 #else
23044 $ac_func();
23045 #endif
23047 ; return 0; }
23049 if { (eval echo configure:23050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23050 rm -rf conftest*
23051 eval "ac_cv_func_$ac_func=yes"
23052 else
23053 echo "configure: failed program was:" >&5
23054 cat conftest.$ac_ext >&5
23055 rm -rf conftest*
23056 eval "ac_cv_func_$ac_func=no"
23058 rm -f conftest*
23061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23062 echo "$ac_t""yes" 1>&6
23063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23064 cat >> confdefs.h <<EOF
23065 #define $ac_tr_func 1
23068 else
23069 echo "$ac_t""no" 1>&6
23071 done
23073 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23074 echo "configure:23075: checking for working mmap" >&5
23075 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23076 echo $ac_n "(cached) $ac_c" 1>&6
23077 else
23078 if test "$cross_compiling" = yes; then
23079 ac_cv_func_mmap_fixed_mapped=no
23080 else
23081 cat > conftest.$ac_ext <<EOF
23082 #line 23083 "configure"
23083 #include "confdefs.h"
23085 /* Thanks to Mike Haertel and Jim Avera for this test.
23086 Here is a matrix of mmap possibilities:
23087 mmap private not fixed
23088 mmap private fixed at somewhere currently unmapped
23089 mmap private fixed at somewhere already mapped
23090 mmap shared not fixed
23091 mmap shared fixed at somewhere currently unmapped
23092 mmap shared fixed at somewhere already mapped
23093 For private mappings, we should verify that changes cannot be read()
23094 back from the file, nor mmap's back from the file at a different
23095 address. (There have been systems where private was not correctly
23096 implemented like the infamous i386 svr4.0, and systems where the
23097 VM page cache was not coherent with the filesystem buffer cache
23098 like early versions of FreeBSD and possibly contemporary NetBSD.)
23099 For shared mappings, we should conversely verify that changes get
23100 propogated back to all the places they're supposed to be.
23102 Grep wants private fixed already mapped.
23103 The main things grep needs to know about mmap are:
23104 * does it exist and is it safe to write into the mmap'd area
23105 * how to use it (BSD variants) */
23106 #include <sys/types.h>
23107 #include <fcntl.h>
23108 #include <sys/mman.h>
23110 #if HAVE_SYS_TYPES_H
23111 # include <sys/types.h>
23112 #endif
23114 #if HAVE_STDLIB_H
23115 # include <stdlib.h>
23116 #endif
23118 #if HAVE_SYS_STAT_H
23119 # include <sys/stat.h>
23120 #endif
23122 #if HAVE_UNISTD_H
23123 # include <unistd.h>
23124 #endif
23126 /* This mess was copied from the GNU getpagesize.h. */
23127 #ifndef HAVE_GETPAGESIZE
23129 /* Assume that all systems that can run configure have sys/param.h. */
23130 # ifndef HAVE_SYS_PARAM_H
23131 # define HAVE_SYS_PARAM_H 1
23132 # endif
23134 # ifdef _SC_PAGESIZE
23135 # define getpagesize() sysconf(_SC_PAGESIZE)
23136 # else /* no _SC_PAGESIZE */
23137 # ifdef HAVE_SYS_PARAM_H
23138 # include <sys/param.h>
23139 # ifdef EXEC_PAGESIZE
23140 # define getpagesize() EXEC_PAGESIZE
23141 # else /* no EXEC_PAGESIZE */
23142 # ifdef NBPG
23143 # define getpagesize() NBPG * CLSIZE
23144 # ifndef CLSIZE
23145 # define CLSIZE 1
23146 # endif /* no CLSIZE */
23147 # else /* no NBPG */
23148 # ifdef NBPC
23149 # define getpagesize() NBPC
23150 # else /* no NBPC */
23151 # ifdef PAGESIZE
23152 # define getpagesize() PAGESIZE
23153 # endif /* PAGESIZE */
23154 # endif /* no NBPC */
23155 # endif /* no NBPG */
23156 # endif /* no EXEC_PAGESIZE */
23157 # else /* no HAVE_SYS_PARAM_H */
23158 # define getpagesize() 8192 /* punt totally */
23159 # endif /* no HAVE_SYS_PARAM_H */
23160 # endif /* no _SC_PAGESIZE */
23162 #endif /* no HAVE_GETPAGESIZE */
23164 #ifdef __cplusplus
23165 extern "C" { void *malloc(unsigned); }
23166 #else
23167 char *malloc();
23168 #endif
23171 main()
23173 char *data, *data2, *data3;
23174 int i, pagesize;
23175 int fd;
23177 pagesize = getpagesize();
23180 * First, make a file with some known garbage in it.
23182 data = malloc(pagesize);
23183 if (!data)
23184 exit(1);
23185 for (i = 0; i < pagesize; ++i)
23186 *(data + i) = rand();
23187 umask(0);
23188 fd = creat("conftestmmap", 0600);
23189 if (fd < 0)
23190 exit(1);
23191 if (write(fd, data, pagesize) != pagesize)
23192 exit(1);
23193 close(fd);
23196 * Next, try to mmap the file at a fixed address which
23197 * already has something else allocated at it. If we can,
23198 * also make sure that we see the same garbage.
23200 fd = open("conftestmmap", O_RDWR);
23201 if (fd < 0)
23202 exit(1);
23203 data2 = malloc(2 * pagesize);
23204 if (!data2)
23205 exit(1);
23206 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23207 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23208 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23209 exit(1);
23210 for (i = 0; i < pagesize; ++i)
23211 if (*(data + i) != *(data2 + i))
23212 exit(1);
23215 * Finally, make sure that changes to the mapped area
23216 * do not percolate back to the file as seen by read().
23217 * (This is a bug on some variants of i386 svr4.0.)
23219 for (i = 0; i < pagesize; ++i)
23220 *(data2 + i) = *(data2 + i) + 1;
23221 data3 = malloc(pagesize);
23222 if (!data3)
23223 exit(1);
23224 if (read(fd, data3, pagesize) != pagesize)
23225 exit(1);
23226 for (i = 0; i < pagesize; ++i)
23227 if (*(data + i) != *(data3 + i))
23228 exit(1);
23229 close(fd);
23230 unlink("conftestmmap");
23231 exit(0);
23235 if { (eval echo configure:23236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23236 then
23237 ac_cv_func_mmap_fixed_mapped=yes
23238 else
23239 echo "configure: failed program was:" >&5
23240 cat conftest.$ac_ext >&5
23241 rm -fr conftest*
23242 ac_cv_func_mmap_fixed_mapped=no
23244 rm -fr conftest*
23249 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23251 cat >> confdefs.h <<\EOF
23252 #define HAVE_MMAP 1
23259 # This depends on GLIBCXX_CHECK_LINKER_FEATURES, but without it assumes no.
23260 # Check whether --enable-symvers or --disable-symvers was given.
23261 if test "${enable_symvers+set}" = set; then
23262 enableval="$enable_symvers"
23263 case "$enableval" in
23264 yes) enable_symvers=yes ;;
23265 no) enable_symvers=no ;;
23266 # other names here, just as sanity checks
23267 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23268 gnu) enable_symvers=$enableval ;;
23269 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23270 esac
23271 else
23272 enable_symvers=yes
23275 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
23276 # don't know enough about $LD to do tricks...
23277 if test x$enable_shared = xno ||
23278 test "x$LD" = x ||
23279 test x$glibcxx_gnu_ld_version = x; then
23280 enable_symvers=no
23283 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23284 if test $enable_symvers != no; then
23285 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23286 echo "configure:23287: checking for shared libgcc" >&5
23287 ac_save_CFLAGS="$CFLAGS"
23288 CFLAGS=' -lgcc_s'
23289 cat > conftest.$ac_ext <<EOF
23290 #line 23291 "configure"
23291 #include "confdefs.h"
23293 int main() {
23294 return 0
23295 ; return 0; }
23297 if { (eval echo configure:23298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23298 rm -rf conftest*
23299 glibcxx_shared_libgcc=yes
23300 else
23301 echo "configure: failed program was:" >&5
23302 cat conftest.$ac_ext >&5
23303 rm -rf conftest*
23304 glibcxx_shared_libgcc=no
23306 rm -f conftest*
23307 CFLAGS="$ac_save_CFLAGS"
23308 echo "$ac_t""$glibcxx_shared_libgcc" 1>&6
23311 # For GNU ld, we need at least this version. The format is described in
23312 # GLIBCXX_CHECK_LINKER_FEATURES above.
23313 glibcxx_min_gnu_ld_version=21400
23315 # Check to see if unspecified "yes" value can win, given results above.
23316 # Change "yes" into either "no" or a style name.
23317 if test $enable_symvers = yes ; then
23318 if test $with_gnu_ld = yes &&
23319 test $glibcxx_shared_libgcc = yes ;
23320 then
23321 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
23322 enable_symvers=gnu
23323 else
23324 # The right tools, the right setup, but too old. Fallbacks?
23325 echo "configure: warning: === Linker version $glibcxx_gnu_ld_version is too old for" 1>&2
23326 echo "configure: warning: === full symbol versioning support in this release of GCC." 1>&2
23327 echo "configure: warning: === You would need to upgrade your binutils to version" 1>&2
23328 echo "configure: warning: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." 1>&2
23329 echo "configure: warning: === Symbol versioning will be disabled." 1>&2
23330 enable_symvers=no
23332 else
23333 # just fail for now
23334 echo "configure: warning: === You have requested some kind of symbol versioning, but" 1>&2
23335 echo "configure: warning: === either you are not using a supported linker, or you are" 1>&2
23336 echo "configure: warning: === not building a shared libgcc_s (which is required)." 1>&2
23337 echo "configure: warning: === Symbol versioning will be disabled." 1>&2
23338 enable_symvers=no
23342 case $enable_symvers in
23344 SYMVER_MAP=config/linker-map.dummy
23346 gnu)
23347 SYMVER_MAP=config/linker-map.gnu
23348 cat >> confdefs.h <<\EOF
23349 #define _GLIBCXX_SYMVER 1
23353 esac
23359 if test $enable_symvers != no; then
23360 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
23361 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
23362 else
23363 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
23364 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
23366 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23367 echo "configure:23368: checking versioning on shared library symbols" >&5
23368 echo "$ac_t""$enable_symvers" 1>&6
23371 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_CROSS_COMPILING.
23374 if test x"$GLIBCXX_IS_CROSS_COMPILING" = xfalse; then
23375 # Do checks for memory limit functions.
23377 setrlimit_have_headers=yes
23378 for ac_hdr in unistd.h sys/time.h sys/resource.h
23380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23382 echo "configure:23383: checking for $ac_hdr" >&5
23383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23384 echo $ac_n "(cached) $ac_c" 1>&6
23385 else
23386 cat > conftest.$ac_ext <<EOF
23387 #line 23388 "configure"
23388 #include "confdefs.h"
23389 #include <$ac_hdr>
23391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23392 { (eval echo configure:23393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23394 if test -z "$ac_err"; then
23395 rm -rf conftest*
23396 eval "ac_cv_header_$ac_safe=yes"
23397 else
23398 echo "$ac_err" >&5
23399 echo "configure: failed program was:" >&5
23400 cat conftest.$ac_ext >&5
23401 rm -rf conftest*
23402 eval "ac_cv_header_$ac_safe=no"
23404 rm -f conftest*
23406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23407 echo "$ac_t""yes" 1>&6
23408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23409 cat >> confdefs.h <<EOF
23410 #define $ac_tr_hdr 1
23413 else
23414 echo "$ac_t""no" 1>&6
23415 setrlimit_have_headers=no
23417 done
23419 # If don't have the headers, then we can't run the tests now, and we
23420 # won't be seeing any of these during testsuite compilation.
23421 if test $setrlimit_have_headers = yes; then
23422 # Can't do these in a loop, else the resulting syntax is wrong.
23424 cat > conftest.$ac_ext <<EOF
23425 #line 23426 "configure"
23426 #include "confdefs.h"
23427 #include <unistd.h>
23428 #include <sys/time.h>
23429 #include <sys/resource.h>
23431 int main() {
23432 int f = RLIMIT_DATA ;
23433 ; return 0; }
23435 if { (eval echo configure:23436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23436 rm -rf conftest*
23437 glibcxx_mresult=1
23438 else
23439 echo "configure: failed program was:" >&5
23440 cat conftest.$ac_ext >&5
23441 rm -rf conftest*
23442 glibcxx_mresult=0
23444 rm -f conftest*
23445 cat >> confdefs.h <<EOF
23446 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
23451 cat > conftest.$ac_ext <<EOF
23452 #line 23453 "configure"
23453 #include "confdefs.h"
23454 #include <unistd.h>
23455 #include <sys/time.h>
23456 #include <sys/resource.h>
23458 int main() {
23459 int f = RLIMIT_RSS ;
23460 ; return 0; }
23462 if { (eval echo configure:23463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23463 rm -rf conftest*
23464 glibcxx_mresult=1
23465 else
23466 echo "configure: failed program was:" >&5
23467 cat conftest.$ac_ext >&5
23468 rm -rf conftest*
23469 glibcxx_mresult=0
23471 rm -f conftest*
23472 cat >> confdefs.h <<EOF
23473 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
23478 cat > conftest.$ac_ext <<EOF
23479 #line 23480 "configure"
23480 #include "confdefs.h"
23481 #include <unistd.h>
23482 #include <sys/time.h>
23483 #include <sys/resource.h>
23485 int main() {
23486 int f = RLIMIT_VMEM ;
23487 ; return 0; }
23489 if { (eval echo configure:23490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23490 rm -rf conftest*
23491 glibcxx_mresult=1
23492 else
23493 echo "configure: failed program was:" >&5
23494 cat conftest.$ac_ext >&5
23495 rm -rf conftest*
23496 glibcxx_mresult=0
23498 rm -f conftest*
23499 cat >> confdefs.h <<EOF
23500 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
23505 cat > conftest.$ac_ext <<EOF
23506 #line 23507 "configure"
23507 #include "confdefs.h"
23508 #include <unistd.h>
23509 #include <sys/time.h>
23510 #include <sys/resource.h>
23512 int main() {
23513 int f = RLIMIT_AS ;
23514 ; return 0; }
23516 if { (eval echo configure:23517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23517 rm -rf conftest*
23518 glibcxx_mresult=1
23519 else
23520 echo "configure: failed program was:" >&5
23521 cat conftest.$ac_ext >&5
23522 rm -rf conftest*
23523 glibcxx_mresult=0
23525 rm -f conftest*
23526 cat >> confdefs.h <<EOF
23527 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
23532 # Check for rlimit, setrlimit.
23533 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23534 echo $ac_n "(cached) $ac_c" 1>&6
23535 else
23537 cat > conftest.$ac_ext <<EOF
23538 #line 23539 "configure"
23539 #include "confdefs.h"
23540 #include <unistd.h>
23541 #include <sys/time.h>
23542 #include <sys/resource.h>
23544 int main() {
23545 struct rlimit r; setrlimit(0, &r);
23546 ; return 0; }
23548 if { (eval echo configure:23549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23549 rm -rf conftest*
23550 ac_setrlimit=yes
23551 else
23552 echo "configure: failed program was:" >&5
23553 cat conftest.$ac_ext >&5
23554 rm -rf conftest*
23555 ac_setrlimit=no
23557 rm -f conftest*
23563 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23564 echo "configure:23565: checking for testsuite memory limit support" >&5
23565 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23566 ac_mem_limits=yes
23567 cat >> confdefs.h <<\EOF
23568 #define _GLIBCXX_MEM_LIMITS 1
23571 else
23572 ac_mem_limits=no
23574 echo "$ac_t""$ac_mem_limits" 1>&6
23577 # Look for setenv, so that extended locale tests can be performed.
23579 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23580 echo "configure:23581: checking for setenv declaration" >&5
23581 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
23582 if eval "test \"`echo '$''{'glibcxx_cv_func_setenv_use'+set}'`\" = set"; then
23583 echo $ac_n "(cached) $ac_c" 1>&6
23584 else
23587 ac_ext=C
23588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23589 ac_cpp='$CXXCPP $CPPFLAGS'
23590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23592 cross_compiling=$ac_cv_prog_cxx_cross
23594 cat > conftest.$ac_ext <<EOF
23595 #line 23596 "configure"
23596 #include "confdefs.h"
23597 #include <stdlib.h>
23598 int main() {
23599 setenv(0, 0, 0);
23600 ; return 0; }
23602 if { (eval echo configure:23603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23603 rm -rf conftest*
23604 glibcxx_cv_func_setenv_use=yes
23605 else
23606 echo "configure: failed program was:" >&5
23607 cat conftest.$ac_ext >&5
23608 rm -rf conftest*
23609 glibcxx_cv_func_setenv_use=no
23611 rm -f conftest*
23612 ac_ext=c
23613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23614 ac_cpp='$CPP $CPPFLAGS'
23615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23617 cross_compiling=$ac_cv_prog_cc_cross
23623 echo "$ac_t""$glibcxx_cv_func_setenv_use" 1>&6
23624 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
23625 for ac_func in setenv
23627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23628 echo "configure:23629: checking for $ac_func" >&5
23629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23630 echo $ac_n "(cached) $ac_c" 1>&6
23631 else
23632 cat > conftest.$ac_ext <<EOF
23633 #line 23634 "configure"
23634 #include "confdefs.h"
23635 /* System header to define __stub macros and hopefully few prototypes,
23636 which can conflict with char $ac_func(); below. */
23637 #include <assert.h>
23638 /* Override any gcc2 internal prototype to avoid an error. */
23639 /* We use char because int might match the return type of a gcc2
23640 builtin and then its argument prototype would still apply. */
23641 char $ac_func();
23643 int main() {
23645 /* The GNU C library defines this for functions which it implements
23646 to always fail with ENOSYS. Some functions are actually named
23647 something starting with __ and the normal name is an alias. */
23648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23649 choke me
23650 #else
23651 $ac_func();
23652 #endif
23654 ; return 0; }
23656 if { (eval echo configure:23657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23657 rm -rf conftest*
23658 eval "ac_cv_func_$ac_func=yes"
23659 else
23660 echo "configure: failed program was:" >&5
23661 cat conftest.$ac_ext >&5
23662 rm -rf conftest*
23663 eval "ac_cv_func_$ac_func=no"
23665 rm -f conftest*
23668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23669 echo "$ac_t""yes" 1>&6
23670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23671 cat >> confdefs.h <<EOF
23672 #define $ac_tr_func 1
23675 else
23676 echo "$ac_t""no" 1>&6
23678 done
23684 # Export file names for ABI checking.
23685 baseline_dir="${glibcxx_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23688 # Determine if checking the ABI is desirable.
23689 if test x$enable_symvers = xno; then
23690 enable_abi_check=no
23691 else
23692 case "$host" in
23693 *-*-cygwin*)
23694 enable_abi_check=no ;;
23696 enable_abi_check=yes ;;
23697 esac
23702 if test "$enable_wchar_t" = yes; then
23703 GLIBCXX_TEST_WCHAR_T_TRUE=
23704 GLIBCXX_TEST_WCHAR_T_FALSE='#'
23705 else
23706 GLIBCXX_TEST_WCHAR_T_TRUE='#'
23707 GLIBCXX_TEST_WCHAR_T_FALSE=
23711 if test "$enable_abi_check" = yes; then
23712 GLIBCXX_TEST_ABI_TRUE=
23713 GLIBCXX_TEST_ABI_FALSE='#'
23714 else
23715 GLIBCXX_TEST_ABI_TRUE='#'
23716 GLIBCXX_TEST_ABI_FALSE=
23720 # Propagate the target-specific source directories through the build chain.
23721 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23722 # uses it, and it only gets used in this file.)
23723 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23724 OS_INC_SRCDIR=config/${os_include_dir}
23725 FPOS_INC_SRCDIR=config/${fpos_include_dir}
23731 # Determine cross-compile flags and all AM_CONDITIONALs.
23735 if test "$CANADIAN" = yes; then
23736 CANADIAN_TRUE=
23737 CANADIAN_FALSE='#'
23738 else
23739 CANADIAN_TRUE='#'
23740 CANADIAN_FALSE=
23744 if test "$need_libmath" = yes; then
23745 GLIBCXX_BUILD_LIBMATH_TRUE=
23746 GLIBCXX_BUILD_LIBMATH_FALSE='#'
23747 else
23748 GLIBCXX_BUILD_LIBMATH_TRUE='#'
23749 GLIBCXX_BUILD_LIBMATH_FALSE=
23752 cat > confcache <<\EOF
23753 # This file is a shell script that caches the results of configure
23754 # tests run on this system so they can be shared between configure
23755 # scripts and configure runs. It is not useful on other systems.
23756 # If it contains results you don't want to keep, you may remove or edit it.
23758 # By default, configure uses ./config.cache as the cache file,
23759 # creating it if it does not exist already. You can give configure
23760 # the --cache-file=FILE option to use a different cache file; that is
23761 # what configure does when it calls configure scripts in
23762 # subdirectories, so they share the cache.
23763 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23764 # config.status only pays attention to the cache file if you give it the
23765 # --recheck option to rerun configure.
23768 # The following way of writing the cache mishandles newlines in values,
23769 # but we know of no workaround that is simple, portable, and efficient.
23770 # So, don't put newlines in cache variables' values.
23771 # Ultrix sh set writes to stderr and can't be redirected directly,
23772 # and sets the high bit in the cache file unless we assign to the vars.
23773 (set) 2>&1 |
23774 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23775 *ac_space=\ *)
23776 # `set' does not quote correctly, so add quotes (double-quote substitution
23777 # turns \\\\ into \\, and sed turns \\ into \).
23778 sed -n \
23779 -e "s/'/'\\\\''/g" \
23780 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23783 # `set' quotes correctly as required by POSIX, so do not add quotes.
23784 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23786 esac >> confcache
23787 if cmp -s $cache_file confcache; then
23789 else
23790 if test -w $cache_file; then
23791 echo "updating cache $cache_file"
23792 cat confcache > $cache_file
23793 else
23794 echo "not updating unwritable cache $cache_file"
23797 rm -f confcache
23800 if test "${multilib}" = "yes"; then
23801 multilib_arg="--enable-multilib"
23802 else
23803 multilib_arg=
23806 # Export all the install information
23808 # Assumes glibcxx_builddir, glibcxx_srcdir are alreay set up and
23809 # exported correctly in GLIBCXX_CONFIGURE.
23810 glibcxx_toolexecdir=no
23811 glibcxx_toolexeclibdir=no
23812 glibcxx_prefixdir=${prefix}
23814 # Process the option --with-gxx-include-dir=<path to include-files directory>
23815 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23816 echo "configure:23817: checking for --with-gxx-include-dir" >&5
23817 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23818 if test "${with_gxx_include_dir+set}" = set; then
23819 withval="$with_gxx_include_dir"
23820 case "${withval}" in
23821 yes)
23822 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23823 gxx_include_dir=no
23826 gxx_include_dir=no
23829 gxx_include_dir=${withval}
23831 esac
23832 else
23833 gxx_include_dir=no
23836 echo "$ac_t""$gxx_include_dir" 1>&6
23838 # Process the option "--enable-version-specific-runtime-libs"
23839 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23840 echo "configure:23841: checking for --enable-version-specific-runtime-libs" >&5
23841 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23842 if test "${enable_version_specific_runtime_libs+set}" = set; then
23843 enableval="$enable_version_specific_runtime_libs"
23844 case "$enableval" in
23845 yes) version_specific_libs=yes ;;
23846 no) version_specific_libs=no ;;
23847 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23848 esac
23849 else
23850 version_specific_libs=no
23852 # Option set, now we can test it.
23853 echo "$ac_t""$version_specific_libs" 1>&6
23855 # Default case for install directory for include files.
23856 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23857 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23860 # Version-specific runtime libs processing.
23861 if test $version_specific_libs = yes; then
23862 # Need the gcc compiler version to know where to install libraries
23863 # and header files if --enable-version-specific-runtime-libs option
23864 # is selected.
23865 if test x"$gxx_include_dir" = x"no"; then
23866 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23868 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23869 glibcxx_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23872 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
23873 # Install a library built with a cross compiler in tooldir, not libdir.
23874 if test x"$glibcxx_toolexecdir" = x"no"; then
23875 if test -n "$with_cross_host" &&
23876 test x"$with_cross_host" != x"no"; then
23877 glibcxx_toolexecdir='$(exec_prefix)/$(target_alias)'
23878 glibcxx_toolexeclibdir='$(toolexecdir)/lib'
23879 else
23880 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23881 glibcxx_toolexeclibdir='$(libdir)'
23883 multi_os_directory=`$CC -print-multi-os-directory`
23884 case $multi_os_directory in
23885 .) ;; # Avoid trailing /.
23886 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
23887 esac
23890 echo $ac_n "checking for install location""... $ac_c" 1>&6
23891 echo "configure:23892: checking for install location" >&5
23892 echo "$ac_t""$gxx_include_dir" 1>&6
23900 # Export all the include and flag information to Makefiles.
23902 # Root level of the build directory include sources.
23903 GLIBCXX_INCLUDES="-I${glibcxx_builddir}/include/${target_alias} -I${glibcxx_builddir}/include"
23905 # Passed down for canadian crosses.
23906 if test x"$CANADIAN" = xyes; then
23907 TOPLEVEL_INCLUDES='-I$(includedir)'
23910 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23912 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23914 # Now, export this to all the little Makefiles....
23921 # Optimization flags that are probably a good idea for thrill-seekers. Just
23922 # uncomment the lines below and make, everything else is ready to go...
23923 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23924 OPTIMIZE_CXXFLAGS=
23927 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23931 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23932 grep "enable shared" > /dev/null; then
23933 LIBSUPCXX_PICFLAGS=-prefer-pic
23934 else
23935 LIBSUPCXX_PICFLAGS=
23939 # Generate the various Makefiles, include files, and scripts.
23940 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am,
23941 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
23942 # will end up installed in the correct place. To work around this not being
23943 # passed # down from config-ml.in -> top_srcdir/Makefile.am ->
23944 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23945 trap '' 1 2 15
23946 cat > confcache <<\EOF
23947 # This file is a shell script that caches the results of configure
23948 # tests run on this system so they can be shared between configure
23949 # scripts and configure runs. It is not useful on other systems.
23950 # If it contains results you don't want to keep, you may remove or edit it.
23952 # By default, configure uses ./config.cache as the cache file,
23953 # creating it if it does not exist already. You can give configure
23954 # the --cache-file=FILE option to use a different cache file; that is
23955 # what configure does when it calls configure scripts in
23956 # subdirectories, so they share the cache.
23957 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23958 # config.status only pays attention to the cache file if you give it the
23959 # --recheck option to rerun configure.
23962 # The following way of writing the cache mishandles newlines in values,
23963 # but we know of no workaround that is simple, portable, and efficient.
23964 # So, don't put newlines in cache variables' values.
23965 # Ultrix sh set writes to stderr and can't be redirected directly,
23966 # and sets the high bit in the cache file unless we assign to the vars.
23967 (set) 2>&1 |
23968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23969 *ac_space=\ *)
23970 # `set' does not quote correctly, so add quotes (double-quote substitution
23971 # turns \\\\ into \\, and sed turns \\ into \).
23972 sed -n \
23973 -e "s/'/'\\\\''/g" \
23974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23977 # `set' quotes correctly as required by POSIX, so do not add quotes.
23978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23980 esac >> confcache
23981 if cmp -s $cache_file confcache; then
23983 else
23984 if test -w $cache_file; then
23985 echo "updating cache $cache_file"
23986 cat confcache > $cache_file
23987 else
23988 echo "not updating unwritable cache $cache_file"
23991 rm -f confcache
23993 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23995 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23996 # Let make expand exec_prefix.
23997 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23999 # Any assignment to VPATH causes Sun make to only execute
24000 # the first set of double-colon rules, so remove it if not needed.
24001 # If there is a colon in the path, we need to keep it.
24002 if test "x$srcdir" = x.; then
24003 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24006 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24008 DEFS=-DHAVE_CONFIG_H
24010 # Without the "./", some shells look in PATH for config.status.
24011 : ${CONFIG_STATUS=./config.status}
24013 echo creating $CONFIG_STATUS
24014 rm -f $CONFIG_STATUS
24015 cat > $CONFIG_STATUS <<EOF
24016 #! /bin/sh
24017 # Generated automatically by configure.
24018 # Run this file to recreate the current configuration.
24019 # This directory was configured as follows,
24020 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24022 # $0 $ac_configure_args
24024 # Compiler output produced by configure, useful for debugging
24025 # configure, is in ./config.log if it exists.
24027 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24028 for ac_option
24030 case "\$ac_option" in
24031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24032 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24033 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24034 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24035 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24036 exit 0 ;;
24037 -help | --help | --hel | --he | --h)
24038 echo "\$ac_cs_usage"; exit 0 ;;
24039 *) echo "\$ac_cs_usage"; exit 1 ;;
24040 esac
24041 done
24043 ac_given_srcdir=$srcdir
24044 ac_given_INSTALL="$INSTALL"
24046 trap 'rm -fr `echo "Makefile \
24047 include/Makefile src/Makefile \
24048 libmath/Makefile libsupc++/Makefile \
24049 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24051 cat >> $CONFIG_STATUS <<EOF
24053 # Protect against being on the right side of a sed subst in config.status.
24054 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24055 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24056 $ac_vpsub
24057 $extrasub
24058 s%@SHELL@%$SHELL%g
24059 s%@CFLAGS@%$CFLAGS%g
24060 s%@CPPFLAGS@%$CPPFLAGS%g
24061 s%@CXXFLAGS@%$CXXFLAGS%g
24062 s%@FFLAGS@%$FFLAGS%g
24063 s%@DEFS@%$DEFS%g
24064 s%@LDFLAGS@%$LDFLAGS%g
24065 s%@LIBS@%$LIBS%g
24066 s%@exec_prefix@%$exec_prefix%g
24067 s%@prefix@%$prefix%g
24068 s%@program_transform_name@%$program_transform_name%g
24069 s%@bindir@%$bindir%g
24070 s%@sbindir@%$sbindir%g
24071 s%@libexecdir@%$libexecdir%g
24072 s%@datadir@%$datadir%g
24073 s%@sysconfdir@%$sysconfdir%g
24074 s%@sharedstatedir@%$sharedstatedir%g
24075 s%@localstatedir@%$localstatedir%g
24076 s%@libdir@%$libdir%g
24077 s%@includedir@%$includedir%g
24078 s%@oldincludedir@%$oldincludedir%g
24079 s%@infodir@%$infodir%g
24080 s%@mandir@%$mandir%g
24081 s%@PACKAGE@%$PACKAGE%g
24082 s%@libtool_VERSION@%$libtool_VERSION%g
24083 s%@toplevel_srcdir@%$toplevel_srcdir%g
24084 s%@host@%$host%g
24085 s%@host_alias@%$host_alias%g
24086 s%@host_cpu@%$host_cpu%g
24087 s%@host_vendor@%$host_vendor%g
24088 s%@host_os@%$host_os%g
24089 s%@target@%$target%g
24090 s%@target_alias@%$target_alias%g
24091 s%@target_cpu@%$target_cpu%g
24092 s%@target_vendor@%$target_vendor%g
24093 s%@target_os@%$target_os%g
24094 s%@build@%$build%g
24095 s%@build_alias@%$build_alias%g
24096 s%@build_cpu@%$build_cpu%g
24097 s%@build_vendor@%$build_vendor%g
24098 s%@build_os@%$build_os%g
24099 s%@glibcxx_builddir@%$glibcxx_builddir%g
24100 s%@glibcxx_srcdir@%$glibcxx_srcdir%g
24101 s%@AWK@%$AWK%g
24102 s%@LN_S@%$LN_S%g
24103 s%@glibcxx_basedir@%$glibcxx_basedir%g
24104 s%@CC@%$CC%g
24105 s%@glibcxx_CXX@%$glibcxx_CXX%g
24106 s%@AS@%$AS%g
24107 s%@AR@%$AR%g
24108 s%@RANLIB@%$RANLIB%g
24109 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24110 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24111 s%@INSTALL_DATA@%$INSTALL_DATA%g
24112 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24113 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24114 s%@MAINT@%$MAINT%g
24115 s%@EXEEXT@%$EXEEXT%g
24116 s%@VERSION@%$VERSION%g
24117 s%@ACLOCAL@%$ACLOCAL%g
24118 s%@AUTOCONF@%$AUTOCONF%g
24119 s%@AUTOMAKE@%$AUTOMAKE%g
24120 s%@AUTOHEADER@%$AUTOHEADER%g
24121 s%@MAKEINFO@%$MAKEINFO%g
24122 s%@SET_MAKE@%$SET_MAKE%g
24123 s%@OBJEXT@%$OBJEXT%g
24124 s%@STRIP@%$STRIP%g
24125 s%@LIBTOOL@%$LIBTOOL%g
24126 s%@CXXCPP@%$CXXCPP%g
24127 s%@enable_shared@%$enable_shared%g
24128 s%@enable_static@%$enable_static%g
24129 s%@ifGNUmake@%$ifGNUmake%g
24130 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24131 s%@GLIBCXX_BUILD_PCH_TRUE@%$GLIBCXX_BUILD_PCH_TRUE%g
24132 s%@GLIBCXX_BUILD_PCH_FALSE@%$GLIBCXX_BUILD_PCH_FALSE%g
24133 s%@glibcxx_PCHFLAGS@%$glibcxx_PCHFLAGS%g
24134 s%@CSTDIO_H@%$CSTDIO_H%g
24135 s%@FPOS_H@%$FPOS_H%g
24136 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24137 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24138 s%@CPP@%$CPP%g
24139 s%@check_msgfmt@%$check_msgfmt%g
24140 s%@glibcxx_MOFILES@%$glibcxx_MOFILES%g
24141 s%@glibcxx_POFILES@%$glibcxx_POFILES%g
24142 s%@glibcxx_localedir@%$glibcxx_localedir%g
24143 s%@USE_NLS@%$USE_NLS%g
24144 s%@CLOCALE_H@%$CLOCALE_H%g
24145 s%@CCODECVT_H@%$CCODECVT_H%g
24146 s%@CMESSAGES_H@%$CMESSAGES_H%g
24147 s%@CCODECVT_CC@%$CCODECVT_CC%g
24148 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24149 s%@CCTYPE_CC@%$CCTYPE_CC%g
24150 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24151 s%@CMONEY_CC@%$CMONEY_CC%g
24152 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24153 s%@CTIME_H@%$CTIME_H%g
24154 s%@CTIME_CC@%$CTIME_CC%g
24155 s%@CLOCALE_CC@%$CLOCALE_CC%g
24156 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24157 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24158 s%@GLIBCXX_C_HEADERS_C_TRUE@%$GLIBCXX_C_HEADERS_C_TRUE%g
24159 s%@GLIBCXX_C_HEADERS_C_FALSE@%$GLIBCXX_C_HEADERS_C_FALSE%g
24160 s%@GLIBCXX_C_HEADERS_C_STD_TRUE@%$GLIBCXX_C_HEADERS_C_STD_TRUE%g
24161 s%@GLIBCXX_C_HEADERS_C_STD_FALSE@%$GLIBCXX_C_HEADERS_C_STD_FALSE%g
24162 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE%g
24163 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE%g
24164 s%@glibcxx_thread_h@%$glibcxx_thread_h%g
24165 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24166 s%@GLIBCXX_BUILD_DEBUG_TRUE@%$GLIBCXX_BUILD_DEBUG_TRUE%g
24167 s%@GLIBCXX_BUILD_DEBUG_FALSE@%$GLIBCXX_BUILD_DEBUG_FALSE%g
24168 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24169 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24170 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24171 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24172 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24173 s%@WERROR@%$WERROR%g
24174 s%@SYMVER_MAP@%$SYMVER_MAP%g
24175 s%@port_specific_symbol_files@%$port_specific_symbol_files%g
24176 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE%g
24177 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE%g
24178 s%@baseline_dir@%$baseline_dir%g
24179 s%@GLIBCXX_TEST_WCHAR_T_TRUE@%$GLIBCXX_TEST_WCHAR_T_TRUE%g
24180 s%@GLIBCXX_TEST_WCHAR_T_FALSE@%$GLIBCXX_TEST_WCHAR_T_FALSE%g
24181 s%@GLIBCXX_TEST_ABI_TRUE@%$GLIBCXX_TEST_ABI_TRUE%g
24182 s%@GLIBCXX_TEST_ABI_FALSE@%$GLIBCXX_TEST_ABI_FALSE%g
24183 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24184 s%@FPOS_INC_SRCDIR@%$FPOS_INC_SRCDIR%g
24185 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24186 s%@GLIBCXX_IS_CROSS_COMPILING@%$GLIBCXX_IS_CROSS_COMPILING%g
24187 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24188 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24189 s%@GLIBCXX_BUILD_LIBMATH_TRUE@%$GLIBCXX_BUILD_LIBMATH_TRUE%g
24190 s%@GLIBCXX_BUILD_LIBMATH_FALSE@%$GLIBCXX_BUILD_LIBMATH_FALSE%g
24191 s%@glibcxx_prefixdir@%$glibcxx_prefixdir%g
24192 s%@gxx_include_dir@%$gxx_include_dir%g
24193 s%@glibcxx_toolexecdir@%$glibcxx_toolexecdir%g
24194 s%@glibcxx_toolexeclibdir@%$glibcxx_toolexeclibdir%g
24195 s%@GLIBCXX_INCLUDES@%$GLIBCXX_INCLUDES%g
24196 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24197 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24198 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24199 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24200 s%@WARN_FLAGS@%$WARN_FLAGS%g
24201 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24203 CEOF
24206 cat >> $CONFIG_STATUS <<\EOF
24208 # Split the substitutions into bite-sized pieces for seds with
24209 # small command number limits, like on Digital OSF/1 and HP-UX.
24210 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24211 ac_file=1 # Number of current file.
24212 ac_beg=1 # First line for current file.
24213 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24214 ac_more_lines=:
24215 ac_sed_cmds=""
24216 while $ac_more_lines; do
24217 if test $ac_beg -gt 1; then
24218 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24219 else
24220 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24222 if test ! -s conftest.s$ac_file; then
24223 ac_more_lines=false
24224 rm -f conftest.s$ac_file
24225 else
24226 if test -z "$ac_sed_cmds"; then
24227 ac_sed_cmds="sed -f conftest.s$ac_file"
24228 else
24229 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24231 ac_file=`expr $ac_file + 1`
24232 ac_beg=$ac_end
24233 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24235 done
24236 if test -z "$ac_sed_cmds"; then
24237 ac_sed_cmds=cat
24241 cat >> $CONFIG_STATUS <<EOF
24243 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24244 include/Makefile src/Makefile \
24245 libmath/Makefile libsupc++/Makefile \
24246 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24248 cat >> $CONFIG_STATUS <<\EOF
24249 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24251 case "$ac_file" in
24252 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24253 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24254 *) ac_file_in="${ac_file}.in" ;;
24255 esac
24257 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24259 # Remove last slash and all that follows it. Not all systems have dirname.
24260 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24261 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24262 # The file is in a subdirectory.
24263 test ! -d "$ac_dir" && mkdir "$ac_dir"
24264 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24265 # A "../" for each directory in $ac_dir_suffix.
24266 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24267 else
24268 ac_dir_suffix= ac_dots=
24271 case "$ac_given_srcdir" in
24272 .) srcdir=.
24273 if test -z "$ac_dots"; then top_srcdir=.
24274 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24275 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24276 *) # Relative path.
24277 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24278 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24279 esac
24281 case "$ac_given_INSTALL" in
24282 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24283 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24284 esac
24286 echo creating "$ac_file"
24287 rm -f "$ac_file"
24288 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24289 case "$ac_file" in
24290 *Makefile*) ac_comsub="1i\\
24291 # $configure_input" ;;
24292 *) ac_comsub= ;;
24293 esac
24295 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24296 sed -e "$ac_comsub
24297 s%@configure_input@%$configure_input%g
24298 s%@srcdir@%$srcdir%g
24299 s%@top_srcdir@%$top_srcdir%g
24300 s%@INSTALL@%$INSTALL%g
24301 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24302 fi; done
24303 rm -f conftest.s*
24305 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24306 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24308 # ac_d sets the value in "#define NAME VALUE" lines.
24309 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24310 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24311 ac_dC='\3'
24312 ac_dD='%g'
24313 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24314 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24315 ac_uB='\([ ]\)%\1#\2define\3'
24316 ac_uC=' '
24317 ac_uD='\4%g'
24318 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24319 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24320 ac_eB='$%\1#\2define\3'
24321 ac_eC=' '
24322 ac_eD='%g'
24324 if test "${CONFIG_HEADERS+set}" != set; then
24326 cat >> $CONFIG_STATUS <<EOF
24327 CONFIG_HEADERS="config.h"
24329 cat >> $CONFIG_STATUS <<\EOF
24331 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24333 case "$ac_file" in
24334 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24335 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24336 *) ac_file_in="${ac_file}.in" ;;
24337 esac
24339 echo creating $ac_file
24341 rm -f conftest.frag conftest.in conftest.out
24342 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24343 cat $ac_file_inputs > conftest.in
24347 # Transform confdefs.h into a sed script conftest.vals that substitutes
24348 # the proper values into config.h.in to produce config.h. And first:
24349 # Protect against being on the right side of a sed subst in config.status.
24350 # Protect against being in an unquoted here document in config.status.
24351 rm -f conftest.vals
24352 cat > conftest.hdr <<\EOF
24353 s/[\\&%]/\\&/g
24354 s%[\\$`]%\\&%g
24355 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24356 s%ac_d%ac_u%gp
24357 s%ac_u%ac_e%gp
24359 sed -n -f conftest.hdr confdefs.h > conftest.vals
24360 rm -f conftest.hdr
24362 # This sed command replaces #undef with comments. This is necessary, for
24363 # example, in the case of _POSIX_SOURCE, which is predefined and required
24364 # on some systems where configure will not decide to define it.
24365 cat >> conftest.vals <<\EOF
24366 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24369 # Break up conftest.vals because some shells have a limit on
24370 # the size of here documents, and old seds have small limits too.
24372 rm -f conftest.tail
24373 while :
24375 ac_lines=`grep -c . conftest.vals`
24376 # grep -c gives empty output for an empty file on some AIX systems.
24377 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24378 # Write a limited-size here document to conftest.frag.
24379 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24380 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24381 echo 'CEOF
24382 sed -f conftest.frag conftest.in > conftest.out
24383 rm -f conftest.in
24384 mv conftest.out conftest.in
24385 ' >> $CONFIG_STATUS
24386 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24387 rm -f conftest.vals
24388 mv conftest.tail conftest.vals
24389 done
24390 rm -f conftest.vals
24392 cat >> $CONFIG_STATUS <<\EOF
24393 rm -f conftest.frag conftest.h
24394 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24395 cat conftest.in >> conftest.h
24396 rm -f conftest.in
24397 if cmp -s $ac_file conftest.h 2>/dev/null; then
24398 echo "$ac_file is unchanged"
24399 rm -f conftest.h
24400 else
24401 # Remove last slash and all that follows it. Not all systems have dirname.
24402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24404 # The file is in a subdirectory.
24405 test ! -d "$ac_dir" && mkdir "$ac_dir"
24407 rm -f $ac_file
24408 mv conftest.h $ac_file
24410 fi; done
24413 cat >> $CONFIG_STATUS <<EOF
24415 srcdir=${srcdir}
24416 host=${host}
24417 target=${target}
24418 with_target_subdir=${with_target_subdir}
24419 with_build_subdir=${with_build_subdir}
24420 with_multisubdir=${with_multisubdir}
24421 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24422 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24423 glibcxx_basedir=${glibcxx_basedir}
24424 CC="${CC}"
24425 CXX="${CXX}"
24426 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24429 cat >> $CONFIG_STATUS <<\EOF
24430 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24431 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24432 if test -n "$CONFIG_FILES"; then
24433 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24434 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24435 # Ony modify Makefiles that are just being created.
24436 case " $CONFIG_FILES" in
24437 *" Makefile"*)
24438 ac_file=Makefile . ${glibcxx_basedir}/../config-ml.in
24440 esac
24441 case $CONFIG_FILES in
24442 *src/Makefile*)
24443 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24445 esac
24446 case $CONFIG_FILES in
24447 *libsupc++/Makefile*)
24448 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24450 esac
24451 case $CONFIG_FILES in
24452 *testsuite/Makefile*)
24453 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24455 esac
24458 chmod +x scripts/check_survey
24459 chmod +x scripts/testsuite_flags
24460 exit 0
24462 chmod +x $CONFIG_STATUS
24463 rm -fr confdefs* $ac_clean_files
24464 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24468 # Sanity checking & User-visible messages.
24469 # Checks down here, otherwise they get scrolled off before
24470 # the user will notice.
24472 # Trying to get more people to read documentation. Possibly remove
24473 # check and warn all the time. There is no "informational" AC_MSG_
24474 # macro, so these are going to be printed even when --quiet/--silent
24475 # is given.
24476 if test ! -f stamp-sanity-warned; then
24477 touch stamp-sanity-warned
24478 echo ""
24479 echo "Please make certain that you read the installation information here:"
24480 echo " faster => ${srcdir}/docs/html/install.html"
24481 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24482 echo ""
24483 echo "and the configuration information here:"
24484 echo " faster => ${srcdir}/docs/html/configopts.html"
24485 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24486 echo ""
24487 echo "before proceeding with ${_cv_gnu_make_command}."
24488 echo ""