* config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
[official-gcc.git] / libstdc++-v3 / configure
blobc4a6a8822a9acd54fc5a5119d69ed8791a7d8c4a
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 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
591 PACKAGE=libstdc++
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
598 # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600 enableval="$enable_multilib"
601 case "${enableval}" in
602 yes) multilib=yes ;;
603 no) multilib=no ;;
604 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605 esac
606 else
607 multilib=yes
610 # When building with srcdir == objdir, links to the source files will
611 # be created in directories within the target_subdir. We have to
612 # adjust toplevel_srcdir accordingly, so that configure finds
613 # install-sh and other auxiliary files that live in the top-level
614 # source directory.
615 if test "${srcdir}" = "."; then
616 if test -z "${with_target_subdir}"; then
617 toprel=".."
618 else
619 if test "${with_target_subdir}" != "."; then
620 toprel="${with_multisrctop}../.."
621 else
622 toprel="${with_multisrctop}.."
625 else
626 toprel=".."
628 ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630 if test -f $ac_dir/install-sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install-sh -c"
633 break
634 elif test -f $ac_dir/install.sh; then
635 ac_aux_dir=$ac_dir
636 ac_install_sh="$ac_aux_dir/install.sh -c"
637 break
639 done
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647 toplevel_srcdir=\${top_srcdir}/$toprel
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
653 # You will slowly go insane if you do not grok the following fact: when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/. `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf. Therefore, 'target' and
657 # 'host' will always be the same. This makes sense both for native and
658 # cross compilers, just think about it for a little while. :-)
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure. In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 # as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699 case $nonopt in
700 NONE)
701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 fi ;;
704 *) host_alias=$nonopt ;;
705 esac ;;
706 esac
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720 case $nonopt in
721 NONE) target_alias=$host_alias ;;
722 *) target_alias=$nonopt ;;
723 esac ;;
724 esac
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738 case $nonopt in
739 NONE) build_alias=$host_alias ;;
740 *) build_alias=$nonopt ;;
741 esac ;;
742 esac
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
750 test "$host_alias" != "$target_alias" &&
751 test "$program_prefix$program_suffix$program_transform_name" = \
752 NONENONEs,x,x, &&
753 program_prefix=${target_alias}-
755 target_alias=${target_alias-$target}
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 int main() {
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
792 rm -f conftest*
793 rm -f conftest*
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
821 rm -f conftest*
822 rm -f conftest*
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in gawk mawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftestfile`
1521 if test "$*" != "X $srcdir/configure conftestfile" \
1522 && test "$*" != "X conftestfile $srcdir/configure"; then
1524 # If neither matched, then we have a broken ls. This can happen
1525 # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 # broken ls alias from the environment. This has actually
1527 # happened. Such a system could not be considered "sane".
1528 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1532 test "$2" = conftestfile
1534 then
1535 # Ok.
1537 else
1538 { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544 program_transform_name=
1545 else
1546 # Double any \ or $. echo might interpret backslashes.
1547 cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 rm -f conftestsed
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftestmake <<\EOF
1569 all:
1570 @echo 'ac_maketemp="${MAKE}"'
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577 eval ac_cv_prog_make_${ac_make}_set=no
1579 rm -f conftestmake
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 SET_MAKE=
1584 else
1585 echo "$ac_t""no" 1>&6
1586 SET_MAKE="MAKE=${MAKE-make}"
1590 PACKAGE=$PACKAGE
1592 VERSION=$gcc_version
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf. Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614 ACLOCAL=aclocal-${am__api_version}
1615 echo "$ac_t""found" 1>&6
1616 else
1617 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618 echo "$ac_t""missing" 1>&6
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627 AUTOCONF=autoconf
1628 echo "$ac_t""found" 1>&6
1629 else
1630 AUTOCONF="$missing_dir/missing autoconf"
1631 echo "$ac_t""missing" 1>&6
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640 AUTOMAKE=automake-${am__api_version}
1641 echo "$ac_t""found" 1>&6
1642 else
1643 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644 echo "$ac_t""missing" 1>&6
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOHEADER=autoheader
1654 echo "$ac_t""found" 1>&6
1655 else
1656 AUTOHEADER="$missing_dir/missing autoheader"
1657 echo "$ac_t""missing" 1>&6
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf. Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666 MAKEINFO=makeinfo
1667 echo "$ac_t""found" 1>&6
1668 else
1669 MAKEINFO="$missing_dir/missing makeinfo"
1670 echo "$ac_t""missing" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 case $host_cpu in
1968 hppa*)
1969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1973 ia64*)
1974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1978 esac
1981 irix5* | irix6*)
1982 case $host_os in
1983 irix5*)
1984 # this will be overridden with pass_all, but let us keep it just in case
1985 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1988 case $LD in
1989 *-32|*"-32 ") libmagic=32-bit;;
1990 *-n32|*"-n32 ") libmagic=N32;;
1991 *-64|*"-64 ") libmagic=64-bit;;
1992 *) libmagic=never-match;;
1993 esac
1994 # this will be overridden with pass_all, but let us keep it just in case
1995 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1997 esac
1998 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999 lt_cv_deplibs_check_method=pass_all
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004 case $host_cpu in
2005 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006 lt_cv_deplibs_check_method=pass_all ;;
2008 # glibc up to 2.1.1 does not perform some relocations on ARM
2009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010 esac
2011 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2014 netbsd*)
2015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017 else
2018 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2022 newsos6)
2023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024 lt_cv_file_magic_cmd=/usr/bin/file
2025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2028 osf3* | osf4* | osf5*)
2029 # this will be overridden with pass_all, but let us keep it just in case
2030 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031 lt_cv_file_magic_test_file=/shlib/libc.so
2032 lt_cv_deplibs_check_method=pass_all
2035 sco3.2v5*)
2036 lt_cv_deplibs_check_method=pass_all
2039 solaris*)
2040 lt_cv_deplibs_check_method=pass_all
2041 lt_cv_file_magic_test_file=/lib/libc.so
2044 sysv5uw[78]* | sysv4*uw2*)
2045 lt_cv_deplibs_check_method=pass_all
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049 case $host_vendor in
2050 ncr)
2051 lt_cv_deplibs_check_method=pass_all
2053 motorola)
2054 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]'
2055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2057 esac
2059 esac
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 for ac_file in conftest.*; do
2076 case $ac_file in
2077 *.c) ;;
2078 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079 esac
2080 done
2081 else
2082 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2084 rm -f conftest*
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 case $MAGIC_CMD in
2104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2106 ?:/*)
2107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2110 ac_save_MAGIC_CMD="$MAGIC_CMD"
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="/usr/bin:$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/${ac_tool_prefix}file; then
2116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117 if test -n "$file_magic_test_file"; then
2118 case $deplibs_check_method in
2119 "file_magic "*)
2120 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123 egrep "$file_magic_regex" > /dev/null; then
2125 else
2126 cat <<EOF 1>&2
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such. This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem. Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2138 fi ;;
2139 esac
2141 break
2143 done
2144 IFS="$ac_save_ifs"
2145 MAGIC_CMD="$ac_save_MAGIC_CMD"
2147 esac
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152 echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154 echo "$ac_t""no" 1>&6
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158 if test -n "$ac_tool_prefix"; then
2159 echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 case $MAGIC_CMD in
2166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2168 ?:/*)
2169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2172 ac_save_MAGIC_CMD="$MAGIC_CMD"
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="/usr/bin:$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/file; then
2178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179 if test -n "$file_magic_test_file"; then
2180 case $deplibs_check_method in
2181 "file_magic "*)
2182 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185 egrep "$file_magic_regex" > /dev/null; then
2187 else
2188 cat <<EOF 1>&2
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such. This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem. Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2200 fi ;;
2201 esac
2203 break
2205 done
2206 IFS="$ac_save_ifs"
2207 MAGIC_CMD="$ac_save_MAGIC_CMD"
2209 esac
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214 echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2219 else
2220 MAGIC_CMD=:
2226 esac
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 if test -n "$RANLIB"; then
2236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2237 else
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2239 ac_dummy="$PATH"
2240 for ac_dir in $ac_dummy; do
2241 test -z "$ac_dir" && ac_dir=.
2242 if test -f $ac_dir/$ac_word; then
2243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2244 break
2246 done
2247 IFS="$ac_save_ifs"
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252 echo "$ac_t""$RANLIB" 1>&6
2253 else
2254 echo "$ac_t""no" 1>&6
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 if test -n "$RANLIB"; then
2268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 else
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2271 ac_dummy="$PATH"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_RANLIB="ranlib"
2276 break
2278 done
2279 IFS="$ac_save_ifs"
2280 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285 echo "$ac_t""$RANLIB" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2290 else
2291 RANLIB=":"
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 ac_dummy="$PATH"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/$ac_word; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 break
2313 done
2314 IFS="$ac_save_ifs"
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319 echo "$ac_t""$STRIP" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 if test -n "$STRIP"; then
2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_STRIP="strip"
2343 break
2345 done
2346 IFS="$ac_save_ifs"
2347 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352 echo "$ac_t""$STRIP" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2357 else
2358 STRIP=":"
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374 enableval="$enable_libtool_lock"
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383 withval="$with_pic"
2384 pic_mode="$withval"
2385 else
2386 pic_mode=default
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396 # Find out which ABI we are using.
2397 echo '#line 2398 "configure"' > conftest.$ac_ext
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399 if test "$lt_cv_prog_gnu_ld" = yes; then
2400 case `/usr/bin/file conftest.$ac_objext` in
2401 *32-bit*)
2402 LD="${LD-ld} -melf32bsmip"
2404 *N32*)
2405 LD="${LD-ld} -melf32bmipn32"
2407 *64-bit*)
2408 LD="${LD-ld} -melf64bmip"
2410 esac
2411 else
2412 case `/usr/bin/file conftest.$ac_objext` in
2413 *32-bit*)
2414 LD="${LD-ld} -32"
2416 *N32*)
2417 LD="${LD-ld} -n32"
2419 *64-bit*)
2420 LD="${LD-ld} -64"
2422 esac
2425 rm -rf conftest*
2428 ia64-*-hpux*)
2429 # Find out which ABI we are using.
2430 echo 'int i;' > conftest.$ac_ext
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 case "`/usr/bin/file conftest.o`" in
2433 *ELF-32*)
2434 HPUX_IA64_MODE="32"
2436 *ELF-64*)
2437 HPUX_IA64_MODE="64"
2439 esac
2441 rm -rf conftest*
2444 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2445 # Find out which ABI we are using.
2446 echo 'int i;' > conftest.$ac_ext
2447 if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 case "`/usr/bin/file conftest.o`" in
2449 *32-bit*)
2450 case $host in
2451 x86_64-*linux*)
2452 LD="${LD-ld} -m elf_i386"
2454 ppc64-*linux*)
2455 LD="${LD-ld} -m elf32ppclinux"
2457 s390x-*linux*)
2458 LD="${LD-ld} -m elf_s390"
2460 sparc64-*linux*)
2461 LD="${LD-ld} -m elf32_sparc"
2463 esac
2465 *64-bit*)
2466 case $host in
2467 x86_64-*linux*)
2468 LD="${LD-ld} -m elf_x86_64"
2470 ppc*-*linux*|powerpc*-*linux*)
2471 LD="${LD-ld} -m elf64ppc"
2473 s390*-*linux*)
2474 LD="${LD-ld} -m elf64_s390"
2476 sparc*-*linux*)
2477 LD="${LD-ld} -m elf64_sparc"
2479 esac
2481 esac
2483 rm -rf conftest*
2486 *-*-sco3.2v5*)
2487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2488 SAVE_CFLAGS="$CFLAGS"
2489 CFLAGS="$CFLAGS -belf"
2490 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether the C compiler needs -belf" >&5
2492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2496 ac_ext=c
2497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cc_cross
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2507 int main() {
2509 ; return 0; }
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512 rm -rf conftest*
2513 lt_cv_cc_needs_belf=yes
2514 else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 lt_cv_cc_needs_belf=no
2520 rm -f conftest*
2521 ac_ext=c
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2530 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2533 CFLAGS="$SAVE_CFLAGS"
2538 esac
2540 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2541 echo "configure:2542: checking how to run the C++ preprocessor" >&5
2542 if test -z "$CXXCPP"; then
2543 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 ac_ext=C
2547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CXXCPP $CPPFLAGS'
2549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cxx_cross
2552 CXXCPP="${CXX-g++} -E"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <stdlib.h>
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 CXXCPP=/lib/cpp
2570 rm -f conftest*
2571 ac_cv_prog_CXXCPP="$CXXCPP"
2572 ac_ext=c
2573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2577 cross_compiling=$ac_cv_prog_cc_cross
2580 CXXCPP="$ac_cv_prog_CXXCPP"
2581 echo "$ac_t""$CXXCPP" 1>&6
2584 # Save cache, so that ltconfig can load it
2585 cat > confcache <<\EOF
2586 # This file is a shell script that caches the results of configure
2587 # tests run on this system so they can be shared between configure
2588 # scripts and configure runs. It is not useful on other systems.
2589 # If it contains results you don't want to keep, you may remove or edit it.
2591 # By default, configure uses ./config.cache as the cache file,
2592 # creating it if it does not exist already. You can give configure
2593 # the --cache-file=FILE option to use a different cache file; that is
2594 # what configure does when it calls configure scripts in
2595 # subdirectories, so they share the cache.
2596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2597 # config.status only pays attention to the cache file if you give it the
2598 # --recheck option to rerun configure.
2601 # The following way of writing the cache mishandles newlines in values,
2602 # but we know of no workaround that is simple, portable, and efficient.
2603 # So, don't put newlines in cache variables' values.
2604 # Ultrix sh set writes to stderr and can't be redirected directly,
2605 # and sets the high bit in the cache file unless we assign to the vars.
2606 (set) 2>&1 |
2607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2608 *ac_space=\ *)
2609 # `set' does not quote correctly, so add quotes (double-quote substitution
2610 # turns \\\\ into \\, and sed turns \\ into \).
2611 sed -n \
2612 -e "s/'/'\\\\''/g" \
2613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2616 # `set' quotes correctly as required by POSIX, so do not add quotes.
2617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2619 esac >> confcache
2620 if cmp -s $cache_file confcache; then
2622 else
2623 if test -w $cache_file; then
2624 echo "updating cache $cache_file"
2625 cat confcache > $cache_file
2626 else
2627 echo "not updating unwritable cache $cache_file"
2630 rm -f confcache
2633 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2634 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2635 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2636 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2637 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2638 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2639 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2641 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2644 # Reload cache, that may have been modified by ltconfig
2645 if test -r "$cache_file"; then
2646 echo "loading cache $cache_file"
2647 . $cache_file
2648 else
2649 echo "creating cache $cache_file"
2650 > $cache_file
2654 # This can be used to rebuild libtool when needed
2655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2657 # Always use our own libtool.
2658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2666 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2667 lt_save_CC="$CC"
2668 lt_save_CFLAGS="$CFLAGS"
2669 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2670 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2671 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2672 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2673 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2674 deplibs_check_method="$deplibs_check_method" \
2675 file_magic_cmd="$file_magic_cmd" \
2676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2677 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2678 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2679 CC="$lt_save_CC"
2680 CFLAGS="$lt_save_CFLAGS"
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2694 # Check for c++ or library specific bits that don't require linking.
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 _cv_gnu_make_command='' ;
2701 for a in "${MAKE-make}" make gmake gnumake ; do
2702 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703 then
2704 _cv_gnu_make_command=$a ;
2705 break;
2707 done ;
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712 if test "x$_cv_gnu_make_command" != "x" ; then
2713 ifGNUmake='' ;
2714 else
2715 ifGNUmake='#' ;
2719 #GLIBCPP_CHECK_COMPILER_VERSION
2721 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2722 ac_save_CXXFLAGS="$CXXFLAGS"
2723 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2725 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2726 echo "configure:2727: checking for compiler that seems to compile .gch files" >&5
2727 if test x${glibcpp_pch_comp+set} != xset; then
2728 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2733 ac_ext=C
2734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2738 cross_compiling=$ac_cv_prog_cxx_cross
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <math.h>
2745 int main() {
2746 (0);
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 rm -rf conftest*
2751 glibcpp_pch_comp=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 glibcpp_pch_comp=no
2758 rm -f conftest*
2759 ac_ext=c
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2770 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2772 CXXFLAGS="$ac_save_CXXFLAGS"
2775 if test "$glibcpp_pch_comp" = yes; then
2776 GLIBCPP_BUILD_PCH_TRUE=
2777 GLIBCPP_BUILD_PCH_FALSE='#'
2778 else
2779 GLIBCPP_BUILD_PCH_TRUE='#'
2780 GLIBCPP_BUILD_PCH_FALSE=
2784 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2785 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2786 echo "configure:2787: checking how to run the C preprocessor" >&5
2787 # On Suns, sometimes $CPP names a directory.
2788 if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2791 if test -z "$CPP"; then
2792 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 # This must be in double quotes, not single quotes, because CPP may get
2796 # substituted into the Makefile and "${CC-cc}" will confuse make.
2797 CPP="${CC-cc} -E"
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp.
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 else
2812 echo "$ac_err" >&5
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 CPP="${CC-cc} -E -traditional-cpp"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <assert.h>
2821 Syntax Error
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 CPP="${CC-cc} -nologo -E"
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <assert.h>
2838 Syntax Error
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 else
2846 echo "$ac_err" >&5
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 CPP=/lib/cpp
2852 rm -f conftest*
2854 rm -f conftest*
2856 rm -f conftest*
2857 ac_cv_prog_CPP="$CPP"
2859 CPP="$ac_cv_prog_CPP"
2860 else
2861 ac_cv_prog_CPP="$CPP"
2863 echo "$ac_t""$CPP" 1>&6
2866 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2867 echo "configure:2868: checking for cstdio to use" >&5
2868 # Check whether --enable-cstdio or --disable-cstdio was given.
2869 if test "${enable_cstdio+set}" = set; then
2870 enableval="$enable_cstdio"
2871 if test x$enable_cstdio = xno; then
2872 enable_cstdio=stdio
2874 else
2875 enable_cstdio=stdio
2879 enable_cstdio_flag=$enable_cstdio
2881 case x${enable_cstdio_flag} in
2882 xlibio)
2883 CSTDIO_H=config/io/c_io_libio.h
2884 BASIC_FILE_H=config/io/basic_file_libio.h
2885 BASIC_FILE_CC=config/io/basic_file_libio.cc
2886 echo "$ac_t""libio" 1>&6
2888 # see if we are on a system with libio native (ie, linux)
2889 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for libio.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <libio.h>
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904 rm -rf conftest*
2905 eval "ac_cv_header_$ac_safe=yes"
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=no"
2913 rm -f conftest*
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 has_libio=yes
2918 else
2919 echo "$ac_t""no" 1>&6
2920 has_libio=no
2924 # Need to check and see what version of glibc is being used. If
2925 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2926 # compile most of libio for linux systems.
2927 if test x$has_libio = x"yes"; then
2928 case "$target" in
2929 *-*-linux*)
2930 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2931 echo "configure:2932: checking for glibc version >= 2.2" >&5
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2936 #include <features.h>
2937 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2939 #endif
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "ok" >/dev/null 2>&1; then
2944 rm -rf conftest*
2945 glibc_satisfactory=yes
2946 else
2947 rm -rf conftest*
2948 glibc_satisfactory=no
2950 rm -f conftest*
2952 echo "$ac_t""$glibc_satisfactory" 1>&6
2954 esac
2956 # XXX at the moment, admit defeat and force the recompilation
2957 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2958 glibc_satisfactory=no
2960 if test x$glibc_satisfactory = x"yes"; then
2961 need_libio=no
2962 need_wlibio=no
2963 else
2964 need_libio=yes
2965 # bkoz XXX need to add checks to enable this
2966 # pme XXX here's a first pass at such a check
2967 if test x$enable_c_mbchar != xno; then
2968 need_wlibio=yes
2969 else
2970 need_wlibio=no
2974 else
2975 # Using libio, but <libio.h> doesn't exist on the target system. . .
2976 need_libio=yes
2977 # bkoz XXX need to add checks to enable this
2978 # pme XXX here's a first pass at such a check
2979 if test x$enable_c_mbchar != xno; then
2980 need_wlibio=yes
2981 else
2982 need_wlibio=no
2986 xstdio | x | xno | xnone | xyes)
2987 # default
2988 CSTDIO_H=config/io/c_io_stdio.h
2989 BASIC_FILE_H=config/io/basic_file_stdio.h
2990 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2991 echo "$ac_t""stdio" 1>&6
2993 # We're not using stdio.
2994 need_libio=no
2995 need_wlibio=no
2998 echo "$enable_cstdio is an unknown io package" 1>&2
2999 exit 1
3001 esac
3006 # 2000-08-04 bkoz hack
3007 CCODECVT_C=config/io/c_io_libio_codecvt.c
3009 # 2000-08-04 bkoz hack
3013 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3014 GLIBCPP_BUILD_LIBIO_TRUE=
3015 GLIBCPP_BUILD_LIBIO_FALSE='#'
3016 else
3017 GLIBCPP_BUILD_LIBIO_TRUE='#'
3018 GLIBCPP_BUILD_LIBIO_FALSE=
3022 if test "$need_libio" = yes; then
3023 GLIBCPP_NEED_LIBIO_TRUE=
3024 GLIBCPP_NEED_LIBIO_FALSE='#'
3025 else
3026 GLIBCPP_NEED_LIBIO_TRUE='#'
3027 GLIBCPP_NEED_LIBIO_FALSE=
3031 if test "$need_wlibio" = yes; then
3032 GLIBCPP_NEED_WLIBIO_TRUE=
3033 GLIBCPP_NEED_WLIBIO_FALSE='#'
3034 else
3035 GLIBCPP_NEED_WLIBIO_TRUE='#'
3036 GLIBCPP_NEED_WLIBIO_FALSE=
3038 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3039 libio_la=../libio/libio.la
3040 else
3041 libio_la=
3046 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for clocale to use" >&5
3048 # Check whether --enable-clocale or --disable-clocale was given.
3049 if test "${enable_clocale+set}" = set; then
3050 enableval="$enable_clocale"
3051 if test x$enable_clocale = xno; then
3052 enable_clocale=no
3054 else
3055 enable_clocale=no
3059 enable_clocale_flag=$enable_clocale
3061 if test x$enable_clocale_flag = xno; then
3062 case x${target_os} in
3063 xlinux* | xgnu*)
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3068 #include <features.h>
3069 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3070 _GLIBCPP_ok
3071 #endif
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3076 rm -rf conftest*
3077 enable_clocale_flag=gnu
3078 else
3079 rm -rf conftest*
3080 enable_clocale_flag=generic
3082 rm -f conftest*
3085 # Test for bugs early in glibc-2.2.x series
3086 if test x$enable_clocale_flag = xgnu; then
3087 if test "$cross_compiling" = yes; then
3088 enable_clocale_flag=generic
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3094 #define _GNU_SOURCE 1
3095 #include <locale.h>
3096 #include <string.h>
3097 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3098 extern __typeof(newlocale) __newlocale;
3099 extern __typeof(duplocale) __duplocale;
3100 extern __typeof(strcoll_l) __strcoll_l;
3101 #endif
3102 int main()
3104 const char __one[] = "Äuglein Augmen";
3105 const char __two[] = "Äuglein";
3106 int i;
3107 int j;
3108 __locale_t loc;
3109 __locale_t loc_dup;
3110 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3111 loc_dup = __duplocale(loc);
3112 i = __strcoll_l(__one, __two, loc);
3113 j = __strcoll_l(__one, __two, loc_dup);
3114 return 0;
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3119 then
3120 enable_clocale_flag=gnu
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -fr conftest*
3125 enable_clocale_flag=generic
3127 rm -fr conftest*
3132 # ... at some point put __strxfrm_l tests in as well.
3135 enable_clocale_flag=generic
3137 esac
3140 # Check whether --enable-nls or --disable-nls was given.
3141 if test "${enable_nls+set}" = set; then
3142 enableval="$enable_nls"
3144 else
3145 enable_nls=yes
3148 USE_NLS=no
3150 case x${enable_clocale_flag} in
3151 xgeneric)
3152 echo "$ac_t""generic" 1>&6
3154 CLOCALE_H=config/locale/generic/c_locale.h
3155 CLOCALE_CC=config/locale/generic/c_locale.cc
3156 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/generic/collate_members.cc
3159 CCTYPE_CC=config/locale/generic/ctype_members.cc
3160 CMESSAGES_H=config/locale/generic/messages_members.h
3161 CMESSAGES_CC=config/locale/generic/messages_members.cc
3162 CMONEY_CC=config/locale/generic/monetary_members.cc
3163 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3164 CTIME_H=config/locale/generic/time_members.h
3165 CTIME_CC=config/locale/generic/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3168 xgnu)
3169 echo "$ac_t""gnu" 1>&6
3171 # Declare intention to use gettext, and add support for specific
3172 # languages.
3173 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3174 ALL_LINGUAS="de fr"
3176 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3177 # Extract the first word of "msgfmt", so it can be a program name with args.
3178 set dummy msgfmt; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184 if test -n "$check_msgfmt"; then
3185 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3186 else
3187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 if test -f $ac_dir/$ac_word; then
3192 ac_cv_prog_check_msgfmt="yes"
3193 break
3195 done
3196 IFS="$ac_save_ifs"
3197 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3200 check_msgfmt="$ac_cv_prog_check_msgfmt"
3201 if test -n "$check_msgfmt"; then
3202 echo "$ac_t""$check_msgfmt" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3207 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3208 USE_NLS=yes
3210 # Export the build objects.
3211 for ling in $ALL_LINGUAS; do \
3212 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3213 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3214 done
3218 CLOCALE_H=config/locale/gnu/c_locale.h
3219 CLOCALE_CC=config/locale/gnu/c_locale.cc
3220 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3221 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3222 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3223 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3224 CMESSAGES_H=config/locale/gnu/messages_members.h
3225 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3226 CMONEY_CC=config/locale/gnu/monetary_members.cc
3227 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3228 CTIME_H=config/locale/gnu/time_members.h
3229 CTIME_CC=config/locale/gnu/time_members.cc
3230 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3232 xieee_1003.1-2001)
3233 echo "$ac_t""generic" 1>&6
3235 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3236 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3237 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3238 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3239 CCOLLATE_CC=config/locale/generic/collate_members.cc
3240 CCTYPE_CC=config/locale/generic/ctype_members.cc
3241 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3242 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3243 CMONEY_CC=config/locale/generic/monetary_members.cc
3244 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3245 CTIME_H=config/locale/generic/time_members.h
3246 CTIME_CC=config/locale/generic/time_members.cc
3247 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3250 echo "$enable_clocale is an unknown locale package" 1>&2
3251 exit 1
3253 esac
3255 # This is where the testsuite looks for locale catalogs, using the
3256 # -DLOCALEDIR define during testsuite compilation.
3257 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3275 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3276 echo "configure:3277: checking for c header strategy to use" >&5
3277 # Check whether --enable-cheaders or --disable-cheaders was given.
3278 if test "${enable_cheaders+set}" = set; then
3279 enableval="$enable_cheaders"
3281 case "$enableval" in
3283 enable_cheaders=c
3285 c_std)
3286 enable_cheaders=c_std
3288 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3290 esac
3291 else
3292 enable_cheaders=c_std
3295 echo "$ac_t""$enable_cheaders" 1>&6
3297 case "$enable_cheaders" in
3298 c_std)
3299 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3302 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3304 esac
3309 if test "$enable_cheaders" = c; then
3310 GLIBCPP_C_HEADERS_C_TRUE=
3311 GLIBCPP_C_HEADERS_C_FALSE='#'
3312 else
3313 GLIBCPP_C_HEADERS_C_TRUE='#'
3314 GLIBCPP_C_HEADERS_C_FALSE=
3318 if test "$enable_cheaders" = c_std; then
3319 GLIBCPP_C_HEADERS_C_STD_TRUE=
3320 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3321 else
3322 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3323 GLIBCPP_C_HEADERS_C_STD_FALSE=
3327 if test "$c_compatibility" = yes; then
3328 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3329 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3330 else
3331 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3332 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3335 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3336 if test "${enable_c_mbchar+set}" = set; then
3337 enableval="$enable_c_mbchar"
3338 case "$enableval" in
3339 yes) enable_c_mbchar=yes ;;
3340 no) enable_c_mbchar=no ;;
3341 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3342 esac
3343 else
3344 enable_c_mbchar=yes
3348 # Check whether --enable-c99 or --disable-c99 was given.
3349 if test "${enable_c99+set}" = set; then
3350 enableval="$enable_c99"
3351 case "$enableval" in
3352 yes) enable_c99=yes ;;
3353 no) enable_c99=no ;;
3354 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3355 esac
3356 else
3357 enable_c99=yes
3361 ac_ext=C
3362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3363 ac_cpp='$CXXCPP $CPPFLAGS'
3364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3366 cross_compiling=$ac_cv_prog_cxx_cross
3369 # Check for the existence of <math.h> functions used if C99 is enabled.
3370 ac_c99_math=yes;
3371 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3372 echo "configure:3373: checking for ISO C99 support in <math.h>" >&5
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <math.h>
3377 int main() {
3378 fpclassify(0.0);
3379 ; return 0; }
3381 if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383 else
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 rm -rf conftest*
3387 ac_c99_math=no
3389 rm -f conftest*
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #include <math.h>
3394 int main() {
3395 isfinite(0.0);
3396 ; return 0; }
3398 if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3400 else
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3403 rm -rf conftest*
3404 ac_c99_math=no
3406 rm -f conftest*
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <math.h>
3411 int main() {
3412 isinf(0.0);
3413 ; return 0; }
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3417 else
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 rm -rf conftest*
3421 ac_c99_math=no
3423 rm -f conftest*
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <math.h>
3428 int main() {
3429 isnan(0.0);
3430 ; return 0; }
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 ac_c99_math=no
3440 rm -f conftest*
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <math.h>
3445 int main() {
3446 isnormal(0.0);
3447 ; return 0; }
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3451 else
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 rm -rf conftest*
3455 ac_c99_math=no
3457 rm -f conftest*
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 #include <math.h>
3462 int main() {
3463 signbit(0.0);
3464 ; return 0; }
3466 if { (eval echo configure:3467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3468 else
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3471 rm -rf conftest*
3472 ac_c99_math=no
3474 rm -f conftest*
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include <math.h>
3479 int main() {
3480 isgreater(0.0,0.0);
3481 ; return 0; }
3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 else
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 rm -rf conftest*
3489 ac_c99_math=no
3491 rm -f conftest*
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <math.h>
3496 int main() {
3497 isgreaterequal(0.0,0.0);
3498 ; return 0; }
3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -rf conftest*
3506 ac_c99_math=no
3508 rm -f conftest*
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 #include <math.h>
3513 int main() {
3514 isless(0.0,0.0);
3515 ; return 0; }
3517 if { (eval echo configure:3518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3519 else
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 rm -rf conftest*
3523 ac_c99_math=no
3525 rm -f conftest*
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 #include <math.h>
3530 int main() {
3531 islessequal(0.0,0.0);
3532 ; return 0; }
3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536 else
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 rm -rf conftest*
3540 ac_c99_math=no
3542 rm -f conftest*
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <math.h>
3547 int main() {
3548 islessgreater(0.0,0.0);
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 else
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 rm -rf conftest*
3557 ac_c99_math=no
3559 rm -f conftest*
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <math.h>
3564 int main() {
3565 isunordered(0.0,0.0);
3566 ; return 0; }
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 ac_c99_math=no
3576 rm -f conftest*
3577 echo "$ac_t""$ac_c99_math" 1>&6
3579 # Check for the existence in <stdio.h> of vscanf, et. al.
3580 ac_c99_stdio=yes;
3581 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3582 echo "configure:3583: checking for ISO C99 support in <stdio.h>" >&5
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <stdio.h>
3587 int main() {
3588 snprintf("12", 0, "%i");
3589 ; return 0; }
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 ac_c99_stdio=no
3599 rm -f conftest*
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <stdio.h>
3604 #include <stdarg.h>
3605 void foo(char* fmt, ...)
3606 {va_list args; va_start(args, fmt);
3607 vfscanf(stderr, "%i", args);}
3608 int main() {
3610 ; return 0; }
3612 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 ac_c99_stdio=no
3620 rm -f conftest*
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <stdio.h>
3625 #include <stdarg.h>
3626 void foo(char* fmt, ...)
3627 {va_list args; va_start(args, fmt);
3628 vscanf("%i", args);}
3629 int main() {
3631 ; return 0; }
3633 if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 else
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3638 rm -rf conftest*
3639 ac_c99_stdio=no
3641 rm -f conftest*
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <stdio.h>
3646 #include <stdarg.h>
3647 void foo(char* fmt, ...)
3648 {va_list args; va_start(args, fmt);
3649 vsnprintf(fmt, 0, "%i", args);}
3650 int main() {
3652 ; return 0; }
3654 if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 else
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3659 rm -rf conftest*
3660 ac_c99_stdio=no
3662 rm -f conftest*
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <stdio.h>
3667 #include <stdarg.h>
3668 void foo(char* fmt, ...)
3669 {va_list args; va_start(args, fmt);
3670 vsscanf(fmt, "%i", args);}
3671 int main() {
3673 ; return 0; }
3675 if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3677 else
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3680 rm -rf conftest*
3681 ac_c99_stdio=no
3683 rm -f conftest*
3684 echo "$ac_t""$ac_c99_stdio" 1>&6
3686 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3687 ac_c99_stdlib=yes;
3688 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3689 echo "configure:3690: checking for lldiv_t declaration" >&5
3690 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 #include <stdlib.h>
3698 int main() {
3699 lldiv_t mydivt;
3700 ; return 0; }
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 rm -rf conftest*
3704 ac_c99_lldiv_t=yes
3705 else
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 ac_c99_lldiv_t=no
3711 rm -f conftest*
3715 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3717 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3718 echo "configure:3719: checking for ISO C99 support in <stdlib.h>" >&5
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <stdlib.h>
3723 int main() {
3724 char* tmp; strtof("gnu", &tmp);
3725 ; return 0; }
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3729 else
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 rm -rf conftest*
3733 ac_c99_stdlib=no
3735 rm -f conftest*
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <stdlib.h>
3740 int main() {
3741 char* tmp; strtold("gnu", &tmp);
3742 ; return 0; }
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 else
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 rm -rf conftest*
3750 ac_c99_stdlib=no
3752 rm -f conftest*
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <stdlib.h>
3757 int main() {
3758 llabs(10);
3759 ; return 0; }
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763 else
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 rm -rf conftest*
3767 ac_c99_stdlib=no
3769 rm -f conftest*
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <stdlib.h>
3774 int main() {
3775 lldiv(10,1);
3776 ; return 0; }
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 rm -rf conftest*
3784 ac_c99_stdlib=no
3786 rm -f conftest*
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <stdlib.h>
3791 int main() {
3792 atoll("10");
3793 ; return 0; }
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 else
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 rm -rf conftest*
3801 ac_c99_stdlib=no
3803 rm -f conftest*
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 #include <stdlib.h>
3808 int main() {
3809 _Exit(0);
3810 ; return 0; }
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 else
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 rm -rf conftest*
3818 ac_c99_stdlib=no
3820 rm -f conftest*
3821 if test x"$ac_c99_lldiv_t" = x"no"; then
3822 ac_c99_stdlib=no;
3824 echo "$ac_t""$ac_c99_stdlib" 1>&6
3826 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3827 # XXX the wchar.h checks should be rolled into the general C99 bits.
3828 ac_c99_wchar=yes;
3829 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3830 echo "configure:3831: checking for additional ISO C99 support in <wchar.h>" >&5
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <wchar.h>
3835 int main() {
3836 wcstold(L"10.0", NULL);
3837 ; return 0; }
3839 if { (eval echo configure:3840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3841 else
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3844 rm -rf conftest*
3845 ac_c99_wchar=no
3847 rm -f conftest*
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <wchar.h>
3852 int main() {
3853 wcstoll(L"10", NULL, 10);
3854 ; return 0; }
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 else
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 rm -rf conftest*
3862 ac_c99_wchar=no
3864 rm -f conftest*
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 #include <wchar.h>
3869 int main() {
3870 wcstoull(L"10", NULL, 10);
3871 ; return 0; }
3873 if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 ac_c99_wchar=no
3881 rm -f conftest*
3882 echo "$ac_t""$ac_c99_wchar" 1>&6
3884 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3885 echo "configure:3886: checking for enabled ISO C99 support" >&5
3886 if test x"$ac_c99_math" = x"no" ||
3887 test x"$ac_c99_stdio" = x"no" ||
3888 test x"$ac_c99_stdlib" = x"no" ||
3889 test x"$ac_c99_wchar" = x"no"; then
3890 enable_c99=no;
3892 echo "$ac_t""$enable_c99" 1>&6
3894 # Option parsed, now set things appropriately
3895 if test x"$enable_c99" = x"yes"; then
3896 cat >> confdefs.h <<\EOF
3897 #define _GLIBCPP_USE_C99 1
3902 ac_ext=c
3903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3907 cross_compiling=$ac_cv_prog_cc_cross
3911 # Check whether --enable-long-long or --disable-long-long was given.
3912 if test "${enable_long_long+set}" = set; then
3913 enableval="$enable_long_long"
3914 case "$enableval" in
3915 yes) enable_long_long=yes ;;
3916 no) enable_long_long=no ;;
3917 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3918 esac
3919 else
3920 enable_long_long=yes
3924 ac_ext=C
3925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3926 ac_cpp='$CXXCPP $CPPFLAGS'
3927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3929 cross_compiling=$ac_cv_prog_cxx_cross
3932 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3933 echo "configure:3934: checking for enabled long long I/O support" >&5
3934 # iostreams require strtoll, strtoull to compile
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 #include <stdlib.h>
3939 int main() {
3940 char* tmp; strtoll("gnu", &tmp, 10);
3941 ; return 0; }
3943 if { (eval echo configure:3944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3945 else
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3948 rm -rf conftest*
3949 enable_long_long=no
3951 rm -f conftest*
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 #include <stdlib.h>
3956 int main() {
3957 char* tmp; strtoull("gnu", &tmp, 10);
3958 ; return 0; }
3960 if { (eval echo configure:3961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 else
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 rm -rf conftest*
3966 enable_long_long=no
3968 rm -f conftest*
3970 # Option parsed, now set things appropriately
3971 if test x"$enable_long_long" = xyes; then
3972 cat >> confdefs.h <<\EOF
3973 #define _GLIBCPP_USE_LONG_LONG 1
3977 echo "$ac_t""$enable_long_long" 1>&6
3979 ac_ext=c
3980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3984 cross_compiling=$ac_cv_prog_cc_cross
3988 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3989 echo "configure:3990: checking for thread model used by GCC" >&5
3990 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3991 echo "$ac_t""$target_thread_file" 1>&6
3993 if test $target_thread_file != single; then
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_GTHR_DEFAULT 1
3998 cat >> confdefs.h <<\EOF
3999 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4004 glibcpp_thread_h=gthr-$target_thread_file.h
4008 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4009 echo "configure:4010: checking for exception model to use" >&5
4011 ac_ext=C
4012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4013 ac_cpp='$CXXCPP $CPPFLAGS'
4014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4016 cross_compiling=$ac_cv_prog_cxx_cross
4018 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4019 if test "${enable_sjlj_exceptions+set}" = set; then
4020 enableval="$enable_sjlj_exceptions"
4022 else
4023 cat > conftest.$ac_ext << EOF
4024 #line 4025 "configure"
4025 struct S { ~S(); };
4026 void bar();
4027 void foo()
4029 S s;
4030 bar();
4033 old_CXXFLAGS="$CXXFLAGS"
4034 CXXFLAGS=-S
4035 if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4037 enable_sjlj_exceptions=yes
4038 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4039 enable_sjlj_exceptions=no
4042 CXXFLAGS="$old_CXXFLAGS"
4043 rm -f conftest*
4046 if test x$enable_sjlj_exceptions = xyes; then
4047 cat >> confdefs.h <<\EOF
4048 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4051 ac_exception_model_name=sjlj
4052 elif test x$enable_sjlj_exceptions = xno; then
4053 ac_exception_model_name="call frame"
4054 else
4055 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4057 ac_ext=c
4058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4062 cross_compiling=$ac_cv_prog_cc_cross
4064 echo "$ac_t""$ac_exception_model_name" 1>&6
4067 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4068 echo "configure:4069: checking for use of libunwind" >&5
4069 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4070 if test "${enable_libunwind_exceptions+set}" = set; then
4071 enableval="$enable_libunwind_exceptions"
4072 use_libunwind_exceptions=$enableval
4073 else
4074 use_libunwind_exceptions=no
4077 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4078 if test x"$use_libunwind_exceptions" = xyes; then
4079 LIBUNWIND_FLAG="-lunwind"
4080 else
4081 LIBUNWIND_FLAG=""
4085 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4086 if test "${enable_concept_checks+set}" = set; then
4087 enableval="$enable_concept_checks"
4088 case "$enableval" in
4089 yes) enable_concept_checks=yes ;;
4090 no) enable_concept_checks=no ;;
4091 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4092 esac
4093 else
4094 enable_concept_checks=no
4096 if test x"$enable_concept_checks" = xyes; then
4097 cat >> confdefs.h <<\EOF
4098 #define _GLIBCPP_CONCEPT_CHECKS 1
4103 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4104 echo "configure:4105: checking for extra compiler flags for building" >&5
4105 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4106 if test "${enable_cxx_flags+set}" = set; then
4107 enableval="$enable_cxx_flags"
4108 case "x$enable_cxx_flags" in
4109 xyes)
4110 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4111 xno | xnone | x)
4112 enable_cxx_flags='' ;;
4114 enable_cxx_flags="$enableval" ;;
4115 esac
4116 else
4117 enable_cxx_flags=
4121 if test -n "$enable_cxx_flags"; then
4122 for f in $enable_cxx_flags; do
4123 case "$f" in
4124 -fhonor-std) ;;
4125 -*) ;;
4126 *) # and we're trying to pass /what/ exactly?
4127 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4128 esac
4129 done
4131 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4132 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4135 # Check whether --enable-debug or --disable-debug was given.
4136 if test "${enable_debug+set}" = set; then
4137 enableval="$enable_debug"
4138 case "${enableval}" in
4139 yes) enable_debug=yes ;;
4140 no) enable_debug=no ;;
4141 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4142 esac
4143 else
4144 enable_debug=no
4146 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4147 echo "configure:4148: checking for additional debug build" >&5
4148 echo "$ac_t""$enable_debug" 1>&6
4151 if test "$enable_debug" = yes; then
4152 GLIBCPP_BUILD_DEBUG_TRUE=
4153 GLIBCPP_BUILD_DEBUG_FALSE='#'
4154 else
4155 GLIBCPP_BUILD_DEBUG_TRUE='#'
4156 GLIBCPP_BUILD_DEBUG_FALSE=
4159 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4160 if test "${enable_debug_flags+set}" = set; then
4161 enableval="$enable_debug_flags"
4162 case "${enableval}" in
4163 none) ;;
4164 -*) enable_debug_flags="${enableval}" ;;
4165 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4166 esac
4167 else
4168 enable_debug_flags=none
4171 case x"$enable_debug" in
4172 xyes)
4173 case "$enable_debug_flags" in
4174 none)
4175 DEBUG_FLAGS="-g3 -O0";;
4176 -*) #valid input
4177 DEBUG_FLAGS="${enableval}"
4178 esac
4180 xno)
4181 DEBUG_FLAGS=""
4183 esac
4186 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4187 echo "configure:4188: checking for debug build flags" >&5
4188 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4191 # No surprises, no surprises...
4192 if test $ATOMICITYH = cpu/generic ; then
4193 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4194 if test $target_thread_file = single; then
4195 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4196 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4197 else
4198 echo "configure: warning: They will be faked using a mutex." 1>&2
4199 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4204 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4206 # We are being configured with some form of cross compiler.
4207 GLIBCPP_IS_CROSS_COMPILING=1
4209 # This lets us hard-code the functionality we know we'll have in the cross
4210 # target environment. "Let" is a sugar-coated word placed on an especially
4211 # dull and tedious hack, actually.
4213 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4214 # that involve linking, can't be used:
4215 # "cannot open sim-crt0.o"
4216 # "cannot open crt0.o"
4217 # etc. All this is because there currently exists no unified, consistent
4218 # way for top level CC information to be passed down to target directories:
4219 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4220 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4221 # crosses can be removed.
4223 # If Canadian cross, then don't pick up tools from the build directory.
4224 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4225 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4226 CANADIAN=yes
4227 else
4228 CANADIAN=no
4231 # Construct crosses by hand, eliminating bits that need ld...
4232 # GLIBCPP_CHECK_COMPILER_FEATURES
4233 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4234 # GLIBCPP_CHECK_MATH_SUPPORT
4236 case "$target" in
4237 *-linux*)
4238 os_include_dir="os/gnu-linux"
4239 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4240 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4241 fp.h locale.h float.h inttypes.h
4243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4245 echo "configure:4246: checking for $ac_hdr" >&5
4246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4248 else
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <$ac_hdr>
4254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4255 { (eval echo configure:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4257 if test -z "$ac_err"; then
4258 rm -rf conftest*
4259 eval "ac_cv_header_$ac_safe=yes"
4260 else
4261 echo "$ac_err" >&5
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 rm -rf conftest*
4265 eval "ac_cv_header_$ac_safe=no"
4267 rm -f conftest*
4269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4270 echo "$ac_t""yes" 1>&6
4271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4272 cat >> confdefs.h <<EOF
4273 #define $ac_tr_hdr 1
4276 else
4277 echo "$ac_t""no" 1>&6
4279 done
4281 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4284 # If we're not using GNU ld, then there's no point in even trying these
4285 # tests. Check for that first. We should have already tested for gld
4286 # by now (in libtool), but require it now just to be safe...
4287 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4288 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4291 # The name set by libtool depends on the version of libtool. Shame on us
4292 # for depending on an impl detail, but c'est la vie. Older versions used
4293 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4294 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4295 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4296 # set (hence we're using an older libtool), then set it.
4297 if test x${with_gnu_ld+set} != xset; then
4298 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4299 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4300 with_gnu_ld=no
4301 else
4302 with_gnu_ld=$ac_cv_prog_gnu_ld
4306 # Start by getting the version number. I think the libtool test already
4307 # does some of this, but throws away the result.
4309 ldver=`$LD --version 2>/dev/null | head -1 | \
4310 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4312 glibcpp_gnu_ld_version=`echo $ldver | \
4313 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4315 # Set --gc-sections.
4316 if test "$with_gnu_ld" = "notbroken"; then
4317 # GNU ld it is! Joy and bunny rabbits!
4319 # All these tests are for C++; save the language and the compiler flags.
4320 # Need to do this so that g++ won't try to link in libstdc++
4321 ac_test_CFLAGS="${CFLAGS+set}"
4322 ac_save_CFLAGS="$CFLAGS"
4323 CFLAGS='-x c++ -Wl,--gc-sections'
4325 # Check for -Wl,--gc-sections
4326 # XXX This test is broken at the moment, as symbols required for
4327 # linking are now in libsupc++ (not built yet.....). In addition,
4328 # this test has cored on solaris in the past. In addition,
4329 # --gc-sections doesn't really work at the moment (keeps on discarding
4330 # used sections, first .eh_frame and now some of the glibc sections for
4331 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4332 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4333 echo "configure:4334: checking for ld that supports -Wl,--gc-sections" >&5
4334 if test "$cross_compiling" = yes; then
4335 ac_sectionLDflags=yes
4336 else
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4341 int main(void)
4343 try { throw 1; }
4344 catch (...) { };
4345 return 0;
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4350 then
4351 ac_sectionLDflags=yes
4352 else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -fr conftest*
4356 ac_sectionLDflags=no
4358 rm -fr conftest*
4361 if test "$ac_test_CFLAGS" = set; then
4362 CFLAGS="$ac_save_CFLAGS"
4363 else
4364 # this is the suspicious part
4365 CFLAGS=''
4367 if test "$ac_sectionLDflags" = "yes"; then
4368 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4370 echo "$ac_t""$ac_sectionLDflags" 1>&6
4373 # Set linker optimization flags.
4374 if test x"$with_gnu_ld" = x"yes"; then
4375 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4382 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4383 echo "configure:4384: checking for main in -lm" >&5
4384 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 ac_save_LIBS="$LIBS"
4389 LIBS="-lm $LIBS"
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4394 int main() {
4395 main()
4396 ; return 0; }
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 rm -rf conftest*
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4401 else
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 rm -rf conftest*
4405 eval "ac_cv_lib_$ac_lib_var=no"
4407 rm -f conftest*
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_lib 1
4419 LIBS="-lm $LIBS"
4421 else
4422 echo "$ac_t""no" 1>&6
4425 for ac_func in nan copysignf
4427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_func" >&5
4429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 /* System header to define __stub macros and hopefully few prototypes,
4436 which can conflict with char $ac_func(); below. */
4437 #include <assert.h>
4438 /* Override any gcc2 internal prototype to avoid an error. */
4439 /* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4441 char $ac_func();
4443 int main() {
4445 /* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 choke me
4450 #else
4451 $ac_func();
4452 #endif
4454 ; return 0; }
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4457 rm -rf conftest*
4458 eval "ac_cv_func_$ac_func=yes"
4459 else
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4462 rm -rf conftest*
4463 eval "ac_cv_func_$ac_func=no"
4465 rm -f conftest*
4468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4471 cat >> confdefs.h <<EOF
4472 #define $ac_tr_func 1
4475 else
4476 echo "$ac_t""no" 1>&6
4477 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4479 done
4482 for ac_func in __signbit
4484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_func" >&5
4486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488 else
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* System header to define __stub macros and hopefully few prototypes,
4493 which can conflict with char $ac_func(); below. */
4494 #include <assert.h>
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4498 char $ac_func();
4500 int main() {
4502 /* The GNU C library defines this for functions which it implements
4503 to always fail with ENOSYS. Some functions are actually named
4504 something starting with __ and the normal name is an alias. */
4505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4506 choke me
4507 #else
4508 $ac_func();
4509 #endif
4511 ; return 0; }
4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 rm -rf conftest*
4515 eval "ac_cv_func_$ac_func=yes"
4516 else
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 rm -rf conftest*
4520 eval "ac_cv_func_$ac_func=no"
4522 rm -f conftest*
4525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4528 cat >> confdefs.h <<EOF
4529 #define $ac_tr_func 1
4532 else
4533 echo "$ac_t""no" 1>&6
4534 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4536 done
4538 for ac_func in __signbitf
4540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_func" >&5
4542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4544 else
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char $ac_func(); below. */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char $ac_func();
4556 int main() {
4558 /* The GNU C library defines this for functions which it implements
4559 to always fail with ENOSYS. Some functions are actually named
4560 something starting with __ and the normal name is an alias. */
4561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4562 choke me
4563 #else
4564 $ac_func();
4565 #endif
4567 ; return 0; }
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 rm -rf conftest*
4571 eval "ac_cv_func_$ac_func=yes"
4572 else
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 eval "ac_cv_func_$ac_func=no"
4578 rm -f conftest*
4581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_func 1
4588 else
4589 echo "$ac_t""no" 1>&6
4590 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4592 done
4595 if test x$ac_cv_func_copysignl = x"yes"; then
4596 for ac_func in __signbitl
4598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_func" >&5
4600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4602 else
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 /* System header to define __stub macros and hopefully few prototypes,
4607 which can conflict with char $ac_func(); below. */
4608 #include <assert.h>
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char $ac_func();
4614 int main() {
4616 /* The GNU C library defines this for functions which it implements
4617 to always fail with ENOSYS. Some functions are actually named
4618 something starting with __ and the normal name is an alias. */
4619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4620 choke me
4621 #else
4622 $ac_func();
4623 #endif
4625 ; return 0; }
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4628 rm -rf conftest*
4629 eval "ac_cv_func_$ac_func=yes"
4630 else
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 rm -rf conftest*
4634 eval "ac_cv_func_$ac_func=no"
4636 rm -f conftest*
4639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4642 cat >> confdefs.h <<EOF
4643 #define $ac_tr_func 1
4646 else
4647 echo "$ac_t""no" 1>&6
4648 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4650 done
4654 if test -n "$LIBMATHOBJS"; then
4655 need_libmath=yes
4660 if test "$need_libmath" = yes; then
4661 GLIBCPP_BUILD_LIBMATH_TRUE=
4662 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4663 else
4664 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4665 GLIBCPP_BUILD_LIBMATH_FALSE=
4669 enable_wchar_t=no
4671 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4672 echo "configure:4673: checking for mbstate_t" >&5
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 #include <wchar.h>
4677 int main() {
4678 mbstate_t teststate;
4679 ; return 0; }
4681 if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 rm -rf conftest*
4683 have_mbstate_t=yes
4684 else
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4687 rm -rf conftest*
4688 have_mbstate_t=no
4690 rm -f conftest*
4691 echo "$ac_t""$have_mbstate_t" 1>&6
4692 if test x"$have_mbstate_t" = xyes; then
4693 cat >> confdefs.h <<\EOF
4694 #define HAVE_MBSTATE_T 1
4699 for ac_hdr in wchar.h
4701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_hdr" >&5
4704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 #include <$ac_hdr>
4712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4713 { (eval echo configure:4714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4715 if test -z "$ac_err"; then
4716 rm -rf conftest*
4717 eval "ac_cv_header_$ac_safe=yes"
4718 else
4719 echo "$ac_err" >&5
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 rm -rf conftest*
4723 eval "ac_cv_header_$ac_safe=no"
4725 rm -f conftest*
4727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4730 cat >> confdefs.h <<EOF
4731 #define $ac_tr_hdr 1
4733 ac_has_wchar_h=yes
4734 else
4735 echo "$ac_t""no" 1>&6
4736 ac_has_wchar_h=no
4738 done
4740 for ac_hdr in wctype.h
4742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4744 echo "configure:4745: checking for $ac_hdr" >&5
4745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4747 else
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 #include <$ac_hdr>
4753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4754 { (eval echo configure:4755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4756 if test -z "$ac_err"; then
4757 rm -rf conftest*
4758 eval "ac_cv_header_$ac_safe=yes"
4759 else
4760 echo "$ac_err" >&5
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 rm -rf conftest*
4764 eval "ac_cv_header_$ac_safe=no"
4766 rm -f conftest*
4768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4769 echo "$ac_t""yes" 1>&6
4770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4771 cat >> confdefs.h <<EOF
4772 #define $ac_tr_hdr 1
4774 ac_has_wctype_h=yes
4775 else
4776 echo "$ac_t""no" 1>&6
4777 ac_has_wctype_h=no
4779 done
4782 if test x"$ac_has_wchar_h" = xyes &&
4783 test x"$ac_has_wctype_h" = xyes &&
4784 test x"$enable_c_mbchar" != xno; then
4786 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4787 echo "configure:4788: checking for WCHAR_MIN and WCHAR_MAX" >&5
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 #include <wchar.h>
4792 int main() {
4793 int i = WCHAR_MIN; int j = WCHAR_MAX;
4794 ; return 0; }
4796 if { (eval echo configure:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4797 rm -rf conftest*
4798 has_wchar_minmax=yes
4799 else
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 rm -rf conftest*
4803 has_wchar_minmax=no
4805 rm -f conftest*
4806 echo "$ac_t""$has_wchar_minmax" 1>&6
4808 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4809 echo "configure:4810: checking for WEOF" >&5
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4814 #include <wchar.h>
4815 #include <stddef.h>
4816 int main() {
4817 wint_t i = WEOF;
4818 ; return 0; }
4820 if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4821 rm -rf conftest*
4822 has_weof=yes
4823 else
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 rm -rf conftest*
4827 has_weof=no
4829 rm -f conftest*
4830 echo "$ac_t""$has_weof" 1>&6
4832 ac_wfuncs=yes
4833 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5
4837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4839 else
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func(); below. */
4845 #include <assert.h>
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4849 char $ac_func();
4851 int main() {
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 choke me
4858 #else
4859 $ac_func();
4860 #endif
4862 ; return 0; }
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 rm -rf conftest*
4866 eval "ac_cv_func_$ac_func=yes"
4867 else
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 rm -rf conftest*
4871 eval "ac_cv_func_$ac_func=no"
4873 rm -f conftest*
4876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4879 cat >> confdefs.h <<EOF
4880 #define $ac_tr_func 1
4883 else
4884 echo "$ac_t""no" 1>&6
4886 ac_wfuncs=no
4888 done
4891 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4892 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4893 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4894 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4895 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4896 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_func" >&5
4900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4902 else
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char $ac_func(); below. */
4908 #include <assert.h>
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char $ac_func();
4914 int main() {
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4920 choke me
4921 #else
4922 $ac_func();
4923 #endif
4925 ; return 0; }
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 rm -rf conftest*
4929 eval "ac_cv_func_$ac_func=yes"
4930 else
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4933 rm -rf conftest*
4934 eval "ac_cv_func_$ac_func=no"
4936 rm -f conftest*
4939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_func 1
4946 else
4947 echo "$ac_t""no" 1>&6
4949 ac_wfuncs=no
4951 done
4954 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4955 echo "configure:4956: checking for ISO C99 wchar_t support" >&5
4956 if test x"$has_weof" = xyes &&
4957 test x"$has_wchar_minmax" = xyes &&
4958 test x"$ac_wfuncs" = xyes; then
4959 ac_isoC99_wchar_t=yes
4960 else
4961 ac_isoC99_wchar_t=no
4963 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4965 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4966 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4967 echo "configure:4968: checking for iconv.h" >&5
4968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4970 else
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 #include <iconv.h>
4976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4977 { (eval echo configure:4978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4979 if test -z "$ac_err"; then
4980 rm -rf conftest*
4981 eval "ac_cv_header_$ac_safe=yes"
4982 else
4983 echo "$ac_err" >&5
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 rm -rf conftest*
4987 eval "ac_cv_header_$ac_safe=no"
4989 rm -f conftest*
4991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_has_iconv_h=yes
4994 else
4995 echo "$ac_t""no" 1>&6
4996 ac_has_iconv_h=no
4999 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5000 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5001 echo "configure:5002: checking for langinfo.h" >&5
5002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5004 else
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 #include <langinfo.h>
5010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5011 { (eval echo configure:5012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5013 if test -z "$ac_err"; then
5014 rm -rf conftest*
5015 eval "ac_cv_header_$ac_safe=yes"
5016 else
5017 echo "$ac_err" >&5
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 rm -rf conftest*
5021 eval "ac_cv_header_$ac_safe=no"
5023 rm -f conftest*
5025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_has_langinfo_h=yes
5028 else
5029 echo "$ac_t""no" 1>&6
5030 ac_has_langinfo_h=no
5034 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5035 echo "configure:5036: checking for iconv in -liconv" >&5
5036 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 ac_save_LIBS="$LIBS"
5041 LIBS="-liconv $LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char iconv();
5050 int main() {
5051 iconv()
5052 ; return 0; }
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 rm -rf conftest*
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5057 else
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 rm -rf conftest*
5061 eval "ac_cv_lib_$ac_lib_var=no"
5063 rm -f conftest*
5064 LIBS="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5069 libiconv="-liconv"
5070 else
5071 echo "$ac_t""no" 1>&6
5074 ac_save_LIBS="$LIBS"
5075 LIBS="$LIBS $libiconv"
5077 for ac_func in iconv_open iconv_close iconv nl_langinfo
5079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5080 echo "configure:5081: checking for $ac_func" >&5
5081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5083 else
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 /* System header to define __stub macros and hopefully few prototypes,
5088 which can conflict with char $ac_func(); below. */
5089 #include <assert.h>
5090 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5093 char $ac_func();
5095 int main() {
5097 /* The GNU C library defines this for functions which it implements
5098 to always fail with ENOSYS. Some functions are actually named
5099 something starting with __ and the normal name is an alias. */
5100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5101 choke me
5102 #else
5103 $ac_func();
5104 #endif
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 rm -rf conftest*
5110 eval "ac_cv_func_$ac_func=yes"
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 eval "ac_cv_func_$ac_func=no"
5117 rm -f conftest*
5120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_func 1
5127 ac_XPG2funcs=yes
5128 else
5129 echo "$ac_t""no" 1>&6
5130 ac_XPG2funcs=no
5132 done
5135 LIBS="$ac_save_LIBS"
5137 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5138 echo "configure:5139: checking for XPG2 wchar_t support" >&5
5139 if test x"$ac_has_iconv_h" = xyes &&
5140 test x"$ac_has_langinfo_h" = xyes &&
5141 test x"$ac_XPG2funcs" = xyes; then
5142 ac_XPG2_wchar_t=yes
5143 else
5144 ac_XPG2_wchar_t=no
5146 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5148 if test x"$ac_isoC99_wchar_t" = xyes &&
5149 test x"$ac_XPG2_wchar_t" = xyes; then
5150 cat >> confdefs.h <<\EOF
5151 #define _GLIBCPP_USE_WCHAR_T 1
5154 enable_wchar_t=yes
5157 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5158 echo "configure:5159: checking for enabled wchar_t specializations" >&5
5159 echo "$ac_t""$enable_wchar_t" 1>&6
5162 if test "$enable_wchar_t" = yes; then
5163 GLIBCPP_TEST_WCHAR_T_TRUE=
5164 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5165 else
5166 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5167 GLIBCPP_TEST_WCHAR_T_FALSE=
5170 cat >> confdefs.h <<\EOF
5171 #define HAVE_COPYSIGN 1
5174 cat >> confdefs.h <<\EOF
5175 #define HAVE_COPYSIGNF 1
5178 cat >> confdefs.h <<\EOF
5179 #define HAVE_FINITE 1
5182 cat >> confdefs.h <<\EOF
5183 #define HAVE_FINITEF 1
5186 cat >> confdefs.h <<\EOF
5187 #define HAVE_FREXPF 1
5190 cat >> confdefs.h <<\EOF
5191 #define HAVE_HYPOTF 1
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_ISINF 1
5198 cat >> confdefs.h <<\EOF
5199 #define HAVE_ISINFF 1
5202 cat >> confdefs.h <<\EOF
5203 #define HAVE_ISNAN 1
5206 cat >> confdefs.h <<\EOF
5207 #define HAVE_ISNANF 1
5210 cat >> confdefs.h <<\EOF
5211 #define HAVE_SINCOS 1
5214 cat >> confdefs.h <<\EOF
5215 #define HAVE_SINCOSF 1
5218 if test x"long_double_math_on_this_cpu" = x"yes"; then
5219 cat >> confdefs.h <<\EOF
5220 #define HAVE_FINITEL 1
5223 cat >> confdefs.h <<\EOF
5224 #define HAVE_HYPOTL 1
5227 cat >> confdefs.h <<\EOF
5228 #define HAVE_ISINFL 1
5231 cat >> confdefs.h <<\EOF
5232 #define HAVE_ISNANL 1
5237 *-hpux*)
5238 # Check for available headers.
5239 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5240 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5241 fp.h locale.h float.h inttypes.h
5243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5245 echo "configure:5246: checking for $ac_hdr" >&5
5246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5248 else
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5252 #include <$ac_hdr>
5254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5255 { (eval echo configure:5256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5257 if test -z "$ac_err"; then
5258 rm -rf conftest*
5259 eval "ac_cv_header_$ac_safe=yes"
5260 else
5261 echo "$ac_err" >&5
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 rm -rf conftest*
5265 eval "ac_cv_header_$ac_safe=no"
5267 rm -f conftest*
5269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5272 cat >> confdefs.h <<EOF
5273 #define $ac_tr_hdr 1
5276 else
5277 echo "$ac_t""no" 1>&6
5279 done
5281 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5284 # If we're not using GNU ld, then there's no point in even trying these
5285 # tests. Check for that first. We should have already tested for gld
5286 # by now (in libtool), but require it now just to be safe...
5287 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5288 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5291 # The name set by libtool depends on the version of libtool. Shame on us
5292 # for depending on an impl detail, but c'est la vie. Older versions used
5293 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5294 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5295 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5296 # set (hence we're using an older libtool), then set it.
5297 if test x${with_gnu_ld+set} != xset; then
5298 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5299 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5300 with_gnu_ld=no
5301 else
5302 with_gnu_ld=$ac_cv_prog_gnu_ld
5306 # Start by getting the version number. I think the libtool test already
5307 # does some of this, but throws away the result.
5309 ldver=`$LD --version 2>/dev/null | head -1 | \
5310 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5312 glibcpp_gnu_ld_version=`echo $ldver | \
5313 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5315 # Set --gc-sections.
5316 if test "$with_gnu_ld" = "notbroken"; then
5317 # GNU ld it is! Joy and bunny rabbits!
5319 # All these tests are for C++; save the language and the compiler flags.
5320 # Need to do this so that g++ won't try to link in libstdc++
5321 ac_test_CFLAGS="${CFLAGS+set}"
5322 ac_save_CFLAGS="$CFLAGS"
5323 CFLAGS='-x c++ -Wl,--gc-sections'
5325 # Check for -Wl,--gc-sections
5326 # XXX This test is broken at the moment, as symbols required for
5327 # linking are now in libsupc++ (not built yet.....). In addition,
5328 # this test has cored on solaris in the past. In addition,
5329 # --gc-sections doesn't really work at the moment (keeps on discarding
5330 # used sections, first .eh_frame and now some of the glibc sections for
5331 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5332 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5333 echo "configure:5334: checking for ld that supports -Wl,--gc-sections" >&5
5334 if test "$cross_compiling" = yes; then
5335 ac_sectionLDflags=yes
5336 else
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5341 int main(void)
5343 try { throw 1; }
5344 catch (...) { };
5345 return 0;
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5350 then
5351 ac_sectionLDflags=yes
5352 else
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 rm -fr conftest*
5356 ac_sectionLDflags=no
5358 rm -fr conftest*
5361 if test "$ac_test_CFLAGS" = set; then
5362 CFLAGS="$ac_save_CFLAGS"
5363 else
5364 # this is the suspicious part
5365 CFLAGS=''
5367 if test "$ac_sectionLDflags" = "yes"; then
5368 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5370 echo "$ac_t""$ac_sectionLDflags" 1>&6
5373 # Set linker optimization flags.
5374 if test x"$with_gnu_ld" = x"yes"; then
5375 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5382 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5383 echo "configure:5384: checking for main in -lm" >&5
5384 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5387 else
5388 ac_save_LIBS="$LIBS"
5389 LIBS="-lm $LIBS"
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5394 int main() {
5395 main()
5396 ; return 0; }
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5399 rm -rf conftest*
5400 eval "ac_cv_lib_$ac_lib_var=yes"
5401 else
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 rm -rf conftest*
5405 eval "ac_cv_lib_$ac_lib_var=no"
5407 rm -f conftest*
5408 LIBS="$ac_save_LIBS"
5411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5415 cat >> confdefs.h <<EOF
5416 #define $ac_tr_lib 1
5419 LIBS="-lm $LIBS"
5421 else
5422 echo "$ac_t""no" 1>&6
5425 for ac_func in nan copysignf
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5431 else
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5437 #include <assert.h>
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5441 char $ac_func();
5443 int main() {
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5449 choke me
5450 #else
5451 $ac_func();
5452 #endif
5454 ; return 0; }
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5457 rm -rf conftest*
5458 eval "ac_cv_func_$ac_func=yes"
5459 else
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5462 rm -rf conftest*
5463 eval "ac_cv_func_$ac_func=no"
5465 rm -f conftest*
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_func 1
5475 else
5476 echo "$ac_t""no" 1>&6
5477 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5479 done
5482 for ac_func in __signbit
5484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_func" >&5
5486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5488 else
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 /* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func(); below. */
5494 #include <assert.h>
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5498 char $ac_func();
5500 int main() {
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 choke me
5507 #else
5508 $ac_func();
5509 #endif
5511 ; return 0; }
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5514 rm -rf conftest*
5515 eval "ac_cv_func_$ac_func=yes"
5516 else
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 rm -rf conftest*
5520 eval "ac_cv_func_$ac_func=no"
5522 rm -f conftest*
5525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5528 cat >> confdefs.h <<EOF
5529 #define $ac_tr_func 1
5532 else
5533 echo "$ac_t""no" 1>&6
5534 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5536 done
5538 for ac_func in __signbitf
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char $ac_func();
5556 int main() {
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5567 ; return 0; }
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=yes"
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 eval "ac_cv_func_$ac_func=no"
5578 rm -f conftest*
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5588 else
5589 echo "$ac_t""no" 1>&6
5590 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5592 done
5595 if test x$ac_cv_func_copysignl = x"yes"; then
5596 for ac_func in __signbitl
5598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5599 echo "configure:5600: checking for $ac_func" >&5
5600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5602 else
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char $ac_func(); below. */
5608 #include <assert.h>
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5612 char $ac_func();
5614 int main() {
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 choke me
5621 #else
5622 $ac_func();
5623 #endif
5625 ; return 0; }
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 rm -rf conftest*
5629 eval "ac_cv_func_$ac_func=yes"
5630 else
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 rm -rf conftest*
5634 eval "ac_cv_func_$ac_func=no"
5636 rm -f conftest*
5639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5642 cat >> confdefs.h <<EOF
5643 #define $ac_tr_func 1
5646 else
5647 echo "$ac_t""no" 1>&6
5648 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5650 done
5654 if test -n "$LIBMATHOBJS"; then
5655 need_libmath=yes
5660 if test "$need_libmath" = yes; then
5661 GLIBCPP_BUILD_LIBMATH_TRUE=
5662 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5663 else
5664 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5665 GLIBCPP_BUILD_LIBMATH_FALSE=
5669 enable_wchar_t=no
5671 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5672 echo "configure:5673: checking for mbstate_t" >&5
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 #include <wchar.h>
5677 int main() {
5678 mbstate_t teststate;
5679 ; return 0; }
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5682 rm -rf conftest*
5683 have_mbstate_t=yes
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5688 have_mbstate_t=no
5690 rm -f conftest*
5691 echo "$ac_t""$have_mbstate_t" 1>&6
5692 if test x"$have_mbstate_t" = xyes; then
5693 cat >> confdefs.h <<\EOF
5694 #define HAVE_MBSTATE_T 1
5699 for ac_hdr in wchar.h
5701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_hdr" >&5
5704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #include <$ac_hdr>
5712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5713 { (eval echo configure:5714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5715 if test -z "$ac_err"; then
5716 rm -rf conftest*
5717 eval "ac_cv_header_$ac_safe=yes"
5718 else
5719 echo "$ac_err" >&5
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5722 rm -rf conftest*
5723 eval "ac_cv_header_$ac_safe=no"
5725 rm -f conftest*
5727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5730 cat >> confdefs.h <<EOF
5731 #define $ac_tr_hdr 1
5733 ac_has_wchar_h=yes
5734 else
5735 echo "$ac_t""no" 1>&6
5736 ac_has_wchar_h=no
5738 done
5740 for ac_hdr in wctype.h
5742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5744 echo "configure:5745: checking for $ac_hdr" >&5
5745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5747 else
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 #include <$ac_hdr>
5753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5754 { (eval echo configure:5755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5756 if test -z "$ac_err"; then
5757 rm -rf conftest*
5758 eval "ac_cv_header_$ac_safe=yes"
5759 else
5760 echo "$ac_err" >&5
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5763 rm -rf conftest*
5764 eval "ac_cv_header_$ac_safe=no"
5766 rm -f conftest*
5768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5771 cat >> confdefs.h <<EOF
5772 #define $ac_tr_hdr 1
5774 ac_has_wctype_h=yes
5775 else
5776 echo "$ac_t""no" 1>&6
5777 ac_has_wctype_h=no
5779 done
5782 if test x"$ac_has_wchar_h" = xyes &&
5783 test x"$ac_has_wctype_h" = xyes &&
5784 test x"$enable_c_mbchar" != xno; then
5786 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5787 echo "configure:5788: checking for WCHAR_MIN and WCHAR_MAX" >&5
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5791 #include <wchar.h>
5792 int main() {
5793 int i = WCHAR_MIN; int j = WCHAR_MAX;
5794 ; return 0; }
5796 if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797 rm -rf conftest*
5798 has_wchar_minmax=yes
5799 else
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5802 rm -rf conftest*
5803 has_wchar_minmax=no
5805 rm -f conftest*
5806 echo "$ac_t""$has_wchar_minmax" 1>&6
5808 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5809 echo "configure:5810: checking for WEOF" >&5
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5814 #include <wchar.h>
5815 #include <stddef.h>
5816 int main() {
5817 wint_t i = WEOF;
5818 ; return 0; }
5820 if { (eval echo configure:5821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5821 rm -rf conftest*
5822 has_weof=yes
5823 else
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 rm -rf conftest*
5827 has_weof=no
5829 rm -f conftest*
5830 echo "$ac_t""$has_weof" 1>&6
5832 ac_wfuncs=yes
5833 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5836 echo "configure:5837: checking for $ac_func" >&5
5837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5839 else
5840 cat > conftest.$ac_ext <<EOF
5841 #line 5842 "configure"
5842 #include "confdefs.h"
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func(); below. */
5845 #include <assert.h>
5846 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5849 char $ac_func();
5851 int main() {
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5857 choke me
5858 #else
5859 $ac_func();
5860 #endif
5862 ; return 0; }
5864 if { (eval echo configure:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5865 rm -rf conftest*
5866 eval "ac_cv_func_$ac_func=yes"
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -rf conftest*
5871 eval "ac_cv_func_$ac_func=no"
5873 rm -f conftest*
5876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5879 cat >> confdefs.h <<EOF
5880 #define $ac_tr_func 1
5883 else
5884 echo "$ac_t""no" 1>&6
5886 ac_wfuncs=no
5888 done
5891 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5892 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5893 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5894 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5895 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5896 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5899 echo "configure:5900: checking for $ac_func" >&5
5900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5902 else
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* System header to define __stub macros and hopefully few prototypes,
5907 which can conflict with char $ac_func(); below. */
5908 #include <assert.h>
5909 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5912 char $ac_func();
5914 int main() {
5916 /* The GNU C library defines this for functions which it implements
5917 to always fail with ENOSYS. Some functions are actually named
5918 something starting with __ and the normal name is an alias. */
5919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 choke me
5921 #else
5922 $ac_func();
5923 #endif
5925 ; return 0; }
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 rm -rf conftest*
5929 eval "ac_cv_func_$ac_func=yes"
5930 else
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 rm -rf conftest*
5934 eval "ac_cv_func_$ac_func=no"
5936 rm -f conftest*
5939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5940 echo "$ac_t""yes" 1>&6
5941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5942 cat >> confdefs.h <<EOF
5943 #define $ac_tr_func 1
5946 else
5947 echo "$ac_t""no" 1>&6
5949 ac_wfuncs=no
5951 done
5954 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5955 echo "configure:5956: checking for ISO C99 wchar_t support" >&5
5956 if test x"$has_weof" = xyes &&
5957 test x"$has_wchar_minmax" = xyes &&
5958 test x"$ac_wfuncs" = xyes; then
5959 ac_isoC99_wchar_t=yes
5960 else
5961 ac_isoC99_wchar_t=no
5963 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5965 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5966 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5967 echo "configure:5968: checking for iconv.h" >&5
5968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5970 else
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <iconv.h>
5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5979 if test -z "$ac_err"; then
5980 rm -rf conftest*
5981 eval "ac_cv_header_$ac_safe=yes"
5982 else
5983 echo "$ac_err" >&5
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 rm -rf conftest*
5987 eval "ac_cv_header_$ac_safe=no"
5989 rm -f conftest*
5991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5992 echo "$ac_t""yes" 1>&6
5993 ac_has_iconv_h=yes
5994 else
5995 echo "$ac_t""no" 1>&6
5996 ac_has_iconv_h=no
5999 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6000 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6001 echo "configure:6002: checking for langinfo.h" >&5
6002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6004 else
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008 #include <langinfo.h>
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6013 if test -z "$ac_err"; then
6014 rm -rf conftest*
6015 eval "ac_cv_header_$ac_safe=yes"
6016 else
6017 echo "$ac_err" >&5
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 rm -rf conftest*
6021 eval "ac_cv_header_$ac_safe=no"
6023 rm -f conftest*
6025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6026 echo "$ac_t""yes" 1>&6
6027 ac_has_langinfo_h=yes
6028 else
6029 echo "$ac_t""no" 1>&6
6030 ac_has_langinfo_h=no
6034 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6035 echo "configure:6036: checking for iconv in -liconv" >&5
6036 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040 ac_save_LIBS="$LIBS"
6041 LIBS="-liconv $LIBS"
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6048 char iconv();
6050 int main() {
6051 iconv()
6052 ; return 0; }
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 rm -rf conftest*
6056 eval "ac_cv_lib_$ac_lib_var=yes"
6057 else
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 rm -rf conftest*
6061 eval "ac_cv_lib_$ac_lib_var=no"
6063 rm -f conftest*
6064 LIBS="$ac_save_LIBS"
6067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6068 echo "$ac_t""yes" 1>&6
6069 libiconv="-liconv"
6070 else
6071 echo "$ac_t""no" 1>&6
6074 ac_save_LIBS="$LIBS"
6075 LIBS="$LIBS $libiconv"
6077 for ac_func in iconv_open iconv_close iconv nl_langinfo
6079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6080 echo "configure:6081: checking for $ac_func" >&5
6081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 /* System header to define __stub macros and hopefully few prototypes,
6088 which can conflict with char $ac_func(); below. */
6089 #include <assert.h>
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char $ac_func();
6095 int main() {
6097 /* The GNU C library defines this for functions which it implements
6098 to always fail with ENOSYS. Some functions are actually named
6099 something starting with __ and the normal name is an alias. */
6100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6101 choke me
6102 #else
6103 $ac_func();
6104 #endif
6106 ; return 0; }
6108 if { (eval echo configure:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 rm -rf conftest*
6110 eval "ac_cv_func_$ac_func=yes"
6111 else
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 rm -rf conftest*
6115 eval "ac_cv_func_$ac_func=no"
6117 rm -f conftest*
6120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6123 cat >> confdefs.h <<EOF
6124 #define $ac_tr_func 1
6127 ac_XPG2funcs=yes
6128 else
6129 echo "$ac_t""no" 1>&6
6130 ac_XPG2funcs=no
6132 done
6135 LIBS="$ac_save_LIBS"
6137 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6138 echo "configure:6139: checking for XPG2 wchar_t support" >&5
6139 if test x"$ac_has_iconv_h" = xyes &&
6140 test x"$ac_has_langinfo_h" = xyes &&
6141 test x"$ac_XPG2funcs" = xyes; then
6142 ac_XPG2_wchar_t=yes
6143 else
6144 ac_XPG2_wchar_t=no
6146 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6148 if test x"$ac_isoC99_wchar_t" = xyes &&
6149 test x"$ac_XPG2_wchar_t" = xyes; then
6150 cat >> confdefs.h <<\EOF
6151 #define _GLIBCPP_USE_WCHAR_T 1
6154 enable_wchar_t=yes
6157 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6158 echo "configure:6159: checking for enabled wchar_t specializations" >&5
6159 echo "$ac_t""$enable_wchar_t" 1>&6
6162 if test "$enable_wchar_t" = yes; then
6163 GLIBCPP_TEST_WCHAR_T_TRUE=
6164 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6165 else
6166 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6167 GLIBCPP_TEST_WCHAR_T_FALSE=
6170 os_include_dir="os/hpux"
6171 cat >> confdefs.h <<\EOF
6172 #define HAVE_COPYSIGN 1
6175 cat >> confdefs.h <<\EOF
6176 #define HAVE_COPYSIGNF 1
6179 cat >> confdefs.h <<\EOF
6180 #define HAVE_FREXPF 1
6183 cat >> confdefs.h <<\EOF
6184 #define HAVE_HYPOT 1
6187 case "$target" in
6188 *-hpux10*)
6189 cat >> confdefs.h <<\EOF
6190 #define HAVE_FINITE 1
6193 cat >> confdefs.h <<\EOF
6194 #define HAVE_FINITEF 1
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_ISINF 1
6201 cat >> confdefs.h <<\EOF
6202 #define HAVE_ISINFF 1
6205 cat >> confdefs.h <<\EOF
6206 #define HAVE_ISNAN 1
6209 cat >> confdefs.h <<\EOF
6210 #define HAVE_ISNANF 1
6214 esac
6217 *-netbsd*)
6218 # Check for available headers.
6219 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6220 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6221 fp.h locale.h float.h inttypes.h
6223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6225 echo "configure:6226: checking for $ac_hdr" >&5
6226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6228 else
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <$ac_hdr>
6234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6235 { (eval echo configure:6236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6237 if test -z "$ac_err"; then
6238 rm -rf conftest*
6239 eval "ac_cv_header_$ac_safe=yes"
6240 else
6241 echo "$ac_err" >&5
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 rm -rf conftest*
6245 eval "ac_cv_header_$ac_safe=no"
6247 rm -f conftest*
6249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6252 cat >> confdefs.h <<EOF
6253 #define $ac_tr_hdr 1
6256 else
6257 echo "$ac_t""no" 1>&6
6259 done
6261 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6264 # If we're not using GNU ld, then there's no point in even trying these
6265 # tests. Check for that first. We should have already tested for gld
6266 # by now (in libtool), but require it now just to be safe...
6267 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6268 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6271 # The name set by libtool depends on the version of libtool. Shame on us
6272 # for depending on an impl detail, but c'est la vie. Older versions used
6273 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6274 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6275 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6276 # set (hence we're using an older libtool), then set it.
6277 if test x${with_gnu_ld+set} != xset; then
6278 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6279 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6280 with_gnu_ld=no
6281 else
6282 with_gnu_ld=$ac_cv_prog_gnu_ld
6286 # Start by getting the version number. I think the libtool test already
6287 # does some of this, but throws away the result.
6289 ldver=`$LD --version 2>/dev/null | head -1 | \
6290 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6292 glibcpp_gnu_ld_version=`echo $ldver | \
6293 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6295 # Set --gc-sections.
6296 if test "$with_gnu_ld" = "notbroken"; then
6297 # GNU ld it is! Joy and bunny rabbits!
6299 # All these tests are for C++; save the language and the compiler flags.
6300 # Need to do this so that g++ won't try to link in libstdc++
6301 ac_test_CFLAGS="${CFLAGS+set}"
6302 ac_save_CFLAGS="$CFLAGS"
6303 CFLAGS='-x c++ -Wl,--gc-sections'
6305 # Check for -Wl,--gc-sections
6306 # XXX This test is broken at the moment, as symbols required for
6307 # linking are now in libsupc++ (not built yet.....). In addition,
6308 # this test has cored on solaris in the past. In addition,
6309 # --gc-sections doesn't really work at the moment (keeps on discarding
6310 # used sections, first .eh_frame and now some of the glibc sections for
6311 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6312 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6313 echo "configure:6314: checking for ld that supports -Wl,--gc-sections" >&5
6314 if test "$cross_compiling" = yes; then
6315 ac_sectionLDflags=yes
6316 else
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6321 int main(void)
6323 try { throw 1; }
6324 catch (...) { };
6325 return 0;
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6330 then
6331 ac_sectionLDflags=yes
6332 else
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 rm -fr conftest*
6336 ac_sectionLDflags=no
6338 rm -fr conftest*
6341 if test "$ac_test_CFLAGS" = set; then
6342 CFLAGS="$ac_save_CFLAGS"
6343 else
6344 # this is the suspicious part
6345 CFLAGS=''
6347 if test "$ac_sectionLDflags" = "yes"; then
6348 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6350 echo "$ac_t""$ac_sectionLDflags" 1>&6
6353 # Set linker optimization flags.
6354 if test x"$with_gnu_ld" = x"yes"; then
6355 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6362 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6363 echo "configure:6364: checking for main in -lm" >&5
6364 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6367 else
6368 ac_save_LIBS="$LIBS"
6369 LIBS="-lm $LIBS"
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6374 int main() {
6375 main()
6376 ; return 0; }
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 rm -rf conftest*
6380 eval "ac_cv_lib_$ac_lib_var=yes"
6381 else
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6384 rm -rf conftest*
6385 eval "ac_cv_lib_$ac_lib_var=no"
6387 rm -f conftest*
6388 LIBS="$ac_save_LIBS"
6391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6392 echo "$ac_t""yes" 1>&6
6393 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6395 cat >> confdefs.h <<EOF
6396 #define $ac_tr_lib 1
6399 LIBS="-lm $LIBS"
6401 else
6402 echo "$ac_t""no" 1>&6
6405 for ac_func in nan copysignf
6407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6408 echo "configure:6409: checking for $ac_func" >&5
6409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6411 else
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 /* System header to define __stub macros and hopefully few prototypes,
6416 which can conflict with char $ac_func(); below. */
6417 #include <assert.h>
6418 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6421 char $ac_func();
6423 int main() {
6425 /* The GNU C library defines this for functions which it implements
6426 to always fail with ENOSYS. Some functions are actually named
6427 something starting with __ and the normal name is an alias. */
6428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429 choke me
6430 #else
6431 $ac_func();
6432 #endif
6434 ; return 0; }
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 rm -rf conftest*
6438 eval "ac_cv_func_$ac_func=yes"
6439 else
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 rm -rf conftest*
6443 eval "ac_cv_func_$ac_func=no"
6445 rm -f conftest*
6448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6451 cat >> confdefs.h <<EOF
6452 #define $ac_tr_func 1
6455 else
6456 echo "$ac_t""no" 1>&6
6457 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6459 done
6462 for ac_func in __signbit
6464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6465 echo "configure:6466: checking for $ac_func" >&5
6466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6467 echo $ac_n "(cached) $ac_c" 1>&6
6468 else
6469 cat > conftest.$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char $ac_func(); below. */
6474 #include <assert.h>
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char $ac_func();
6480 int main() {
6482 /* The GNU C library defines this for functions which it implements
6483 to always fail with ENOSYS. Some functions are actually named
6484 something starting with __ and the normal name is an alias. */
6485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6486 choke me
6487 #else
6488 $ac_func();
6489 #endif
6491 ; return 0; }
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 rm -rf conftest*
6495 eval "ac_cv_func_$ac_func=yes"
6496 else
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 rm -rf conftest*
6500 eval "ac_cv_func_$ac_func=no"
6502 rm -f conftest*
6505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6508 cat >> confdefs.h <<EOF
6509 #define $ac_tr_func 1
6512 else
6513 echo "$ac_t""no" 1>&6
6514 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6516 done
6518 for ac_func in __signbitf
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func(); below. */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char $ac_func();
6536 int main() {
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 $ac_func();
6545 #endif
6547 ; return 0; }
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 rm -rf conftest*
6551 eval "ac_cv_func_$ac_func=yes"
6552 else
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 rm -rf conftest*
6556 eval "ac_cv_func_$ac_func=no"
6558 rm -f conftest*
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564 cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6568 else
6569 echo "$ac_t""no" 1>&6
6570 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6572 done
6575 if test x$ac_cv_func_copysignl = x"yes"; then
6576 for ac_func in __signbitl
6578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_func" >&5
6580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char $ac_func(); below. */
6588 #include <assert.h>
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char $ac_func();
6594 int main() {
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 $ac_func();
6603 #endif
6605 ; return 0; }
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 rm -rf conftest*
6609 eval "ac_cv_func_$ac_func=yes"
6610 else
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 rm -rf conftest*
6614 eval "ac_cv_func_$ac_func=no"
6616 rm -f conftest*
6619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6620 echo "$ac_t""yes" 1>&6
6621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6622 cat >> confdefs.h <<EOF
6623 #define $ac_tr_func 1
6626 else
6627 echo "$ac_t""no" 1>&6
6628 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6630 done
6634 if test -n "$LIBMATHOBJS"; then
6635 need_libmath=yes
6640 if test "$need_libmath" = yes; then
6641 GLIBCPP_BUILD_LIBMATH_TRUE=
6642 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6643 else
6644 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6645 GLIBCPP_BUILD_LIBMATH_FALSE=
6649 enable_wchar_t=no
6651 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6652 echo "configure:6653: checking for mbstate_t" >&5
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6656 #include <wchar.h>
6657 int main() {
6658 mbstate_t teststate;
6659 ; return 0; }
6661 if { (eval echo configure:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6662 rm -rf conftest*
6663 have_mbstate_t=yes
6664 else
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 rm -rf conftest*
6668 have_mbstate_t=no
6670 rm -f conftest*
6671 echo "$ac_t""$have_mbstate_t" 1>&6
6672 if test x"$have_mbstate_t" = xyes; then
6673 cat >> confdefs.h <<\EOF
6674 #define HAVE_MBSTATE_T 1
6679 for ac_hdr in wchar.h
6681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6683 echo "configure:6684: checking for $ac_hdr" >&5
6684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6
6686 else
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 #include <$ac_hdr>
6692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6693 { (eval echo configure:6694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6695 if test -z "$ac_err"; then
6696 rm -rf conftest*
6697 eval "ac_cv_header_$ac_safe=yes"
6698 else
6699 echo "$ac_err" >&5
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 eval "ac_cv_header_$ac_safe=no"
6705 rm -f conftest*
6707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6708 echo "$ac_t""yes" 1>&6
6709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6710 cat >> confdefs.h <<EOF
6711 #define $ac_tr_hdr 1
6713 ac_has_wchar_h=yes
6714 else
6715 echo "$ac_t""no" 1>&6
6716 ac_has_wchar_h=no
6718 done
6720 for ac_hdr in wctype.h
6722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6724 echo "configure:6725: checking for $ac_hdr" >&5
6725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6727 else
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 #include <$ac_hdr>
6733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6734 { (eval echo configure:6735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6736 if test -z "$ac_err"; then
6737 rm -rf conftest*
6738 eval "ac_cv_header_$ac_safe=yes"
6739 else
6740 echo "$ac_err" >&5
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 rm -rf conftest*
6744 eval "ac_cv_header_$ac_safe=no"
6746 rm -f conftest*
6748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6749 echo "$ac_t""yes" 1>&6
6750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6751 cat >> confdefs.h <<EOF
6752 #define $ac_tr_hdr 1
6754 ac_has_wctype_h=yes
6755 else
6756 echo "$ac_t""no" 1>&6
6757 ac_has_wctype_h=no
6759 done
6762 if test x"$ac_has_wchar_h" = xyes &&
6763 test x"$ac_has_wctype_h" = xyes &&
6764 test x"$enable_c_mbchar" != xno; then
6766 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6767 echo "configure:6768: checking for WCHAR_MIN and WCHAR_MAX" >&5
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 #include <wchar.h>
6772 int main() {
6773 int i = WCHAR_MIN; int j = WCHAR_MAX;
6774 ; return 0; }
6776 if { (eval echo configure:6777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6777 rm -rf conftest*
6778 has_wchar_minmax=yes
6779 else
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 rm -rf conftest*
6783 has_wchar_minmax=no
6785 rm -f conftest*
6786 echo "$ac_t""$has_wchar_minmax" 1>&6
6788 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6789 echo "configure:6790: checking for WEOF" >&5
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6794 #include <wchar.h>
6795 #include <stddef.h>
6796 int main() {
6797 wint_t i = WEOF;
6798 ; return 0; }
6800 if { (eval echo configure:6801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6801 rm -rf conftest*
6802 has_weof=yes
6803 else
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 rm -rf conftest*
6807 has_weof=no
6809 rm -f conftest*
6810 echo "$ac_t""$has_weof" 1>&6
6812 ac_wfuncs=yes
6813 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6816 echo "configure:6817: checking for $ac_func" >&5
6817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6819 else
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* System header to define __stub macros and hopefully few prototypes,
6824 which can conflict with char $ac_func(); below. */
6825 #include <assert.h>
6826 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char $ac_func();
6831 int main() {
6833 /* The GNU C library defines this for functions which it implements
6834 to always fail with ENOSYS. Some functions are actually named
6835 something starting with __ and the normal name is an alias. */
6836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 choke me
6838 #else
6839 $ac_func();
6840 #endif
6842 ; return 0; }
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 rm -rf conftest*
6846 eval "ac_cv_func_$ac_func=yes"
6847 else
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 eval "ac_cv_func_$ac_func=no"
6853 rm -f conftest*
6856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6859 cat >> confdefs.h <<EOF
6860 #define $ac_tr_func 1
6863 else
6864 echo "$ac_t""no" 1>&6
6866 ac_wfuncs=no
6868 done
6871 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6872 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6873 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6874 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6875 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6876 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6879 echo "configure:6880: checking for $ac_func" >&5
6880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6882 else
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* System header to define __stub macros and hopefully few prototypes,
6887 which can conflict with char $ac_func(); below. */
6888 #include <assert.h>
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892 char $ac_func();
6894 int main() {
6896 /* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 choke me
6901 #else
6902 $ac_func();
6903 #endif
6905 ; return 0; }
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6908 rm -rf conftest*
6909 eval "ac_cv_func_$ac_func=yes"
6910 else
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 rm -rf conftest*
6914 eval "ac_cv_func_$ac_func=no"
6916 rm -f conftest*
6919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6922 cat >> confdefs.h <<EOF
6923 #define $ac_tr_func 1
6926 else
6927 echo "$ac_t""no" 1>&6
6929 ac_wfuncs=no
6931 done
6934 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6935 echo "configure:6936: checking for ISO C99 wchar_t support" >&5
6936 if test x"$has_weof" = xyes &&
6937 test x"$has_wchar_minmax" = xyes &&
6938 test x"$ac_wfuncs" = xyes; then
6939 ac_isoC99_wchar_t=yes
6940 else
6941 ac_isoC99_wchar_t=no
6943 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6945 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6946 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6947 echo "configure:6948: checking for iconv.h" >&5
6948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6949 echo $ac_n "(cached) $ac_c" 1>&6
6950 else
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6954 #include <iconv.h>
6956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6957 { (eval echo configure:6958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6959 if test -z "$ac_err"; then
6960 rm -rf conftest*
6961 eval "ac_cv_header_$ac_safe=yes"
6962 else
6963 echo "$ac_err" >&5
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6966 rm -rf conftest*
6967 eval "ac_cv_header_$ac_safe=no"
6969 rm -f conftest*
6971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_has_iconv_h=yes
6974 else
6975 echo "$ac_t""no" 1>&6
6976 ac_has_iconv_h=no
6979 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6980 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6981 echo "configure:6982: checking for langinfo.h" >&5
6982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6984 else
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 #include <langinfo.h>
6990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6991 { (eval echo configure:6992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6993 if test -z "$ac_err"; then
6994 rm -rf conftest*
6995 eval "ac_cv_header_$ac_safe=yes"
6996 else
6997 echo "$ac_err" >&5
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7000 rm -rf conftest*
7001 eval "ac_cv_header_$ac_safe=no"
7003 rm -f conftest*
7005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 ac_has_langinfo_h=yes
7008 else
7009 echo "$ac_t""no" 1>&6
7010 ac_has_langinfo_h=no
7014 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7015 echo "configure:7016: checking for iconv in -liconv" >&5
7016 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7019 else
7020 ac_save_LIBS="$LIBS"
7021 LIBS="-liconv $LIBS"
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */
7028 char iconv();
7030 int main() {
7031 iconv()
7032 ; return 0; }
7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7035 rm -rf conftest*
7036 eval "ac_cv_lib_$ac_lib_var=yes"
7037 else
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7040 rm -rf conftest*
7041 eval "ac_cv_lib_$ac_lib_var=no"
7043 rm -f conftest*
7044 LIBS="$ac_save_LIBS"
7047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 libiconv="-liconv"
7050 else
7051 echo "$ac_t""no" 1>&6
7054 ac_save_LIBS="$LIBS"
7055 LIBS="$LIBS $libiconv"
7057 for ac_func in iconv_open iconv_close iconv nl_langinfo
7059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7060 echo "configure:7061: checking for $ac_func" >&5
7061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7063 else
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* System header to define __stub macros and hopefully few prototypes,
7068 which can conflict with char $ac_func(); below. */
7069 #include <assert.h>
7070 /* Override any gcc2 internal prototype to avoid an error. */
7071 /* We use char because int might match the return type of a gcc2
7072 builtin and then its argument prototype would still apply. */
7073 char $ac_func();
7075 int main() {
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7081 choke me
7082 #else
7083 $ac_func();
7084 #endif
7086 ; return 0; }
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7089 rm -rf conftest*
7090 eval "ac_cv_func_$ac_func=yes"
7091 else
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7094 rm -rf conftest*
7095 eval "ac_cv_func_$ac_func=no"
7097 rm -f conftest*
7100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7101 echo "$ac_t""yes" 1>&6
7102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7103 cat >> confdefs.h <<EOF
7104 #define $ac_tr_func 1
7107 ac_XPG2funcs=yes
7108 else
7109 echo "$ac_t""no" 1>&6
7110 ac_XPG2funcs=no
7112 done
7115 LIBS="$ac_save_LIBS"
7117 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7118 echo "configure:7119: checking for XPG2 wchar_t support" >&5
7119 if test x"$ac_has_iconv_h" = xyes &&
7120 test x"$ac_has_langinfo_h" = xyes &&
7121 test x"$ac_XPG2funcs" = xyes; then
7122 ac_XPG2_wchar_t=yes
7123 else
7124 ac_XPG2_wchar_t=no
7126 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7128 if test x"$ac_isoC99_wchar_t" = xyes &&
7129 test x"$ac_XPG2_wchar_t" = xyes; then
7130 cat >> confdefs.h <<\EOF
7131 #define _GLIBCPP_USE_WCHAR_T 1
7134 enable_wchar_t=yes
7137 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7138 echo "configure:7139: checking for enabled wchar_t specializations" >&5
7139 echo "$ac_t""$enable_wchar_t" 1>&6
7142 if test "$enable_wchar_t" = yes; then
7143 GLIBCPP_TEST_WCHAR_T_TRUE=
7144 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7145 else
7146 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7147 GLIBCPP_TEST_WCHAR_T_FALSE=
7150 os_include_dir="os/bsd/netbsd"
7151 cat >> confdefs.h <<\EOF
7152 #define HAVE_COPYSIGN 1
7155 cat >> confdefs.h <<\EOF
7156 #define HAVE_COPYSIGNF 1
7159 cat >> confdefs.h <<\EOF
7160 #define HAVE_FINITEF 1
7163 cat >> confdefs.h <<\EOF
7164 #define HAVE_FINITE 1
7167 cat >> confdefs.h <<\EOF
7168 #define HAVE_FREXPF 1
7171 cat >> confdefs.h <<\EOF
7172 #define HAVE_HYPOTF 1
7175 cat >> confdefs.h <<\EOF
7176 #define HAVE_ISINF 1
7179 cat >> confdefs.h <<\EOF
7180 #define HAVE_ISINFF 1
7183 cat >> confdefs.h <<\EOF
7184 #define HAVE_ISNAN 1
7187 cat >> confdefs.h <<\EOF
7188 #define HAVE_ISNANF 1
7191 if test x"long_double_math_on_this_cpu" = x"yes"; then
7192 cat >> confdefs.h <<\EOF
7193 #define HAVE_FINITEL 1
7196 cat >> confdefs.h <<\EOF
7197 #define HAVE_ISINFL 1
7200 cat >> confdefs.h <<\EOF
7201 #define HAVE_ISNANL 1
7206 *-freebsd*)
7207 # Check for available headers.
7208 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7209 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7210 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7211 sys/time.h unistd.h
7213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7215 echo "configure:7216: checking for $ac_hdr" >&5
7216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 #include <$ac_hdr>
7224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7225 { (eval echo configure:7226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7227 if test -z "$ac_err"; then
7228 rm -rf conftest*
7229 eval "ac_cv_header_$ac_safe=yes"
7230 else
7231 echo "$ac_err" >&5
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 rm -rf conftest*
7235 eval "ac_cv_header_$ac_safe=no"
7237 rm -f conftest*
7239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7242 cat >> confdefs.h <<EOF
7243 #define $ac_tr_hdr 1
7246 else
7247 echo "$ac_t""no" 1>&6
7249 done
7251 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7254 # If we're not using GNU ld, then there's no point in even trying these
7255 # tests. Check for that first. We should have already tested for gld
7256 # by now (in libtool), but require it now just to be safe...
7257 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7258 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7261 # The name set by libtool depends on the version of libtool. Shame on us
7262 # for depending on an impl detail, but c'est la vie. Older versions used
7263 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7264 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7265 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7266 # set (hence we're using an older libtool), then set it.
7267 if test x${with_gnu_ld+set} != xset; then
7268 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7269 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7270 with_gnu_ld=no
7271 else
7272 with_gnu_ld=$ac_cv_prog_gnu_ld
7276 # Start by getting the version number. I think the libtool test already
7277 # does some of this, but throws away the result.
7279 ldver=`$LD --version 2>/dev/null | head -1 | \
7280 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7282 glibcpp_gnu_ld_version=`echo $ldver | \
7283 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7285 # Set --gc-sections.
7286 if test "$with_gnu_ld" = "notbroken"; then
7287 # GNU ld it is! Joy and bunny rabbits!
7289 # All these tests are for C++; save the language and the compiler flags.
7290 # Need to do this so that g++ won't try to link in libstdc++
7291 ac_test_CFLAGS="${CFLAGS+set}"
7292 ac_save_CFLAGS="$CFLAGS"
7293 CFLAGS='-x c++ -Wl,--gc-sections'
7295 # Check for -Wl,--gc-sections
7296 # XXX This test is broken at the moment, as symbols required for
7297 # linking are now in libsupc++ (not built yet.....). In addition,
7298 # this test has cored on solaris in the past. In addition,
7299 # --gc-sections doesn't really work at the moment (keeps on discarding
7300 # used sections, first .eh_frame and now some of the glibc sections for
7301 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7302 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7303 echo "configure:7304: checking for ld that supports -Wl,--gc-sections" >&5
7304 if test "$cross_compiling" = yes; then
7305 ac_sectionLDflags=yes
7306 else
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7311 int main(void)
7313 try { throw 1; }
7314 catch (...) { };
7315 return 0;
7319 if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7320 then
7321 ac_sectionLDflags=yes
7322 else
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 rm -fr conftest*
7326 ac_sectionLDflags=no
7328 rm -fr conftest*
7331 if test "$ac_test_CFLAGS" = set; then
7332 CFLAGS="$ac_save_CFLAGS"
7333 else
7334 # this is the suspicious part
7335 CFLAGS=''
7337 if test "$ac_sectionLDflags" = "yes"; then
7338 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7340 echo "$ac_t""$ac_sectionLDflags" 1>&6
7343 # Set linker optimization flags.
7344 if test x"$with_gnu_ld" = x"yes"; then
7345 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7352 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7353 echo "configure:7354: checking for main in -lm" >&5
7354 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7357 else
7358 ac_save_LIBS="$LIBS"
7359 LIBS="-lm $LIBS"
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7364 int main() {
7365 main()
7366 ; return 0; }
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 rm -rf conftest*
7370 eval "ac_cv_lib_$ac_lib_var=yes"
7371 else
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 rm -rf conftest*
7375 eval "ac_cv_lib_$ac_lib_var=no"
7377 rm -f conftest*
7378 LIBS="$ac_save_LIBS"
7381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7382 echo "$ac_t""yes" 1>&6
7383 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7384 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7385 cat >> confdefs.h <<EOF
7386 #define $ac_tr_lib 1
7389 LIBS="-lm $LIBS"
7391 else
7392 echo "$ac_t""no" 1>&6
7395 for ac_func in nan copysignf
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7401 else
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7407 #include <assert.h>
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7411 char $ac_func();
7413 int main() {
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 choke me
7420 #else
7421 $ac_func();
7422 #endif
7424 ; return 0; }
7426 if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7427 rm -rf conftest*
7428 eval "ac_cv_func_$ac_func=yes"
7429 else
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 rm -rf conftest*
7433 eval "ac_cv_func_$ac_func=no"
7435 rm -f conftest*
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441 cat >> confdefs.h <<EOF
7442 #define $ac_tr_func 1
7445 else
7446 echo "$ac_t""no" 1>&6
7447 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7449 done
7452 for ac_func in __signbit
7454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7455 echo "configure:7456: checking for $ac_func" >&5
7456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7458 else
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* System header to define __stub macros and hopefully few prototypes,
7463 which can conflict with char $ac_func(); below. */
7464 #include <assert.h>
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7468 char $ac_func();
7470 int main() {
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7476 choke me
7477 #else
7478 $ac_func();
7479 #endif
7481 ; return 0; }
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7484 rm -rf conftest*
7485 eval "ac_cv_func_$ac_func=yes"
7486 else
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7489 rm -rf conftest*
7490 eval "ac_cv_func_$ac_func=no"
7492 rm -f conftest*
7495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7498 cat >> confdefs.h <<EOF
7499 #define $ac_tr_func 1
7502 else
7503 echo "$ac_t""no" 1>&6
7504 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7506 done
7508 for ac_func in __signbitf
7510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_func" >&5
7512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7514 else
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func(); below. */
7520 #include <assert.h>
7521 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7524 char $ac_func();
7526 int main() {
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7532 choke me
7533 #else
7534 $ac_func();
7535 #endif
7537 ; return 0; }
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 rm -rf conftest*
7541 eval "ac_cv_func_$ac_func=yes"
7542 else
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 rm -rf conftest*
7546 eval "ac_cv_func_$ac_func=no"
7548 rm -f conftest*
7551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7554 cat >> confdefs.h <<EOF
7555 #define $ac_tr_func 1
7558 else
7559 echo "$ac_t""no" 1>&6
7560 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7562 done
7565 if test x$ac_cv_func_copysignl = x"yes"; then
7566 for ac_func in __signbitl
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7572 else
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7578 #include <assert.h>
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char $ac_func();
7584 int main() {
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590 choke me
7591 #else
7592 $ac_func();
7593 #endif
7595 ; return 0; }
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=yes"
7600 else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=no"
7606 rm -f conftest*
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_func 1
7616 else
7617 echo "$ac_t""no" 1>&6
7618 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7620 done
7624 if test -n "$LIBMATHOBJS"; then
7625 need_libmath=yes
7630 if test "$need_libmath" = yes; then
7631 GLIBCPP_BUILD_LIBMATH_TRUE=
7632 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7633 else
7634 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7635 GLIBCPP_BUILD_LIBMATH_FALSE=
7639 enable_wchar_t=no
7641 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7642 echo "configure:7643: checking for mbstate_t" >&5
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 #include <wchar.h>
7647 int main() {
7648 mbstate_t teststate;
7649 ; return 0; }
7651 if { (eval echo configure:7652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7652 rm -rf conftest*
7653 have_mbstate_t=yes
7654 else
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7657 rm -rf conftest*
7658 have_mbstate_t=no
7660 rm -f conftest*
7661 echo "$ac_t""$have_mbstate_t" 1>&6
7662 if test x"$have_mbstate_t" = xyes; then
7663 cat >> confdefs.h <<\EOF
7664 #define HAVE_MBSTATE_T 1
7669 for ac_hdr in wchar.h
7671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7673 echo "configure:7674: checking for $ac_hdr" >&5
7674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7675 echo $ac_n "(cached) $ac_c" 1>&6
7676 else
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 #include <$ac_hdr>
7682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7683 { (eval echo configure:7684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7685 if test -z "$ac_err"; then
7686 rm -rf conftest*
7687 eval "ac_cv_header_$ac_safe=yes"
7688 else
7689 echo "$ac_err" >&5
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 rm -rf conftest*
7693 eval "ac_cv_header_$ac_safe=no"
7695 rm -f conftest*
7697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7700 cat >> confdefs.h <<EOF
7701 #define $ac_tr_hdr 1
7703 ac_has_wchar_h=yes
7704 else
7705 echo "$ac_t""no" 1>&6
7706 ac_has_wchar_h=no
7708 done
7710 for ac_hdr in wctype.h
7712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7714 echo "configure:7715: checking for $ac_hdr" >&5
7715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7717 else
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 #include <$ac_hdr>
7723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7724 { (eval echo configure:7725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7726 if test -z "$ac_err"; then
7727 rm -rf conftest*
7728 eval "ac_cv_header_$ac_safe=yes"
7729 else
7730 echo "$ac_err" >&5
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 rm -rf conftest*
7734 eval "ac_cv_header_$ac_safe=no"
7736 rm -f conftest*
7738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7739 echo "$ac_t""yes" 1>&6
7740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7741 cat >> confdefs.h <<EOF
7742 #define $ac_tr_hdr 1
7744 ac_has_wctype_h=yes
7745 else
7746 echo "$ac_t""no" 1>&6
7747 ac_has_wctype_h=no
7749 done
7752 if test x"$ac_has_wchar_h" = xyes &&
7753 test x"$ac_has_wctype_h" = xyes &&
7754 test x"$enable_c_mbchar" != xno; then
7756 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7757 echo "configure:7758: checking for WCHAR_MIN and WCHAR_MAX" >&5
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 #include <wchar.h>
7762 int main() {
7763 int i = WCHAR_MIN; int j = WCHAR_MAX;
7764 ; return 0; }
7766 if { (eval echo configure:7767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7767 rm -rf conftest*
7768 has_wchar_minmax=yes
7769 else
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 rm -rf conftest*
7773 has_wchar_minmax=no
7775 rm -f conftest*
7776 echo "$ac_t""$has_wchar_minmax" 1>&6
7778 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7779 echo "configure:7780: checking for WEOF" >&5
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7784 #include <wchar.h>
7785 #include <stddef.h>
7786 int main() {
7787 wint_t i = WEOF;
7788 ; return 0; }
7790 if { (eval echo configure:7791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7791 rm -rf conftest*
7792 has_weof=yes
7793 else
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 rm -rf conftest*
7797 has_weof=no
7799 rm -f conftest*
7800 echo "$ac_t""$has_weof" 1>&6
7802 ac_wfuncs=yes
7803 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_func" >&5
7807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7809 else
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* System header to define __stub macros and hopefully few prototypes,
7814 which can conflict with char $ac_func(); below. */
7815 #include <assert.h>
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819 char $ac_func();
7821 int main() {
7823 /* The GNU C library defines this for functions which it implements
7824 to always fail with ENOSYS. Some functions are actually named
7825 something starting with __ and the normal name is an alias. */
7826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7827 choke me
7828 #else
7829 $ac_func();
7830 #endif
7832 ; return 0; }
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7835 rm -rf conftest*
7836 eval "ac_cv_func_$ac_func=yes"
7837 else
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 rm -rf conftest*
7841 eval "ac_cv_func_$ac_func=no"
7843 rm -f conftest*
7846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7847 echo "$ac_t""yes" 1>&6
7848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7849 cat >> confdefs.h <<EOF
7850 #define $ac_tr_func 1
7853 else
7854 echo "$ac_t""no" 1>&6
7856 ac_wfuncs=no
7858 done
7861 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7862 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7863 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7864 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7865 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7866 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7869 echo "configure:7870: checking for $ac_func" >&5
7870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7872 else
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* System header to define __stub macros and hopefully few prototypes,
7877 which can conflict with char $ac_func(); below. */
7878 #include <assert.h>
7879 /* Override any gcc2 internal prototype to avoid an error. */
7880 /* We use char because int might match the return type of a gcc2
7881 builtin and then its argument prototype would still apply. */
7882 char $ac_func();
7884 int main() {
7886 /* The GNU C library defines this for functions which it implements
7887 to always fail with ENOSYS. Some functions are actually named
7888 something starting with __ and the normal name is an alias. */
7889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7890 choke me
7891 #else
7892 $ac_func();
7893 #endif
7895 ; return 0; }
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7898 rm -rf conftest*
7899 eval "ac_cv_func_$ac_func=yes"
7900 else
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7903 rm -rf conftest*
7904 eval "ac_cv_func_$ac_func=no"
7906 rm -f conftest*
7909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7910 echo "$ac_t""yes" 1>&6
7911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7912 cat >> confdefs.h <<EOF
7913 #define $ac_tr_func 1
7916 else
7917 echo "$ac_t""no" 1>&6
7919 ac_wfuncs=no
7921 done
7924 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7925 echo "configure:7926: checking for ISO C99 wchar_t support" >&5
7926 if test x"$has_weof" = xyes &&
7927 test x"$has_wchar_minmax" = xyes &&
7928 test x"$ac_wfuncs" = xyes; then
7929 ac_isoC99_wchar_t=yes
7930 else
7931 ac_isoC99_wchar_t=no
7933 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7935 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7936 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7937 echo "configure:7938: checking for iconv.h" >&5
7938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7940 else
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 #include <iconv.h>
7946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7947 { (eval echo configure:7948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7949 if test -z "$ac_err"; then
7950 rm -rf conftest*
7951 eval "ac_cv_header_$ac_safe=yes"
7952 else
7953 echo "$ac_err" >&5
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 rm -rf conftest*
7957 eval "ac_cv_header_$ac_safe=no"
7959 rm -f conftest*
7961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7962 echo "$ac_t""yes" 1>&6
7963 ac_has_iconv_h=yes
7964 else
7965 echo "$ac_t""no" 1>&6
7966 ac_has_iconv_h=no
7969 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7970 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7971 echo "configure:7972: checking for langinfo.h" >&5
7972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 #include <langinfo.h>
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then
7984 rm -rf conftest*
7985 eval "ac_cv_header_$ac_safe=yes"
7986 else
7987 echo "$ac_err" >&5
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 rm -rf conftest*
7991 eval "ac_cv_header_$ac_safe=no"
7993 rm -f conftest*
7995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7996 echo "$ac_t""yes" 1>&6
7997 ac_has_langinfo_h=yes
7998 else
7999 echo "$ac_t""no" 1>&6
8000 ac_has_langinfo_h=no
8004 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8005 echo "configure:8006: checking for iconv in -liconv" >&5
8006 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8009 else
8010 ac_save_LIBS="$LIBS"
8011 LIBS="-liconv $LIBS"
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char iconv();
8020 int main() {
8021 iconv()
8022 ; return 0; }
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8025 rm -rf conftest*
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8027 else
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 rm -rf conftest*
8031 eval "ac_cv_lib_$ac_lib_var=no"
8033 rm -f conftest*
8034 LIBS="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 libiconv="-liconv"
8040 else
8041 echo "$ac_t""no" 1>&6
8044 ac_save_LIBS="$LIBS"
8045 LIBS="$LIBS $libiconv"
8047 for ac_func in iconv_open iconv_close iconv nl_langinfo
8049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_func" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char $ac_func(); below. */
8059 #include <assert.h>
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8063 char $ac_func();
8065 int main() {
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8071 choke me
8072 #else
8073 $ac_func();
8074 #endif
8076 ; return 0; }
8078 if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 rm -rf conftest*
8080 eval "ac_cv_func_$ac_func=yes"
8081 else
8082 echo "configure: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8084 rm -rf conftest*
8085 eval "ac_cv_func_$ac_func=no"
8087 rm -f conftest*
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8093 cat >> confdefs.h <<EOF
8094 #define $ac_tr_func 1
8097 ac_XPG2funcs=yes
8098 else
8099 echo "$ac_t""no" 1>&6
8100 ac_XPG2funcs=no
8102 done
8105 LIBS="$ac_save_LIBS"
8107 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8108 echo "configure:8109: checking for XPG2 wchar_t support" >&5
8109 if test x"$ac_has_iconv_h" = xyes &&
8110 test x"$ac_has_langinfo_h" = xyes &&
8111 test x"$ac_XPG2funcs" = xyes; then
8112 ac_XPG2_wchar_t=yes
8113 else
8114 ac_XPG2_wchar_t=no
8116 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8118 if test x"$ac_isoC99_wchar_t" = xyes &&
8119 test x"$ac_XPG2_wchar_t" = xyes; then
8120 cat >> confdefs.h <<\EOF
8121 #define _GLIBCPP_USE_WCHAR_T 1
8124 enable_wchar_t=yes
8127 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8128 echo "configure:8129: checking for enabled wchar_t specializations" >&5
8129 echo "$ac_t""$enable_wchar_t" 1>&6
8132 if test "$enable_wchar_t" = yes; then
8133 GLIBCPP_TEST_WCHAR_T_TRUE=
8134 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8135 else
8136 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8137 GLIBCPP_TEST_WCHAR_T_FALSE=
8140 os_include_dir="os/bsd/freebsd"
8141 cat >> confdefs.h <<\EOF
8142 #define HAVE_LC_MESSAGES 1
8145 cat >> confdefs.h <<\EOF
8146 #define HAVE_DRAND48 1
8149 cat >> confdefs.h <<\EOF
8150 #define HAVE_GETPAGESIZE 1
8153 cat >> confdefs.h <<\EOF
8154 #define HAVE_SETENV 1
8157 cat >> confdefs.h <<\EOF
8158 #define HAVE_SIGSETJMP 1
8161 cat >> confdefs.h <<\EOF
8162 #define HAVE_COPYSIGN 1
8165 cat >> confdefs.h <<\EOF
8166 #define HAVE_COPYSIGNF 1
8169 cat >> confdefs.h <<\EOF
8170 #define HAVE_FINITEF 1
8173 cat >> confdefs.h <<\EOF
8174 #define HAVE_FINITE 1
8177 cat >> confdefs.h <<\EOF
8178 #define HAVE_FREXPF 1
8181 cat >> confdefs.h <<\EOF
8182 #define HAVE_HYPOT 1
8185 cat >> confdefs.h <<\EOF
8186 #define HAVE_HYPOTF 1
8189 cat >> confdefs.h <<\EOF
8190 #define HAVE_ISINF 1
8193 cat >> confdefs.h <<\EOF
8194 #define HAVE_ISNAN 1
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_ISNANF 1
8201 if test x"long_double_math_on_this_cpu" = x"yes"; then
8202 cat >> confdefs.h <<\EOF
8203 #define HAVE_FINITEL 1
8206 cat >> confdefs.h <<\EOF
8207 #define HAVE_ISINFL 1
8210 cat >> confdefs.h <<\EOF
8211 #define HAVE_ISNANL 1
8216 *-mingw32*)
8217 for ac_hdr in sys/types.h locale.h float.h
8219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8221 echo "configure:8222: checking for $ac_hdr" >&5
8222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8224 else
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 #include <$ac_hdr>
8230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8231 { (eval echo configure:8232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8233 if test -z "$ac_err"; then
8234 rm -rf conftest*
8235 eval "ac_cv_header_$ac_safe=yes"
8236 else
8237 echo "$ac_err" >&5
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 rm -rf conftest*
8241 eval "ac_cv_header_$ac_safe=no"
8243 rm -f conftest*
8245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8246 echo "$ac_t""yes" 1>&6
8247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8248 cat >> confdefs.h <<EOF
8249 #define $ac_tr_hdr 1
8252 else
8253 echo "$ac_t""no" 1>&6
8255 done
8258 # If we're not using GNU ld, then there's no point in even trying these
8259 # tests. Check for that first. We should have already tested for gld
8260 # by now (in libtool), but require it now just to be safe...
8261 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8262 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8265 # The name set by libtool depends on the version of libtool. Shame on us
8266 # for depending on an impl detail, but c'est la vie. Older versions used
8267 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8268 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8269 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8270 # set (hence we're using an older libtool), then set it.
8271 if test x${with_gnu_ld+set} != xset; then
8272 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8273 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8274 with_gnu_ld=no
8275 else
8276 with_gnu_ld=$ac_cv_prog_gnu_ld
8280 # Start by getting the version number. I think the libtool test already
8281 # does some of this, but throws away the result.
8283 ldver=`$LD --version 2>/dev/null | head -1 | \
8284 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8286 glibcpp_gnu_ld_version=`echo $ldver | \
8287 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8289 # Set --gc-sections.
8290 if test "$with_gnu_ld" = "notbroken"; then
8291 # GNU ld it is! Joy and bunny rabbits!
8293 # All these tests are for C++; save the language and the compiler flags.
8294 # Need to do this so that g++ won't try to link in libstdc++
8295 ac_test_CFLAGS="${CFLAGS+set}"
8296 ac_save_CFLAGS="$CFLAGS"
8297 CFLAGS='-x c++ -Wl,--gc-sections'
8299 # Check for -Wl,--gc-sections
8300 # XXX This test is broken at the moment, as symbols required for
8301 # linking are now in libsupc++ (not built yet.....). In addition,
8302 # this test has cored on solaris in the past. In addition,
8303 # --gc-sections doesn't really work at the moment (keeps on discarding
8304 # used sections, first .eh_frame and now some of the glibc sections for
8305 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8306 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8307 echo "configure:8308: checking for ld that supports -Wl,--gc-sections" >&5
8308 if test "$cross_compiling" = yes; then
8309 ac_sectionLDflags=yes
8310 else
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8315 int main(void)
8317 try { throw 1; }
8318 catch (...) { };
8319 return 0;
8323 if { (eval echo configure:8324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8324 then
8325 ac_sectionLDflags=yes
8326 else
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 rm -fr conftest*
8330 ac_sectionLDflags=no
8332 rm -fr conftest*
8335 if test "$ac_test_CFLAGS" = set; then
8336 CFLAGS="$ac_save_CFLAGS"
8337 else
8338 # this is the suspicious part
8339 CFLAGS=''
8341 if test "$ac_sectionLDflags" = "yes"; then
8342 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8344 echo "$ac_t""$ac_sectionLDflags" 1>&6
8347 # Set linker optimization flags.
8348 if test x"$with_gnu_ld" = x"yes"; then
8349 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8356 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8357 echo "configure:8358: checking for main in -lm" >&5
8358 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8361 else
8362 ac_save_LIBS="$LIBS"
8363 LIBS="-lm $LIBS"
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8368 int main() {
8369 main()
8370 ; return 0; }
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8373 rm -rf conftest*
8374 eval "ac_cv_lib_$ac_lib_var=yes"
8375 else
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8378 rm -rf conftest*
8379 eval "ac_cv_lib_$ac_lib_var=no"
8381 rm -f conftest*
8382 LIBS="$ac_save_LIBS"
8385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8389 cat >> confdefs.h <<EOF
8390 #define $ac_tr_lib 1
8393 LIBS="-lm $LIBS"
8395 else
8396 echo "$ac_t""no" 1>&6
8399 for ac_func in nan copysignf
8401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8402 echo "configure:8403: checking for $ac_func" >&5
8403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8404 echo $ac_n "(cached) $ac_c" 1>&6
8405 else
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8409 /* System header to define __stub macros and hopefully few prototypes,
8410 which can conflict with char $ac_func(); below. */
8411 #include <assert.h>
8412 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8415 char $ac_func();
8417 int main() {
8419 /* The GNU C library defines this for functions which it implements
8420 to always fail with ENOSYS. Some functions are actually named
8421 something starting with __ and the normal name is an alias. */
8422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8423 choke me
8424 #else
8425 $ac_func();
8426 #endif
8428 ; return 0; }
8430 if { (eval echo configure:8431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8431 rm -rf conftest*
8432 eval "ac_cv_func_$ac_func=yes"
8433 else
8434 echo "configure: failed program was:" >&5
8435 cat conftest.$ac_ext >&5
8436 rm -rf conftest*
8437 eval "ac_cv_func_$ac_func=no"
8439 rm -f conftest*
8442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8445 cat >> confdefs.h <<EOF
8446 #define $ac_tr_func 1
8449 else
8450 echo "$ac_t""no" 1>&6
8451 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8453 done
8456 for ac_func in __signbit
8458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8459 echo "configure:8460: checking for $ac_func" >&5
8460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8462 else
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 /* System header to define __stub macros and hopefully few prototypes,
8467 which can conflict with char $ac_func(); below. */
8468 #include <assert.h>
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char $ac_func();
8474 int main() {
8476 /* The GNU C library defines this for functions which it implements
8477 to always fail with ENOSYS. Some functions are actually named
8478 something starting with __ and the normal name is an alias. */
8479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8480 choke me
8481 #else
8482 $ac_func();
8483 #endif
8485 ; return 0; }
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8488 rm -rf conftest*
8489 eval "ac_cv_func_$ac_func=yes"
8490 else
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8493 rm -rf conftest*
8494 eval "ac_cv_func_$ac_func=no"
8496 rm -f conftest*
8499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8502 cat >> confdefs.h <<EOF
8503 #define $ac_tr_func 1
8506 else
8507 echo "$ac_t""no" 1>&6
8508 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8510 done
8512 for ac_func in __signbitf
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523 which can conflict with char $ac_func(); below. */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8528 char $ac_func();
8530 int main() {
8532 /* The GNU C library defines this for functions which it implements
8533 to always fail with ENOSYS. Some functions are actually named
8534 something starting with __ and the normal name is an alias. */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8541 ; return 0; }
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 rm -rf conftest*
8545 eval "ac_cv_func_$ac_func=yes"
8546 else
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8549 rm -rf conftest*
8550 eval "ac_cv_func_$ac_func=no"
8552 rm -f conftest*
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556 echo "$ac_t""yes" 1>&6
8557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558 cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8562 else
8563 echo "$ac_t""no" 1>&6
8564 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8566 done
8569 if test x$ac_cv_func_copysignl = x"yes"; then
8570 for ac_func in __signbitl
8572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_func" >&5
8574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577 cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure"
8579 #include "confdefs.h"
8580 /* System header to define __stub macros and hopefully few prototypes,
8581 which can conflict with char $ac_func(); below. */
8582 #include <assert.h>
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char $ac_func();
8588 int main() {
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8594 choke me
8595 #else
8596 $ac_func();
8597 #endif
8599 ; return 0; }
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 rm -rf conftest*
8603 eval "ac_cv_func_$ac_func=yes"
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 eval "ac_cv_func_$ac_func=no"
8610 rm -f conftest*
8613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8614 echo "$ac_t""yes" 1>&6
8615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8616 cat >> confdefs.h <<EOF
8617 #define $ac_tr_func 1
8620 else
8621 echo "$ac_t""no" 1>&6
8622 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8624 done
8628 if test -n "$LIBMATHOBJS"; then
8629 need_libmath=yes
8634 if test "$need_libmath" = yes; then
8635 GLIBCPP_BUILD_LIBMATH_TRUE=
8636 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8637 else
8638 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8639 GLIBCPP_BUILD_LIBMATH_FALSE=
8643 enable_wchar_t=no
8645 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8646 echo "configure:8647: checking for mbstate_t" >&5
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <wchar.h>
8651 int main() {
8652 mbstate_t teststate;
8653 ; return 0; }
8655 if { (eval echo configure:8656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8656 rm -rf conftest*
8657 have_mbstate_t=yes
8658 else
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -rf conftest*
8662 have_mbstate_t=no
8664 rm -f conftest*
8665 echo "$ac_t""$have_mbstate_t" 1>&6
8666 if test x"$have_mbstate_t" = xyes; then
8667 cat >> confdefs.h <<\EOF
8668 #define HAVE_MBSTATE_T 1
8673 for ac_hdr in wchar.h
8675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8677 echo "configure:8678: checking for $ac_hdr" >&5
8678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8680 else
8681 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8684 #include <$ac_hdr>
8686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8687 { (eval echo configure:8688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8689 if test -z "$ac_err"; then
8690 rm -rf conftest*
8691 eval "ac_cv_header_$ac_safe=yes"
8692 else
8693 echo "$ac_err" >&5
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8696 rm -rf conftest*
8697 eval "ac_cv_header_$ac_safe=no"
8699 rm -f conftest*
8701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8702 echo "$ac_t""yes" 1>&6
8703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8704 cat >> confdefs.h <<EOF
8705 #define $ac_tr_hdr 1
8707 ac_has_wchar_h=yes
8708 else
8709 echo "$ac_t""no" 1>&6
8710 ac_has_wchar_h=no
8712 done
8714 for ac_hdr in wctype.h
8716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8718 echo "configure:8719: checking for $ac_hdr" >&5
8719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721 else
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8725 #include <$ac_hdr>
8727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8728 { (eval echo configure:8729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8730 if test -z "$ac_err"; then
8731 rm -rf conftest*
8732 eval "ac_cv_header_$ac_safe=yes"
8733 else
8734 echo "$ac_err" >&5
8735 echo "configure: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8737 rm -rf conftest*
8738 eval "ac_cv_header_$ac_safe=no"
8740 rm -f conftest*
8742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8745 cat >> confdefs.h <<EOF
8746 #define $ac_tr_hdr 1
8748 ac_has_wctype_h=yes
8749 else
8750 echo "$ac_t""no" 1>&6
8751 ac_has_wctype_h=no
8753 done
8756 if test x"$ac_has_wchar_h" = xyes &&
8757 test x"$ac_has_wctype_h" = xyes &&
8758 test x"$enable_c_mbchar" != xno; then
8760 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8761 echo "configure:8762: checking for WCHAR_MIN and WCHAR_MAX" >&5
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 #include <wchar.h>
8766 int main() {
8767 int i = WCHAR_MIN; int j = WCHAR_MAX;
8768 ; return 0; }
8770 if { (eval echo configure:8771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8771 rm -rf conftest*
8772 has_wchar_minmax=yes
8773 else
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 rm -rf conftest*
8777 has_wchar_minmax=no
8779 rm -f conftest*
8780 echo "$ac_t""$has_wchar_minmax" 1>&6
8782 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8783 echo "configure:8784: checking for WEOF" >&5
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8788 #include <wchar.h>
8789 #include <stddef.h>
8790 int main() {
8791 wint_t i = WEOF;
8792 ; return 0; }
8794 if { (eval echo configure:8795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8795 rm -rf conftest*
8796 has_weof=yes
8797 else
8798 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8800 rm -rf conftest*
8801 has_weof=no
8803 rm -f conftest*
8804 echo "$ac_t""$has_weof" 1>&6
8806 ac_wfuncs=yes
8807 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8810 echo "configure:8811: checking for $ac_func" >&5
8811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8813 else
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 /* System header to define __stub macros and hopefully few prototypes,
8818 which can conflict with char $ac_func(); below. */
8819 #include <assert.h>
8820 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823 char $ac_func();
8825 int main() {
8827 /* The GNU C library defines this for functions which it implements
8828 to always fail with ENOSYS. Some functions are actually named
8829 something starting with __ and the normal name is an alias. */
8830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8831 choke me
8832 #else
8833 $ac_func();
8834 #endif
8836 ; return 0; }
8838 if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8839 rm -rf conftest*
8840 eval "ac_cv_func_$ac_func=yes"
8841 else
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 eval "ac_cv_func_$ac_func=no"
8847 rm -f conftest*
8850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8851 echo "$ac_t""yes" 1>&6
8852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8853 cat >> confdefs.h <<EOF
8854 #define $ac_tr_func 1
8857 else
8858 echo "$ac_t""no" 1>&6
8860 ac_wfuncs=no
8862 done
8865 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8866 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8867 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8868 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8869 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8870 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8873 echo "configure:8874: checking for $ac_func" >&5
8874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char $ac_func(); below. */
8882 #include <assert.h>
8883 /* Override any gcc2 internal prototype to avoid an error. */
8884 /* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8886 char $ac_func();
8888 int main() {
8890 /* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8894 choke me
8895 #else
8896 $ac_func();
8897 #endif
8899 ; return 0; }
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 rm -rf conftest*
8903 eval "ac_cv_func_$ac_func=yes"
8904 else
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8907 rm -rf conftest*
8908 eval "ac_cv_func_$ac_func=no"
8910 rm -f conftest*
8913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8916 cat >> confdefs.h <<EOF
8917 #define $ac_tr_func 1
8920 else
8921 echo "$ac_t""no" 1>&6
8923 ac_wfuncs=no
8925 done
8928 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8929 echo "configure:8930: checking for ISO C99 wchar_t support" >&5
8930 if test x"$has_weof" = xyes &&
8931 test x"$has_wchar_minmax" = xyes &&
8932 test x"$ac_wfuncs" = xyes; then
8933 ac_isoC99_wchar_t=yes
8934 else
8935 ac_isoC99_wchar_t=no
8937 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8939 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8940 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8941 echo "configure:8942: checking for iconv.h" >&5
8942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944 else
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 #include <iconv.h>
8950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8951 { (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8953 if test -z "$ac_err"; then
8954 rm -rf conftest*
8955 eval "ac_cv_header_$ac_safe=yes"
8956 else
8957 echo "$ac_err" >&5
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8960 rm -rf conftest*
8961 eval "ac_cv_header_$ac_safe=no"
8963 rm -f conftest*
8965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6
8967 ac_has_iconv_h=yes
8968 else
8969 echo "$ac_t""no" 1>&6
8970 ac_has_iconv_h=no
8973 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8974 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8975 echo "configure:8976: checking for langinfo.h" >&5
8976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8977 echo $ac_n "(cached) $ac_c" 1>&6
8978 else
8979 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8982 #include <langinfo.h>
8984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8985 { (eval echo configure:8986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8987 if test -z "$ac_err"; then
8988 rm -rf conftest*
8989 eval "ac_cv_header_$ac_safe=yes"
8990 else
8991 echo "$ac_err" >&5
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 rm -rf conftest*
8995 eval "ac_cv_header_$ac_safe=no"
8997 rm -f conftest*
8999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9001 ac_has_langinfo_h=yes
9002 else
9003 echo "$ac_t""no" 1>&6
9004 ac_has_langinfo_h=no
9008 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9009 echo "configure:9010: checking for iconv in -liconv" >&5
9010 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9013 else
9014 ac_save_LIBS="$LIBS"
9015 LIBS="-liconv $LIBS"
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9022 char iconv();
9024 int main() {
9025 iconv()
9026 ; return 0; }
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 rm -rf conftest*
9030 eval "ac_cv_lib_$ac_lib_var=yes"
9031 else
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 rm -rf conftest*
9035 eval "ac_cv_lib_$ac_lib_var=no"
9037 rm -f conftest*
9038 LIBS="$ac_save_LIBS"
9041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9043 libiconv="-liconv"
9044 else
9045 echo "$ac_t""no" 1>&6
9048 ac_save_LIBS="$LIBS"
9049 LIBS="$LIBS $libiconv"
9051 for ac_func in iconv_open iconv_close iconv nl_langinfo
9053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9054 echo "configure:9055: checking for $ac_func" >&5
9055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func(); below. */
9063 #include <assert.h>
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067 char $ac_func();
9069 int main() {
9071 /* The GNU C library defines this for functions which it implements
9072 to always fail with ENOSYS. Some functions are actually named
9073 something starting with __ and the normal name is an alias. */
9074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9075 choke me
9076 #else
9077 $ac_func();
9078 #endif
9080 ; return 0; }
9082 if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9083 rm -rf conftest*
9084 eval "ac_cv_func_$ac_func=yes"
9085 else
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 rm -rf conftest*
9089 eval "ac_cv_func_$ac_func=no"
9091 rm -f conftest*
9094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9095 echo "$ac_t""yes" 1>&6
9096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9097 cat >> confdefs.h <<EOF
9098 #define $ac_tr_func 1
9101 ac_XPG2funcs=yes
9102 else
9103 echo "$ac_t""no" 1>&6
9104 ac_XPG2funcs=no
9106 done
9109 LIBS="$ac_save_LIBS"
9111 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9112 echo "configure:9113: checking for XPG2 wchar_t support" >&5
9113 if test x"$ac_has_iconv_h" = xyes &&
9114 test x"$ac_has_langinfo_h" = xyes &&
9115 test x"$ac_XPG2funcs" = xyes; then
9116 ac_XPG2_wchar_t=yes
9117 else
9118 ac_XPG2_wchar_t=no
9120 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9122 if test x"$ac_isoC99_wchar_t" = xyes &&
9123 test x"$ac_XPG2_wchar_t" = xyes; then
9124 cat >> confdefs.h <<\EOF
9125 #define _GLIBCPP_USE_WCHAR_T 1
9128 enable_wchar_t=yes
9131 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9132 echo "configure:9133: checking for enabled wchar_t specializations" >&5
9133 echo "$ac_t""$enable_wchar_t" 1>&6
9136 if test "$enable_wchar_t" = yes; then
9137 GLIBCPP_TEST_WCHAR_T_TRUE=
9138 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9139 else
9140 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9141 GLIBCPP_TEST_WCHAR_T_FALSE=
9144 os_include_dir="os/mingw32"
9146 *-windiss*)
9147 os_include_dir="os/windiss"
9149 *-qnx6.[12]*)
9150 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9153 # If we're not using GNU ld, then there's no point in even trying these
9154 # tests. Check for that first. We should have already tested for gld
9155 # by now (in libtool), but require it now just to be safe...
9156 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9157 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9160 # The name set by libtool depends on the version of libtool. Shame on us
9161 # for depending on an impl detail, but c'est la vie. Older versions used
9162 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9163 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9164 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9165 # set (hence we're using an older libtool), then set it.
9166 if test x${with_gnu_ld+set} != xset; then
9167 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9168 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9169 with_gnu_ld=no
9170 else
9171 with_gnu_ld=$ac_cv_prog_gnu_ld
9175 # Start by getting the version number. I think the libtool test already
9176 # does some of this, but throws away the result.
9178 ldver=`$LD --version 2>/dev/null | head -1 | \
9179 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9181 glibcpp_gnu_ld_version=`echo $ldver | \
9182 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9184 # Set --gc-sections.
9185 if test "$with_gnu_ld" = "notbroken"; then
9186 # GNU ld it is! Joy and bunny rabbits!
9188 # All these tests are for C++; save the language and the compiler flags.
9189 # Need to do this so that g++ won't try to link in libstdc++
9190 ac_test_CFLAGS="${CFLAGS+set}"
9191 ac_save_CFLAGS="$CFLAGS"
9192 CFLAGS='-x c++ -Wl,--gc-sections'
9194 # Check for -Wl,--gc-sections
9195 # XXX This test is broken at the moment, as symbols required for
9196 # linking are now in libsupc++ (not built yet.....). In addition,
9197 # this test has cored on solaris in the past. In addition,
9198 # --gc-sections doesn't really work at the moment (keeps on discarding
9199 # used sections, first .eh_frame and now some of the glibc sections for
9200 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9201 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9202 echo "configure:9203: checking for ld that supports -Wl,--gc-sections" >&5
9203 if test "$cross_compiling" = yes; then
9204 ac_sectionLDflags=yes
9205 else
9206 cat > conftest.$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9210 int main(void)
9212 try { throw 1; }
9213 catch (...) { };
9214 return 0;
9218 if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9219 then
9220 ac_sectionLDflags=yes
9221 else
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9224 rm -fr conftest*
9225 ac_sectionLDflags=no
9227 rm -fr conftest*
9230 if test "$ac_test_CFLAGS" = set; then
9231 CFLAGS="$ac_save_CFLAGS"
9232 else
9233 # this is the suspicious part
9234 CFLAGS=''
9236 if test "$ac_sectionLDflags" = "yes"; then
9237 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9239 echo "$ac_t""$ac_sectionLDflags" 1>&6
9242 # Set linker optimization flags.
9243 if test x"$with_gnu_ld" = x"yes"; then
9244 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9251 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9252 echo "configure:9253: checking for main in -lm" >&5
9253 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9257 ac_save_LIBS="$LIBS"
9258 LIBS="-lm $LIBS"
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9263 int main() {
9264 main()
9265 ; return 0; }
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 rm -rf conftest*
9269 eval "ac_cv_lib_$ac_lib_var=yes"
9270 else
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 rm -rf conftest*
9274 eval "ac_cv_lib_$ac_lib_var=no"
9276 rm -f conftest*
9277 LIBS="$ac_save_LIBS"
9280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9281 echo "$ac_t""yes" 1>&6
9282 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9284 cat >> confdefs.h <<EOF
9285 #define $ac_tr_lib 1
9288 LIBS="-lm $LIBS"
9290 else
9291 echo "$ac_t""no" 1>&6
9294 for ac_func in nan copysignf
9296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9297 echo "configure:9298: checking for $ac_func" >&5
9298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9300 else
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char $ac_func(); below. */
9306 #include <assert.h>
9307 /* Override any gcc2 internal prototype to avoid an error. */
9308 /* We use char because int might match the return type of a gcc2
9309 builtin and then its argument prototype would still apply. */
9310 char $ac_func();
9312 int main() {
9314 /* The GNU C library defines this for functions which it implements
9315 to always fail with ENOSYS. Some functions are actually named
9316 something starting with __ and the normal name is an alias. */
9317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9318 choke me
9319 #else
9320 $ac_func();
9321 #endif
9323 ; return 0; }
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9326 rm -rf conftest*
9327 eval "ac_cv_func_$ac_func=yes"
9328 else
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 rm -rf conftest*
9332 eval "ac_cv_func_$ac_func=no"
9334 rm -f conftest*
9337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9338 echo "$ac_t""yes" 1>&6
9339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9340 cat >> confdefs.h <<EOF
9341 #define $ac_tr_func 1
9344 else
9345 echo "$ac_t""no" 1>&6
9346 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9348 done
9351 for ac_func in __signbit
9353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9354 echo "configure:9355: checking for $ac_func" >&5
9355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9357 else
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9360 "configure"
9360 #include "confdefs.h"
9361 /* System header to define __stub macros and hopefully few prototypes,
9362 which can conflict with char $ac_func(); below. */
9363 #include <assert.h>
9364 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367 char $ac_func();
9369 int main() {
9371 /* The GNU C library defines this for functions which it implements
9372 to always fail with ENOSYS. Some functions are actually named
9373 something starting with __ and the normal name is an alias. */
9374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9375 choke me
9376 #else
9377 $ac_func();
9378 #endif
9380 ; return 0; }
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9383 rm -rf conftest*
9384 eval "ac_cv_func_$ac_func=yes"
9385 else
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -rf conftest*
9389 eval "ac_cv_func_$ac_func=no"
9391 rm -f conftest*
9394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_func 1
9401 else
9402 echo "$ac_t""no" 1>&6
9403 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9405 done
9407 for ac_func in __signbitf
9409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9410 echo "configure:9411: checking for $ac_func" >&5
9411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413 else
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9417 /* System header to define __stub macros and hopefully few prototypes,
9418 which can conflict with char $ac_func(); below. */
9419 #include <assert.h>
9420 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9423 char $ac_func();
9425 int main() {
9427 /* The GNU C library defines this for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 choke me
9432 #else
9433 $ac_func();
9434 #endif
9436 ; return 0; }
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9439 rm -rf conftest*
9440 eval "ac_cv_func_$ac_func=yes"
9441 else
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 rm -rf conftest*
9445 eval "ac_cv_func_$ac_func=no"
9447 rm -f conftest*
9450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9451 echo "$ac_t""yes" 1>&6
9452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9453 cat >> confdefs.h <<EOF
9454 #define $ac_tr_func 1
9457 else
9458 echo "$ac_t""no" 1>&6
9459 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9461 done
9464 if test x$ac_cv_func_copysignl = x"yes"; then
9465 for ac_func in __signbitl
9467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9468 echo "configure:9469: checking for $ac_func" >&5
9469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9471 else
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 /* System header to define __stub macros and hopefully few prototypes,
9476 which can conflict with char $ac_func(); below. */
9477 #include <assert.h>
9478 /* Override any gcc2 internal prototype to avoid an error. */
9479 /* We use char because int might match the return type of a gcc2
9480 builtin and then its argument prototype would still apply. */
9481 char $ac_func();
9483 int main() {
9485 /* The GNU C library defines this for functions which it implements
9486 to always fail with ENOSYS. Some functions are actually named
9487 something starting with __ and the normal name is an alias. */
9488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9489 choke me
9490 #else
9491 $ac_func();
9492 #endif
9494 ; return 0; }
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9497 rm -rf conftest*
9498 eval "ac_cv_func_$ac_func=yes"
9499 else
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 eval "ac_cv_func_$ac_func=no"
9505 rm -f conftest*
9508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9509 echo "$ac_t""yes" 1>&6
9510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9511 cat >> confdefs.h <<EOF
9512 #define $ac_tr_func 1
9515 else
9516 echo "$ac_t""no" 1>&6
9517 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9519 done
9523 if test -n "$LIBMATHOBJS"; then
9524 need_libmath=yes
9529 if test "$need_libmath" = yes; then
9530 GLIBCPP_BUILD_LIBMATH_TRUE=
9531 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9532 else
9533 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9534 GLIBCPP_BUILD_LIBMATH_FALSE=
9538 enable_wchar_t=no
9540 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9541 echo "configure:9542: checking for mbstate_t" >&5
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include <wchar.h>
9546 int main() {
9547 mbstate_t teststate;
9548 ; return 0; }
9550 if { (eval echo configure:9551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9551 rm -rf conftest*
9552 have_mbstate_t=yes
9553 else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 have_mbstate_t=no
9559 rm -f conftest*
9560 echo "$ac_t""$have_mbstate_t" 1>&6
9561 if test x"$have_mbstate_t" = xyes; then
9562 cat >> confdefs.h <<\EOF
9563 #define HAVE_MBSTATE_T 1
9568 for ac_hdr in wchar.h
9570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9572 echo "configure:9573: checking for $ac_hdr" >&5
9573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 #include <$ac_hdr>
9581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9582 { (eval echo configure:9583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9584 if test -z "$ac_err"; then
9585 rm -rf conftest*
9586 eval "ac_cv_header_$ac_safe=yes"
9587 else
9588 echo "$ac_err" >&5
9589 echo "configure: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 rm -rf conftest*
9592 eval "ac_cv_header_$ac_safe=no"
9594 rm -f conftest*
9596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9597 echo "$ac_t""yes" 1>&6
9598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9599 cat >> confdefs.h <<EOF
9600 #define $ac_tr_hdr 1
9602 ac_has_wchar_h=yes
9603 else
9604 echo "$ac_t""no" 1>&6
9605 ac_has_wchar_h=no
9607 done
9609 for ac_hdr in wctype.h
9611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9613 echo "configure:9614: checking for $ac_hdr" >&5
9614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9616 else
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 #include <$ac_hdr>
9622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9623 { (eval echo configure:9624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9625 if test -z "$ac_err"; then
9626 rm -rf conftest*
9627 eval "ac_cv_header_$ac_safe=yes"
9628 else
9629 echo "$ac_err" >&5
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 rm -rf conftest*
9633 eval "ac_cv_header_$ac_safe=no"
9635 rm -f conftest*
9637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9638 echo "$ac_t""yes" 1>&6
9639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9640 cat >> confdefs.h <<EOF
9641 #define $ac_tr_hdr 1
9643 ac_has_wctype_h=yes
9644 else
9645 echo "$ac_t""no" 1>&6
9646 ac_has_wctype_h=no
9648 done
9651 if test x"$ac_has_wchar_h" = xyes &&
9652 test x"$ac_has_wctype_h" = xyes &&
9653 test x"$enable_c_mbchar" != xno; then
9655 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9656 echo "configure:9657: checking for WCHAR_MIN and WCHAR_MAX" >&5
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 #include <wchar.h>
9661 int main() {
9662 int i = WCHAR_MIN; int j = WCHAR_MAX;
9663 ; return 0; }
9665 if { (eval echo configure:9666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9666 rm -rf conftest*
9667 has_wchar_minmax=yes
9668 else
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 rm -rf conftest*
9672 has_wchar_minmax=no
9674 rm -f conftest*
9675 echo "$ac_t""$has_wchar_minmax" 1>&6
9677 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9678 echo "configure:9679: checking for WEOF" >&5
9679 cat > conftest.$ac_ext <<EOF
9680 #line 9681 "configure"
9681 #include "confdefs.h"
9683 #include <wchar.h>
9684 #include <stddef.h>
9685 int main() {
9686 wint_t i = WEOF;
9687 ; return 0; }
9689 if { (eval echo configure:9690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9690 rm -rf conftest*
9691 has_weof=yes
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -rf conftest*
9696 has_weof=no
9698 rm -f conftest*
9699 echo "$ac_t""$has_weof" 1>&6
9701 ac_wfuncs=yes
9702 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9705 echo "configure:9706: checking for $ac_func" >&5
9706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9708 else
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* System header to define __stub macros and hopefully few prototypes,
9713 which can conflict with char $ac_func(); below. */
9714 #include <assert.h>
9715 /* Override any gcc2 internal prototype to avoid an error. */
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9718 char $ac_func();
9720 int main() {
9722 /* The GNU C library defines this for functions which it implements
9723 to always fail with ENOSYS. Some functions are actually named
9724 something starting with __ and the normal name is an alias. */
9725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9726 choke me
9727 #else
9728 $ac_func();
9729 #endif
9731 ; return 0; }
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 rm -rf conftest*
9735 eval "ac_cv_func_$ac_func=yes"
9736 else
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 rm -rf conftest*
9740 eval "ac_cv_func_$ac_func=no"
9742 rm -f conftest*
9745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9746 echo "$ac_t""yes" 1>&6
9747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9748 cat >> confdefs.h <<EOF
9749 #define $ac_tr_func 1
9752 else
9753 echo "$ac_t""no" 1>&6
9755 ac_wfuncs=no
9757 done
9760 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9761 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9762 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9763 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9764 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9765 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9768 echo "configure:9769: checking for $ac_func" >&5
9769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771 else
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char $ac_func(); below. */
9777 #include <assert.h>
9778 /* Override any gcc2 internal prototype to avoid an error. */
9779 /* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
9781 char $ac_func();
9783 int main() {
9785 /* The GNU C library defines this for functions which it implements
9786 to always fail with ENOSYS. Some functions are actually named
9787 something starting with __ and the normal name is an alias. */
9788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9789 choke me
9790 #else
9791 $ac_func();
9792 #endif
9794 ; return 0; }
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 rm -rf conftest*
9798 eval "ac_cv_func_$ac_func=yes"
9799 else
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 rm -rf conftest*
9803 eval "ac_cv_func_$ac_func=no"
9805 rm -f conftest*
9808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9809 echo "$ac_t""yes" 1>&6
9810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9811 cat >> confdefs.h <<EOF
9812 #define $ac_tr_func 1
9815 else
9816 echo "$ac_t""no" 1>&6
9818 ac_wfuncs=no
9820 done
9823 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9824 echo "configure:9825: checking for ISO C99 wchar_t support" >&5
9825 if test x"$has_weof" = xyes &&
9826 test x"$has_wchar_minmax" = xyes &&
9827 test x"$ac_wfuncs" = xyes; then
9828 ac_isoC99_wchar_t=yes
9829 else
9830 ac_isoC99_wchar_t=no
9832 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9834 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9835 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9836 echo "configure:9837: checking for iconv.h" >&5
9837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9839 else
9840 cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 #include <iconv.h>
9845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9846 { (eval echo configure:9847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9848 if test -z "$ac_err"; then
9849 rm -rf conftest*
9850 eval "ac_cv_header_$ac_safe=yes"
9851 else
9852 echo "$ac_err" >&5
9853 echo "configure: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 rm -rf conftest*
9856 eval "ac_cv_header_$ac_safe=no"
9858 rm -f conftest*
9860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9861 echo "$ac_t""yes" 1>&6
9862 ac_has_iconv_h=yes
9863 else
9864 echo "$ac_t""no" 1>&6
9865 ac_has_iconv_h=no
9868 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9869 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9870 echo "configure:9871: checking for langinfo.h" >&5
9871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <langinfo.h>
9879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9880 { (eval echo configure:9881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9882 if test -z "$ac_err"; then
9883 rm -rf conftest*
9884 eval "ac_cv_header_$ac_safe=yes"
9885 else
9886 echo "$ac_err" >&5
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -rf conftest*
9890 eval "ac_cv_header_$ac_safe=no"
9892 rm -f conftest*
9894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9895 echo "$ac_t""yes" 1>&6
9896 ac_has_langinfo_h=yes
9897 else
9898 echo "$ac_t""no" 1>&6
9899 ac_has_langinfo_h=no
9903 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9904 echo "configure:9905: checking for iconv in -liconv" >&5
9905 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908 else
9909 ac_save_LIBS="$LIBS"
9910 LIBS="-liconv $LIBS"
9911 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9914 /* Override any gcc2 internal prototype to avoid an error. */
9915 /* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9917 char iconv();
9919 int main() {
9920 iconv()
9921 ; return 0; }
9923 if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9924 rm -rf conftest*
9925 eval "ac_cv_lib_$ac_lib_var=yes"
9926 else
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 eval "ac_cv_lib_$ac_lib_var=no"
9932 rm -f conftest*
9933 LIBS="$ac_save_LIBS"
9936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9937 echo "$ac_t""yes" 1>&6
9938 libiconv="-liconv"
9939 else
9940 echo "$ac_t""no" 1>&6
9943 ac_save_LIBS="$LIBS"
9944 LIBS="$LIBS $libiconv"
9946 for ac_func in iconv_open iconv_close iconv nl_langinfo
9948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9949 echo "configure:9950: checking for $ac_func" >&5
9950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char $ac_func(); below. */
9958 #include <assert.h>
9959 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9962 char $ac_func();
9964 int main() {
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 choke me
9971 #else
9972 $ac_func();
9973 #endif
9975 ; return 0; }
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 rm -rf conftest*
9979 eval "ac_cv_func_$ac_func=yes"
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_func_$ac_func=no"
9986 rm -f conftest*
9989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9992 cat >> confdefs.h <<EOF
9993 #define $ac_tr_func 1
9996 ac_XPG2funcs=yes
9997 else
9998 echo "$ac_t""no" 1>&6
9999 ac_XPG2funcs=no
10001 done
10004 LIBS="$ac_save_LIBS"
10006 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10007 echo "configure:10008: checking for XPG2 wchar_t support" >&5
10008 if test x"$ac_has_iconv_h" = xyes &&
10009 test x"$ac_has_langinfo_h" = xyes &&
10010 test x"$ac_XPG2funcs" = xyes; then
10011 ac_XPG2_wchar_t=yes
10012 else
10013 ac_XPG2_wchar_t=no
10015 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10017 if test x"$ac_isoC99_wchar_t" = xyes &&
10018 test x"$ac_XPG2_wchar_t" = xyes; then
10019 cat >> confdefs.h <<\EOF
10020 #define _GLIBCPP_USE_WCHAR_T 1
10023 enable_wchar_t=yes
10026 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10027 echo "configure:10028: checking for enabled wchar_t specializations" >&5
10028 echo "$ac_t""$enable_wchar_t" 1>&6
10031 if test "$enable_wchar_t" = yes; then
10032 GLIBCPP_TEST_WCHAR_T_TRUE=
10033 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10034 else
10035 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10036 GLIBCPP_TEST_WCHAR_T_FALSE=
10039 os_include_dir="os/qnx/qnx6.1"
10040 cat >> confdefs.h <<\EOF
10041 #define HAVE_COSF 1
10044 cat >> confdefs.h <<\EOF
10045 #define HAVE_COSL 1
10048 cat >> confdefs.h <<\EOF
10049 #define HAVE_COSHF 1
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_COSHL 1
10056 cat >> confdefs.h <<\EOF
10057 #define HAVE_LOGF 1
10060 cat >> confdefs.h <<\EOF
10061 #define HAVE_LOGL 1
10064 cat >> confdefs.h <<\EOF
10065 #define HAVE_LOG10F 1
10068 cat >> confdefs.h <<\EOF
10069 #define HAVE_LOG10L 1
10072 cat >> confdefs.h <<\EOF
10073 #define HAVE_SINF 1
10076 cat >> confdefs.h <<\EOF
10077 #define HAVE_SINL 1
10080 cat >> confdefs.h <<\EOF
10081 #define HAVE_SINHF 1
10084 cat >> confdefs.h <<\EOF
10085 #define HAVE_SINHL 1
10090 os_include_dir="os/newlib"
10091 cat >> confdefs.h <<\EOF
10092 #define HAVE_HYPOT 1
10096 esac
10098 case "$target" in
10099 *-mingw32*)
10101 *-windiss*)
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_ACOSF 1
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_ASINF 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_ATAN2F 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_ATANF 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_CEILF 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_COPYSIGN 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_COPYSIGNF 1
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_COSF 1
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_COSHF 1
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_EXPF 1
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_FABSF 1
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_FLOORF 1
10150 cat >> confdefs.h <<\EOF
10151 #define HAVE_FMODF 1
10154 cat >> confdefs.h <<\EOF
10155 #define HAVE_FREXPF 1
10158 cat >> confdefs.h <<\EOF
10159 #define HAVE_LDEXPF 1
10162 cat >> confdefs.h <<\EOF
10163 #define HAVE_LOG10F 1
10166 cat >> confdefs.h <<\EOF
10167 #define HAVE_LOGF 1
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_MODFF 1
10174 cat >> confdefs.h <<\EOF
10175 #define HAVE_POWF 1
10178 cat >> confdefs.h <<\EOF
10179 #define HAVE_SINF 1
10182 cat >> confdefs.h <<\EOF
10183 #define HAVE_SINHF 1
10186 cat >> confdefs.h <<\EOF
10187 #define HAVE_SQRTF 1
10190 cat >> confdefs.h <<\EOF
10191 #define HAVE_TANF 1
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_TANHF 1
10199 *-freebsd*)
10200 # Must replicate generic section since we don't have strtof or strtold.
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_MMAP 1
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_ACOSF 1
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_ASINF 1
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_ATAN2F 1
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_ATANF 1
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_CEILF 1
10225 cat >> confdefs.h <<\EOF
10226 #define HAVE_COPYSIGN 1
10229 cat >> confdefs.h <<\EOF
10230 #define HAVE_COPYSIGNF 1
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_COSF 1
10237 cat >> confdefs.h <<\EOF
10238 #define HAVE_COSHF 1
10241 cat >> confdefs.h <<\EOF
10242 #define HAVE_EXPF 1
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_FABSF 1
10249 cat >> confdefs.h <<\EOF
10250 #define HAVE_FLOORF 1
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_FMODF 1
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_FREXPF 1
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_LDEXPF 1
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_LOG10F 1
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_LOGF 1
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_MODFF 1
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_POWF 1
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_SINF 1
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_SINHF 1
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_SQRTF 1
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_TANF 1
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_TANHF 1
10303 # GLIBCPP_CHECK_STDLIB_SUPPORT
10304 cat >> confdefs.h <<\EOF
10305 #define HAVE_STRTOF 1
10308 cat >> confdefs.h <<\EOF
10309 #define HAVE_STRTOLD 1
10312 # AC_FUNC_MMAP
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_MMAP 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_ACOSF 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_ASINF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_ATAN2F 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_ATANF 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_CEILF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_COPYSIGN 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_COPYSIGNF 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_COSF 1
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_COSHF 1
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_EXPF 1
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_FABSF 1
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_FLOORF 1
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_FMODF 1
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_FREXPF 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_LDEXPF 1
10378 cat >> confdefs.h <<\EOF
10379 #define HAVE_LOG10F 1
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_LOGF 1
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_MODFF 1
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_POWF 1
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_SINF 1
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_SINHF 1
10402 cat >> confdefs.h <<\EOF
10403 #define HAVE_SQRTF 1
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_TANF 1
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_TANHF 1
10415 esac
10417 # At some point, we should differentiate between architectures
10418 # like x86, which have long double versions, and alpha/powerpc/etc.,
10419 # which don't. For the time being, punt.
10420 if test x"long_double_math_on_this_cpu" = x"yes"; then
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_ACOSL 1
10425 cat >> confdefs.h <<\EOF
10426 #define HAVE_ASINL 1
10429 cat >> confdefs.h <<\EOF
10430 #define HAVE_ATAN2L 1
10433 cat >> confdefs.h <<\EOF
10434 #define HAVE_ATANL 1
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_CEILL 1
10441 cat >> confdefs.h <<\EOF
10442 #define HAVE_COPYSIGNL 1
10445 cat >> confdefs.h <<\EOF
10446 #define HAVE_COSL 1
10449 cat >> confdefs.h <<\EOF
10450 #define HAVE_COSHL 1
10453 cat >> confdefs.h <<\EOF
10454 #define HAVE_EXPL 1
10457 cat >> confdefs.h <<\EOF
10458 #define HAVE_FABSL 1
10461 cat >> confdefs.h <<\EOF
10462 #define HAVE_FLOORL 1
10465 cat >> confdefs.h <<\EOF
10466 #define HAVE_FMODL 1
10469 cat >> confdefs.h <<\EOF
10470 #define HAVE_FREXPL 1
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_LDEXPL 1
10477 cat >> confdefs.h <<\EOF
10478 #define HAVE_LOG10L 1
10481 cat >> confdefs.h <<\EOF
10482 #define HAVE_LOGL 1
10485 cat >> confdefs.h <<\EOF
10486 #define HAVE_MODFL 1
10489 cat >> confdefs.h <<\EOF
10490 #define HAVE_POWL 1
10493 cat >> confdefs.h <<\EOF
10494 #define HAVE_SINCOSL 1
10497 cat >> confdefs.h <<\EOF
10498 #define HAVE_SINL 1
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_SINHL 1
10505 cat >> confdefs.h <<\EOF
10506 #define HAVE_SQRTL 1
10509 cat >> confdefs.h <<\EOF
10510 #define HAVE_TANL 1
10513 cat >> confdefs.h <<\EOF
10514 #define HAVE_TANHL 1
10519 else
10521 # We are being configured natively. We can do more elaborate tests
10522 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10523 # working.
10524 GLIBCPP_IS_CROSS_COMPILING=0
10525 CANADIAN=no
10527 # Check for available headers.
10528 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10529 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10530 sys/types.h
10532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10534 echo "configure:10535: checking for $ac_hdr" >&5
10535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10537 else
10538 cat > conftest.$ac_ext <<EOF
10539 #line 10540 "configure"
10540 #include "confdefs.h"
10541 #include <$ac_hdr>
10543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10544 { (eval echo configure:10545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10546 if test -z "$ac_err"; then
10547 rm -rf conftest*
10548 eval "ac_cv_header_$ac_safe=yes"
10549 else
10550 echo "$ac_err" >&5
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10553 rm -rf conftest*
10554 eval "ac_cv_header_$ac_safe=no"
10556 rm -f conftest*
10558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10559 echo "$ac_t""yes" 1>&6
10560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10561 cat >> confdefs.h <<EOF
10562 #define $ac_tr_hdr 1
10565 else
10566 echo "$ac_t""no" 1>&6
10568 done
10572 # All these tests are for C++; save the language and the compiler flags.
10573 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10574 # found in GLIBCPP_CONFIGURE.
10576 ac_ext=C
10577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578 ac_cpp='$CXXCPP $CPPFLAGS'
10579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581 cross_compiling=$ac_cv_prog_cxx_cross
10583 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10584 ac_save_CXXFLAGS="$CXXFLAGS"
10586 # Check for maintainer-mode bits.
10587 if test x"$USE_MAINTAINER_MODE" = xno; then
10588 WERROR=''
10589 else
10590 WERROR='-Werror'
10593 # Check for -ffunction-sections -fdata-sections
10594 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10595 echo "configure:10596: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10596 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10597 cat > conftest.$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10601 int main() {
10602 int foo;
10604 ; return 0; }
10606 if { (eval echo configure:10607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10607 rm -rf conftest*
10608 ac_fdsections=yes
10609 else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -rf conftest*
10613 ac_fdsections=no
10615 rm -f conftest*
10616 if test "$ac_test_CXXFLAGS" = set; then
10617 CXXFLAGS="$ac_save_CXXFLAGS"
10618 else
10619 # this is the suspicious part
10620 CXXFLAGS=''
10622 if test x"$ac_fdsections" = x"yes"; then
10623 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10625 echo "$ac_t""$ac_fdsections" 1>&6
10627 ac_ext=c
10628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10629 ac_cpp='$CPP $CPPFLAGS'
10630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10632 cross_compiling=$ac_cv_prog_cc_cross
10638 # If we're not using GNU ld, then there's no point in even trying these
10639 # tests. Check for that first. We should have already tested for gld
10640 # by now (in libtool), but require it now just to be safe...
10641 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10642 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10645 # The name set by libtool depends on the version of libtool. Shame on us
10646 # for depending on an impl detail, but c'est la vie. Older versions used
10647 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10648 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10649 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10650 # set (hence we're using an older libtool), then set it.
10651 if test x${with_gnu_ld+set} != xset; then
10652 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10653 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10654 with_gnu_ld=no
10655 else
10656 with_gnu_ld=$ac_cv_prog_gnu_ld
10660 # Start by getting the version number. I think the libtool test already
10661 # does some of this, but throws away the result.
10663 ldver=`$LD --version 2>/dev/null | head -1 | \
10664 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10666 glibcpp_gnu_ld_version=`echo $ldver | \
10667 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10669 # Set --gc-sections.
10670 if test "$with_gnu_ld" = "notbroken"; then
10671 # GNU ld it is! Joy and bunny rabbits!
10673 # All these tests are for C++; save the language and the compiler flags.
10674 # Need to do this so that g++ won't try to link in libstdc++
10675 ac_test_CFLAGS="${CFLAGS+set}"
10676 ac_save_CFLAGS="$CFLAGS"
10677 CFLAGS='-x c++ -Wl,--gc-sections'
10679 # Check for -Wl,--gc-sections
10680 # XXX This test is broken at the moment, as symbols required for
10681 # linking are now in libsupc++ (not built yet.....). In addition,
10682 # this test has cored on solaris in the past. In addition,
10683 # --gc-sections doesn't really work at the moment (keeps on discarding
10684 # used sections, first .eh_frame and now some of the glibc sections for
10685 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10686 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10687 echo "configure:10688: checking for ld that supports -Wl,--gc-sections" >&5
10688 if test "$cross_compiling" = yes; then
10689 ac_sectionLDflags=yes
10690 else
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10695 int main(void)
10697 try { throw 1; }
10698 catch (...) { };
10699 return 0;
10703 if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10704 then
10705 ac_sectionLDflags=yes
10706 else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -fr conftest*
10710 ac_sectionLDflags=no
10712 rm -fr conftest*
10715 if test "$ac_test_CFLAGS" = set; then
10716 CFLAGS="$ac_save_CFLAGS"
10717 else
10718 # this is the suspicious part
10719 CFLAGS=''
10721 if test "$ac_sectionLDflags" = "yes"; then
10722 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10724 echo "$ac_t""$ac_sectionLDflags" 1>&6
10727 # Set linker optimization flags.
10728 if test x"$with_gnu_ld" = x"yes"; then
10729 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10736 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10737 ac_save_CXXFLAGS="$CXXFLAGS"
10738 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10740 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10741 echo "configure:10742: checking for sin in -lm" >&5
10742 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10745 else
10746 ac_save_LIBS="$LIBS"
10747 LIBS="-lm $LIBS"
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char sin();
10756 int main() {
10757 sin()
10758 ; return 0; }
10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10761 rm -rf conftest*
10762 eval "ac_cv_lib_$ac_lib_var=yes"
10763 else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -rf conftest*
10767 eval "ac_cv_lib_$ac_lib_var=no"
10769 rm -f conftest*
10770 LIBS="$ac_save_LIBS"
10773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10774 echo "$ac_t""yes" 1>&6
10775 libm="-lm"
10776 else
10777 echo "$ac_t""no" 1>&6
10780 ac_save_LIBS="$LIBS"
10781 LIBS="$LIBS $libm"
10785 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10786 echo "configure:10787: checking for isinf declaration" >&5
10787 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10788 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10790 else
10793 ac_ext=C
10794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10795 ac_cpp='$CXXCPP $CPPFLAGS'
10796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10798 cross_compiling=$ac_cv_prog_cxx_cross
10800 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10803 #include <math.h>
10804 #ifdef HAVE_IEEEFP_H
10805 #include <ieeefp.h>
10806 #endif
10808 int main() {
10809 isinf(0);
10810 ; return 0; }
10812 if { (eval echo configure:10813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10813 rm -rf conftest*
10814 glibcpp_cv_func_isinf_use=yes
10815 else
10816 echo "configure: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 rm -rf conftest*
10819 glibcpp_cv_func_isinf_use=no
10821 rm -f conftest*
10822 ac_ext=c
10823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10824 ac_cpp='$CPP $CPPFLAGS'
10825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10827 cross_compiling=$ac_cv_prog_cc_cross
10833 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10835 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10836 for ac_func in isinf
10838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10839 echo "configure:10840: checking for $ac_func" >&5
10840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10841 echo $ac_n "(cached) $ac_c" 1>&6
10842 else
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char $ac_func(); below. */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10852 char $ac_func();
10854 int main() {
10856 /* The GNU C library defines this for functions which it implements
10857 to always fail with ENOSYS. Some functions are actually named
10858 something starting with __ and the normal name is an alias. */
10859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10860 choke me
10861 #else
10862 $ac_func();
10863 #endif
10865 ; return 0; }
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10868 rm -rf conftest*
10869 eval "ac_cv_func_$ac_func=yes"
10870 else
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -rf conftest*
10874 eval "ac_cv_func_$ac_func=no"
10876 rm -f conftest*
10879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10882 cat >> confdefs.h <<EOF
10883 #define $ac_tr_func 1
10886 else
10887 echo "$ac_t""no" 1>&6
10889 done
10891 else
10893 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10894 echo "configure:10895: checking for _isinf declaration" >&5
10895 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10896 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898 else
10901 ac_ext=C
10902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10903 ac_cpp='$CXXCPP $CPPFLAGS'
10904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10906 cross_compiling=$ac_cv_prog_cxx_cross
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 #include <math.h>
10912 #ifdef HAVE_IEEEFP_H
10913 #include <ieeefp.h>
10914 #endif
10916 int main() {
10917 _isinf(0);
10918 ; return 0; }
10920 if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10921 rm -rf conftest*
10922 glibcpp_cv_func__isinf_use=yes
10923 else
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 rm -rf conftest*
10927 glibcpp_cv_func__isinf_use=no
10929 rm -f conftest*
10930 ac_ext=c
10931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10932 ac_cpp='$CPP $CPPFLAGS'
10933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10935 cross_compiling=$ac_cv_prog_cc_cross
10941 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10943 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10944 for ac_func in _isinf
10946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10947 echo "configure:10948: checking for $ac_func" >&5
10948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10950 else
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 /* System header to define __stub macros and hopefully few prototypes,
10955 which can conflict with char $ac_func(); below. */
10956 #include <assert.h>
10957 /* Override any gcc2 internal prototype to avoid an error. */
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960 char $ac_func();
10962 int main() {
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10968 choke me
10969 #else
10970 $ac_func();
10971 #endif
10973 ; return 0; }
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10976 rm -rf conftest*
10977 eval "ac_cv_func_$ac_func=yes"
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 eval "ac_cv_func_$ac_func=no"
10984 rm -f conftest*
10987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10990 cat >> confdefs.h <<EOF
10991 #define $ac_tr_func 1
10994 else
10995 echo "$ac_t""no" 1>&6
10997 done
11004 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11005 echo "configure:11006: checking for isnan declaration" >&5
11006 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11007 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009 else
11012 ac_ext=C
11013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11014 ac_cpp='$CXXCPP $CPPFLAGS'
11015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017 cross_compiling=$ac_cv_prog_cxx_cross
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 #include <math.h>
11023 #ifdef HAVE_IEEEFP_H
11024 #include <ieeefp.h>
11025 #endif
11027 int main() {
11028 isnan(0);
11029 ; return 0; }
11031 if { (eval echo configure:11032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11032 rm -rf conftest*
11033 glibcpp_cv_func_isnan_use=yes
11034 else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -rf conftest*
11038 glibcpp_cv_func_isnan_use=no
11040 rm -f conftest*
11041 ac_ext=c
11042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11043 ac_cpp='$CPP $CPPFLAGS'
11044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11046 cross_compiling=$ac_cv_prog_cc_cross
11052 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11054 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11055 for ac_func in isnan
11057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11058 echo "configure:11059: checking for $ac_func" >&5
11059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11061 else
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char $ac_func(); below. */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11069 /* We use char because int might match the return type of a gcc2
11070 builtin and then its argument prototype would still apply. */
11071 char $ac_func();
11073 int main() {
11075 /* The GNU C library defines this for functions which it implements
11076 to always fail with ENOSYS. Some functions are actually named
11077 something starting with __ and the normal name is an alias. */
11078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11079 choke me
11080 #else
11081 $ac_func();
11082 #endif
11084 ; return 0; }
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087 rm -rf conftest*
11088 eval "ac_cv_func_$ac_func=yes"
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 eval "ac_cv_func_$ac_func=no"
11095 rm -f conftest*
11098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11099 echo "$ac_t""yes" 1>&6
11100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11101 cat >> confdefs.h <<EOF
11102 #define $ac_tr_func 1
11105 else
11106 echo "$ac_t""no" 1>&6
11108 done
11110 else
11112 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11113 echo "configure:11114: checking for _isnan declaration" >&5
11114 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11115 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11117 else
11120 ac_ext=C
11121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11122 ac_cpp='$CXXCPP $CPPFLAGS'
11123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11125 cross_compiling=$ac_cv_prog_cxx_cross
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 #include <math.h>
11131 #ifdef HAVE_IEEEFP_H
11132 #include <ieeefp.h>
11133 #endif
11135 int main() {
11136 _isnan(0);
11137 ; return 0; }
11139 if { (eval echo configure:11140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11140 rm -rf conftest*
11141 glibcpp_cv_func__isnan_use=yes
11142 else
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11145 rm -rf conftest*
11146 glibcpp_cv_func__isnan_use=no
11148 rm -f conftest*
11149 ac_ext=c
11150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11151 ac_cpp='$CPP $CPPFLAGS'
11152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11154 cross_compiling=$ac_cv_prog_cc_cross
11160 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11162 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11163 for ac_func in _isnan
11165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_func" >&5
11167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11169 else
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char $ac_func(); below. */
11175 #include <assert.h>
11176 /* Override any gcc2 internal prototype to avoid an error. */
11177 /* We use char because int might match the return type of a gcc2
11178 builtin and then its argument prototype would still apply. */
11179 char $ac_func();
11181 int main() {
11183 /* The GNU C library defines this for functions which it implements
11184 to always fail with ENOSYS. Some functions are actually named
11185 something starting with __ and the normal name is an alias. */
11186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11187 choke me
11188 #else
11189 $ac_func();
11190 #endif
11192 ; return 0; }
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11195 rm -rf conftest*
11196 eval "ac_cv_func_$ac_func=yes"
11197 else
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -rf conftest*
11201 eval "ac_cv_func_$ac_func=no"
11203 rm -f conftest*
11206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_func 1
11213 else
11214 echo "$ac_t""no" 1>&6
11216 done
11223 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11224 echo "configure:11225: checking for finite declaration" >&5
11225 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11226 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11227 echo $ac_n "(cached) $ac_c" 1>&6
11228 else
11231 ac_ext=C
11232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11233 ac_cpp='$CXXCPP $CPPFLAGS'
11234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11236 cross_compiling=$ac_cv_prog_cxx_cross
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 #include <math.h>
11242 #ifdef HAVE_IEEEFP_H
11243 #include <ieeefp.h>
11244 #endif
11246 int main() {
11247 finite(0);
11248 ; return 0; }
11250 if { (eval echo configure:11251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11251 rm -rf conftest*
11252 glibcpp_cv_func_finite_use=yes
11253 else
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 rm -rf conftest*
11257 glibcpp_cv_func_finite_use=no
11259 rm -f conftest*
11260 ac_ext=c
11261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11262 ac_cpp='$CPP $CPPFLAGS'
11263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11265 cross_compiling=$ac_cv_prog_cc_cross
11271 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11273 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11274 for ac_func in finite
11276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11277 echo "configure:11278: checking for $ac_func" >&5
11278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11279 echo $ac_n "(cached) $ac_c" 1>&6
11280 else
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 /* System header to define __stub macros and hopefully few prototypes,
11285 which can conflict with char $ac_func(); below. */
11286 #include <assert.h>
11287 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290 char $ac_func();
11292 int main() {
11294 /* The GNU C library defines this for functions which it implements
11295 to always fail with ENOSYS. Some functions are actually named
11296 something starting with __ and the normal name is an alias. */
11297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11298 choke me
11299 #else
11300 $ac_func();
11301 #endif
11303 ; return 0; }
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 rm -rf conftest*
11307 eval "ac_cv_func_$ac_func=yes"
11308 else
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 rm -rf conftest*
11312 eval "ac_cv_func_$ac_func=no"
11314 rm -f conftest*
11317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11318 echo "$ac_t""yes" 1>&6
11319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11320 cat >> confdefs.h <<EOF
11321 #define $ac_tr_func 1
11324 else
11325 echo "$ac_t""no" 1>&6
11327 done
11329 else
11331 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11332 echo "configure:11333: checking for _finite declaration" >&5
11333 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11334 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336 else
11339 ac_ext=C
11340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11341 ac_cpp='$CXXCPP $CPPFLAGS'
11342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11344 cross_compiling=$ac_cv_prog_cxx_cross
11346 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11349 #include <math.h>
11350 #ifdef HAVE_IEEEFP_H
11351 #include <ieeefp.h>
11352 #endif
11354 int main() {
11355 _finite(0);
11356 ; return 0; }
11358 if { (eval echo configure:11359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11359 rm -rf conftest*
11360 glibcpp_cv_func__finite_use=yes
11361 else
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 rm -rf conftest*
11365 glibcpp_cv_func__finite_use=no
11367 rm -f conftest*
11368 ac_ext=c
11369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11370 ac_cpp='$CPP $CPPFLAGS'
11371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11373 cross_compiling=$ac_cv_prog_cc_cross
11379 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11381 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11382 for ac_func in _finite
11384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11385 echo "configure:11386: checking for $ac_func" >&5
11386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11388 else
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 /* System header to define __stub macros and hopefully few prototypes,
11393 which can conflict with char $ac_func(); below. */
11394 #include <assert.h>
11395 /* Override any gcc2 internal prototype to avoid an error. */
11396 /* We use char because int might match the return type of a gcc2
11397 builtin and then its argument prototype would still apply. */
11398 char $ac_func();
11400 int main() {
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11406 choke me
11407 #else
11408 $ac_func();
11409 #endif
11411 ; return 0; }
11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11414 rm -rf conftest*
11415 eval "ac_cv_func_$ac_func=yes"
11416 else
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 rm -rf conftest*
11420 eval "ac_cv_func_$ac_func=no"
11422 rm -f conftest*
11425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11426 echo "$ac_t""yes" 1>&6
11427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11428 cat >> confdefs.h <<EOF
11429 #define $ac_tr_func 1
11432 else
11433 echo "$ac_t""no" 1>&6
11435 done
11442 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11443 echo "configure:11444: checking for copysign declaration" >&5
11444 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11445 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11446 echo $ac_n "(cached) $ac_c" 1>&6
11447 else
11450 ac_ext=C
11451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11452 ac_cpp='$CXXCPP $CPPFLAGS'
11453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11455 cross_compiling=$ac_cv_prog_cxx_cross
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 #include <math.h>
11461 int main() {
11462 copysign(0, 0);
11463 ; return 0; }
11465 if { (eval echo configure:11466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11466 rm -rf conftest*
11467 glibcpp_cv_func_copysign_use=yes
11468 else
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472 glibcpp_cv_func_copysign_use=no
11474 rm -f conftest*
11475 ac_ext=c
11476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11480 cross_compiling=$ac_cv_prog_cc_cross
11486 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11488 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11489 for ac_func in copysign
11491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11492 echo "configure:11493: checking for $ac_func" >&5
11493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11495 else
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func(); below. */
11501 #include <assert.h>
11502 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */
11505 char $ac_func();
11507 int main() {
11509 /* The GNU C library defines this for functions which it implements
11510 to always fail with ENOSYS. Some functions are actually named
11511 something starting with __ and the normal name is an alias. */
11512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11513 choke me
11514 #else
11515 $ac_func();
11516 #endif
11518 ; return 0; }
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11521 rm -rf conftest*
11522 eval "ac_cv_func_$ac_func=yes"
11523 else
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 rm -rf conftest*
11527 eval "ac_cv_func_$ac_func=no"
11529 rm -f conftest*
11532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11535 cat >> confdefs.h <<EOF
11536 #define $ac_tr_func 1
11539 else
11540 echo "$ac_t""no" 1>&6
11542 done
11544 else
11546 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11547 echo "configure:11548: checking for _copysign declaration" >&5
11548 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11549 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11551 else
11554 ac_ext=C
11555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11556 ac_cpp='$CXXCPP $CPPFLAGS'
11557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11559 cross_compiling=$ac_cv_prog_cxx_cross
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 #include <math.h>
11565 int main() {
11566 _copysign(0, 0);
11567 ; return 0; }
11569 if { (eval echo configure:11570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11570 rm -rf conftest*
11571 glibcpp_cv_func__copysign_use=yes
11572 else
11573 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 rm -rf conftest*
11576 glibcpp_cv_func__copysign_use=no
11578 rm -f conftest*
11579 ac_ext=c
11580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11584 cross_compiling=$ac_cv_prog_cc_cross
11590 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11592 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11593 for ac_func in _copysign
11595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11596 echo "configure:11597: checking for $ac_func" >&5
11597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11598 echo $ac_n "(cached) $ac_c" 1>&6
11599 else
11600 cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11603 /* System header to define __stub macros and hopefully few prototypes,
11604 which can conflict with char $ac_func(); below. */
11605 #include <assert.h>
11606 /* Override any gcc2 internal prototype to avoid an error. */
11607 /* We use char because int might match the return type of a gcc2
11608 builtin and then its argument prototype would still apply. */
11609 char $ac_func();
11611 int main() {
11613 /* The GNU C library defines this for functions which it implements
11614 to always fail with ENOSYS. Some functions are actually named
11615 something starting with __ and the normal name is an alias. */
11616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11617 choke me
11618 #else
11619 $ac_func();
11620 #endif
11622 ; return 0; }
11624 if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625 rm -rf conftest*
11626 eval "ac_cv_func_$ac_func=yes"
11627 else
11628 echo "configure: failed program was:" >&5
11629 cat conftest.$ac_ext >&5
11630 rm -rf conftest*
11631 eval "ac_cv_func_$ac_func=no"
11633 rm -f conftest*
11636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11637 echo "$ac_t""yes" 1>&6
11638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11639 cat >> confdefs.h <<EOF
11640 #define $ac_tr_func 1
11643 else
11644 echo "$ac_t""no" 1>&6
11646 done
11653 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11654 echo "configure:11655: checking for sincos declaration" >&5
11655 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11656 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11657 echo $ac_n "(cached) $ac_c" 1>&6
11658 else
11661 ac_ext=C
11662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11663 ac_cpp='$CXXCPP $CPPFLAGS'
11664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11666 cross_compiling=$ac_cv_prog_cxx_cross
11668 cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11671 #include <math.h>
11672 int main() {
11673 sincos(0, 0, 0);
11674 ; return 0; }
11676 if { (eval echo configure:11677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11677 rm -rf conftest*
11678 glibcpp_cv_func_sincos_use=yes
11679 else
11680 echo "configure: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11682 rm -rf conftest*
11683 glibcpp_cv_func_sincos_use=no
11685 rm -f conftest*
11686 ac_ext=c
11687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11688 ac_cpp='$CPP $CPPFLAGS'
11689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11691 cross_compiling=$ac_cv_prog_cc_cross
11697 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11699 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11700 for ac_func in sincos
11702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11703 echo "configure:11704: checking for $ac_func" >&5
11704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11705 echo $ac_n "(cached) $ac_c" 1>&6
11706 else
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 /* System header to define __stub macros and hopefully few prototypes,
11711 which can conflict with char $ac_func(); below. */
11712 #include <assert.h>
11713 /* Override any gcc2 internal prototype to avoid an error. */
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11716 char $ac_func();
11718 int main() {
11720 /* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11724 choke me
11725 #else
11726 $ac_func();
11727 #endif
11729 ; return 0; }
11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11732 rm -rf conftest*
11733 eval "ac_cv_func_$ac_func=yes"
11734 else
11735 echo "configure: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 rm -rf conftest*
11738 eval "ac_cv_func_$ac_func=no"
11740 rm -f conftest*
11743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11744 echo "$ac_t""yes" 1>&6
11745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11746 cat >> confdefs.h <<EOF
11747 #define $ac_tr_func 1
11750 else
11751 echo "$ac_t""no" 1>&6
11753 done
11755 else
11757 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11758 echo "configure:11759: checking for _sincos declaration" >&5
11759 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11760 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11761 echo $ac_n "(cached) $ac_c" 1>&6
11762 else
11765 ac_ext=C
11766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11767 ac_cpp='$CXXCPP $CPPFLAGS'
11768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11770 cross_compiling=$ac_cv_prog_cxx_cross
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 #include <math.h>
11776 int main() {
11777 _sincos(0, 0, 0);
11778 ; return 0; }
11780 if { (eval echo configure:11781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11781 rm -rf conftest*
11782 glibcpp_cv_func__sincos_use=yes
11783 else
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11786 rm -rf conftest*
11787 glibcpp_cv_func__sincos_use=no
11789 rm -f conftest*
11790 ac_ext=c
11791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11792 ac_cpp='$CPP $CPPFLAGS'
11793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11795 cross_compiling=$ac_cv_prog_cc_cross
11801 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11803 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11804 for ac_func in _sincos
11806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11807 echo "configure:11808: checking for $ac_func" >&5
11808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11810 else
11811 cat > conftest.$ac_ext <<EOF
11812 #line 11813 "configure"
11813 #include "confdefs.h"
11814 /* System header to define __stub macros and hopefully few prototypes,
11815 which can conflict with char $ac_func(); below. */
11816 #include <assert.h>
11817 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820 char $ac_func();
11822 int main() {
11824 /* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11828 choke me
11829 #else
11830 $ac_func();
11831 #endif
11833 ; return 0; }
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11836 rm -rf conftest*
11837 eval "ac_cv_func_$ac_func=yes"
11838 else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
11842 eval "ac_cv_func_$ac_func=no"
11844 rm -f conftest*
11847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11850 cat >> confdefs.h <<EOF
11851 #define $ac_tr_func 1
11854 else
11855 echo "$ac_t""no" 1>&6
11857 done
11864 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11865 echo "configure:11866: checking for fpclass declaration" >&5
11866 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11867 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11872 ac_ext=C
11873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11874 ac_cpp='$CXXCPP $CPPFLAGS'
11875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11877 cross_compiling=$ac_cv_prog_cxx_cross
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11882 #include <math.h>
11883 #ifdef HAVE_IEEEFP_H
11884 #include <ieeefp.h>
11885 #endif
11887 int main() {
11888 fpclass(0);
11889 ; return 0; }
11891 if { (eval echo configure:11892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11892 rm -rf conftest*
11893 glibcpp_cv_func_fpclass_use=yes
11894 else
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11897 rm -rf conftest*
11898 glibcpp_cv_func_fpclass_use=no
11900 rm -f conftest*
11901 ac_ext=c
11902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11903 ac_cpp='$CPP $CPPFLAGS'
11904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11906 cross_compiling=$ac_cv_prog_cc_cross
11912 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11914 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11915 for ac_func in fpclass
11917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11918 echo "configure:11919: checking for $ac_func" >&5
11919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11920 echo $ac_n "(cached) $ac_c" 1>&6
11921 else
11922 cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 /* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char $ac_func(); below. */
11927 #include <assert.h>
11928 /* Override any gcc2 internal prototype to avoid an error. */
11929 /* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931 char $ac_func();
11933 int main() {
11935 /* The GNU C library defines this for functions which it implements
11936 to always fail with ENOSYS. Some functions are actually named
11937 something starting with __ and the normal name is an alias. */
11938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11939 choke me
11940 #else
11941 $ac_func();
11942 #endif
11944 ; return 0; }
11946 if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11947 rm -rf conftest*
11948 eval "ac_cv_func_$ac_func=yes"
11949 else
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11952 rm -rf conftest*
11953 eval "ac_cv_func_$ac_func=no"
11955 rm -f conftest*
11958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11959 echo "$ac_t""yes" 1>&6
11960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11961 cat >> confdefs.h <<EOF
11962 #define $ac_tr_func 1
11965 else
11966 echo "$ac_t""no" 1>&6
11968 done
11970 else
11972 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11973 echo "configure:11974: checking for _fpclass declaration" >&5
11974 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11975 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11976 echo $ac_n "(cached) $ac_c" 1>&6
11977 else
11980 ac_ext=C
11981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11982 ac_cpp='$CXXCPP $CPPFLAGS'
11983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985 cross_compiling=$ac_cv_prog_cxx_cross
11987 cat > conftest.$ac_ext <<EOF
11988 #line 11989 "configure"
11989 #include "confdefs.h"
11990 #include <math.h>
11991 #ifdef HAVE_IEEEFP_H
11992 #include <ieeefp.h>
11993 #endif
11995 int main() {
11996 _fpclass(0);
11997 ; return 0; }
11999 if { (eval echo configure:12000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12000 rm -rf conftest*
12001 glibcpp_cv_func__fpclass_use=yes
12002 else
12003 echo "configure: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12005 rm -rf conftest*
12006 glibcpp_cv_func__fpclass_use=no
12008 rm -f conftest*
12009 ac_ext=c
12010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12011 ac_cpp='$CPP $CPPFLAGS'
12012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12014 cross_compiling=$ac_cv_prog_cc_cross
12020 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12022 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12023 for ac_func in _fpclass
12025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12026 echo "configure:12027: checking for $ac_func" >&5
12027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12028 echo $ac_n "(cached) $ac_c" 1>&6
12029 else
12030 cat > conftest.$ac_ext <<EOF
12031 #line 12032 "configure"
12032 #include "confdefs.h"
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func(); below. */
12035 #include <assert.h>
12036 /* Override any gcc2 internal prototype to avoid an error. */
12037 /* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12039 char $ac_func();
12041 int main() {
12043 /* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12047 choke me
12048 #else
12049 $ac_func();
12050 #endif
12052 ; return 0; }
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12055 rm -rf conftest*
12056 eval "ac_cv_func_$ac_func=yes"
12057 else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -rf conftest*
12061 eval "ac_cv_func_$ac_func=no"
12063 rm -f conftest*
12066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12067 echo "$ac_t""yes" 1>&6
12068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12069 cat >> confdefs.h <<EOF
12070 #define $ac_tr_func 1
12073 else
12074 echo "$ac_t""no" 1>&6
12076 done
12083 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12084 echo "configure:12085: checking for qfpclass declaration" >&5
12085 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12086 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12088 else
12091 ac_ext=C
12092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12093 ac_cpp='$CXXCPP $CPPFLAGS'
12094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12096 cross_compiling=$ac_cv_prog_cxx_cross
12098 cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 #include <math.h>
12102 #ifdef HAVE_IEEEFP_H
12103 #include <ieeefp.h>
12104 #endif
12106 int main() {
12107 qfpclass(0);
12108 ; return 0; }
12110 if { (eval echo configure:12111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12111 rm -rf conftest*
12112 glibcpp_cv_func_qfpclass_use=yes
12113 else
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 rm -rf conftest*
12117 glibcpp_cv_func_qfpclass_use=no
12119 rm -f conftest*
12120 ac_ext=c
12121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12122 ac_cpp='$CPP $CPPFLAGS'
12123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12125 cross_compiling=$ac_cv_prog_cc_cross
12131 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12133 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12134 for ac_func in qfpclass
12136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12137 echo "configure:12138: checking for $ac_func" >&5
12138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12140 else
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 /* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char $ac_func(); below. */
12146 #include <assert.h>
12147 /* Override any gcc2 internal prototype to avoid an error. */
12148 /* We use char because int might match the return type of a gcc2
12149 builtin and then its argument prototype would still apply. */
12150 char $ac_func();
12152 int main() {
12154 /* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12158 choke me
12159 #else
12160 $ac_func();
12161 #endif
12163 ; return 0; }
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166 rm -rf conftest*
12167 eval "ac_cv_func_$ac_func=yes"
12168 else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 eval "ac_cv_func_$ac_func=no"
12174 rm -f conftest*
12177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12180 cat >> confdefs.h <<EOF
12181 #define $ac_tr_func 1
12184 else
12185 echo "$ac_t""no" 1>&6
12187 done
12189 else
12191 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12192 echo "configure:12193: checking for _qfpclass declaration" >&5
12193 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12194 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196 else
12199 ac_ext=C
12200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12201 ac_cpp='$CXXCPP $CPPFLAGS'
12202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12204 cross_compiling=$ac_cv_prog_cxx_cross
12206 cat > conftest.$ac_ext <<EOF
12207 #line 12208 "configure"
12208 #include "confdefs.h"
12209 #include <math.h>
12210 #ifdef HAVE_IEEEFP_H
12211 #include <ieeefp.h>
12212 #endif
12214 int main() {
12215 _qfpclass(0);
12216 ; return 0; }
12218 if { (eval echo configure:12219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12219 rm -rf conftest*
12220 glibcpp_cv_func__qfpclass_use=yes
12221 else
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225 glibcpp_cv_func__qfpclass_use=no
12227 rm -f conftest*
12228 ac_ext=c
12229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12230 ac_cpp='$CPP $CPPFLAGS'
12231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12233 cross_compiling=$ac_cv_prog_cc_cross
12239 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12241 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12242 for ac_func in _qfpclass
12244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12245 echo "configure:12246: checking for $ac_func" >&5
12246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 /* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func(); below. */
12254 #include <assert.h>
12255 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char $ac_func();
12260 int main() {
12262 /* The GNU C library defines this for functions which it implements
12263 to always fail with ENOSYS. Some functions are actually named
12264 something starting with __ and the normal name is an alias. */
12265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12266 choke me
12267 #else
12268 $ac_func();
12269 #endif
12271 ; return 0; }
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 rm -rf conftest*
12275 eval "ac_cv_func_$ac_func=yes"
12276 else
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12279 rm -rf conftest*
12280 eval "ac_cv_func_$ac_func=no"
12282 rm -f conftest*
12285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12288 cat >> confdefs.h <<EOF
12289 #define $ac_tr_func 1
12292 else
12293 echo "$ac_t""no" 1>&6
12295 done
12302 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12303 echo "configure:12304: checking for hypot declaration" >&5
12304 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12305 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12307 else
12310 ac_ext=C
12311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12312 ac_cpp='$CXXCPP $CPPFLAGS'
12313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12315 cross_compiling=$ac_cv_prog_cxx_cross
12317 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 #include <math.h>
12321 int main() {
12322 hypot(0, 0);
12323 ; return 0; }
12325 if { (eval echo configure:12326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12326 rm -rf conftest*
12327 glibcpp_cv_func_hypot_use=yes
12328 else
12329 echo "configure: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331 rm -rf conftest*
12332 glibcpp_cv_func_hypot_use=no
12334 rm -f conftest*
12335 ac_ext=c
12336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12337 ac_cpp='$CPP $CPPFLAGS'
12338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12340 cross_compiling=$ac_cv_prog_cc_cross
12346 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12348 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12349 for ac_func in hypot
12351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12352 echo "configure:12353: checking for $ac_func" >&5
12353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12354 echo $ac_n "(cached) $ac_c" 1>&6
12355 else
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func(); below. */
12361 #include <assert.h>
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365 char $ac_func();
12367 int main() {
12369 /* The GNU C library defines this for functions which it implements
12370 to always fail with ENOSYS. Some functions are actually named
12371 something starting with __ and the normal name is an alias. */
12372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12373 choke me
12374 #else
12375 $ac_func();
12376 #endif
12378 ; return 0; }
12380 if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12381 rm -rf conftest*
12382 eval "ac_cv_func_$ac_func=yes"
12383 else
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 rm -rf conftest*
12387 eval "ac_cv_func_$ac_func=no"
12389 rm -f conftest*
12392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12393 echo "$ac_t""yes" 1>&6
12394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12395 cat >> confdefs.h <<EOF
12396 #define $ac_tr_func 1
12399 else
12400 echo "$ac_t""no" 1>&6
12402 done
12404 else
12406 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12407 echo "configure:12408: checking for _hypot declaration" >&5
12408 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12409 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12411 else
12414 ac_ext=C
12415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12416 ac_cpp='$CXXCPP $CPPFLAGS'
12417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12419 cross_compiling=$ac_cv_prog_cxx_cross
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 #include <math.h>
12425 int main() {
12426 _hypot(0, 0);
12427 ; return 0; }
12429 if { (eval echo configure:12430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12430 rm -rf conftest*
12431 glibcpp_cv_func__hypot_use=yes
12432 else
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12435 rm -rf conftest*
12436 glibcpp_cv_func__hypot_use=no
12438 rm -f conftest*
12439 ac_ext=c
12440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12441 ac_cpp='$CPP $CPPFLAGS'
12442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12444 cross_compiling=$ac_cv_prog_cc_cross
12450 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12452 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12453 for ac_func in _hypot
12455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12456 echo "configure:12457: checking for $ac_func" >&5
12457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12458 echo $ac_n "(cached) $ac_c" 1>&6
12459 else
12460 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12463 /* System header to define __stub macros and hopefully few prototypes,
12464 which can conflict with char $ac_func(); below. */
12465 #include <assert.h>
12466 /* Override any gcc2 internal prototype to avoid an error. */
12467 /* We use char because int might match the return type of a gcc2
12468 builtin and then its argument prototype would still apply. */
12469 char $ac_func();
12471 int main() {
12473 /* The GNU C library defines this for functions which it implements
12474 to always fail with ENOSYS. Some functions are actually named
12475 something starting with __ and the normal name is an alias. */
12476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12477 choke me
12478 #else
12479 $ac_func();
12480 #endif
12482 ; return 0; }
12484 if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12485 rm -rf conftest*
12486 eval "ac_cv_func_$ac_func=yes"
12487 else
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 rm -rf conftest*
12491 eval "ac_cv_func_$ac_func=no"
12493 rm -f conftest*
12496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12497 echo "$ac_t""yes" 1>&6
12498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12499 cat >> confdefs.h <<EOF
12500 #define $ac_tr_func 1
12503 else
12504 echo "$ac_t""no" 1>&6
12506 done
12513 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12514 echo "configure:12515: checking for float trig functions" >&5
12515 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12516 echo $ac_n "(cached) $ac_c" 1>&6
12517 else
12520 ac_ext=C
12521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525 cross_compiling=$ac_cv_prog_cxx_cross
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 #include <math.h>
12531 int main() {
12532 `for x in acosf asinf atanf \
12533 cosf sinf tanf \
12534 coshf sinhf tanhf; do echo "$x (0);"; done`
12535 ; return 0; }
12537 if { (eval echo configure:12538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12538 rm -rf conftest*
12539 glibcpp_cv_func_float_trig_use=yes
12540 else
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -rf conftest*
12544 glibcpp_cv_func_float_trig_use=no
12546 rm -f conftest*
12547 ac_ext=c
12548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12552 cross_compiling=$ac_cv_prog_cc_cross
12556 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12557 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12558 for ac_func in acosf asinf atanf \
12559 cosf sinf tanf \
12560 coshf sinhf tanhf
12562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12563 echo "configure:12564: checking for $ac_func" >&5
12564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12565 echo $ac_n "(cached) $ac_c" 1>&6
12566 else
12567 cat > conftest.$ac_ext <<EOF
12568 #line 12569 "configure"
12569 #include "confdefs.h"
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func(); below. */
12572 #include <assert.h>
12573 /* Override any gcc2 internal prototype to avoid an error. */
12574 /* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576 char $ac_func();
12578 int main() {
12580 /* The GNU C library defines this for functions which it implements
12581 to always fail with ENOSYS. Some functions are actually named
12582 something starting with __ and the normal name is an alias. */
12583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12584 choke me
12585 #else
12586 $ac_func();
12587 #endif
12589 ; return 0; }
12591 if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12592 rm -rf conftest*
12593 eval "ac_cv_func_$ac_func=yes"
12594 else
12595 echo "configure: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 rm -rf conftest*
12598 eval "ac_cv_func_$ac_func=no"
12600 rm -f conftest*
12603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12604 echo "$ac_t""yes" 1>&6
12605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12606 cat >> confdefs.h <<EOF
12607 #define $ac_tr_func 1
12610 else
12611 echo "$ac_t""no" 1>&6
12613 done
12618 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12619 echo "configure:12620: checking for float round functions" >&5
12620 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12622 else
12625 ac_ext=C
12626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12627 ac_cpp='$CXXCPP $CPPFLAGS'
12628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12630 cross_compiling=$ac_cv_prog_cxx_cross
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12635 #include <math.h>
12636 int main() {
12637 `for x in ceilf floorf; do echo "$x (0);"; done`
12638 ; return 0; }
12640 if { (eval echo configure:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12641 rm -rf conftest*
12642 glibcpp_cv_func_float_round_use=yes
12643 else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 glibcpp_cv_func_float_round_use=no
12649 rm -f conftest*
12650 ac_ext=c
12651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12655 cross_compiling=$ac_cv_prog_cc_cross
12659 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12660 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12661 for ac_func in ceilf floorf
12663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12664 echo "configure:12665: checking for $ac_func" >&5
12665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12666 echo $ac_n "(cached) $ac_c" 1>&6
12667 else
12668 cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char $ac_func(); below. */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char $ac_func();
12679 int main() {
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 choke me
12686 #else
12687 $ac_func();
12688 #endif
12690 ; return 0; }
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693 rm -rf conftest*
12694 eval "ac_cv_func_$ac_func=yes"
12695 else
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 rm -rf conftest*
12699 eval "ac_cv_func_$ac_func=no"
12701 rm -f conftest*
12704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12705 echo "$ac_t""yes" 1>&6
12706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12707 cat >> confdefs.h <<EOF
12708 #define $ac_tr_func 1
12711 else
12712 echo "$ac_t""no" 1>&6
12714 done
12720 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12721 echo "configure:12722: checking for expf declaration" >&5
12722 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12723 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12724 echo $ac_n "(cached) $ac_c" 1>&6
12725 else
12728 ac_ext=C
12729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12730 ac_cpp='$CXXCPP $CPPFLAGS'
12731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12733 cross_compiling=$ac_cv_prog_cxx_cross
12735 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <math.h>
12739 #ifdef HAVE_IEEEFP_H
12740 #include <ieeefp.h>
12741 #endif
12743 int main() {
12744 expf(0);
12745 ; return 0; }
12747 if { (eval echo configure:12748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12748 rm -rf conftest*
12749 glibcpp_cv_func_expf_use=yes
12750 else
12751 echo "configure: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12753 rm -rf conftest*
12754 glibcpp_cv_func_expf_use=no
12756 rm -f conftest*
12757 ac_ext=c
12758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12762 cross_compiling=$ac_cv_prog_cc_cross
12768 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12770 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12771 for ac_func in expf
12773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12774 echo "configure:12775: checking for $ac_func" >&5
12775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12776 echo $ac_n "(cached) $ac_c" 1>&6
12777 else
12778 cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char $ac_func(); below. */
12783 #include <assert.h>
12784 /* Override any gcc2 internal prototype to avoid an error. */
12785 /* We use char because int might match the return type of a gcc2
12786 builtin and then its argument prototype would still apply. */
12787 char $ac_func();
12789 int main() {
12791 /* The GNU C library defines this for functions which it implements
12792 to always fail with ENOSYS. Some functions are actually named
12793 something starting with __ and the normal name is an alias. */
12794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12795 choke me
12796 #else
12797 $ac_func();
12798 #endif
12800 ; return 0; }
12802 if { (eval echo configure:12803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12803 rm -rf conftest*
12804 eval "ac_cv_func_$ac_func=yes"
12805 else
12806 echo "configure: failed program was:" >&5
12807 cat conftest.$ac_ext >&5
12808 rm -rf conftest*
12809 eval "ac_cv_func_$ac_func=no"
12811 rm -f conftest*
12814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12815 echo "$ac_t""yes" 1>&6
12816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12817 cat >> confdefs.h <<EOF
12818 #define $ac_tr_func 1
12821 else
12822 echo "$ac_t""no" 1>&6
12824 done
12826 else
12828 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12829 echo "configure:12830: checking for _expf declaration" >&5
12830 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12831 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12832 echo $ac_n "(cached) $ac_c" 1>&6
12833 else
12836 ac_ext=C
12837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12838 ac_cpp='$CXXCPP $CPPFLAGS'
12839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12841 cross_compiling=$ac_cv_prog_cxx_cross
12843 cat > conftest.$ac_ext <<EOF
12844 #line 12845 "configure"
12845 #include "confdefs.h"
12846 #include <math.h>
12847 #ifdef HAVE_IEEEFP_H
12848 #include <ieeefp.h>
12849 #endif
12851 int main() {
12852 _expf(0);
12853 ; return 0; }
12855 if { (eval echo configure:12856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12856 rm -rf conftest*
12857 glibcpp_cv_func__expf_use=yes
12858 else
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861 rm -rf conftest*
12862 glibcpp_cv_func__expf_use=no
12864 rm -f conftest*
12865 ac_ext=c
12866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12870 cross_compiling=$ac_cv_prog_cc_cross
12876 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12878 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12879 for ac_func in _expf
12881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12882 echo "configure:12883: checking for $ac_func" >&5
12883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12884 echo $ac_n "(cached) $ac_c" 1>&6
12885 else
12886 cat > conftest.$ac_ext <<EOF
12887 #line 12888 "configure"
12888 #include "confdefs.h"
12889 /* System header to define __stub macros and hopefully few prototypes,
12890 which can conflict with char $ac_func(); below. */
12891 #include <assert.h>
12892 /* Override any gcc2 internal prototype to avoid an error. */
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895 char $ac_func();
12897 int main() {
12899 /* The GNU C library defines this for functions which it implements
12900 to always fail with ENOSYS. Some functions are actually named
12901 something starting with __ and the normal name is an alias. */
12902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12903 choke me
12904 #else
12905 $ac_func();
12906 #endif
12908 ; return 0; }
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12911 rm -rf conftest*
12912 eval "ac_cv_func_$ac_func=yes"
12913 else
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 rm -rf conftest*
12917 eval "ac_cv_func_$ac_func=no"
12919 rm -f conftest*
12922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12923 echo "$ac_t""yes" 1>&6
12924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12925 cat >> confdefs.h <<EOF
12926 #define $ac_tr_func 1
12929 else
12930 echo "$ac_t""no" 1>&6
12932 done
12939 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12940 echo "configure:12941: checking for isnanf declaration" >&5
12941 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12942 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12943 echo $ac_n "(cached) $ac_c" 1>&6
12944 else
12947 ac_ext=C
12948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12949 ac_cpp='$CXXCPP $CPPFLAGS'
12950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12952 cross_compiling=$ac_cv_prog_cxx_cross
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 #include <math.h>
12958 #ifdef HAVE_IEEEFP_H
12959 #include <ieeefp.h>
12960 #endif
12962 int main() {
12963 isnanf(0);
12964 ; return 0; }
12966 if { (eval echo configure:12967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12967 rm -rf conftest*
12968 glibcpp_cv_func_isnanf_use=yes
12969 else
12970 echo "configure: failed program was:" >&5
12971 cat conftest.$ac_ext >&5
12972 rm -rf conftest*
12973 glibcpp_cv_func_isnanf_use=no
12975 rm -f conftest*
12976 ac_ext=c
12977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12978 ac_cpp='$CPP $CPPFLAGS'
12979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12981 cross_compiling=$ac_cv_prog_cc_cross
12987 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12989 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12990 for ac_func in isnanf
12992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12993 echo "configure:12994: checking for $ac_func" >&5
12994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12995 echo $ac_n "(cached) $ac_c" 1>&6
12996 else
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 /* System header to define __stub macros and hopefully few prototypes,
13001 which can conflict with char $ac_func(); below. */
13002 #include <assert.h>
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char $ac_func();
13008 int main() {
13010 /* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014 choke me
13015 #else
13016 $ac_func();
13017 #endif
13019 ; return 0; }
13021 if { (eval echo configure:13022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13022 rm -rf conftest*
13023 eval "ac_cv_func_$ac_func=yes"
13024 else
13025 echo "configure: failed program was:" >&5
13026 cat conftest.$ac_ext >&5
13027 rm -rf conftest*
13028 eval "ac_cv_func_$ac_func=no"
13030 rm -f conftest*
13033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13034 echo "$ac_t""yes" 1>&6
13035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13036 cat >> confdefs.h <<EOF
13037 #define $ac_tr_func 1
13040 else
13041 echo "$ac_t""no" 1>&6
13043 done
13045 else
13047 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13048 echo "configure:13049: checking for _isnanf declaration" >&5
13049 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13050 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13051 echo $ac_n "(cached) $ac_c" 1>&6
13052 else
13055 ac_ext=C
13056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13057 ac_cpp='$CXXCPP $CPPFLAGS'
13058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13060 cross_compiling=$ac_cv_prog_cxx_cross
13062 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 #include <math.h>
13066 #ifdef HAVE_IEEEFP_H
13067 #include <ieeefp.h>
13068 #endif
13070 int main() {
13071 _isnanf(0);
13072 ; return 0; }
13074 if { (eval echo configure:13075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13075 rm -rf conftest*
13076 glibcpp_cv_func__isnanf_use=yes
13077 else
13078 echo "configure: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 rm -rf conftest*
13081 glibcpp_cv_func__isnanf_use=no
13083 rm -f conftest*
13084 ac_ext=c
13085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13089 cross_compiling=$ac_cv_prog_cc_cross
13095 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13097 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13098 for ac_func in _isnanf
13100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13101 echo "configure:13102: checking for $ac_func" >&5
13102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105 cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 /* System header to define __stub macros and hopefully few prototypes,
13109 which can conflict with char $ac_func(); below. */
13110 #include <assert.h>
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13114 char $ac_func();
13116 int main() {
13118 /* The GNU C library defines this for functions which it implements
13119 to always fail with ENOSYS. Some functions are actually named
13120 something starting with __ and the normal name is an alias. */
13121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13122 choke me
13123 #else
13124 $ac_func();
13125 #endif
13127 ; return 0; }
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13130 rm -rf conftest*
13131 eval "ac_cv_func_$ac_func=yes"
13132 else
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13135 rm -rf conftest*
13136 eval "ac_cv_func_$ac_func=no"
13138 rm -f conftest*
13141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13142 echo "$ac_t""yes" 1>&6
13143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13144 cat >> confdefs.h <<EOF
13145 #define $ac_tr_func 1
13148 else
13149 echo "$ac_t""no" 1>&6
13151 done
13158 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13159 echo "configure:13160: checking for isinff declaration" >&5
13160 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13161 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13163 else
13166 ac_ext=C
13167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13168 ac_cpp='$CXXCPP $CPPFLAGS'
13169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13171 cross_compiling=$ac_cv_prog_cxx_cross
13173 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure"
13175 #include "confdefs.h"
13176 #include <math.h>
13177 #ifdef HAVE_IEEEFP_H
13178 #include <ieeefp.h>
13179 #endif
13181 int main() {
13182 isinff(0);
13183 ; return 0; }
13185 if { (eval echo configure:13186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13186 rm -rf conftest*
13187 glibcpp_cv_func_isinff_use=yes
13188 else
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13191 rm -rf conftest*
13192 glibcpp_cv_func_isinff_use=no
13194 rm -f conftest*
13195 ac_ext=c
13196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13197 ac_cpp='$CPP $CPPFLAGS'
13198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13200 cross_compiling=$ac_cv_prog_cc_cross
13206 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13208 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13209 for ac_func in isinff
13211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13212 echo "configure:13213: checking for $ac_func" >&5
13213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13215 else
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 /* System header to define __stub macros and hopefully few prototypes,
13220 which can conflict with char $ac_func(); below. */
13221 #include <assert.h>
13222 /* Override any gcc2 internal prototype to avoid an error. */
13223 /* We use char because int might match the return type of a gcc2
13224 builtin and then its argument prototype would still apply. */
13225 char $ac_func();
13227 int main() {
13229 /* The GNU C library defines this for functions which it implements
13230 to always fail with ENOSYS. Some functions are actually named
13231 something starting with __ and the normal name is an alias. */
13232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13233 choke me
13234 #else
13235 $ac_func();
13236 #endif
13238 ; return 0; }
13240 if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13241 rm -rf conftest*
13242 eval "ac_cv_func_$ac_func=yes"
13243 else
13244 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13246 rm -rf conftest*
13247 eval "ac_cv_func_$ac_func=no"
13249 rm -f conftest*
13252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13255 cat >> confdefs.h <<EOF
13256 #define $ac_tr_func 1
13259 else
13260 echo "$ac_t""no" 1>&6
13262 done
13264 else
13266 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13267 echo "configure:13268: checking for _isinff declaration" >&5
13268 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13269 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13270 echo $ac_n "(cached) $ac_c" 1>&6
13271 else
13274 ac_ext=C
13275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13276 ac_cpp='$CXXCPP $CPPFLAGS'
13277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13279 cross_compiling=$ac_cv_prog_cxx_cross
13281 cat > conftest.$ac_ext <<EOF
13282 #line 13283 "configure"
13283 #include "confdefs.h"
13284 #include <math.h>
13285 #ifdef HAVE_IEEEFP_H
13286 #include <ieeefp.h>
13287 #endif
13289 int main() {
13290 _isinff(0);
13291 ; return 0; }
13293 if { (eval echo configure:13294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13294 rm -rf conftest*
13295 glibcpp_cv_func__isinff_use=yes
13296 else
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 rm -rf conftest*
13300 glibcpp_cv_func__isinff_use=no
13302 rm -f conftest*
13303 ac_ext=c
13304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13305 ac_cpp='$CPP $CPPFLAGS'
13306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13308 cross_compiling=$ac_cv_prog_cc_cross
13314 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13316 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13317 for ac_func in _isinff
13319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13320 echo "configure:13321: checking for $ac_func" >&5
13321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13322 echo $ac_n "(cached) $ac_c" 1>&6
13323 else
13324 cat > conftest.$ac_ext <<EOF
13325 #line 13326 "configure"
13326 #include "confdefs.h"
13327 /* System header to define __stub macros and hopefully few prototypes,
13328 which can conflict with char $ac_func(); below. */
13329 #include <assert.h>
13330 /* Override any gcc2 internal prototype to avoid an error. */
13331 /* We use char because int might match the return type of a gcc2
13332 builtin and then its argument prototype would still apply. */
13333 char $ac_func();
13335 int main() {
13337 /* The GNU C library defines this for functions which it implements
13338 to always fail with ENOSYS. Some functions are actually named
13339 something starting with __ and the normal name is an alias. */
13340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13341 choke me
13342 #else
13343 $ac_func();
13344 #endif
13346 ; return 0; }
13348 if { (eval echo configure:13349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13349 rm -rf conftest*
13350 eval "ac_cv_func_$ac_func=yes"
13351 else
13352 echo "configure: failed program was:" >&5
13353 cat conftest.$ac_ext >&5
13354 rm -rf conftest*
13355 eval "ac_cv_func_$ac_func=no"
13357 rm -f conftest*
13360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13361 echo "$ac_t""yes" 1>&6
13362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13363 cat >> confdefs.h <<EOF
13364 #define $ac_tr_func 1
13367 else
13368 echo "$ac_t""no" 1>&6
13370 done
13377 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13378 echo "configure:13379: checking for atan2f declaration" >&5
13379 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13380 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13381 echo $ac_n "(cached) $ac_c" 1>&6
13382 else
13385 ac_ext=C
13386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13387 ac_cpp='$CXXCPP $CPPFLAGS'
13388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13390 cross_compiling=$ac_cv_prog_cxx_cross
13392 cat > conftest.$ac_ext <<EOF
13393 #line 13394 "configure"
13394 #include "confdefs.h"
13395 #include <math.h>
13396 int main() {
13397 atan2f(0, 0);
13398 ; return 0; }
13400 if { (eval echo configure:13401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13401 rm -rf conftest*
13402 glibcpp_cv_func_atan2f_use=yes
13403 else
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 rm -rf conftest*
13407 glibcpp_cv_func_atan2f_use=no
13409 rm -f conftest*
13410 ac_ext=c
13411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13412 ac_cpp='$CPP $CPPFLAGS'
13413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13415 cross_compiling=$ac_cv_prog_cc_cross
13421 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13423 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13424 for ac_func in atan2f
13426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13427 echo "configure:13428: checking for $ac_func" >&5
13428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13430 else
13431 cat > conftest.$ac_ext <<EOF
13432 #line 13433 "configure"
13433 #include "confdefs.h"
13434 /* System header to define __stub macros and hopefully few prototypes,
13435 which can conflict with char $ac_func(); below. */
13436 #include <assert.h>
13437 /* Override any gcc2 internal prototype to avoid an error. */
13438 /* We use char because int might match the return type of a gcc2
13439 builtin and then its argument prototype would still apply. */
13440 char $ac_func();
13442 int main() {
13444 /* The GNU C library defines this for functions which it implements
13445 to always fail with ENOSYS. Some functions are actually named
13446 something starting with __ and the normal name is an alias. */
13447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13448 choke me
13449 #else
13450 $ac_func();
13451 #endif
13453 ; return 0; }
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13456 rm -rf conftest*
13457 eval "ac_cv_func_$ac_func=yes"
13458 else
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -rf conftest*
13462 eval "ac_cv_func_$ac_func=no"
13464 rm -f conftest*
13467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13468 echo "$ac_t""yes" 1>&6
13469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13470 cat >> confdefs.h <<EOF
13471 #define $ac_tr_func 1
13474 else
13475 echo "$ac_t""no" 1>&6
13477 done
13479 else
13481 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13482 echo "configure:13483: checking for _atan2f declaration" >&5
13483 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13484 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13486 else
13489 ac_ext=C
13490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13491 ac_cpp='$CXXCPP $CPPFLAGS'
13492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13494 cross_compiling=$ac_cv_prog_cxx_cross
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 #include <math.h>
13500 int main() {
13501 _atan2f(0, 0);
13502 ; return 0; }
13504 if { (eval echo configure:13505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13505 rm -rf conftest*
13506 glibcpp_cv_func__atan2f_use=yes
13507 else
13508 echo "configure: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 rm -rf conftest*
13511 glibcpp_cv_func__atan2f_use=no
13513 rm -f conftest*
13514 ac_ext=c
13515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13516 ac_cpp='$CPP $CPPFLAGS'
13517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13519 cross_compiling=$ac_cv_prog_cc_cross
13525 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13527 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13528 for ac_func in _atan2f
13530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13531 echo "configure:13532: checking for $ac_func" >&5
13532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13533 echo $ac_n "(cached) $ac_c" 1>&6
13534 else
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 /* System header to define __stub macros and hopefully few prototypes,
13539 which can conflict with char $ac_func(); below. */
13540 #include <assert.h>
13541 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char $ac_func();
13546 int main() {
13548 /* The GNU C library defines this for functions which it implements
13549 to always fail with ENOSYS. Some functions are actually named
13550 something starting with __ and the normal name is an alias. */
13551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13552 choke me
13553 #else
13554 $ac_func();
13555 #endif
13557 ; return 0; }
13559 if { (eval echo configure:13560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13560 rm -rf conftest*
13561 eval "ac_cv_func_$ac_func=yes"
13562 else
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 rm -rf conftest*
13566 eval "ac_cv_func_$ac_func=no"
13568 rm -f conftest*
13571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13572 echo "$ac_t""yes" 1>&6
13573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13574 cat >> confdefs.h <<EOF
13575 #define $ac_tr_func 1
13578 else
13579 echo "$ac_t""no" 1>&6
13581 done
13588 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13589 echo "configure:13590: checking for fabsf declaration" >&5
13590 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13591 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13592 echo $ac_n "(cached) $ac_c" 1>&6
13593 else
13596 ac_ext=C
13597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13598 ac_cpp='$CXXCPP $CPPFLAGS'
13599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13601 cross_compiling=$ac_cv_prog_cxx_cross
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 #include <math.h>
13607 #ifdef HAVE_IEEEFP_H
13608 #include <ieeefp.h>
13609 #endif
13611 int main() {
13612 fabsf(0);
13613 ; return 0; }
13615 if { (eval echo configure:13616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13616 rm -rf conftest*
13617 glibcpp_cv_func_fabsf_use=yes
13618 else
13619 echo "configure: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 rm -rf conftest*
13622 glibcpp_cv_func_fabsf_use=no
13624 rm -f conftest*
13625 ac_ext=c
13626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13627 ac_cpp='$CPP $CPPFLAGS'
13628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13630 cross_compiling=$ac_cv_prog_cc_cross
13636 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13638 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13639 for ac_func in fabsf
13641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13642 echo "configure:13643: checking for $ac_func" >&5
13643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13644 echo $ac_n "(cached) $ac_c" 1>&6
13645 else
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 /* System header to define __stub macros and hopefully few prototypes,
13650 which can conflict with char $ac_func(); below. */
13651 #include <assert.h>
13652 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13655 char $ac_func();
13657 int main() {
13659 /* The GNU C library defines this for functions which it implements
13660 to always fail with ENOSYS. Some functions are actually named
13661 something starting with __ and the normal name is an alias. */
13662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13663 choke me
13664 #else
13665 $ac_func();
13666 #endif
13668 ; return 0; }
13670 if { (eval echo configure:13671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13671 rm -rf conftest*
13672 eval "ac_cv_func_$ac_func=yes"
13673 else
13674 echo "configure: failed program was:" >&5
13675 cat conftest.$ac_ext >&5
13676 rm -rf conftest*
13677 eval "ac_cv_func_$ac_func=no"
13679 rm -f conftest*
13682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13683 echo "$ac_t""yes" 1>&6
13684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13685 cat >> confdefs.h <<EOF
13686 #define $ac_tr_func 1
13689 else
13690 echo "$ac_t""no" 1>&6
13692 done
13694 else
13696 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13697 echo "configure:13698: checking for _fabsf declaration" >&5
13698 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13699 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13700 echo $ac_n "(cached) $ac_c" 1>&6
13701 else
13704 ac_ext=C
13705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13706 ac_cpp='$CXXCPP $CPPFLAGS'
13707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13709 cross_compiling=$ac_cv_prog_cxx_cross
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 #include <math.h>
13715 #ifdef HAVE_IEEEFP_H
13716 #include <ieeefp.h>
13717 #endif
13719 int main() {
13720 _fabsf(0);
13721 ; return 0; }
13723 if { (eval echo configure:13724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13724 rm -rf conftest*
13725 glibcpp_cv_func__fabsf_use=yes
13726 else
13727 echo "configure: failed program was:" >&5
13728 cat conftest.$ac_ext >&5
13729 rm -rf conftest*
13730 glibcpp_cv_func__fabsf_use=no
13732 rm -f conftest*
13733 ac_ext=c
13734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13735 ac_cpp='$CPP $CPPFLAGS'
13736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13738 cross_compiling=$ac_cv_prog_cc_cross
13744 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13746 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13747 for ac_func in _fabsf
13749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13750 echo "configure:13751: checking for $ac_func" >&5
13751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13752 echo $ac_n "(cached) $ac_c" 1>&6
13753 else
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char $ac_func(); below. */
13759 #include <assert.h>
13760 /* Override any gcc2 internal prototype to avoid an error. */
13761 /* We use char because int might match the return type of a gcc2
13762 builtin and then its argument prototype would still apply. */
13763 char $ac_func();
13765 int main() {
13767 /* The GNU C library defines this for functions which it implements
13768 to always fail with ENOSYS. Some functions are actually named
13769 something starting with __ and the normal name is an alias. */
13770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13771 choke me
13772 #else
13773 $ac_func();
13774 #endif
13776 ; return 0; }
13778 if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 rm -rf conftest*
13780 eval "ac_cv_func_$ac_func=yes"
13781 else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 eval "ac_cv_func_$ac_func=no"
13787 rm -f conftest*
13790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13791 echo "$ac_t""yes" 1>&6
13792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13793 cat >> confdefs.h <<EOF
13794 #define $ac_tr_func 1
13797 else
13798 echo "$ac_t""no" 1>&6
13800 done
13807 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13808 echo "configure:13809: checking for fmodf declaration" >&5
13809 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13810 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
13812 else
13815 ac_ext=C
13816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13817 ac_cpp='$CXXCPP $CPPFLAGS'
13818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13820 cross_compiling=$ac_cv_prog_cxx_cross
13822 cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure"
13824 #include "confdefs.h"
13825 #include <math.h>
13826 int main() {
13827 fmodf(0, 0);
13828 ; return 0; }
13830 if { (eval echo configure:13831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13831 rm -rf conftest*
13832 glibcpp_cv_func_fmodf_use=yes
13833 else
13834 echo "configure: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13836 rm -rf conftest*
13837 glibcpp_cv_func_fmodf_use=no
13839 rm -f conftest*
13840 ac_ext=c
13841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13842 ac_cpp='$CPP $CPPFLAGS'
13843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13845 cross_compiling=$ac_cv_prog_cc_cross
13851 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13853 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13854 for ac_func in fmodf
13856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13857 echo "configure:13858: checking for $ac_func" >&5
13858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13859 echo $ac_n "(cached) $ac_c" 1>&6
13860 else
13861 cat > conftest.$ac_ext <<EOF
13862 #line 13863 "configure"
13863 #include "confdefs.h"
13864 /* System header to define __stub macros and hopefully few prototypes,
13865 which can conflict with char $ac_func(); below. */
13866 #include <assert.h>
13867 /* Override any gcc2 internal prototype to avoid an error. */
13868 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */
13870 char $ac_func();
13872 int main() {
13874 /* The GNU C library defines this for functions which it implements
13875 to always fail with ENOSYS. Some functions are actually named
13876 something starting with __ and the normal name is an alias. */
13877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13878 choke me
13879 #else
13880 $ac_func();
13881 #endif
13883 ; return 0; }
13885 if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13886 rm -rf conftest*
13887 eval "ac_cv_func_$ac_func=yes"
13888 else
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 eval "ac_cv_func_$ac_func=no"
13894 rm -f conftest*
13897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13898 echo "$ac_t""yes" 1>&6
13899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13900 cat >> confdefs.h <<EOF
13901 #define $ac_tr_func 1
13904 else
13905 echo "$ac_t""no" 1>&6
13907 done
13909 else
13911 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13912 echo "configure:13913: checking for _fmodf declaration" >&5
13913 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13914 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13915 echo $ac_n "(cached) $ac_c" 1>&6
13916 else
13919 ac_ext=C
13920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13921 ac_cpp='$CXXCPP $CPPFLAGS'
13922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13924 cross_compiling=$ac_cv_prog_cxx_cross
13926 cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure"
13928 #include "confdefs.h"
13929 #include <math.h>
13930 int main() {
13931 _fmodf(0, 0);
13932 ; return 0; }
13934 if { (eval echo configure:13935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13935 rm -rf conftest*
13936 glibcpp_cv_func__fmodf_use=yes
13937 else
13938 echo "configure: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 rm -rf conftest*
13941 glibcpp_cv_func__fmodf_use=no
13943 rm -f conftest*
13944 ac_ext=c
13945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13946 ac_cpp='$CPP $CPPFLAGS'
13947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13949 cross_compiling=$ac_cv_prog_cc_cross
13955 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13957 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13958 for ac_func in _fmodf
13960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13961 echo "configure:13962: checking for $ac_func" >&5
13962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13963 echo $ac_n "(cached) $ac_c" 1>&6
13964 else
13965 cat > conftest.$ac_ext <<EOF
13966 #line 13967 "configure"
13967 #include "confdefs.h"
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func(); below. */
13970 #include <assert.h>
13971 /* Override any gcc2 internal prototype to avoid an error. */
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13974 char $ac_func();
13976 int main() {
13978 /* The GNU C library defines this for functions which it implements
13979 to always fail with ENOSYS. Some functions are actually named
13980 something starting with __ and the normal name is an alias. */
13981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13982 choke me
13983 #else
13984 $ac_func();
13985 #endif
13987 ; return 0; }
13989 if { (eval echo configure:13990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13990 rm -rf conftest*
13991 eval "ac_cv_func_$ac_func=yes"
13992 else
13993 echo "configure: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 rm -rf conftest*
13996 eval "ac_cv_func_$ac_func=no"
13998 rm -f conftest*
14001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14002 echo "$ac_t""yes" 1>&6
14003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14004 cat >> confdefs.h <<EOF
14005 #define $ac_tr_func 1
14008 else
14009 echo "$ac_t""no" 1>&6
14011 done
14018 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14019 echo "configure:14020: checking for frexpf declaration" >&5
14020 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14021 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14022 echo $ac_n "(cached) $ac_c" 1>&6
14023 else
14026 ac_ext=C
14027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14028 ac_cpp='$CXXCPP $CPPFLAGS'
14029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14031 cross_compiling=$ac_cv_prog_cxx_cross
14033 cat > conftest.$ac_ext <<EOF
14034 #line 14035 "configure"
14035 #include "confdefs.h"
14036 #include <math.h>
14037 int main() {
14038 frexpf(0, 0);
14039 ; return 0; }
14041 if { (eval echo configure:14042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14042 rm -rf conftest*
14043 glibcpp_cv_func_frexpf_use=yes
14044 else
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 rm -rf conftest*
14048 glibcpp_cv_func_frexpf_use=no
14050 rm -f conftest*
14051 ac_ext=c
14052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14053 ac_cpp='$CPP $CPPFLAGS'
14054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14056 cross_compiling=$ac_cv_prog_cc_cross
14062 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14064 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14065 for ac_func in frexpf
14067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14068 echo "configure:14069: checking for $ac_func" >&5
14069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14070 echo $ac_n "(cached) $ac_c" 1>&6
14071 else
14072 cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure"
14074 #include "confdefs.h"
14075 /* System header to define __stub macros and hopefully few prototypes,
14076 which can conflict with char $ac_func(); below. */
14077 #include <assert.h>
14078 /* Override any gcc2 internal prototype to avoid an error. */
14079 /* We use char because int might match the return type of a gcc2
14080 builtin and then its argument prototype would still apply. */
14081 char $ac_func();
14083 int main() {
14085 /* The GNU C library defines this for functions which it implements
14086 to always fail with ENOSYS. Some functions are actually named
14087 something starting with __ and the normal name is an alias. */
14088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14089 choke me
14090 #else
14091 $ac_func();
14092 #endif
14094 ; return 0; }
14096 if { (eval echo configure:14097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14097 rm -rf conftest*
14098 eval "ac_cv_func_$ac_func=yes"
14099 else
14100 echo "configure: failed program was:" >&5
14101 cat conftest.$ac_ext >&5
14102 rm -rf conftest*
14103 eval "ac_cv_func_$ac_func=no"
14105 rm -f conftest*
14108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14109 echo "$ac_t""yes" 1>&6
14110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14111 cat >> confdefs.h <<EOF
14112 #define $ac_tr_func 1
14115 else
14116 echo "$ac_t""no" 1>&6
14118 done
14120 else
14122 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14123 echo "configure:14124: checking for _frexpf declaration" >&5
14124 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14125 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14126 echo $ac_n "(cached) $ac_c" 1>&6
14127 else
14130 ac_ext=C
14131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14132 ac_cpp='$CXXCPP $CPPFLAGS'
14133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135 cross_compiling=$ac_cv_prog_cxx_cross
14137 cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14140 #include <math.h>
14141 int main() {
14142 _frexpf(0, 0);
14143 ; return 0; }
14145 if { (eval echo configure:14146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14146 rm -rf conftest*
14147 glibcpp_cv_func__frexpf_use=yes
14148 else
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 rm -rf conftest*
14152 glibcpp_cv_func__frexpf_use=no
14154 rm -f conftest*
14155 ac_ext=c
14156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14157 ac_cpp='$CPP $CPPFLAGS'
14158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14160 cross_compiling=$ac_cv_prog_cc_cross
14166 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14168 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14169 for ac_func in _frexpf
14171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14172 echo "configure:14173: checking for $ac_func" >&5
14173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14174 echo $ac_n "(cached) $ac_c" 1>&6
14175 else
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14179 /* System header to define __stub macros and hopefully few prototypes,
14180 which can conflict with char $ac_func(); below. */
14181 #include <assert.h>
14182 /* Override any gcc2 internal prototype to avoid an error. */
14183 /* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185 char $ac_func();
14187 int main() {
14189 /* The GNU C library defines this for functions which it implements
14190 to always fail with ENOSYS. Some functions are actually named
14191 something starting with __ and the normal name is an alias. */
14192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14193 choke me
14194 #else
14195 $ac_func();
14196 #endif
14198 ; return 0; }
14200 if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14201 rm -rf conftest*
14202 eval "ac_cv_func_$ac_func=yes"
14203 else
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 rm -rf conftest*
14207 eval "ac_cv_func_$ac_func=no"
14209 rm -f conftest*
14212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14213 echo "$ac_t""yes" 1>&6
14214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14215 cat >> confdefs.h <<EOF
14216 #define $ac_tr_func 1
14219 else
14220 echo "$ac_t""no" 1>&6
14222 done
14229 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14230 echo "configure:14231: checking for hypotf declaration" >&5
14231 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14232 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14233 echo $ac_n "(cached) $ac_c" 1>&6
14234 else
14237 ac_ext=C
14238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14239 ac_cpp='$CXXCPP $CPPFLAGS'
14240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14242 cross_compiling=$ac_cv_prog_cxx_cross
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 #include <math.h>
14248 int main() {
14249 hypotf(0, 0);
14250 ; return 0; }
14252 if { (eval echo configure:14253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14253 rm -rf conftest*
14254 glibcpp_cv_func_hypotf_use=yes
14255 else
14256 echo "configure: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14258 rm -rf conftest*
14259 glibcpp_cv_func_hypotf_use=no
14261 rm -f conftest*
14262 ac_ext=c
14263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14267 cross_compiling=$ac_cv_prog_cc_cross
14273 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14275 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14276 for ac_func in hypotf
14278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14279 echo "configure:14280: checking for $ac_func" >&5
14280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14281 echo $ac_n "(cached) $ac_c" 1>&6
14282 else
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 /* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func(); below. */
14288 #include <assert.h>
14289 /* Override any gcc2 internal prototype to avoid an error. */
14290 /* We use char because int might match the return type of a gcc2
14291 builtin and then its argument prototype would still apply. */
14292 char $ac_func();
14294 int main() {
14296 /* The GNU C library defines this for functions which it implements
14297 to always fail with ENOSYS. Some functions are actually named
14298 something starting with __ and the normal name is an alias. */
14299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300 choke me
14301 #else
14302 $ac_func();
14303 #endif
14305 ; return 0; }
14307 if { (eval echo configure:14308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308 rm -rf conftest*
14309 eval "ac_cv_func_$ac_func=yes"
14310 else
14311 echo "configure: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 rm -rf conftest*
14314 eval "ac_cv_func_$ac_func=no"
14316 rm -f conftest*
14319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14320 echo "$ac_t""yes" 1>&6
14321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14322 cat >> confdefs.h <<EOF
14323 #define $ac_tr_func 1
14326 else
14327 echo "$ac_t""no" 1>&6
14329 done
14331 else
14333 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14334 echo "configure:14335: checking for _hypotf declaration" >&5
14335 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14336 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14337 echo $ac_n "(cached) $ac_c" 1>&6
14338 else
14341 ac_ext=C
14342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14343 ac_cpp='$CXXCPP $CPPFLAGS'
14344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14346 cross_compiling=$ac_cv_prog_cxx_cross
14348 cat > conftest.$ac_ext <<EOF
14349 #line 14350 "configure"
14350 #include "confdefs.h"
14351 #include <math.h>
14352 int main() {
14353 _hypotf(0, 0);
14354 ; return 0; }
14356 if { (eval echo configure:14357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14357 rm -rf conftest*
14358 glibcpp_cv_func__hypotf_use=yes
14359 else
14360 echo "configure: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 rm -rf conftest*
14363 glibcpp_cv_func__hypotf_use=no
14365 rm -f conftest*
14366 ac_ext=c
14367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14371 cross_compiling=$ac_cv_prog_cc_cross
14377 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14379 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14380 for ac_func in _hypotf
14382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14383 echo "configure:14384: checking for $ac_func" >&5
14384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14385 echo $ac_n "(cached) $ac_c" 1>&6
14386 else
14387 cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14390 /* System header to define __stub macros and hopefully few prototypes,
14391 which can conflict with char $ac_func(); below. */
14392 #include <assert.h>
14393 /* Override any gcc2 internal prototype to avoid an error. */
14394 /* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14396 char $ac_func();
14398 int main() {
14400 /* The GNU C library defines this for functions which it implements
14401 to always fail with ENOSYS. Some functions are actually named
14402 something starting with __ and the normal name is an alias. */
14403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14404 choke me
14405 #else
14406 $ac_func();
14407 #endif
14409 ; return 0; }
14411 if { (eval echo configure:14412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14412 rm -rf conftest*
14413 eval "ac_cv_func_$ac_func=yes"
14414 else
14415 echo "configure: failed program was:" >&5
14416 cat conftest.$ac_ext >&5
14417 rm -rf conftest*
14418 eval "ac_cv_func_$ac_func=no"
14420 rm -f conftest*
14423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14424 echo "$ac_t""yes" 1>&6
14425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14426 cat >> confdefs.h <<EOF
14427 #define $ac_tr_func 1
14430 else
14431 echo "$ac_t""no" 1>&6
14433 done
14440 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14441 echo "configure:14442: checking for ldexpf declaration" >&5
14442 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14443 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14445 else
14448 ac_ext=C
14449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14450 ac_cpp='$CXXCPP $CPPFLAGS'
14451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14453 cross_compiling=$ac_cv_prog_cxx_cross
14455 cat > conftest.$ac_ext <<EOF
14456 #line 14457 "configure"
14457 #include "confdefs.h"
14458 #include <math.h>
14459 int main() {
14460 ldexpf(0, 0);
14461 ; return 0; }
14463 if { (eval echo configure:14464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14464 rm -rf conftest*
14465 glibcpp_cv_func_ldexpf_use=yes
14466 else
14467 echo "configure: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14469 rm -rf conftest*
14470 glibcpp_cv_func_ldexpf_use=no
14472 rm -f conftest*
14473 ac_ext=c
14474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14475 ac_cpp='$CPP $CPPFLAGS'
14476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14478 cross_compiling=$ac_cv_prog_cc_cross
14484 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14486 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14487 for ac_func in ldexpf
14489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14490 echo "configure:14491: checking for $ac_func" >&5
14491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14492 echo $ac_n "(cached) $ac_c" 1>&6
14493 else
14494 cat > conftest.$ac_ext <<EOF
14495 #line 14496 "configure"
14496 #include "confdefs.h"
14497 /* System header to define __stub macros and hopefully few prototypes,
14498 which can conflict with char $ac_func(); below. */
14499 #include <assert.h>
14500 /* Override any gcc2 internal prototype to avoid an error. */
14501 /* We use char because int might match the return type of a gcc2
14502 builtin and then its argument prototype would still apply. */
14503 char $ac_func();
14505 int main() {
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14511 choke me
14512 #else
14513 $ac_func();
14514 #endif
14516 ; return 0; }
14518 if { (eval echo configure:14519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14519 rm -rf conftest*
14520 eval "ac_cv_func_$ac_func=yes"
14521 else
14522 echo "configure: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 rm -rf conftest*
14525 eval "ac_cv_func_$ac_func=no"
14527 rm -f conftest*
14530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14531 echo "$ac_t""yes" 1>&6
14532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14533 cat >> confdefs.h <<EOF
14534 #define $ac_tr_func 1
14537 else
14538 echo "$ac_t""no" 1>&6
14540 done
14542 else
14544 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14545 echo "configure:14546: checking for _ldexpf declaration" >&5
14546 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14547 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14549 else
14552 ac_ext=C
14553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14554 ac_cpp='$CXXCPP $CPPFLAGS'
14555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14557 cross_compiling=$ac_cv_prog_cxx_cross
14559 cat > conftest.$ac_ext <<EOF
14560 #line 14561 "configure"
14561 #include "confdefs.h"
14562 #include <math.h>
14563 int main() {
14564 _ldexpf(0, 0);
14565 ; return 0; }
14567 if { (eval echo configure:14568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14568 rm -rf conftest*
14569 glibcpp_cv_func__ldexpf_use=yes
14570 else
14571 echo "configure: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 rm -rf conftest*
14574 glibcpp_cv_func__ldexpf_use=no
14576 rm -f conftest*
14577 ac_ext=c
14578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14582 cross_compiling=$ac_cv_prog_cc_cross
14588 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14590 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14591 for ac_func in _ldexpf
14593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14594 echo "configure:14595: checking for $ac_func" >&5
14595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14597 else
14598 cat > conftest.$ac_ext <<EOF
14599 #line 14600 "configure"
14600 #include "confdefs.h"
14601 /* System header to define __stub macros and hopefully few prototypes,
14602 which can conflict with char $ac_func(); below. */
14603 #include <assert.h>
14604 /* Override any gcc2 internal prototype to avoid an error. */
14605 /* We use char because int might match the return type of a gcc2
14606 builtin and then its argument prototype would still apply. */
14607 char $ac_func();
14609 int main() {
14611 /* The GNU C library defines this for functions which it implements
14612 to always fail with ENOSYS. Some functions are actually named
14613 something starting with __ and the normal name is an alias. */
14614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14615 choke me
14616 #else
14617 $ac_func();
14618 #endif
14620 ; return 0; }
14622 if { (eval echo configure:14623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14623 rm -rf conftest*
14624 eval "ac_cv_func_$ac_func=yes"
14625 else
14626 echo "configure: failed program was:" >&5
14627 cat conftest.$ac_ext >&5
14628 rm -rf conftest*
14629 eval "ac_cv_func_$ac_func=no"
14631 rm -f conftest*
14634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14635 echo "$ac_t""yes" 1>&6
14636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14637 cat >> confdefs.h <<EOF
14638 #define $ac_tr_func 1
14641 else
14642 echo "$ac_t""no" 1>&6
14644 done
14651 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14652 echo "configure:14653: checking for logf declaration" >&5
14653 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14654 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14655 echo $ac_n "(cached) $ac_c" 1>&6
14656 else
14659 ac_ext=C
14660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14661 ac_cpp='$CXXCPP $CPPFLAGS'
14662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14664 cross_compiling=$ac_cv_prog_cxx_cross
14666 cat > conftest.$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14669 #include <math.h>
14670 #ifdef HAVE_IEEEFP_H
14671 #include <ieeefp.h>
14672 #endif
14674 int main() {
14675 logf(0);
14676 ; return 0; }
14678 if { (eval echo configure:14679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14679 rm -rf conftest*
14680 glibcpp_cv_func_logf_use=yes
14681 else
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 rm -rf conftest*
14685 glibcpp_cv_func_logf_use=no
14687 rm -f conftest*
14688 ac_ext=c
14689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14690 ac_cpp='$CPP $CPPFLAGS'
14691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14693 cross_compiling=$ac_cv_prog_cc_cross
14699 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14701 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14702 for ac_func in logf
14704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14705 echo "configure:14706: checking for $ac_func" >&5
14706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14707 echo $ac_n "(cached) $ac_c" 1>&6
14708 else
14709 cat > conftest.$ac_ext <<EOF
14710 #line 14711 "configure"
14711 #include "confdefs.h"
14712 /* System header to define __stub macros and hopefully few prototypes,
14713 which can conflict with char $ac_func(); below. */
14714 #include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14716 /* We use char because int might match the return type of a gcc2
14717 builtin and then its argument prototype would still apply. */
14718 char $ac_func();
14720 int main() {
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 choke me
14727 #else
14728 $ac_func();
14729 #endif
14731 ; return 0; }
14733 if { (eval echo configure:14734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14734 rm -rf conftest*
14735 eval "ac_cv_func_$ac_func=yes"
14736 else
14737 echo "configure: failed program was:" >&5
14738 cat conftest.$ac_ext >&5
14739 rm -rf conftest*
14740 eval "ac_cv_func_$ac_func=no"
14742 rm -f conftest*
14745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14748 cat >> confdefs.h <<EOF
14749 #define $ac_tr_func 1
14752 else
14753 echo "$ac_t""no" 1>&6
14755 done
14757 else
14759 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14760 echo "configure:14761: checking for _logf declaration" >&5
14761 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14762 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14763 echo $ac_n "(cached) $ac_c" 1>&6
14764 else
14767 ac_ext=C
14768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14769 ac_cpp='$CXXCPP $CPPFLAGS'
14770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14772 cross_compiling=$ac_cv_prog_cxx_cross
14774 cat > conftest.$ac_ext <<EOF
14775 #line 14776 "configure"
14776 #include "confdefs.h"
14777 #include <math.h>
14778 #ifdef HAVE_IEEEFP_H
14779 #include <ieeefp.h>
14780 #endif
14782 int main() {
14783 _logf(0);
14784 ; return 0; }
14786 if { (eval echo configure:14787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14787 rm -rf conftest*
14788 glibcpp_cv_func__logf_use=yes
14789 else
14790 echo "configure: failed program was:" >&5
14791 cat conftest.$ac_ext >&5
14792 rm -rf conftest*
14793 glibcpp_cv_func__logf_use=no
14795 rm -f conftest*
14796 ac_ext=c
14797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14798 ac_cpp='$CPP $CPPFLAGS'
14799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14801 cross_compiling=$ac_cv_prog_cc_cross
14807 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14809 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14810 for ac_func in _logf
14812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14813 echo "configure:14814: checking for $ac_func" >&5
14814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14815 echo $ac_n "(cached) $ac_c" 1>&6
14816 else
14817 cat > conftest.$ac_ext <<EOF
14818 #line 14819 "configure"
14819 #include "confdefs.h"
14820 /* System header to define __stub macros and hopefully few prototypes,
14821 which can conflict with char $ac_func(); below. */
14822 #include <assert.h>
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 /* We use char because int might match the return type of a gcc2
14825 builtin and then its argument prototype would still apply. */
14826 char $ac_func();
14828 int main() {
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14834 choke me
14835 #else
14836 $ac_func();
14837 #endif
14839 ; return 0; }
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 rm -rf conftest*
14843 eval "ac_cv_func_$ac_func=yes"
14844 else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 eval "ac_cv_func_$ac_func=no"
14850 rm -f conftest*
14853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14854 echo "$ac_t""yes" 1>&6
14855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14856 cat >> confdefs.h <<EOF
14857 #define $ac_tr_func 1
14860 else
14861 echo "$ac_t""no" 1>&6
14863 done
14870 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14871 echo "configure:14872: checking for log10f declaration" >&5
14872 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14873 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14874 echo $ac_n "(cached) $ac_c" 1>&6
14875 else
14878 ac_ext=C
14879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14880 ac_cpp='$CXXCPP $CPPFLAGS'
14881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14883 cross_compiling=$ac_cv_prog_cxx_cross
14885 cat > conftest.$ac_ext <<EOF
14886 #line 14887 "configure"
14887 #include "confdefs.h"
14888 #include <math.h>
14889 #ifdef HAVE_IEEEFP_H
14890 #include <ieeefp.h>
14891 #endif
14893 int main() {
14894 log10f(0);
14895 ; return 0; }
14897 if { (eval echo configure:14898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14898 rm -rf conftest*
14899 glibcpp_cv_func_log10f_use=yes
14900 else
14901 echo "configure: failed program was:" >&5
14902 cat conftest.$ac_ext >&5
14903 rm -rf conftest*
14904 glibcpp_cv_func_log10f_use=no
14906 rm -f conftest*
14907 ac_ext=c
14908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14909 ac_cpp='$CPP $CPPFLAGS'
14910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14912 cross_compiling=$ac_cv_prog_cc_cross
14918 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14920 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14921 for ac_func in log10f
14923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14924 echo "configure:14925: checking for $ac_func" >&5
14925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14926 echo $ac_n "(cached) $ac_c" 1>&6
14927 else
14928 cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 /* System header to define __stub macros and hopefully few prototypes,
14932 which can conflict with char $ac_func(); below. */
14933 #include <assert.h>
14934 /* Override any gcc2 internal prototype to avoid an error. */
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14937 char $ac_func();
14939 int main() {
14941 /* The GNU C library defines this for functions which it implements
14942 to always fail with ENOSYS. Some functions are actually named
14943 something starting with __ and the normal name is an alias. */
14944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14945 choke me
14946 #else
14947 $ac_func();
14948 #endif
14950 ; return 0; }
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14953 rm -rf conftest*
14954 eval "ac_cv_func_$ac_func=yes"
14955 else
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 rm -rf conftest*
14959 eval "ac_cv_func_$ac_func=no"
14961 rm -f conftest*
14964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14965 echo "$ac_t""yes" 1>&6
14966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14967 cat >> confdefs.h <<EOF
14968 #define $ac_tr_func 1
14971 else
14972 echo "$ac_t""no" 1>&6
14974 done
14976 else
14978 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14979 echo "configure:14980: checking for _log10f declaration" >&5
14980 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14981 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14982 echo $ac_n "(cached) $ac_c" 1>&6
14983 else
14986 ac_ext=C
14987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14988 ac_cpp='$CXXCPP $CPPFLAGS'
14989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14991 cross_compiling=$ac_cv_prog_cxx_cross
14993 cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 #include <math.h>
14997 #ifdef HAVE_IEEEFP_H
14998 #include <ieeefp.h>
14999 #endif
15001 int main() {
15002 _log10f(0);
15003 ; return 0; }
15005 if { (eval echo configure:15006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15006 rm -rf conftest*
15007 glibcpp_cv_func__log10f_use=yes
15008 else
15009 echo "configure: failed program was:" >&5
15010 cat conftest.$ac_ext >&5
15011 rm -rf conftest*
15012 glibcpp_cv_func__log10f_use=no
15014 rm -f conftest*
15015 ac_ext=c
15016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15017 ac_cpp='$CPP $CPPFLAGS'
15018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15020 cross_compiling=$ac_cv_prog_cc_cross
15026 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15028 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15029 for ac_func in _log10f
15031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15032 echo "configure:15033: checking for $ac_func" >&5
15033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15034 echo $ac_n "(cached) $ac_c" 1>&6
15035 else
15036 cat > conftest.$ac_ext <<EOF
15037 #line 15038 "configure"
15038 #include "confdefs.h"
15039 /* System header to define __stub macros and hopefully few prototypes,
15040 which can conflict with char $ac_func(); below. */
15041 #include <assert.h>
15042 /* Override any gcc2 internal prototype to avoid an error. */
15043 /* We use char because int might match the return type of a gcc2
15044 builtin and then its argument prototype would still apply. */
15045 char $ac_func();
15047 int main() {
15049 /* The GNU C library defines this for functions which it implements
15050 to always fail with ENOSYS. Some functions are actually named
15051 something starting with __ and the normal name is an alias. */
15052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15053 choke me
15054 #else
15055 $ac_func();
15056 #endif
15058 ; return 0; }
15060 if { (eval echo configure:15061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15061 rm -rf conftest*
15062 eval "ac_cv_func_$ac_func=yes"
15063 else
15064 echo "configure: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15066 rm -rf conftest*
15067 eval "ac_cv_func_$ac_func=no"
15069 rm -f conftest*
15072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15073 echo "$ac_t""yes" 1>&6
15074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15075 cat >> confdefs.h <<EOF
15076 #define $ac_tr_func 1
15079 else
15080 echo "$ac_t""no" 1>&6
15082 done
15089 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15090 echo "configure:15091: checking for modff declaration" >&5
15091 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15092 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15093 echo $ac_n "(cached) $ac_c" 1>&6
15094 else
15097 ac_ext=C
15098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15099 ac_cpp='$CXXCPP $CPPFLAGS'
15100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15102 cross_compiling=$ac_cv_prog_cxx_cross
15104 cat > conftest.$ac_ext <<EOF
15105 #line 15106 "configure"
15106 #include "confdefs.h"
15107 #include <math.h>
15108 int main() {
15109 modff(0, 0);
15110 ; return 0; }
15112 if { (eval echo configure:15113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15113 rm -rf conftest*
15114 glibcpp_cv_func_modff_use=yes
15115 else
15116 echo "configure: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 rm -rf conftest*
15119 glibcpp_cv_func_modff_use=no
15121 rm -f conftest*
15122 ac_ext=c
15123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15124 ac_cpp='$CPP $CPPFLAGS'
15125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15127 cross_compiling=$ac_cv_prog_cc_cross
15133 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15135 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15136 for ac_func in modff
15138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15139 echo "configure:15140: checking for $ac_func" >&5
15140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15141 echo $ac_n "(cached) $ac_c" 1>&6
15142 else
15143 cat > conftest.$ac_ext <<EOF
15144 #line 15145 "configure"
15145 #include "confdefs.h"
15146 /* System header to define __stub macros and hopefully few prototypes,
15147 which can conflict with char $ac_func(); below. */
15148 #include <assert.h>
15149 /* Override any gcc2 internal prototype to avoid an error. */
15150 /* We use char because int might match the return type of a gcc2
15151 builtin and then its argument prototype would still apply. */
15152 char $ac_func();
15154 int main() {
15156 /* The GNU C library defines this for functions which it implements
15157 to always fail with ENOSYS. Some functions are actually named
15158 something starting with __ and the normal name is an alias. */
15159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15160 choke me
15161 #else
15162 $ac_func();
15163 #endif
15165 ; return 0; }
15167 if { (eval echo configure:15168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15168 rm -rf conftest*
15169 eval "ac_cv_func_$ac_func=yes"
15170 else
15171 echo "configure: failed program was:" >&5
15172 cat conftest.$ac_ext >&5
15173 rm -rf conftest*
15174 eval "ac_cv_func_$ac_func=no"
15176 rm -f conftest*
15179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15180 echo "$ac_t""yes" 1>&6
15181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15182 cat >> confdefs.h <<EOF
15183 #define $ac_tr_func 1
15186 else
15187 echo "$ac_t""no" 1>&6
15189 done
15191 else
15193 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15194 echo "configure:15195: checking for _modff declaration" >&5
15195 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15196 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15197 echo $ac_n "(cached) $ac_c" 1>&6
15198 else
15201 ac_ext=C
15202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15203 ac_cpp='$CXXCPP $CPPFLAGS'
15204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15206 cross_compiling=$ac_cv_prog_cxx_cross
15208 cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 #include <math.h>
15212 int main() {
15213 _modff(0, 0);
15214 ; return 0; }
15216 if { (eval echo configure:15217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15217 rm -rf conftest*
15218 glibcpp_cv_func__modff_use=yes
15219 else
15220 echo "configure: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15222 rm -rf conftest*
15223 glibcpp_cv_func__modff_use=no
15225 rm -f conftest*
15226 ac_ext=c
15227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15228 ac_cpp='$CPP $CPPFLAGS'
15229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15231 cross_compiling=$ac_cv_prog_cc_cross
15237 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15239 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15240 for ac_func in _modff
15242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15243 echo "configure:15244: checking for $ac_func" >&5
15244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15245 echo $ac_n "(cached) $ac_c" 1>&6
15246 else
15247 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func(); below. */
15252 #include <assert.h>
15253 /* Override any gcc2 internal prototype to avoid an error. */
15254 /* We use char because int might match the return type of a gcc2
15255 builtin and then its argument prototype would still apply. */
15256 char $ac_func();
15258 int main() {
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15264 choke me
15265 #else
15266 $ac_func();
15267 #endif
15269 ; return 0; }
15271 if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15272 rm -rf conftest*
15273 eval "ac_cv_func_$ac_func=yes"
15274 else
15275 echo "configure: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15277 rm -rf conftest*
15278 eval "ac_cv_func_$ac_func=no"
15280 rm -f conftest*
15283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15284 echo "$ac_t""yes" 1>&6
15285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15286 cat >> confdefs.h <<EOF
15287 #define $ac_tr_func 1
15290 else
15291 echo "$ac_t""no" 1>&6
15293 done
15300 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15301 echo "configure:15302: checking for powf declaration" >&5
15302 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15303 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15304 echo $ac_n "(cached) $ac_c" 1>&6
15305 else
15308 ac_ext=C
15309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15310 ac_cpp='$CXXCPP $CPPFLAGS'
15311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15313 cross_compiling=$ac_cv_prog_cxx_cross
15315 cat > conftest.$ac_ext <<EOF
15316 #line 15317 "configure"
15317 #include "confdefs.h"
15318 #include <math.h>
15319 int main() {
15320 powf(0, 0);
15321 ; return 0; }
15323 if { (eval echo configure:15324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15324 rm -rf conftest*
15325 glibcpp_cv_func_powf_use=yes
15326 else
15327 echo "configure: failed program was:" >&5
15328 cat conftest.$ac_ext >&5
15329 rm -rf conftest*
15330 glibcpp_cv_func_powf_use=no
15332 rm -f conftest*
15333 ac_ext=c
15334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15335 ac_cpp='$CPP $CPPFLAGS'
15336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15338 cross_compiling=$ac_cv_prog_cc_cross
15344 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15346 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15347 for ac_func in powf
15349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15350 echo "configure:15351: checking for $ac_func" >&5
15351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15352 echo $ac_n "(cached) $ac_c" 1>&6
15353 else
15354 cat > conftest.$ac_ext <<EOF
15355 #line 15356 "configure"
15356 #include "confdefs.h"
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func(); below. */
15359 #include <assert.h>
15360 /* Override any gcc2 internal prototype to avoid an error. */
15361 /* We use char because int might match the return type of a gcc2
15362 builtin and then its argument prototype would still apply. */
15363 char $ac_func();
15365 int main() {
15367 /* The GNU C library defines this for functions which it implements
15368 to always fail with ENOSYS. Some functions are actually named
15369 something starting with __ and the normal name is an alias. */
15370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15371 choke me
15372 #else
15373 $ac_func();
15374 #endif
15376 ; return 0; }
15378 if { (eval echo configure:15379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15379 rm -rf conftest*
15380 eval "ac_cv_func_$ac_func=yes"
15381 else
15382 echo "configure: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15384 rm -rf conftest*
15385 eval "ac_cv_func_$ac_func=no"
15387 rm -f conftest*
15390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15391 echo "$ac_t""yes" 1>&6
15392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15393 cat >> confdefs.h <<EOF
15394 #define $ac_tr_func 1
15397 else
15398 echo "$ac_t""no" 1>&6
15400 done
15402 else
15404 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15405 echo "configure:15406: checking for _powf declaration" >&5
15406 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15407 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15408 echo $ac_n "(cached) $ac_c" 1>&6
15409 else
15412 ac_ext=C
15413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15414 ac_cpp='$CXXCPP $CPPFLAGS'
15415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15417 cross_compiling=$ac_cv_prog_cxx_cross
15419 cat > conftest.$ac_ext <<EOF
15420 #line 15421 "configure"
15421 #include "confdefs.h"
15422 #include <math.h>
15423 int main() {
15424 _powf(0, 0);
15425 ; return 0; }
15427 if { (eval echo configure:15428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15428 rm -rf conftest*
15429 glibcpp_cv_func__powf_use=yes
15430 else
15431 echo "configure: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 rm -rf conftest*
15434 glibcpp_cv_func__powf_use=no
15436 rm -f conftest*
15437 ac_ext=c
15438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15439 ac_cpp='$CPP $CPPFLAGS'
15440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15442 cross_compiling=$ac_cv_prog_cc_cross
15448 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15450 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15451 for ac_func in _powf
15453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15454 echo "configure:15455: checking for $ac_func" >&5
15455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15456 echo $ac_n "(cached) $ac_c" 1>&6
15457 else
15458 cat > conftest.$ac_ext <<EOF
15459 #line 15460 "configure"
15460 #include "confdefs.h"
15461 /* System header to define __stub macros and hopefully few prototypes,
15462 which can conflict with char $ac_func(); below. */
15463 #include <assert.h>
15464 /* Override any gcc2 internal prototype to avoid an error. */
15465 /* We use char because int might match the return type of a gcc2
15466 builtin and then its argument prototype would still apply. */
15467 char $ac_func();
15469 int main() {
15471 /* The GNU C library defines this for functions which it implements
15472 to always fail with ENOSYS. Some functions are actually named
15473 something starting with __ and the normal name is an alias. */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15475 choke me
15476 #else
15477 $ac_func();
15478 #endif
15480 ; return 0; }
15482 if { (eval echo configure:15483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15483 rm -rf conftest*
15484 eval "ac_cv_func_$ac_func=yes"
15485 else
15486 echo "configure: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 rm -rf conftest*
15489 eval "ac_cv_func_$ac_func=no"
15491 rm -f conftest*
15494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15495 echo "$ac_t""yes" 1>&6
15496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15497 cat >> confdefs.h <<EOF
15498 #define $ac_tr_func 1
15501 else
15502 echo "$ac_t""no" 1>&6
15504 done
15511 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15512 echo "configure:15513: checking for sqrtf declaration" >&5
15513 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15514 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15516 else
15519 ac_ext=C
15520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15521 ac_cpp='$CXXCPP $CPPFLAGS'
15522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15524 cross_compiling=$ac_cv_prog_cxx_cross
15526 cat > conftest.$ac_ext <<EOF
15527 #line 15528 "configure"
15528 #include "confdefs.h"
15529 #include <math.h>
15530 #ifdef HAVE_IEEEFP_H
15531 #include <ieeefp.h>
15532 #endif
15534 int main() {
15535 sqrtf(0);
15536 ; return 0; }
15538 if { (eval echo configure:15539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15539 rm -rf conftest*
15540 glibcpp_cv_func_sqrtf_use=yes
15541 else
15542 echo "configure: failed program was:" >&5
15543 cat conftest.$ac_ext >&5
15544 rm -rf conftest*
15545 glibcpp_cv_func_sqrtf_use=no
15547 rm -f conftest*
15548 ac_ext=c
15549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15553 cross_compiling=$ac_cv_prog_cc_cross
15559 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15561 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15562 for ac_func in sqrtf
15564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15565 echo "configure:15566: checking for $ac_func" >&5
15566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15567 echo $ac_n "(cached) $ac_c" 1>&6
15568 else
15569 cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char $ac_func(); below. */
15574 #include <assert.h>
15575 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15578 char $ac_func();
15580 int main() {
15582 /* The GNU C library defines this for functions which it implements
15583 to always fail with ENOSYS. Some functions are actually named
15584 something starting with __ and the normal name is an alias. */
15585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15586 choke me
15587 #else
15588 $ac_func();
15589 #endif
15591 ; return 0; }
15593 if { (eval echo configure:15594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15594 rm -rf conftest*
15595 eval "ac_cv_func_$ac_func=yes"
15596 else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600 eval "ac_cv_func_$ac_func=no"
15602 rm -f conftest*
15605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15608 cat >> confdefs.h <<EOF
15609 #define $ac_tr_func 1
15612 else
15613 echo "$ac_t""no" 1>&6
15615 done
15617 else
15619 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15620 echo "configure:15621: checking for _sqrtf declaration" >&5
15621 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15622 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
15624 else
15627 ac_ext=C
15628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15629 ac_cpp='$CXXCPP $CPPFLAGS'
15630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15632 cross_compiling=$ac_cv_prog_cxx_cross
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 #include <math.h>
15638 #ifdef HAVE_IEEEFP_H
15639 #include <ieeefp.h>
15640 #endif
15642 int main() {
15643 _sqrtf(0);
15644 ; return 0; }
15646 if { (eval echo configure:15647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15647 rm -rf conftest*
15648 glibcpp_cv_func__sqrtf_use=yes
15649 else
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 rm -rf conftest*
15653 glibcpp_cv_func__sqrtf_use=no
15655 rm -f conftest*
15656 ac_ext=c
15657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15658 ac_cpp='$CPP $CPPFLAGS'
15659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15661 cross_compiling=$ac_cv_prog_cc_cross
15667 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15669 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15670 for ac_func in _sqrtf
15672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15673 echo "configure:15674: checking for $ac_func" >&5
15674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15675 echo $ac_n "(cached) $ac_c" 1>&6
15676 else
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 /* System header to define __stub macros and hopefully few prototypes,
15681 which can conflict with char $ac_func(); below. */
15682 #include <assert.h>
15683 /* Override any gcc2 internal prototype to avoid an error. */
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15686 char $ac_func();
15688 int main() {
15690 /* The GNU C library defines this for functions which it implements
15691 to always fail with ENOSYS. Some functions are actually named
15692 something starting with __ and the normal name is an alias. */
15693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15694 choke me
15695 #else
15696 $ac_func();
15697 #endif
15699 ; return 0; }
15701 if { (eval echo configure:15702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15702 rm -rf conftest*
15703 eval "ac_cv_func_$ac_func=yes"
15704 else
15705 echo "configure: failed program was:" >&5
15706 cat conftest.$ac_ext >&5
15707 rm -rf conftest*
15708 eval "ac_cv_func_$ac_func=no"
15710 rm -f conftest*
15713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15714 echo "$ac_t""yes" 1>&6
15715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15716 cat >> confdefs.h <<EOF
15717 #define $ac_tr_func 1
15720 else
15721 echo "$ac_t""no" 1>&6
15723 done
15730 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15731 echo "configure:15732: checking for sincosf declaration" >&5
15732 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15733 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15734 echo $ac_n "(cached) $ac_c" 1>&6
15735 else
15738 ac_ext=C
15739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15740 ac_cpp='$CXXCPP $CPPFLAGS'
15741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15743 cross_compiling=$ac_cv_prog_cxx_cross
15745 cat > conftest.$ac_ext <<EOF
15746 #line 15747 "configure"
15747 #include "confdefs.h"
15748 #include <math.h>
15749 int main() {
15750 sincosf(0, 0, 0);
15751 ; return 0; }
15753 if { (eval echo configure:15754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15754 rm -rf conftest*
15755 glibcpp_cv_func_sincosf_use=yes
15756 else
15757 echo "configure: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15759 rm -rf conftest*
15760 glibcpp_cv_func_sincosf_use=no
15762 rm -f conftest*
15763 ac_ext=c
15764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15765 ac_cpp='$CPP $CPPFLAGS'
15766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15768 cross_compiling=$ac_cv_prog_cc_cross
15774 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15776 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15777 for ac_func in sincosf
15779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15780 echo "configure:15781: checking for $ac_func" >&5
15781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15782 echo $ac_n "(cached) $ac_c" 1>&6
15783 else
15784 cat > conftest.$ac_ext <<EOF
15785 #line 15786 "configure"
15786 #include "confdefs.h"
15787 /* System header to define __stub macros and hopefully few prototypes,
15788 which can conflict with char $ac_func(); below. */
15789 #include <assert.h>
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15793 char $ac_func();
15795 int main() {
15797 /* The GNU C library defines this for functions which it implements
15798 to always fail with ENOSYS. Some functions are actually named
15799 something starting with __ and the normal name is an alias. */
15800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15801 choke me
15802 #else
15803 $ac_func();
15804 #endif
15806 ; return 0; }
15808 if { (eval echo configure:15809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15809 rm -rf conftest*
15810 eval "ac_cv_func_$ac_func=yes"
15811 else
15812 echo "configure: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15814 rm -rf conftest*
15815 eval "ac_cv_func_$ac_func=no"
15817 rm -f conftest*
15820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15821 echo "$ac_t""yes" 1>&6
15822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15823 cat >> confdefs.h <<EOF
15824 #define $ac_tr_func 1
15827 else
15828 echo "$ac_t""no" 1>&6
15830 done
15832 else
15834 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15835 echo "configure:15836: checking for _sincosf declaration" >&5
15836 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15837 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15838 echo $ac_n "(cached) $ac_c" 1>&6
15839 else
15842 ac_ext=C
15843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15844 ac_cpp='$CXXCPP $CPPFLAGS'
15845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15847 cross_compiling=$ac_cv_prog_cxx_cross
15849 cat > conftest.$ac_ext <<EOF
15850 #line 15851 "configure"
15851 #include "confdefs.h"
15852 #include <math.h>
15853 int main() {
15854 _sincosf(0, 0, 0);
15855 ; return 0; }
15857 if { (eval echo configure:15858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15858 rm -rf conftest*
15859 glibcpp_cv_func__sincosf_use=yes
15860 else
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 rm -rf conftest*
15864 glibcpp_cv_func__sincosf_use=no
15866 rm -f conftest*
15867 ac_ext=c
15868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15869 ac_cpp='$CPP $CPPFLAGS'
15870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15872 cross_compiling=$ac_cv_prog_cc_cross
15878 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15880 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15881 for ac_func in _sincosf
15883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15884 echo "configure:15885: checking for $ac_func" >&5
15885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15886 echo $ac_n "(cached) $ac_c" 1>&6
15887 else
15888 cat > conftest.$ac_ext <<EOF
15889 #line 15890 "configure"
15890 #include "confdefs.h"
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func(); below. */
15893 #include <assert.h>
15894 /* Override any gcc2 internal prototype to avoid an error. */
15895 /* We use char because int might match the return type of a gcc2
15896 builtin and then its argument prototype would still apply. */
15897 char $ac_func();
15899 int main() {
15901 /* The GNU C library defines this for functions which it implements
15902 to always fail with ENOSYS. Some functions are actually named
15903 something starting with __ and the normal name is an alias. */
15904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15905 choke me
15906 #else
15907 $ac_func();
15908 #endif
15910 ; return 0; }
15912 if { (eval echo configure:15913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15913 rm -rf conftest*
15914 eval "ac_cv_func_$ac_func=yes"
15915 else
15916 echo "configure: failed program was:" >&5
15917 cat conftest.$ac_ext >&5
15918 rm -rf conftest*
15919 eval "ac_cv_func_$ac_func=no"
15921 rm -f conftest*
15924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15925 echo "$ac_t""yes" 1>&6
15926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15927 cat >> confdefs.h <<EOF
15928 #define $ac_tr_func 1
15931 else
15932 echo "$ac_t""no" 1>&6
15934 done
15941 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15942 echo "configure:15943: checking for finitef declaration" >&5
15943 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15944 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15945 echo $ac_n "(cached) $ac_c" 1>&6
15946 else
15949 ac_ext=C
15950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15951 ac_cpp='$CXXCPP $CPPFLAGS'
15952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15954 cross_compiling=$ac_cv_prog_cxx_cross
15956 cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15959 #include <math.h>
15960 #ifdef HAVE_IEEEFP_H
15961 #include <ieeefp.h>
15962 #endif
15964 int main() {
15965 finitef(0);
15966 ; return 0; }
15968 if { (eval echo configure:15969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15969 rm -rf conftest*
15970 glibcpp_cv_func_finitef_use=yes
15971 else
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15974 rm -rf conftest*
15975 glibcpp_cv_func_finitef_use=no
15977 rm -f conftest*
15978 ac_ext=c
15979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15980 ac_cpp='$CPP $CPPFLAGS'
15981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15983 cross_compiling=$ac_cv_prog_cc_cross
15989 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15991 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15992 for ac_func in finitef
15994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15995 echo "configure:15996: checking for $ac_func" >&5
15996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func(); below. */
16004 #include <assert.h>
16005 /* Override any gcc2 internal prototype to avoid an error. */
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16008 char $ac_func();
16010 int main() {
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16016 choke me
16017 #else
16018 $ac_func();
16019 #endif
16021 ; return 0; }
16023 if { (eval echo configure:16024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16024 rm -rf conftest*
16025 eval "ac_cv_func_$ac_func=yes"
16026 else
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16029 rm -rf conftest*
16030 eval "ac_cv_func_$ac_func=no"
16032 rm -f conftest*
16035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16036 echo "$ac_t""yes" 1>&6
16037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16038 cat >> confdefs.h <<EOF
16039 #define $ac_tr_func 1
16042 else
16043 echo "$ac_t""no" 1>&6
16045 done
16047 else
16049 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16050 echo "configure:16051: checking for _finitef declaration" >&5
16051 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16052 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16053 echo $ac_n "(cached) $ac_c" 1>&6
16054 else
16057 ac_ext=C
16058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16059 ac_cpp='$CXXCPP $CPPFLAGS'
16060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16062 cross_compiling=$ac_cv_prog_cxx_cross
16064 cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 #include <math.h>
16068 #ifdef HAVE_IEEEFP_H
16069 #include <ieeefp.h>
16070 #endif
16072 int main() {
16073 _finitef(0);
16074 ; return 0; }
16076 if { (eval echo configure:16077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16077 rm -rf conftest*
16078 glibcpp_cv_func__finitef_use=yes
16079 else
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 rm -rf conftest*
16083 glibcpp_cv_func__finitef_use=no
16085 rm -f conftest*
16086 ac_ext=c
16087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16088 ac_cpp='$CPP $CPPFLAGS'
16089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16091 cross_compiling=$ac_cv_prog_cc_cross
16097 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16099 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16100 for ac_func in _finitef
16102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16103 echo "configure:16104: checking for $ac_func" >&5
16104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16106 else
16107 cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16110 /* System header to define __stub macros and hopefully few prototypes,
16111 which can conflict with char $ac_func(); below. */
16112 #include <assert.h>
16113 /* Override any gcc2 internal prototype to avoid an error. */
16114 /* We use char because int might match the return type of a gcc2
16115 builtin and then its argument prototype would still apply. */
16116 char $ac_func();
16118 int main() {
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16124 choke me
16125 #else
16126 $ac_func();
16127 #endif
16129 ; return 0; }
16131 if { (eval echo configure:16132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16132 rm -rf conftest*
16133 eval "ac_cv_func_$ac_func=yes"
16134 else
16135 echo "configure: failed program was:" >&5
16136 cat conftest.$ac_ext >&5
16137 rm -rf conftest*
16138 eval "ac_cv_func_$ac_func=no"
16140 rm -f conftest*
16143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16144 echo "$ac_t""yes" 1>&6
16145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16146 cat >> confdefs.h <<EOF
16147 #define $ac_tr_func 1
16150 else
16151 echo "$ac_t""no" 1>&6
16153 done
16160 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16161 echo "configure:16162: checking for long double trig functions" >&5
16162 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16164 else
16167 ac_ext=C
16168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16169 ac_cpp='$CXXCPP $CPPFLAGS'
16170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16172 cross_compiling=$ac_cv_prog_cxx_cross
16174 cat > conftest.$ac_ext <<EOF
16175 #line 16176 "configure"
16176 #include "confdefs.h"
16177 #include <math.h>
16178 int main() {
16179 `for x in acosl asinl atanl \
16180 cosl sinl tanl \
16181 coshl sinhl tanhl; do echo "$x (0);"; done`
16182 ; return 0; }
16184 if { (eval echo configure:16185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16185 rm -rf conftest*
16186 glibcpp_cv_func_long_double_trig_use=yes
16187 else
16188 echo "configure: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 rm -rf conftest*
16191 glibcpp_cv_func_long_double_trig_use=no
16193 rm -f conftest*
16194 ac_ext=c
16195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16196 ac_cpp='$CPP $CPPFLAGS'
16197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16199 cross_compiling=$ac_cv_prog_cc_cross
16203 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16204 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16205 for ac_func in acosl asinl atanl \
16206 cosl sinl tanl \
16207 coshl sinhl tanhl
16209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16210 echo "configure:16211: checking for $ac_func" >&5
16211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16212 echo $ac_n "(cached) $ac_c" 1>&6
16213 else
16214 cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16217 /* System header to define __stub macros and hopefully few prototypes,
16218 which can conflict with char $ac_func(); below. */
16219 #include <assert.h>
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 /* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16223 char $ac_func();
16225 int main() {
16227 /* The GNU C library defines this for functions which it implements
16228 to always fail with ENOSYS. Some functions are actually named
16229 something starting with __ and the normal name is an alias. */
16230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16231 choke me
16232 #else
16233 $ac_func();
16234 #endif
16236 ; return 0; }
16238 if { (eval echo configure:16239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16239 rm -rf conftest*
16240 eval "ac_cv_func_$ac_func=yes"
16241 else
16242 echo "configure: failed program was:" >&5
16243 cat conftest.$ac_ext >&5
16244 rm -rf conftest*
16245 eval "ac_cv_func_$ac_func=no"
16247 rm -f conftest*
16250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16251 echo "$ac_t""yes" 1>&6
16252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16253 cat >> confdefs.h <<EOF
16254 #define $ac_tr_func 1
16257 else
16258 echo "$ac_t""no" 1>&6
16260 done
16265 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16266 echo "configure:16267: checking for long double round functions" >&5
16267 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16268 echo $ac_n "(cached) $ac_c" 1>&6
16269 else
16272 ac_ext=C
16273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16274 ac_cpp='$CXXCPP $CPPFLAGS'
16275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16277 cross_compiling=$ac_cv_prog_cxx_cross
16279 cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16282 #include <math.h>
16283 int main() {
16284 `for x in ceill floorl; do echo "$x (0);"; done`
16285 ; return 0; }
16287 if { (eval echo configure:16288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16288 rm -rf conftest*
16289 glibcpp_cv_func_long_double_round_use=yes
16290 else
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16293 rm -rf conftest*
16294 glibcpp_cv_func_long_double_round_use=no
16296 rm -f conftest*
16297 ac_ext=c
16298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16299 ac_cpp='$CPP $CPPFLAGS'
16300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16302 cross_compiling=$ac_cv_prog_cc_cross
16306 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16307 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16308 for ac_func in ceill floorl
16310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16311 echo "configure:16312: checking for $ac_func" >&5
16312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16313 echo $ac_n "(cached) $ac_c" 1>&6
16314 else
16315 cat > conftest.$ac_ext <<EOF
16316 #line 16317 "configure"
16317 #include "confdefs.h"
16318 /* System header to define __stub macros and hopefully few prototypes,
16319 which can conflict with char $ac_func(); below. */
16320 #include <assert.h>
16321 /* Override any gcc2 internal prototype to avoid an error. */
16322 /* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16324 char $ac_func();
16326 int main() {
16328 /* The GNU C library defines this for functions which it implements
16329 to always fail with ENOSYS. Some functions are actually named
16330 something starting with __ and the normal name is an alias. */
16331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16332 choke me
16333 #else
16334 $ac_func();
16335 #endif
16337 ; return 0; }
16339 if { (eval echo configure:16340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16340 rm -rf conftest*
16341 eval "ac_cv_func_$ac_func=yes"
16342 else
16343 echo "configure: failed program was:" >&5
16344 cat conftest.$ac_ext >&5
16345 rm -rf conftest*
16346 eval "ac_cv_func_$ac_func=no"
16348 rm -f conftest*
16351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16352 echo "$ac_t""yes" 1>&6
16353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16354 cat >> confdefs.h <<EOF
16355 #define $ac_tr_func 1
16358 else
16359 echo "$ac_t""no" 1>&6
16361 done
16367 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16368 echo "configure:16369: checking for isnanl declaration" >&5
16369 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16370 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16372 else
16375 ac_ext=C
16376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16377 ac_cpp='$CXXCPP $CPPFLAGS'
16378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16380 cross_compiling=$ac_cv_prog_cxx_cross
16382 cat > conftest.$ac_ext <<EOF
16383 #line 16384 "configure"
16384 #include "confdefs.h"
16385 #include <math.h>
16386 #ifdef HAVE_IEEEFP_H
16387 #include <ieeefp.h>
16388 #endif
16390 int main() {
16391 isnanl(0);
16392 ; return 0; }
16394 if { (eval echo configure:16395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16395 rm -rf conftest*
16396 glibcpp_cv_func_isnanl_use=yes
16397 else
16398 echo "configure: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16400 rm -rf conftest*
16401 glibcpp_cv_func_isnanl_use=no
16403 rm -f conftest*
16404 ac_ext=c
16405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16406 ac_cpp='$CPP $CPPFLAGS'
16407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16409 cross_compiling=$ac_cv_prog_cc_cross
16415 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16417 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16418 for ac_func in isnanl
16420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16421 echo "configure:16422: checking for $ac_func" >&5
16422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16423 echo $ac_n "(cached) $ac_c" 1>&6
16424 else
16425 cat > conftest.$ac_ext <<EOF
16426 #line 16427 "configure"
16427 #include "confdefs.h"
16428 /* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func(); below. */
16430 #include <assert.h>
16431 /* Override any gcc2 internal prototype to avoid an error. */
16432 /* We use char because int might match the return type of a gcc2
16433 builtin and then its argument prototype would still apply. */
16434 char $ac_func();
16436 int main() {
16438 /* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16442 choke me
16443 #else
16444 $ac_func();
16445 #endif
16447 ; return 0; }
16449 if { (eval echo configure:16450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16450 rm -rf conftest*
16451 eval "ac_cv_func_$ac_func=yes"
16452 else
16453 echo "configure: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16455 rm -rf conftest*
16456 eval "ac_cv_func_$ac_func=no"
16458 rm -f conftest*
16461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16462 echo "$ac_t""yes" 1>&6
16463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16464 cat >> confdefs.h <<EOF
16465 #define $ac_tr_func 1
16468 else
16469 echo "$ac_t""no" 1>&6
16471 done
16473 else
16475 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16476 echo "configure:16477: checking for _isnanl declaration" >&5
16477 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16478 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16480 else
16483 ac_ext=C
16484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16485 ac_cpp='$CXXCPP $CPPFLAGS'
16486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16488 cross_compiling=$ac_cv_prog_cxx_cross
16490 cat > conftest.$ac_ext <<EOF
16491 #line 16492 "configure"
16492 #include "confdefs.h"
16493 #include <math.h>
16494 #ifdef HAVE_IEEEFP_H
16495 #include <ieeefp.h>
16496 #endif
16498 int main() {
16499 _isnanl(0);
16500 ; return 0; }
16502 if { (eval echo configure:16503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16503 rm -rf conftest*
16504 glibcpp_cv_func__isnanl_use=yes
16505 else
16506 echo "configure: failed program was:" >&5
16507 cat conftest.$ac_ext >&5
16508 rm -rf conftest*
16509 glibcpp_cv_func__isnanl_use=no
16511 rm -f conftest*
16512 ac_ext=c
16513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16514 ac_cpp='$CPP $CPPFLAGS'
16515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16517 cross_compiling=$ac_cv_prog_cc_cross
16523 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16525 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16526 for ac_func in _isnanl
16528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16529 echo "configure:16530: checking for $ac_func" >&5
16530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16531 echo $ac_n "(cached) $ac_c" 1>&6
16532 else
16533 cat > conftest.$ac_ext <<EOF
16534 #line 16535 "configure"
16535 #include "confdefs.h"
16536 /* System header to define __stub macros and hopefully few prototypes,
16537 which can conflict with char $ac_func(); below. */
16538 #include <assert.h>
16539 /* Override any gcc2 internal prototype to avoid an error. */
16540 /* We use char because int might match the return type of a gcc2
16541 builtin and then its argument prototype would still apply. */
16542 char $ac_func();
16544 int main() {
16546 /* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16550 choke me
16551 #else
16552 $ac_func();
16553 #endif
16555 ; return 0; }
16557 if { (eval echo configure:16558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16558 rm -rf conftest*
16559 eval "ac_cv_func_$ac_func=yes"
16560 else
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16563 rm -rf conftest*
16564 eval "ac_cv_func_$ac_func=no"
16566 rm -f conftest*
16569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16570 echo "$ac_t""yes" 1>&6
16571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16572 cat >> confdefs.h <<EOF
16573 #define $ac_tr_func 1
16576 else
16577 echo "$ac_t""no" 1>&6
16579 done
16586 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16587 echo "configure:16588: checking for isinfl declaration" >&5
16588 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16589 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16590 echo $ac_n "(cached) $ac_c" 1>&6
16591 else
16594 ac_ext=C
16595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16596 ac_cpp='$CXXCPP $CPPFLAGS'
16597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16599 cross_compiling=$ac_cv_prog_cxx_cross
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16604 #include <math.h>
16605 #ifdef HAVE_IEEEFP_H
16606 #include <ieeefp.h>
16607 #endif
16609 int main() {
16610 isinfl(0);
16611 ; return 0; }
16613 if { (eval echo configure:16614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16614 rm -rf conftest*
16615 glibcpp_cv_func_isinfl_use=yes
16616 else
16617 echo "configure: failed program was:" >&5
16618 cat conftest.$ac_ext >&5
16619 rm -rf conftest*
16620 glibcpp_cv_func_isinfl_use=no
16622 rm -f conftest*
16623 ac_ext=c
16624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16625 ac_cpp='$CPP $CPPFLAGS'
16626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16628 cross_compiling=$ac_cv_prog_cc_cross
16634 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16636 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16637 for ac_func in isinfl
16639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16640 echo "configure:16641: checking for $ac_func" >&5
16641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16642 echo $ac_n "(cached) $ac_c" 1>&6
16643 else
16644 cat > conftest.$ac_ext <<EOF
16645 #line 16646 "configure"
16646 #include "confdefs.h"
16647 /* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func(); below. */
16649 #include <assert.h>
16650 /* Override any gcc2 internal prototype to avoid an error. */
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653 char $ac_func();
16655 int main() {
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16661 choke me
16662 #else
16663 $ac_func();
16664 #endif
16666 ; return 0; }
16668 if { (eval echo configure:16669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16669 rm -rf conftest*
16670 eval "ac_cv_func_$ac_func=yes"
16671 else
16672 echo "configure: failed program was:" >&5
16673 cat conftest.$ac_ext >&5
16674 rm -rf conftest*
16675 eval "ac_cv_func_$ac_func=no"
16677 rm -f conftest*
16680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16681 echo "$ac_t""yes" 1>&6
16682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16683 cat >> confdefs.h <<EOF
16684 #define $ac_tr_func 1
16687 else
16688 echo "$ac_t""no" 1>&6
16690 done
16692 else
16694 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16695 echo "configure:16696: checking for _isinfl declaration" >&5
16696 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16697 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16698 echo $ac_n "(cached) $ac_c" 1>&6
16699 else
16702 ac_ext=C
16703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16704 ac_cpp='$CXXCPP $CPPFLAGS'
16705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16707 cross_compiling=$ac_cv_prog_cxx_cross
16709 cat > conftest.$ac_ext <<EOF
16710 #line 16711 "configure"
16711 #include "confdefs.h"
16712 #include <math.h>
16713 #ifdef HAVE_IEEEFP_H
16714 #include <ieeefp.h>
16715 #endif
16717 int main() {
16718 _isinfl(0);
16719 ; return 0; }
16721 if { (eval echo configure:16722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16722 rm -rf conftest*
16723 glibcpp_cv_func__isinfl_use=yes
16724 else
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 rm -rf conftest*
16728 glibcpp_cv_func__isinfl_use=no
16730 rm -f conftest*
16731 ac_ext=c
16732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16733 ac_cpp='$CPP $CPPFLAGS'
16734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16736 cross_compiling=$ac_cv_prog_cc_cross
16742 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16744 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16745 for ac_func in _isinfl
16747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16748 echo "configure:16749: checking for $ac_func" >&5
16749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16750 echo $ac_n "(cached) $ac_c" 1>&6
16751 else
16752 cat > conftest.$ac_ext <<EOF
16753 #line 16754 "configure"
16754 #include "confdefs.h"
16755 /* System header to define __stub macros and hopefully few prototypes,
16756 which can conflict with char $ac_func(); below. */
16757 #include <assert.h>
16758 /* Override any gcc2 internal prototype to avoid an error. */
16759 /* We use char because int might match the return type of a gcc2
16760 builtin and then its argument prototype would still apply. */
16761 char $ac_func();
16763 int main() {
16765 /* The GNU C library defines this for functions which it implements
16766 to always fail with ENOSYS. Some functions are actually named
16767 something starting with __ and the normal name is an alias. */
16768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16769 choke me
16770 #else
16771 $ac_func();
16772 #endif
16774 ; return 0; }
16776 if { (eval echo configure:16777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16777 rm -rf conftest*
16778 eval "ac_cv_func_$ac_func=yes"
16779 else
16780 echo "configure: failed program was:" >&5
16781 cat conftest.$ac_ext >&5
16782 rm -rf conftest*
16783 eval "ac_cv_func_$ac_func=no"
16785 rm -f conftest*
16788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16789 echo "$ac_t""yes" 1>&6
16790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16791 cat >> confdefs.h <<EOF
16792 #define $ac_tr_func 1
16795 else
16796 echo "$ac_t""no" 1>&6
16798 done
16805 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16806 echo "configure:16807: checking for copysignl declaration" >&5
16807 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16808 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16809 echo $ac_n "(cached) $ac_c" 1>&6
16810 else
16813 ac_ext=C
16814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16815 ac_cpp='$CXXCPP $CPPFLAGS'
16816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16818 cross_compiling=$ac_cv_prog_cxx_cross
16820 cat > conftest.$ac_ext <<EOF
16821 #line 16822 "configure"
16822 #include "confdefs.h"
16823 #include <math.h>
16824 int main() {
16825 copysignl(0, 0);
16826 ; return 0; }
16828 if { (eval echo configure:16829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16829 rm -rf conftest*
16830 glibcpp_cv_func_copysignl_use=yes
16831 else
16832 echo "configure: failed program was:" >&5
16833 cat conftest.$ac_ext >&5
16834 rm -rf conftest*
16835 glibcpp_cv_func_copysignl_use=no
16837 rm -f conftest*
16838 ac_ext=c
16839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16840 ac_cpp='$CPP $CPPFLAGS'
16841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16843 cross_compiling=$ac_cv_prog_cc_cross
16849 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16851 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16852 for ac_func in copysignl
16854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16855 echo "configure:16856: checking for $ac_func" >&5
16856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16857 echo $ac_n "(cached) $ac_c" 1>&6
16858 else
16859 cat > conftest.$ac_ext <<EOF
16860 #line 16861 "configure"
16861 #include "confdefs.h"
16862 /* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char $ac_func(); below. */
16864 #include <assert.h>
16865 /* Override any gcc2 internal prototype to avoid an error. */
16866 /* We use char because int might match the return type of a gcc2
16867 builtin and then its argument prototype would still apply. */
16868 char $ac_func();
16870 int main() {
16872 /* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16876 choke me
16877 #else
16878 $ac_func();
16879 #endif
16881 ; return 0; }
16883 if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 rm -rf conftest*
16885 eval "ac_cv_func_$ac_func=yes"
16886 else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_func_$ac_func=no"
16892 rm -f conftest*
16895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16896 echo "$ac_t""yes" 1>&6
16897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16898 cat >> confdefs.h <<EOF
16899 #define $ac_tr_func 1
16902 else
16903 echo "$ac_t""no" 1>&6
16905 done
16907 else
16909 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16910 echo "configure:16911: checking for _copysignl declaration" >&5
16911 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16912 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16913 echo $ac_n "(cached) $ac_c" 1>&6
16914 else
16917 ac_ext=C
16918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16919 ac_cpp='$CXXCPP $CPPFLAGS'
16920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16922 cross_compiling=$ac_cv_prog_cxx_cross
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 #include <math.h>
16928 int main() {
16929 _copysignl(0, 0);
16930 ; return 0; }
16932 if { (eval echo configure:16933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16933 rm -rf conftest*
16934 glibcpp_cv_func__copysignl_use=yes
16935 else
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 rm -rf conftest*
16939 glibcpp_cv_func__copysignl_use=no
16941 rm -f conftest*
16942 ac_ext=c
16943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947 cross_compiling=$ac_cv_prog_cc_cross
16953 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16955 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16956 for ac_func in _copysignl
16958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16959 echo "configure:16960: checking for $ac_func" >&5
16960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16961 echo $ac_n "(cached) $ac_c" 1>&6
16962 else
16963 cat > conftest.$ac_ext <<EOF
16964 #line 16965 "configure"
16965 #include "confdefs.h"
16966 /* System header to define __stub macros and hopefully few prototypes,
16967 which can conflict with char $ac_func(); below. */
16968 #include <assert.h>
16969 /* Override any gcc2 internal prototype to avoid an error. */
16970 /* We use char because int might match the return type of a gcc2
16971 builtin and then its argument prototype would still apply. */
16972 char $ac_func();
16974 int main() {
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16980 choke me
16981 #else
16982 $ac_func();
16983 #endif
16985 ; return 0; }
16987 if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16988 rm -rf conftest*
16989 eval "ac_cv_func_$ac_func=yes"
16990 else
16991 echo "configure: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 rm -rf conftest*
16994 eval "ac_cv_func_$ac_func=no"
16996 rm -f conftest*
16999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17000 echo "$ac_t""yes" 1>&6
17001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17002 cat >> confdefs.h <<EOF
17003 #define $ac_tr_func 1
17006 else
17007 echo "$ac_t""no" 1>&6
17009 done
17016 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17017 echo "configure:17018: checking for atan2l declaration" >&5
17018 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17019 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17020 echo $ac_n "(cached) $ac_c" 1>&6
17021 else
17024 ac_ext=C
17025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17026 ac_cpp='$CXXCPP $CPPFLAGS'
17027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17029 cross_compiling=$ac_cv_prog_cxx_cross
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17034 #include <math.h>
17035 int main() {
17036 atan2l(0, 0);
17037 ; return 0; }
17039 if { (eval echo configure:17040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17040 rm -rf conftest*
17041 glibcpp_cv_func_atan2l_use=yes
17042 else
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 glibcpp_cv_func_atan2l_use=no
17048 rm -f conftest*
17049 ac_ext=c
17050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17051 ac_cpp='$CPP $CPPFLAGS'
17052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17054 cross_compiling=$ac_cv_prog_cc_cross
17060 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17062 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17063 for ac_func in atan2l
17065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17066 echo "configure:17067: checking for $ac_func" >&5
17067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17068 echo $ac_n "(cached) $ac_c" 1>&6
17069 else
17070 cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17073 /* System header to define __stub macros and hopefully few prototypes,
17074 which can conflict with char $ac_func(); below. */
17075 #include <assert.h>
17076 /* Override any gcc2 internal prototype to avoid an error. */
17077 /* We use char because int might match the return type of a gcc2
17078 builtin and then its argument prototype would still apply. */
17079 char $ac_func();
17081 int main() {
17083 /* The GNU C library defines this for functions which it implements
17084 to always fail with ENOSYS. Some functions are actually named
17085 something starting with __ and the normal name is an alias. */
17086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17087 choke me
17088 #else
17089 $ac_func();
17090 #endif
17092 ; return 0; }
17094 if { (eval echo configure:17095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17095 rm -rf conftest*
17096 eval "ac_cv_func_$ac_func=yes"
17097 else
17098 echo "configure: failed program was:" >&5
17099 cat conftest.$ac_ext >&5
17100 rm -rf conftest*
17101 eval "ac_cv_func_$ac_func=no"
17103 rm -f conftest*
17106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17109 cat >> confdefs.h <<EOF
17110 #define $ac_tr_func 1
17113 else
17114 echo "$ac_t""no" 1>&6
17116 done
17118 else
17120 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17121 echo "configure:17122: checking for _atan2l declaration" >&5
17122 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17123 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125 else
17128 ac_ext=C
17129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17130 ac_cpp='$CXXCPP $CPPFLAGS'
17131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17133 cross_compiling=$ac_cv_prog_cxx_cross
17135 cat > conftest.$ac_ext <<EOF
17136 #line 17137 "configure"
17137 #include "confdefs.h"
17138 #include <math.h>
17139 int main() {
17140 _atan2l(0, 0);
17141 ; return 0; }
17143 if { (eval echo configure:17144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17144 rm -rf conftest*
17145 glibcpp_cv_func__atan2l_use=yes
17146 else
17147 echo "configure: failed program was:" >&5
17148 cat conftest.$ac_ext >&5
17149 rm -rf conftest*
17150 glibcpp_cv_func__atan2l_use=no
17152 rm -f conftest*
17153 ac_ext=c
17154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17155 ac_cpp='$CPP $CPPFLAGS'
17156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17158 cross_compiling=$ac_cv_prog_cc_cross
17164 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17166 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17167 for ac_func in _atan2l
17169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17170 echo "configure:17171: checking for $ac_func" >&5
17171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17172 echo $ac_n "(cached) $ac_c" 1>&6
17173 else
17174 cat > conftest.$ac_ext <<EOF
17175 #line 17176 "configure"
17176 #include "confdefs.h"
17177 /* System header to define __stub macros and hopefully few prototypes,
17178 which can conflict with char $ac_func(); below. */
17179 #include <assert.h>
17180 /* Override any gcc2 internal prototype to avoid an error. */
17181 /* We use char because int might match the return type of a gcc2
17182 builtin and then its argument prototype would still apply. */
17183 char $ac_func();
17185 int main() {
17187 /* The GNU C library defines this for functions which it implements
17188 to always fail with ENOSYS. Some functions are actually named
17189 something starting with __ and the normal name is an alias. */
17190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17191 choke me
17192 #else
17193 $ac_func();
17194 #endif
17196 ; return 0; }
17198 if { (eval echo configure:17199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17199 rm -rf conftest*
17200 eval "ac_cv_func_$ac_func=yes"
17201 else
17202 echo "configure: failed program was:" >&5
17203 cat conftest.$ac_ext >&5
17204 rm -rf conftest*
17205 eval "ac_cv_func_$ac_func=no"
17207 rm -f conftest*
17210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17211 echo "$ac_t""yes" 1>&6
17212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17213 cat >> confdefs.h <<EOF
17214 #define $ac_tr_func 1
17217 else
17218 echo "$ac_t""no" 1>&6
17220 done
17227 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17228 echo "configure:17229: checking for expl declaration" >&5
17229 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17230 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17231 echo $ac_n "(cached) $ac_c" 1>&6
17232 else
17235 ac_ext=C
17236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17237 ac_cpp='$CXXCPP $CPPFLAGS'
17238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17240 cross_compiling=$ac_cv_prog_cxx_cross
17242 cat > conftest.$ac_ext <<EOF
17243 #line 17244 "configure"
17244 #include "confdefs.h"
17245 #include <math.h>
17246 #ifdef HAVE_IEEEFP_H
17247 #include <ieeefp.h>
17248 #endif
17250 int main() {
17251 expl(0);
17252 ; return 0; }
17254 if { (eval echo configure:17255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17255 rm -rf conftest*
17256 glibcpp_cv_func_expl_use=yes
17257 else
17258 echo "configure: failed program was:" >&5
17259 cat conftest.$ac_ext >&5
17260 rm -rf conftest*
17261 glibcpp_cv_func_expl_use=no
17263 rm -f conftest*
17264 ac_ext=c
17265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17266 ac_cpp='$CPP $CPPFLAGS'
17267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17269 cross_compiling=$ac_cv_prog_cc_cross
17275 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17277 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17278 for ac_func in expl
17280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17281 echo "configure:17282: checking for $ac_func" >&5
17282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17283 echo $ac_n "(cached) $ac_c" 1>&6
17284 else
17285 cat > conftest.$ac_ext <<EOF
17286 #line 17287 "configure"
17287 #include "confdefs.h"
17288 /* System header to define __stub macros and hopefully few prototypes,
17289 which can conflict with char $ac_func(); below. */
17290 #include <assert.h>
17291 /* Override any gcc2 internal prototype to avoid an error. */
17292 /* We use char because int might match the return type of a gcc2
17293 builtin and then its argument prototype would still apply. */
17294 char $ac_func();
17296 int main() {
17298 /* The GNU C library defines this for functions which it implements
17299 to always fail with ENOSYS. Some functions are actually named
17300 something starting with __ and the normal name is an alias. */
17301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17302 choke me
17303 #else
17304 $ac_func();
17305 #endif
17307 ; return 0; }
17309 if { (eval echo configure:17310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17310 rm -rf conftest*
17311 eval "ac_cv_func_$ac_func=yes"
17312 else
17313 echo "configure: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 rm -rf conftest*
17316 eval "ac_cv_func_$ac_func=no"
17318 rm -f conftest*
17321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17322 echo "$ac_t""yes" 1>&6
17323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17324 cat >> confdefs.h <<EOF
17325 #define $ac_tr_func 1
17328 else
17329 echo "$ac_t""no" 1>&6
17331 done
17333 else
17335 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17336 echo "configure:17337: checking for _expl declaration" >&5
17337 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17338 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17339 echo $ac_n "(cached) $ac_c" 1>&6
17340 else
17343 ac_ext=C
17344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17345 ac_cpp='$CXXCPP $CPPFLAGS'
17346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17348 cross_compiling=$ac_cv_prog_cxx_cross
17350 cat > conftest.$ac_ext <<EOF
17351 #line 17352 "configure"
17352 #include "confdefs.h"
17353 #include <math.h>
17354 #ifdef HAVE_IEEEFP_H
17355 #include <ieeefp.h>
17356 #endif
17358 int main() {
17359 _expl(0);
17360 ; return 0; }
17362 if { (eval echo configure:17363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17363 rm -rf conftest*
17364 glibcpp_cv_func__expl_use=yes
17365 else
17366 echo "configure: failed program was:" >&5
17367 cat conftest.$ac_ext >&5
17368 rm -rf conftest*
17369 glibcpp_cv_func__expl_use=no
17371 rm -f conftest*
17372 ac_ext=c
17373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17374 ac_cpp='$CPP $CPPFLAGS'
17375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17377 cross_compiling=$ac_cv_prog_cc_cross
17383 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17385 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17386 for ac_func in _expl
17388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17389 echo "configure:17390: checking for $ac_func" >&5
17390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17391 echo $ac_n "(cached) $ac_c" 1>&6
17392 else
17393 cat > conftest.$ac_ext <<EOF
17394 #line 17395 "configure"
17395 #include "confdefs.h"
17396 /* System header to define __stub macros and hopefully few prototypes,
17397 which can conflict with char $ac_func(); below. */
17398 #include <assert.h>
17399 /* Override any gcc2 internal prototype to avoid an error. */
17400 /* We use char because int might match the return type of a gcc2
17401 builtin and then its argument prototype would still apply. */
17402 char $ac_func();
17404 int main() {
17406 /* The GNU C library defines this for functions which it implements
17407 to always fail with ENOSYS. Some functions are actually named
17408 something starting with __ and the normal name is an alias. */
17409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17410 choke me
17411 #else
17412 $ac_func();
17413 #endif
17415 ; return 0; }
17417 if { (eval echo configure:17418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17418 rm -rf conftest*
17419 eval "ac_cv_func_$ac_func=yes"
17420 else
17421 echo "configure: failed program was:" >&5
17422 cat conftest.$ac_ext >&5
17423 rm -rf conftest*
17424 eval "ac_cv_func_$ac_func=no"
17426 rm -f conftest*
17429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17430 echo "$ac_t""yes" 1>&6
17431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17432 cat >> confdefs.h <<EOF
17433 #define $ac_tr_func 1
17436 else
17437 echo "$ac_t""no" 1>&6
17439 done
17446 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17447 echo "configure:17448: checking for fabsl declaration" >&5
17448 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17449 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17450 echo $ac_n "(cached) $ac_c" 1>&6
17451 else
17454 ac_ext=C
17455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17456 ac_cpp='$CXXCPP $CPPFLAGS'
17457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17459 cross_compiling=$ac_cv_prog_cxx_cross
17461 cat > conftest.$ac_ext <<EOF
17462 #line 17463 "configure"
17463 #include "confdefs.h"
17464 #include <math.h>
17465 #ifdef HAVE_IEEEFP_H
17466 #include <ieeefp.h>
17467 #endif
17469 int main() {
17470 fabsl(0);
17471 ; return 0; }
17473 if { (eval echo configure:17474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17474 rm -rf conftest*
17475 glibcpp_cv_func_fabsl_use=yes
17476 else
17477 echo "configure: failed program was:" >&5
17478 cat conftest.$ac_ext >&5
17479 rm -rf conftest*
17480 glibcpp_cv_func_fabsl_use=no
17482 rm -f conftest*
17483 ac_ext=c
17484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17485 ac_cpp='$CPP $CPPFLAGS'
17486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17488 cross_compiling=$ac_cv_prog_cc_cross
17494 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17496 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17497 for ac_func in fabsl
17499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17500 echo "configure:17501: checking for $ac_func" >&5
17501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17502 echo $ac_n "(cached) $ac_c" 1>&6
17503 else
17504 cat > conftest.$ac_ext <<EOF
17505 #line 17506 "configure"
17506 #include "confdefs.h"
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char $ac_func(); below. */
17509 #include <assert.h>
17510 /* Override any gcc2 internal prototype to avoid an error. */
17511 /* We use char because int might match the return type of a gcc2
17512 builtin and then its argument prototype would still apply. */
17513 char $ac_func();
17515 int main() {
17517 /* The GNU C library defines this for functions which it implements
17518 to always fail with ENOSYS. Some functions are actually named
17519 something starting with __ and the normal name is an alias. */
17520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17521 choke me
17522 #else
17523 $ac_func();
17524 #endif
17526 ; return 0; }
17528 if { (eval echo configure:17529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17529 rm -rf conftest*
17530 eval "ac_cv_func_$ac_func=yes"
17531 else
17532 echo "configure: failed program was:" >&5
17533 cat conftest.$ac_ext >&5
17534 rm -rf conftest*
17535 eval "ac_cv_func_$ac_func=no"
17537 rm -f conftest*
17540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17541 echo "$ac_t""yes" 1>&6
17542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17543 cat >> confdefs.h <<EOF
17544 #define $ac_tr_func 1
17547 else
17548 echo "$ac_t""no" 1>&6
17550 done
17552 else
17554 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17555 echo "configure:17556: checking for _fabsl declaration" >&5
17556 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17557 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17558 echo $ac_n "(cached) $ac_c" 1>&6
17559 else
17562 ac_ext=C
17563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17564 ac_cpp='$CXXCPP $CPPFLAGS'
17565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17567 cross_compiling=$ac_cv_prog_cxx_cross
17569 cat > conftest.$ac_ext <<EOF
17570 #line 17571 "configure"
17571 #include "confdefs.h"
17572 #include <math.h>
17573 #ifdef HAVE_IEEEFP_H
17574 #include <ieeefp.h>
17575 #endif
17577 int main() {
17578 _fabsl(0);
17579 ; return 0; }
17581 if { (eval echo configure:17582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17582 rm -rf conftest*
17583 glibcpp_cv_func__fabsl_use=yes
17584 else
17585 echo "configure: failed program was:" >&5
17586 cat conftest.$ac_ext >&5
17587 rm -rf conftest*
17588 glibcpp_cv_func__fabsl_use=no
17590 rm -f conftest*
17591 ac_ext=c
17592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17593 ac_cpp='$CPP $CPPFLAGS'
17594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17596 cross_compiling=$ac_cv_prog_cc_cross
17602 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17604 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17605 for ac_func in _fabsl
17607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17608 echo "configure:17609: checking for $ac_func" >&5
17609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17610 echo $ac_n "(cached) $ac_c" 1>&6
17611 else
17612 cat > conftest.$ac_ext <<EOF
17613 #line 17614 "configure"
17614 #include "confdefs.h"
17615 /* System header to define __stub macros and hopefully few prototypes,
17616 which can conflict with char $ac_func(); below. */
17617 #include <assert.h>
17618 /* Override any gcc2 internal prototype to avoid an error. */
17619 /* We use char because int might match the return type of a gcc2
17620 builtin and then its argument prototype would still apply. */
17621 char $ac_func();
17623 int main() {
17625 /* The GNU C library defines this for functions which it implements
17626 to always fail with ENOSYS. Some functions are actually named
17627 something starting with __ and the normal name is an alias. */
17628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17629 choke me
17630 #else
17631 $ac_func();
17632 #endif
17634 ; return 0; }
17636 if { (eval echo configure:17637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17637 rm -rf conftest*
17638 eval "ac_cv_func_$ac_func=yes"
17639 else
17640 echo "configure: failed program was:" >&5
17641 cat conftest.$ac_ext >&5
17642 rm -rf conftest*
17643 eval "ac_cv_func_$ac_func=no"
17645 rm -f conftest*
17648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17649 echo "$ac_t""yes" 1>&6
17650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17651 cat >> confdefs.h <<EOF
17652 #define $ac_tr_func 1
17655 else
17656 echo "$ac_t""no" 1>&6
17658 done
17665 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17666 echo "configure:17667: checking for fmodl declaration" >&5
17667 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17668 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
17670 else
17673 ac_ext=C
17674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17675 ac_cpp='$CXXCPP $CPPFLAGS'
17676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17678 cross_compiling=$ac_cv_prog_cxx_cross
17680 cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17683 #include <math.h>
17684 int main() {
17685 fmodl(0, 0);
17686 ; return 0; }
17688 if { (eval echo configure:17689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17689 rm -rf conftest*
17690 glibcpp_cv_func_fmodl_use=yes
17691 else
17692 echo "configure: failed program was:" >&5
17693 cat conftest.$ac_ext >&5
17694 rm -rf conftest*
17695 glibcpp_cv_func_fmodl_use=no
17697 rm -f conftest*
17698 ac_ext=c
17699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17703 cross_compiling=$ac_cv_prog_cc_cross
17709 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17711 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17712 for ac_func in fmodl
17714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17715 echo "configure:17716: checking for $ac_func" >&5
17716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17717 echo $ac_n "(cached) $ac_c" 1>&6
17718 else
17719 cat > conftest.$ac_ext <<EOF
17720 #line 17721 "configure"
17721 #include "confdefs.h"
17722 /* System header to define __stub macros and hopefully few prototypes,
17723 which can conflict with char $ac_func(); below. */
17724 #include <assert.h>
17725 /* Override any gcc2 internal prototype to avoid an error. */
17726 /* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17728 char $ac_func();
17730 int main() {
17732 /* The GNU C library defines this for functions which it implements
17733 to always fail with ENOSYS. Some functions are actually named
17734 something starting with __ and the normal name is an alias. */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17736 choke me
17737 #else
17738 $ac_func();
17739 #endif
17741 ; return 0; }
17743 if { (eval echo configure:17744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17744 rm -rf conftest*
17745 eval "ac_cv_func_$ac_func=yes"
17746 else
17747 echo "configure: failed program was:" >&5
17748 cat conftest.$ac_ext >&5
17749 rm -rf conftest*
17750 eval "ac_cv_func_$ac_func=no"
17752 rm -f conftest*
17755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17756 echo "$ac_t""yes" 1>&6
17757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17758 cat >> confdefs.h <<EOF
17759 #define $ac_tr_func 1
17762 else
17763 echo "$ac_t""no" 1>&6
17765 done
17767 else
17769 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17770 echo "configure:17771: checking for _fmodl declaration" >&5
17771 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17772 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17777 ac_ext=C
17778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17782 cross_compiling=$ac_cv_prog_cxx_cross
17784 cat > conftest.$ac_ext <<EOF
17785 #line 17786 "configure"
17786 #include "confdefs.h"
17787 #include <math.h>
17788 int main() {
17789 _fmodl(0, 0);
17790 ; return 0; }
17792 if { (eval echo configure:17793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17793 rm -rf conftest*
17794 glibcpp_cv_func__fmodl_use=yes
17795 else
17796 echo "configure: failed program was:" >&5
17797 cat conftest.$ac_ext >&5
17798 rm -rf conftest*
17799 glibcpp_cv_func__fmodl_use=no
17801 rm -f conftest*
17802 ac_ext=c
17803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17804 ac_cpp='$CPP $CPPFLAGS'
17805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17807 cross_compiling=$ac_cv_prog_cc_cross
17813 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17815 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17816 for ac_func in _fmodl
17818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17819 echo "configure:17820: checking for $ac_func" >&5
17820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17821 echo $ac_n "(cached) $ac_c" 1>&6
17822 else
17823 cat > conftest.$ac_ext <<EOF
17824 #line 17825 "configure"
17825 #include "confdefs.h"
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func(); below. */
17828 #include <assert.h>
17829 /* Override any gcc2 internal prototype to avoid an error. */
17830 /* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17832 char $ac_func();
17834 int main() {
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17840 choke me
17841 #else
17842 $ac_func();
17843 #endif
17845 ; return 0; }
17847 if { (eval echo configure:17848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17848 rm -rf conftest*
17849 eval "ac_cv_func_$ac_func=yes"
17850 else
17851 echo "configure: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17853 rm -rf conftest*
17854 eval "ac_cv_func_$ac_func=no"
17856 rm -f conftest*
17859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17860 echo "$ac_t""yes" 1>&6
17861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17862 cat >> confdefs.h <<EOF
17863 #define $ac_tr_func 1
17866 else
17867 echo "$ac_t""no" 1>&6
17869 done
17876 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17877 echo "configure:17878: checking for frexpl declaration" >&5
17878 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17879 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17880 echo $ac_n "(cached) $ac_c" 1>&6
17881 else
17884 ac_ext=C
17885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17886 ac_cpp='$CXXCPP $CPPFLAGS'
17887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17889 cross_compiling=$ac_cv_prog_cxx_cross
17891 cat > conftest.$ac_ext <<EOF
17892 #line 17893 "configure"
17893 #include "confdefs.h"
17894 #include <math.h>
17895 int main() {
17896 frexpl(0, 0);
17897 ; return 0; }
17899 if { (eval echo configure:17900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17900 rm -rf conftest*
17901 glibcpp_cv_func_frexpl_use=yes
17902 else
17903 echo "configure: failed program was:" >&5
17904 cat conftest.$ac_ext >&5
17905 rm -rf conftest*
17906 glibcpp_cv_func_frexpl_use=no
17908 rm -f conftest*
17909 ac_ext=c
17910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17911 ac_cpp='$CPP $CPPFLAGS'
17912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17914 cross_compiling=$ac_cv_prog_cc_cross
17920 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17922 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17923 for ac_func in frexpl
17925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17926 echo "configure:17927: checking for $ac_func" >&5
17927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17928 echo $ac_n "(cached) $ac_c" 1>&6
17929 else
17930 cat > conftest.$ac_ext <<EOF
17931 #line 17932 "configure"
17932 #include "confdefs.h"
17933 /* System header to define __stub macros and hopefully few prototypes,
17934 which can conflict with char $ac_func(); below. */
17935 #include <assert.h>
17936 /* Override any gcc2 internal prototype to avoid an error. */
17937 /* We use char because int might match the return type of a gcc2
17938 builtin and then its argument prototype would still apply. */
17939 char $ac_func();
17941 int main() {
17943 /* The GNU C library defines this for functions which it implements
17944 to always fail with ENOSYS. Some functions are actually named
17945 something starting with __ and the normal name is an alias. */
17946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17947 choke me
17948 #else
17949 $ac_func();
17950 #endif
17952 ; return 0; }
17954 if { (eval echo configure:17955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17955 rm -rf conftest*
17956 eval "ac_cv_func_$ac_func=yes"
17957 else
17958 echo "configure: failed program was:" >&5
17959 cat conftest.$ac_ext >&5
17960 rm -rf conftest*
17961 eval "ac_cv_func_$ac_func=no"
17963 rm -f conftest*
17966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17967 echo "$ac_t""yes" 1>&6
17968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17969 cat >> confdefs.h <<EOF
17970 #define $ac_tr_func 1
17973 else
17974 echo "$ac_t""no" 1>&6
17976 done
17978 else
17980 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17981 echo "configure:17982: checking for _frexpl declaration" >&5
17982 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17983 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17984 echo $ac_n "(cached) $ac_c" 1>&6
17985 else
17988 ac_ext=C
17989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17990 ac_cpp='$CXXCPP $CPPFLAGS'
17991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17993 cross_compiling=$ac_cv_prog_cxx_cross
17995 cat > conftest.$ac_ext <<EOF
17996 #line 17997 "configure"
17997 #include "confdefs.h"
17998 #include <math.h>
17999 int main() {
18000 _frexpl(0, 0);
18001 ; return 0; }
18003 if { (eval echo configure:18004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18004 rm -rf conftest*
18005 glibcpp_cv_func__frexpl_use=yes
18006 else
18007 echo "configure: failed program was:" >&5
18008 cat conftest.$ac_ext >&5
18009 rm -rf conftest*
18010 glibcpp_cv_func__frexpl_use=no
18012 rm -f conftest*
18013 ac_ext=c
18014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18015 ac_cpp='$CPP $CPPFLAGS'
18016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18018 cross_compiling=$ac_cv_prog_cc_cross
18024 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18026 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18027 for ac_func in _frexpl
18029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18030 echo "configure:18031: checking for $ac_func" >&5
18031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18032 echo $ac_n "(cached) $ac_c" 1>&6
18033 else
18034 cat > conftest.$ac_ext <<EOF
18035 #line 18036 "configure"
18036 #include "confdefs.h"
18037 /* System header to define __stub macros and hopefully few prototypes,
18038 which can conflict with char $ac_func(); below. */
18039 #include <assert.h>
18040 /* Override any gcc2 internal prototype to avoid an error. */
18041 /* We use char because int might match the return type of a gcc2
18042 builtin and then its argument prototype would still apply. */
18043 char $ac_func();
18045 int main() {
18047 /* The GNU C library defines this for functions which it implements
18048 to always fail with ENOSYS. Some functions are actually named
18049 something starting with __ and the normal name is an alias. */
18050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18051 choke me
18052 #else
18053 $ac_func();
18054 #endif
18056 ; return 0; }
18058 if { (eval echo configure:18059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18059 rm -rf conftest*
18060 eval "ac_cv_func_$ac_func=yes"
18061 else
18062 echo "configure: failed program was:" >&5
18063 cat conftest.$ac_ext >&5
18064 rm -rf conftest*
18065 eval "ac_cv_func_$ac_func=no"
18067 rm -f conftest*
18070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18071 echo "$ac_t""yes" 1>&6
18072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18073 cat >> confdefs.h <<EOF
18074 #define $ac_tr_func 1
18077 else
18078 echo "$ac_t""no" 1>&6
18080 done
18087 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18088 echo "configure:18089: checking for hypotl declaration" >&5
18089 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18090 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18091 echo $ac_n "(cached) $ac_c" 1>&6
18092 else
18095 ac_ext=C
18096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18097 ac_cpp='$CXXCPP $CPPFLAGS'
18098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18100 cross_compiling=$ac_cv_prog_cxx_cross
18102 cat > conftest.$ac_ext <<EOF
18103 #line 18104 "configure"
18104 #include "confdefs.h"
18105 #include <math.h>
18106 int main() {
18107 hypotl(0, 0);
18108 ; return 0; }
18110 if { (eval echo configure:18111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18111 rm -rf conftest*
18112 glibcpp_cv_func_hypotl_use=yes
18113 else
18114 echo "configure: failed program was:" >&5
18115 cat conftest.$ac_ext >&5
18116 rm -rf conftest*
18117 glibcpp_cv_func_hypotl_use=no
18119 rm -f conftest*
18120 ac_ext=c
18121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18122 ac_cpp='$CPP $CPPFLAGS'
18123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18125 cross_compiling=$ac_cv_prog_cc_cross
18131 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18133 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18134 for ac_func in hypotl
18136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18137 echo "configure:18138: checking for $ac_func" >&5
18138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18139 echo $ac_n "(cached) $ac_c" 1>&6
18140 else
18141 cat > conftest.$ac_ext <<EOF
18142 #line 18143 "configure"
18143 #include "confdefs.h"
18144 /* System header to define __stub macros and hopefully few prototypes,
18145 which can conflict with char $ac_func(); below. */
18146 #include <assert.h>
18147 /* Override any gcc2 internal prototype to avoid an error. */
18148 /* We use char because int might match the return type of a gcc2
18149 builtin and then its argument prototype would still apply. */
18150 char $ac_func();
18152 int main() {
18154 /* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18158 choke me
18159 #else
18160 $ac_func();
18161 #endif
18163 ; return 0; }
18165 if { (eval echo configure:18166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18166 rm -rf conftest*
18167 eval "ac_cv_func_$ac_func=yes"
18168 else
18169 echo "configure: failed program was:" >&5
18170 cat conftest.$ac_ext >&5
18171 rm -rf conftest*
18172 eval "ac_cv_func_$ac_func=no"
18174 rm -f conftest*
18177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18178 echo "$ac_t""yes" 1>&6
18179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18180 cat >> confdefs.h <<EOF
18181 #define $ac_tr_func 1
18184 else
18185 echo "$ac_t""no" 1>&6
18187 done
18189 else
18191 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18192 echo "configure:18193: checking for _hypotl declaration" >&5
18193 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18194 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18195 echo $ac_n "(cached) $ac_c" 1>&6
18196 else
18199 ac_ext=C
18200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18201 ac_cpp='$CXXCPP $CPPFLAGS'
18202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18204 cross_compiling=$ac_cv_prog_cxx_cross
18206 cat > conftest.$ac_ext <<EOF
18207 #line 18208 "configure"
18208 #include "confdefs.h"
18209 #include <math.h>
18210 int main() {
18211 _hypotl(0, 0);
18212 ; return 0; }
18214 if { (eval echo configure:18215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18215 rm -rf conftest*
18216 glibcpp_cv_func__hypotl_use=yes
18217 else
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18220 rm -rf conftest*
18221 glibcpp_cv_func__hypotl_use=no
18223 rm -f conftest*
18224 ac_ext=c
18225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18226 ac_cpp='$CPP $CPPFLAGS'
18227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18229 cross_compiling=$ac_cv_prog_cc_cross
18235 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18237 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18238 for ac_func in _hypotl
18240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18241 echo "configure:18242: checking for $ac_func" >&5
18242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18243 echo $ac_n "(cached) $ac_c" 1>&6
18244 else
18245 cat > conftest.$ac_ext <<EOF
18246 #line 18247 "configure"
18247 #include "confdefs.h"
18248 /* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char $ac_func(); below. */
18250 #include <assert.h>
18251 /* Override any gcc2 internal prototype to avoid an error. */
18252 /* We use char because int might match the return type of a gcc2
18253 builtin and then its argument prototype would still apply. */
18254 char $ac_func();
18256 int main() {
18258 /* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18262 choke me
18263 #else
18264 $ac_func();
18265 #endif
18267 ; return 0; }
18269 if { (eval echo configure:18270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=yes"
18272 else
18273 echo "configure: failed program was:" >&5
18274 cat conftest.$ac_ext >&5
18275 rm -rf conftest*
18276 eval "ac_cv_func_$ac_func=no"
18278 rm -f conftest*
18281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18282 echo "$ac_t""yes" 1>&6
18283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18284 cat >> confdefs.h <<EOF
18285 #define $ac_tr_func 1
18288 else
18289 echo "$ac_t""no" 1>&6
18291 done
18298 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18299 echo "configure:18300: checking for ldexpl declaration" >&5
18300 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18301 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18302 echo $ac_n "(cached) $ac_c" 1>&6
18303 else
18306 ac_ext=C
18307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18308 ac_cpp='$CXXCPP $CPPFLAGS'
18309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18311 cross_compiling=$ac_cv_prog_cxx_cross
18313 cat > conftest.$ac_ext <<EOF
18314 #line 18315 "configure"
18315 #include "confdefs.h"
18316 #include <math.h>
18317 int main() {
18318 ldexpl(0, 0);
18319 ; return 0; }
18321 if { (eval echo configure:18322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18322 rm -rf conftest*
18323 glibcpp_cv_func_ldexpl_use=yes
18324 else
18325 echo "configure: failed program was:" >&5
18326 cat conftest.$ac_ext >&5
18327 rm -rf conftest*
18328 glibcpp_cv_func_ldexpl_use=no
18330 rm -f conftest*
18331 ac_ext=c
18332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18336 cross_compiling=$ac_cv_prog_cc_cross
18342 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18344 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18345 for ac_func in ldexpl
18347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18348 echo "configure:18349: checking for $ac_func" >&5
18349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18350 echo $ac_n "(cached) $ac_c" 1>&6
18351 else
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18355 /* System header to define __stub macros and hopefully few prototypes,
18356 which can conflict with char $ac_func(); below. */
18357 #include <assert.h>
18358 /* Override any gcc2 internal prototype to avoid an error. */
18359 /* We use char because int might match the return type of a gcc2
18360 builtin and then its argument prototype would still apply. */
18361 char $ac_func();
18363 int main() {
18365 /* The GNU C library defines this for functions which it implements
18366 to always fail with ENOSYS. Some functions are actually named
18367 something starting with __ and the normal name is an alias. */
18368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18369 choke me
18370 #else
18371 $ac_func();
18372 #endif
18374 ; return 0; }
18376 if { (eval echo configure:18377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18377 rm -rf conftest*
18378 eval "ac_cv_func_$ac_func=yes"
18379 else
18380 echo "configure: failed program was:" >&5
18381 cat conftest.$ac_ext >&5
18382 rm -rf conftest*
18383 eval "ac_cv_func_$ac_func=no"
18385 rm -f conftest*
18388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18389 echo "$ac_t""yes" 1>&6
18390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18391 cat >> confdefs.h <<EOF
18392 #define $ac_tr_func 1
18395 else
18396 echo "$ac_t""no" 1>&6
18398 done
18400 else
18402 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18403 echo "configure:18404: checking for _ldexpl declaration" >&5
18404 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18405 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18406 echo $ac_n "(cached) $ac_c" 1>&6
18407 else
18410 ac_ext=C
18411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18412 ac_cpp='$CXXCPP $CPPFLAGS'
18413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18415 cross_compiling=$ac_cv_prog_cxx_cross
18417 cat > conftest.$ac_ext <<EOF
18418 #line 18419 "configure"
18419 #include "confdefs.h"
18420 #include <math.h>
18421 int main() {
18422 _ldexpl(0, 0);
18423 ; return 0; }
18425 if { (eval echo configure:18426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18426 rm -rf conftest*
18427 glibcpp_cv_func__ldexpl_use=yes
18428 else
18429 echo "configure: failed program was:" >&5
18430 cat conftest.$ac_ext >&5
18431 rm -rf conftest*
18432 glibcpp_cv_func__ldexpl_use=no
18434 rm -f conftest*
18435 ac_ext=c
18436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18437 ac_cpp='$CPP $CPPFLAGS'
18438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18440 cross_compiling=$ac_cv_prog_cc_cross
18446 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18448 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18449 for ac_func in _ldexpl
18451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18452 echo "configure:18453: checking for $ac_func" >&5
18453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18454 echo $ac_n "(cached) $ac_c" 1>&6
18455 else
18456 cat > conftest.$ac_ext <<EOF
18457 #line 18458 "configure"
18458 #include "confdefs.h"
18459 /* System header to define __stub macros and hopefully few prototypes,
18460 which can conflict with char $ac_func(); below. */
18461 #include <assert.h>
18462 /* Override any gcc2 internal prototype to avoid an error. */
18463 /* We use char because int might match the return type of a gcc2
18464 builtin and then its argument prototype would still apply. */
18465 char $ac_func();
18467 int main() {
18469 /* The GNU C library defines this for functions which it implements
18470 to always fail with ENOSYS. Some functions are actually named
18471 something starting with __ and the normal name is an alias. */
18472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18473 choke me
18474 #else
18475 $ac_func();
18476 #endif
18478 ; return 0; }
18480 if { (eval echo configure:18481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18481 rm -rf conftest*
18482 eval "ac_cv_func_$ac_func=yes"
18483 else
18484 echo "configure: failed program was:" >&5
18485 cat conftest.$ac_ext >&5
18486 rm -rf conftest*
18487 eval "ac_cv_func_$ac_func=no"
18489 rm -f conftest*
18492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18493 echo "$ac_t""yes" 1>&6
18494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18495 cat >> confdefs.h <<EOF
18496 #define $ac_tr_func 1
18499 else
18500 echo "$ac_t""no" 1>&6
18502 done
18509 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18510 echo "configure:18511: checking for logl declaration" >&5
18511 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18512 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18513 echo $ac_n "(cached) $ac_c" 1>&6
18514 else
18517 ac_ext=C
18518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18519 ac_cpp='$CXXCPP $CPPFLAGS'
18520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18522 cross_compiling=$ac_cv_prog_cxx_cross
18524 cat > conftest.$ac_ext <<EOF
18525 #line 18526 "configure"
18526 #include "confdefs.h"
18527 #include <math.h>
18528 #ifdef HAVE_IEEEFP_H
18529 #include <ieeefp.h>
18530 #endif
18532 int main() {
18533 logl(0);
18534 ; return 0; }
18536 if { (eval echo configure:18537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18537 rm -rf conftest*
18538 glibcpp_cv_func_logl_use=yes
18539 else
18540 echo "configure: failed program was:" >&5
18541 cat conftest.$ac_ext >&5
18542 rm -rf conftest*
18543 glibcpp_cv_func_logl_use=no
18545 rm -f conftest*
18546 ac_ext=c
18547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18548 ac_cpp='$CPP $CPPFLAGS'
18549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18551 cross_compiling=$ac_cv_prog_cc_cross
18557 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18559 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18560 for ac_func in logl
18562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18563 echo "configure:18564: checking for $ac_func" >&5
18564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18565 echo $ac_n "(cached) $ac_c" 1>&6
18566 else
18567 cat > conftest.$ac_ext <<EOF
18568 #line 18569 "configure"
18569 #include "confdefs.h"
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char $ac_func(); below. */
18572 #include <assert.h>
18573 /* Override any gcc2 internal prototype to avoid an error. */
18574 /* We use char because int might match the return type of a gcc2
18575 builtin and then its argument prototype would still apply. */
18576 char $ac_func();
18578 int main() {
18580 /* The GNU C library defines this for functions which it implements
18581 to always fail with ENOSYS. Some functions are actually named
18582 something starting with __ and the normal name is an alias. */
18583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18584 choke me
18585 #else
18586 $ac_func();
18587 #endif
18589 ; return 0; }
18591 if { (eval echo configure:18592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18592 rm -rf conftest*
18593 eval "ac_cv_func_$ac_func=yes"
18594 else
18595 echo "configure: failed program was:" >&5
18596 cat conftest.$ac_ext >&5
18597 rm -rf conftest*
18598 eval "ac_cv_func_$ac_func=no"
18600 rm -f conftest*
18603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18604 echo "$ac_t""yes" 1>&6
18605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18606 cat >> confdefs.h <<EOF
18607 #define $ac_tr_func 1
18610 else
18611 echo "$ac_t""no" 1>&6
18613 done
18615 else
18617 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18618 echo "configure:18619: checking for _logl declaration" >&5
18619 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18620 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18621 echo $ac_n "(cached) $ac_c" 1>&6
18622 else
18625 ac_ext=C
18626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18627 ac_cpp='$CXXCPP $CPPFLAGS'
18628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18630 cross_compiling=$ac_cv_prog_cxx_cross
18632 cat > conftest.$ac_ext <<EOF
18633 #line 18634 "configure"
18634 #include "confdefs.h"
18635 #include <math.h>
18636 #ifdef HAVE_IEEEFP_H
18637 #include <ieeefp.h>
18638 #endif
18640 int main() {
18641 _logl(0);
18642 ; return 0; }
18644 if { (eval echo configure:18645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18645 rm -rf conftest*
18646 glibcpp_cv_func__logl_use=yes
18647 else
18648 echo "configure: failed program was:" >&5
18649 cat conftest.$ac_ext >&5
18650 rm -rf conftest*
18651 glibcpp_cv_func__logl_use=no
18653 rm -f conftest*
18654 ac_ext=c
18655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18659 cross_compiling=$ac_cv_prog_cc_cross
18665 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18667 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18668 for ac_func in _logl
18670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18671 echo "configure:18672: checking for $ac_func" >&5
18672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18673 echo $ac_n "(cached) $ac_c" 1>&6
18674 else
18675 cat > conftest.$ac_ext <<EOF
18676 #line 18677 "configure"
18677 #include "confdefs.h"
18678 /* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func(); below. */
18680 #include <assert.h>
18681 /* Override any gcc2 internal prototype to avoid an error. */
18682 /* We use char because int might match the return type of a gcc2
18683 builtin and then its argument prototype would still apply. */
18684 char $ac_func();
18686 int main() {
18688 /* The GNU C library defines this for functions which it implements
18689 to always fail with ENOSYS. Some functions are actually named
18690 something starting with __ and the normal name is an alias. */
18691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18692 choke me
18693 #else
18694 $ac_func();
18695 #endif
18697 ; return 0; }
18699 if { (eval echo configure:18700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18700 rm -rf conftest*
18701 eval "ac_cv_func_$ac_func=yes"
18702 else
18703 echo "configure: failed program was:" >&5
18704 cat conftest.$ac_ext >&5
18705 rm -rf conftest*
18706 eval "ac_cv_func_$ac_func=no"
18708 rm -f conftest*
18711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18712 echo "$ac_t""yes" 1>&6
18713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18714 cat >> confdefs.h <<EOF
18715 #define $ac_tr_func 1
18718 else
18719 echo "$ac_t""no" 1>&6
18721 done
18728 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18729 echo "configure:18730: checking for log10l declaration" >&5
18730 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18731 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18732 echo $ac_n "(cached) $ac_c" 1>&6
18733 else
18736 ac_ext=C
18737 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18738 ac_cpp='$CXXCPP $CPPFLAGS'
18739 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18740 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18741 cross_compiling=$ac_cv_prog_cxx_cross
18743 cat > conftest.$ac_ext <<EOF
18744 #line 18745 "configure"
18745 #include "confdefs.h"
18746 #include <math.h>
18747 #ifdef HAVE_IEEEFP_H
18748 #include <ieeefp.h>
18749 #endif
18751 int main() {
18752 log10l(0);
18753 ; return 0; }
18755 if { (eval echo configure:18756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18756 rm -rf conftest*
18757 glibcpp_cv_func_log10l_use=yes
18758 else
18759 echo "configure: failed program was:" >&5
18760 cat conftest.$ac_ext >&5
18761 rm -rf conftest*
18762 glibcpp_cv_func_log10l_use=no
18764 rm -f conftest*
18765 ac_ext=c
18766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18767 ac_cpp='$CPP $CPPFLAGS'
18768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18770 cross_compiling=$ac_cv_prog_cc_cross
18776 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18778 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18779 for ac_func in log10l
18781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18782 echo "configure:18783: checking for $ac_func" >&5
18783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18784 echo $ac_n "(cached) $ac_c" 1>&6
18785 else
18786 cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 /* System header to define __stub macros and hopefully few prototypes,
18790 which can conflict with char $ac_func(); below. */
18791 #include <assert.h>
18792 /* Override any gcc2 internal prototype to avoid an error. */
18793 /* We use char because int might match the return type of a gcc2
18794 builtin and then its argument prototype would still apply. */
18795 char $ac_func();
18797 int main() {
18799 /* The GNU C library defines this for functions which it implements
18800 to always fail with ENOSYS. Some functions are actually named
18801 something starting with __ and the normal name is an alias. */
18802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18803 choke me
18804 #else
18805 $ac_func();
18806 #endif
18808 ; return 0; }
18810 if { (eval echo configure:18811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18811 rm -rf conftest*
18812 eval "ac_cv_func_$ac_func=yes"
18813 else
18814 echo "configure: failed program was:" >&5
18815 cat conftest.$ac_ext >&5
18816 rm -rf conftest*
18817 eval "ac_cv_func_$ac_func=no"
18819 rm -f conftest*
18822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18823 echo "$ac_t""yes" 1>&6
18824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18825 cat >> confdefs.h <<EOF
18826 #define $ac_tr_func 1
18829 else
18830 echo "$ac_t""no" 1>&6
18832 done
18834 else
18836 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18837 echo "configure:18838: checking for _log10l declaration" >&5
18838 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18839 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18840 echo $ac_n "(cached) $ac_c" 1>&6
18841 else
18844 ac_ext=C
18845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18846 ac_cpp='$CXXCPP $CPPFLAGS'
18847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18849 cross_compiling=$ac_cv_prog_cxx_cross
18851 cat > conftest.$ac_ext <<EOF
18852 #line 18853 "configure"
18853 #include "confdefs.h"
18854 #include <math.h>
18855 #ifdef HAVE_IEEEFP_H
18856 #include <ieeefp.h>
18857 #endif
18859 int main() {
18860 _log10l(0);
18861 ; return 0; }
18863 if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18864 rm -rf conftest*
18865 glibcpp_cv_func__log10l_use=yes
18866 else
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
18870 glibcpp_cv_func__log10l_use=no
18872 rm -f conftest*
18873 ac_ext=c
18874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18875 ac_cpp='$CPP $CPPFLAGS'
18876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18878 cross_compiling=$ac_cv_prog_cc_cross
18884 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18886 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18887 for ac_func in _log10l
18889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18890 echo "configure:18891: checking for $ac_func" >&5
18891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18892 echo $ac_n "(cached) $ac_c" 1>&6
18893 else
18894 cat > conftest.$ac_ext <<EOF
18895 #line 18896 "configure"
18896 #include "confdefs.h"
18897 /* System header to define __stub macros and hopefully few prototypes,
18898 which can conflict with char $ac_func(); below. */
18899 #include <assert.h>
18900 /* Override any gcc2 internal prototype to avoid an error. */
18901 /* We use char because int might match the return type of a gcc2
18902 builtin and then its argument prototype would still apply. */
18903 char $ac_func();
18905 int main() {
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18911 choke me
18912 #else
18913 $ac_func();
18914 #endif
18916 ; return 0; }
18918 if { (eval echo configure:18919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18919 rm -rf conftest*
18920 eval "ac_cv_func_$ac_func=yes"
18921 else
18922 echo "configure: failed program was:" >&5
18923 cat conftest.$ac_ext >&5
18924 rm -rf conftest*
18925 eval "ac_cv_func_$ac_func=no"
18927 rm -f conftest*
18930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18931 echo "$ac_t""yes" 1>&6
18932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18933 cat >> confdefs.h <<EOF
18934 #define $ac_tr_func 1
18937 else
18938 echo "$ac_t""no" 1>&6
18940 done
18947 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18948 echo "configure:18949: checking for modfl declaration" >&5
18949 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18950 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18951 echo $ac_n "(cached) $ac_c" 1>&6
18952 else
18955 ac_ext=C
18956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18957 ac_cpp='$CXXCPP $CPPFLAGS'
18958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18960 cross_compiling=$ac_cv_prog_cxx_cross
18962 cat > conftest.$ac_ext <<EOF
18963 #line 18964 "configure"
18964 #include "confdefs.h"
18965 #include <math.h>
18966 int main() {
18967 modfl(0, 0);
18968 ; return 0; }
18970 if { (eval echo configure:18971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18971 rm -rf conftest*
18972 glibcpp_cv_func_modfl_use=yes
18973 else
18974 echo "configure: failed program was:" >&5
18975 cat conftest.$ac_ext >&5
18976 rm -rf conftest*
18977 glibcpp_cv_func_modfl_use=no
18979 rm -f conftest*
18980 ac_ext=c
18981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18982 ac_cpp='$CPP $CPPFLAGS'
18983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18985 cross_compiling=$ac_cv_prog_cc_cross
18991 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18993 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18994 for ac_func in modfl
18996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18997 echo "configure:18998: checking for $ac_func" >&5
18998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18999 echo $ac_n "(cached) $ac_c" 1>&6
19000 else
19001 cat > conftest.$ac_ext <<EOF
19002 #line 19003 "configure"
19003 #include "confdefs.h"
19004 /* System header to define __stub macros and hopefully few prototypes,
19005 which can conflict with char $ac_func(); below. */
19006 #include <assert.h>
19007 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19010 char $ac_func();
19012 int main() {
19014 /* The GNU C library defines this for functions which it implements
19015 to always fail with ENOSYS. Some functions are actually named
19016 something starting with __ and the normal name is an alias. */
19017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19018 choke me
19019 #else
19020 $ac_func();
19021 #endif
19023 ; return 0; }
19025 if { (eval echo configure:19026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19026 rm -rf conftest*
19027 eval "ac_cv_func_$ac_func=yes"
19028 else
19029 echo "configure: failed program was:" >&5
19030 cat conftest.$ac_ext >&5
19031 rm -rf conftest*
19032 eval "ac_cv_func_$ac_func=no"
19034 rm -f conftest*
19037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19038 echo "$ac_t""yes" 1>&6
19039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19040 cat >> confdefs.h <<EOF
19041 #define $ac_tr_func 1
19044 else
19045 echo "$ac_t""no" 1>&6
19047 done
19049 else
19051 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19052 echo "configure:19053: checking for _modfl declaration" >&5
19053 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19054 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19055 echo $ac_n "(cached) $ac_c" 1>&6
19056 else
19059 ac_ext=C
19060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19061 ac_cpp='$CXXCPP $CPPFLAGS'
19062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19064 cross_compiling=$ac_cv_prog_cxx_cross
19066 cat > conftest.$ac_ext <<EOF
19067 #line 19068 "configure"
19068 #include "confdefs.h"
19069 #include <math.h>
19070 int main() {
19071 _modfl(0, 0);
19072 ; return 0; }
19074 if { (eval echo configure:19075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19075 rm -rf conftest*
19076 glibcpp_cv_func__modfl_use=yes
19077 else
19078 echo "configure: failed program was:" >&5
19079 cat conftest.$ac_ext >&5
19080 rm -rf conftest*
19081 glibcpp_cv_func__modfl_use=no
19083 rm -f conftest*
19084 ac_ext=c
19085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19089 cross_compiling=$ac_cv_prog_cc_cross
19095 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19097 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19098 for ac_func in _modfl
19100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19101 echo "configure:19102: checking for $ac_func" >&5
19102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19103 echo $ac_n "(cached) $ac_c" 1>&6
19104 else
19105 cat > conftest.$ac_ext <<EOF
19106 #line 19107 "configure"
19107 #include "confdefs.h"
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func(); below. */
19110 #include <assert.h>
19111 /* Override any gcc2 internal prototype to avoid an error. */
19112 /* We use char because int might match the return type of a gcc2
19113 builtin and then its argument prototype would still apply. */
19114 char $ac_func();
19116 int main() {
19118 /* The GNU C library defines this for functions which it implements
19119 to always fail with ENOSYS. Some functions are actually named
19120 something starting with __ and the normal name is an alias. */
19121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19122 choke me
19123 #else
19124 $ac_func();
19125 #endif
19127 ; return 0; }
19129 if { (eval echo configure:19130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19130 rm -rf conftest*
19131 eval "ac_cv_func_$ac_func=yes"
19132 else
19133 echo "configure: failed program was:" >&5
19134 cat conftest.$ac_ext >&5
19135 rm -rf conftest*
19136 eval "ac_cv_func_$ac_func=no"
19138 rm -f conftest*
19141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19142 echo "$ac_t""yes" 1>&6
19143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19144 cat >> confdefs.h <<EOF
19145 #define $ac_tr_func 1
19148 else
19149 echo "$ac_t""no" 1>&6
19151 done
19158 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19159 echo "configure:19160: checking for powl declaration" >&5
19160 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19161 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19162 echo $ac_n "(cached) $ac_c" 1>&6
19163 else
19166 ac_ext=C
19167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19168 ac_cpp='$CXXCPP $CPPFLAGS'
19169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19171 cross_compiling=$ac_cv_prog_cxx_cross
19173 cat > conftest.$ac_ext <<EOF
19174 #line 19175 "configure"
19175 #include "confdefs.h"
19176 #include <math.h>
19177 int main() {
19178 powl(0, 0);
19179 ; return 0; }
19181 if { (eval echo configure:19182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19182 rm -rf conftest*
19183 glibcpp_cv_func_powl_use=yes
19184 else
19185 echo "configure: failed program was:" >&5
19186 cat conftest.$ac_ext >&5
19187 rm -rf conftest*
19188 glibcpp_cv_func_powl_use=no
19190 rm -f conftest*
19191 ac_ext=c
19192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19193 ac_cpp='$CPP $CPPFLAGS'
19194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19196 cross_compiling=$ac_cv_prog_cc_cross
19202 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19204 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19205 for ac_func in powl
19207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19208 echo "configure:19209: checking for $ac_func" >&5
19209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19210 echo $ac_n "(cached) $ac_c" 1>&6
19211 else
19212 cat > conftest.$ac_ext <<EOF
19213 #line 19214 "configure"
19214 #include "confdefs.h"
19215 /* System header to define __stub macros and hopefully few prototypes,
19216 which can conflict with char $ac_func(); below. */
19217 #include <assert.h>
19218 /* Override any gcc2 internal prototype to avoid an error. */
19219 /* We use char because int might match the return type of a gcc2
19220 builtin and then its argument prototype would still apply. */
19221 char $ac_func();
19223 int main() {
19225 /* The GNU C library defines this for functions which it implements
19226 to always fail with ENOSYS. Some functions are actually named
19227 something starting with __ and the normal name is an alias. */
19228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19229 choke me
19230 #else
19231 $ac_func();
19232 #endif
19234 ; return 0; }
19236 if { (eval echo configure:19237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19237 rm -rf conftest*
19238 eval "ac_cv_func_$ac_func=yes"
19239 else
19240 echo "configure: failed program was:" >&5
19241 cat conftest.$ac_ext >&5
19242 rm -rf conftest*
19243 eval "ac_cv_func_$ac_func=no"
19245 rm -f conftest*
19248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19249 echo "$ac_t""yes" 1>&6
19250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19251 cat >> confdefs.h <<EOF
19252 #define $ac_tr_func 1
19255 else
19256 echo "$ac_t""no" 1>&6
19258 done
19260 else
19262 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19263 echo "configure:19264: checking for _powl declaration" >&5
19264 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19265 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19266 echo $ac_n "(cached) $ac_c" 1>&6
19267 else
19270 ac_ext=C
19271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19272 ac_cpp='$CXXCPP $CPPFLAGS'
19273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19275 cross_compiling=$ac_cv_prog_cxx_cross
19277 cat > conftest.$ac_ext <<EOF
19278 #line 19279 "configure"
19279 #include "confdefs.h"
19280 #include <math.h>
19281 int main() {
19282 _powl(0, 0);
19283 ; return 0; }
19285 if { (eval echo configure:19286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19286 rm -rf conftest*
19287 glibcpp_cv_func__powl_use=yes
19288 else
19289 echo "configure: failed program was:" >&5
19290 cat conftest.$ac_ext >&5
19291 rm -rf conftest*
19292 glibcpp_cv_func__powl_use=no
19294 rm -f conftest*
19295 ac_ext=c
19296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19297 ac_cpp='$CPP $CPPFLAGS'
19298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19300 cross_compiling=$ac_cv_prog_cc_cross
19306 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19308 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19309 for ac_func in _powl
19311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19312 echo "configure:19313: checking for $ac_func" >&5
19313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19314 echo $ac_n "(cached) $ac_c" 1>&6
19315 else
19316 cat > conftest.$ac_ext <<EOF
19317 #line 19318 "configure"
19318 #include "confdefs.h"
19319 /* System header to define __stub macros and hopefully few prototypes,
19320 which can conflict with char $ac_func(); below. */
19321 #include <assert.h>
19322 /* Override any gcc2 internal prototype to avoid an error. */
19323 /* We use char because int might match the return type of a gcc2
19324 builtin and then its argument prototype would still apply. */
19325 char $ac_func();
19327 int main() {
19329 /* The GNU C library defines this for functions which it implements
19330 to always fail with ENOSYS. Some functions are actually named
19331 something starting with __ and the normal name is an alias. */
19332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19333 choke me
19334 #else
19335 $ac_func();
19336 #endif
19338 ; return 0; }
19340 if { (eval echo configure:19341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19341 rm -rf conftest*
19342 eval "ac_cv_func_$ac_func=yes"
19343 else
19344 echo "configure: failed program was:" >&5
19345 cat conftest.$ac_ext >&5
19346 rm -rf conftest*
19347 eval "ac_cv_func_$ac_func=no"
19349 rm -f conftest*
19352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19353 echo "$ac_t""yes" 1>&6
19354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19355 cat >> confdefs.h <<EOF
19356 #define $ac_tr_func 1
19359 else
19360 echo "$ac_t""no" 1>&6
19362 done
19369 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19370 echo "configure:19371: checking for sqrtl declaration" >&5
19371 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19372 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19373 echo $ac_n "(cached) $ac_c" 1>&6
19374 else
19377 ac_ext=C
19378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19379 ac_cpp='$CXXCPP $CPPFLAGS'
19380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19382 cross_compiling=$ac_cv_prog_cxx_cross
19384 cat > conftest.$ac_ext <<EOF
19385 #line 19386 "configure"
19386 #include "confdefs.h"
19387 #include <math.h>
19388 #ifdef HAVE_IEEEFP_H
19389 #include <ieeefp.h>
19390 #endif
19392 int main() {
19393 sqrtl(0);
19394 ; return 0; }
19396 if { (eval echo configure:19397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19397 rm -rf conftest*
19398 glibcpp_cv_func_sqrtl_use=yes
19399 else
19400 echo "configure: failed program was:" >&5
19401 cat conftest.$ac_ext >&5
19402 rm -rf conftest*
19403 glibcpp_cv_func_sqrtl_use=no
19405 rm -f conftest*
19406 ac_ext=c
19407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19408 ac_cpp='$CPP $CPPFLAGS'
19409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19411 cross_compiling=$ac_cv_prog_cc_cross
19417 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19419 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19420 for ac_func in sqrtl
19422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19423 echo "configure:19424: checking for $ac_func" >&5
19424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19425 echo $ac_n "(cached) $ac_c" 1>&6
19426 else
19427 cat > conftest.$ac_ext <<EOF
19428 #line 19429 "configure"
19429 #include "confdefs.h"
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func(); below. */
19432 #include <assert.h>
19433 /* Override any gcc2 internal prototype to avoid an error. */
19434 /* We use char because int might match the return type of a gcc2
19435 builtin and then its argument prototype would still apply. */
19436 char $ac_func();
19438 int main() {
19440 /* The GNU C library defines this for functions which it implements
19441 to always fail with ENOSYS. Some functions are actually named
19442 something starting with __ and the normal name is an alias. */
19443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19444 choke me
19445 #else
19446 $ac_func();
19447 #endif
19449 ; return 0; }
19451 if { (eval echo configure:19452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19452 rm -rf conftest*
19453 eval "ac_cv_func_$ac_func=yes"
19454 else
19455 echo "configure: failed program was:" >&5
19456 cat conftest.$ac_ext >&5
19457 rm -rf conftest*
19458 eval "ac_cv_func_$ac_func=no"
19460 rm -f conftest*
19463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19464 echo "$ac_t""yes" 1>&6
19465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19466 cat >> confdefs.h <<EOF
19467 #define $ac_tr_func 1
19470 else
19471 echo "$ac_t""no" 1>&6
19473 done
19475 else
19477 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19478 echo "configure:19479: checking for _sqrtl declaration" >&5
19479 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19480 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19481 echo $ac_n "(cached) $ac_c" 1>&6
19482 else
19485 ac_ext=C
19486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19487 ac_cpp='$CXXCPP $CPPFLAGS'
19488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19490 cross_compiling=$ac_cv_prog_cxx_cross
19492 cat > conftest.$ac_ext <<EOF
19493 #line 19494 "configure"
19494 #include "confdefs.h"
19495 #include <math.h>
19496 #ifdef HAVE_IEEEFP_H
19497 #include <ieeefp.h>
19498 #endif
19500 int main() {
19501 _sqrtl(0);
19502 ; return 0; }
19504 if { (eval echo configure:19505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19505 rm -rf conftest*
19506 glibcpp_cv_func__sqrtl_use=yes
19507 else
19508 echo "configure: failed program was:" >&5
19509 cat conftest.$ac_ext >&5
19510 rm -rf conftest*
19511 glibcpp_cv_func__sqrtl_use=no
19513 rm -f conftest*
19514 ac_ext=c
19515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19516 ac_cpp='$CPP $CPPFLAGS'
19517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19519 cross_compiling=$ac_cv_prog_cc_cross
19525 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19527 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19528 for ac_func in _sqrtl
19530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19531 echo "configure:19532: checking for $ac_func" >&5
19532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19533 echo $ac_n "(cached) $ac_c" 1>&6
19534 else
19535 cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19538 /* System header to define __stub macros and hopefully few prototypes,
19539 which can conflict with char $ac_func(); below. */
19540 #include <assert.h>
19541 /* Override any gcc2 internal prototype to avoid an error. */
19542 /* We use char because int might match the return type of a gcc2
19543 builtin and then its argument prototype would still apply. */
19544 char $ac_func();
19546 int main() {
19548 /* The GNU C library defines this for functions which it implements
19549 to always fail with ENOSYS. Some functions are actually named
19550 something starting with __ and the normal name is an alias. */
19551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19552 choke me
19553 #else
19554 $ac_func();
19555 #endif
19557 ; return 0; }
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560 rm -rf conftest*
19561 eval "ac_cv_func_$ac_func=yes"
19562 else
19563 echo "configure: failed program was:" >&5
19564 cat conftest.$ac_ext >&5
19565 rm -rf conftest*
19566 eval "ac_cv_func_$ac_func=no"
19568 rm -f conftest*
19571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19572 echo "$ac_t""yes" 1>&6
19573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19574 cat >> confdefs.h <<EOF
19575 #define $ac_tr_func 1
19578 else
19579 echo "$ac_t""no" 1>&6
19581 done
19588 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19589 echo "configure:19590: checking for sincosl declaration" >&5
19590 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19591 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19592 echo $ac_n "(cached) $ac_c" 1>&6
19593 else
19596 ac_ext=C
19597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19598 ac_cpp='$CXXCPP $CPPFLAGS'
19599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19601 cross_compiling=$ac_cv_prog_cxx_cross
19603 cat > conftest.$ac_ext <<EOF
19604 #line 19605 "configure"
19605 #include "confdefs.h"
19606 #include <math.h>
19607 int main() {
19608 sincosl(0, 0, 0);
19609 ; return 0; }
19611 if { (eval echo configure:19612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19612 rm -rf conftest*
19613 glibcpp_cv_func_sincosl_use=yes
19614 else
19615 echo "configure: failed program was:" >&5
19616 cat conftest.$ac_ext >&5
19617 rm -rf conftest*
19618 glibcpp_cv_func_sincosl_use=no
19620 rm -f conftest*
19621 ac_ext=c
19622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19623 ac_cpp='$CPP $CPPFLAGS'
19624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19626 cross_compiling=$ac_cv_prog_cc_cross
19632 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19634 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19635 for ac_func in sincosl
19637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19638 echo "configure:19639: checking for $ac_func" >&5
19639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19640 echo $ac_n "(cached) $ac_c" 1>&6
19641 else
19642 cat > conftest.$ac_ext <<EOF
19643 #line 19644 "configure"
19644 #include "confdefs.h"
19645 /* System header to define __stub macros and hopefully few prototypes,
19646 which can conflict with char $ac_func(); below. */
19647 #include <assert.h>
19648 /* Override any gcc2 internal prototype to avoid an error. */
19649 /* We use char because int might match the return type of a gcc2
19650 builtin and then its argument prototype would still apply. */
19651 char $ac_func();
19653 int main() {
19655 /* The GNU C library defines this for functions which it implements
19656 to always fail with ENOSYS. Some functions are actually named
19657 something starting with __ and the normal name is an alias. */
19658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19659 choke me
19660 #else
19661 $ac_func();
19662 #endif
19664 ; return 0; }
19666 if { (eval echo configure:19667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19667 rm -rf conftest*
19668 eval "ac_cv_func_$ac_func=yes"
19669 else
19670 echo "configure: failed program was:" >&5
19671 cat conftest.$ac_ext >&5
19672 rm -rf conftest*
19673 eval "ac_cv_func_$ac_func=no"
19675 rm -f conftest*
19678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19679 echo "$ac_t""yes" 1>&6
19680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19681 cat >> confdefs.h <<EOF
19682 #define $ac_tr_func 1
19685 else
19686 echo "$ac_t""no" 1>&6
19688 done
19690 else
19692 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19693 echo "configure:19694: checking for _sincosl declaration" >&5
19694 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19695 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19696 echo $ac_n "(cached) $ac_c" 1>&6
19697 else
19700 ac_ext=C
19701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19702 ac_cpp='$CXXCPP $CPPFLAGS'
19703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19705 cross_compiling=$ac_cv_prog_cxx_cross
19707 cat > conftest.$ac_ext <<EOF
19708 #line 19709 "configure"
19709 #include "confdefs.h"
19710 #include <math.h>
19711 int main() {
19712 _sincosl(0, 0, 0);
19713 ; return 0; }
19715 if { (eval echo configure:19716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19716 rm -rf conftest*
19717 glibcpp_cv_func__sincosl_use=yes
19718 else
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19721 rm -rf conftest*
19722 glibcpp_cv_func__sincosl_use=no
19724 rm -f conftest*
19725 ac_ext=c
19726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19727 ac_cpp='$CPP $CPPFLAGS'
19728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19730 cross_compiling=$ac_cv_prog_cc_cross
19736 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19738 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19739 for ac_func in _sincosl
19741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19742 echo "configure:19743: checking for $ac_func" >&5
19743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19744 echo $ac_n "(cached) $ac_c" 1>&6
19745 else
19746 cat > conftest.$ac_ext <<EOF
19747 #line 19748 "configure"
19748 #include "confdefs.h"
19749 /* System header to define __stub macros and hopefully few prototypes,
19750 which can conflict with char $ac_func(); below. */
19751 #include <assert.h>
19752 /* Override any gcc2 internal prototype to avoid an error. */
19753 /* We use char because int might match the return type of a gcc2
19754 builtin and then its argument prototype would still apply. */
19755 char $ac_func();
19757 int main() {
19759 /* The GNU C library defines this for functions which it implements
19760 to always fail with ENOSYS. Some functions are actually named
19761 something starting with __ and the normal name is an alias. */
19762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19763 choke me
19764 #else
19765 $ac_func();
19766 #endif
19768 ; return 0; }
19770 if { (eval echo configure:19771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19771 rm -rf conftest*
19772 eval "ac_cv_func_$ac_func=yes"
19773 else
19774 echo "configure: failed program was:" >&5
19775 cat conftest.$ac_ext >&5
19776 rm -rf conftest*
19777 eval "ac_cv_func_$ac_func=no"
19779 rm -f conftest*
19782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19783 echo "$ac_t""yes" 1>&6
19784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19785 cat >> confdefs.h <<EOF
19786 #define $ac_tr_func 1
19789 else
19790 echo "$ac_t""no" 1>&6
19792 done
19799 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19800 echo "configure:19801: checking for finitel declaration" >&5
19801 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19802 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19803 echo $ac_n "(cached) $ac_c" 1>&6
19804 else
19807 ac_ext=C
19808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19809 ac_cpp='$CXXCPP $CPPFLAGS'
19810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19812 cross_compiling=$ac_cv_prog_cxx_cross
19814 cat > conftest.$ac_ext <<EOF
19815 #line 19816 "configure"
19816 #include "confdefs.h"
19817 #include <math.h>
19818 #ifdef HAVE_IEEEFP_H
19819 #include <ieeefp.h>
19820 #endif
19822 int main() {
19823 finitel(0);
19824 ; return 0; }
19826 if { (eval echo configure:19827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19827 rm -rf conftest*
19828 glibcpp_cv_func_finitel_use=yes
19829 else
19830 echo "configure: failed program was:" >&5
19831 cat conftest.$ac_ext >&5
19832 rm -rf conftest*
19833 glibcpp_cv_func_finitel_use=no
19835 rm -f conftest*
19836 ac_ext=c
19837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19838 ac_cpp='$CPP $CPPFLAGS'
19839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19841 cross_compiling=$ac_cv_prog_cc_cross
19847 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19849 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19850 for ac_func in finitel
19852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19853 echo "configure:19854: checking for $ac_func" >&5
19854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19855 echo $ac_n "(cached) $ac_c" 1>&6
19856 else
19857 cat > conftest.$ac_ext <<EOF
19858 #line 19859 "configure"
19859 #include "confdefs.h"
19860 /* System header to define __stub macros and hopefully few prototypes,
19861 which can conflict with char $ac_func(); below. */
19862 #include <assert.h>
19863 /* Override any gcc2 internal prototype to avoid an error. */
19864 /* We use char because int might match the return type of a gcc2
19865 builtin and then its argument prototype would still apply. */
19866 char $ac_func();
19868 int main() {
19870 /* The GNU C library defines this for functions which it implements
19871 to always fail with ENOSYS. Some functions are actually named
19872 something starting with __ and the normal name is an alias. */
19873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19874 choke me
19875 #else
19876 $ac_func();
19877 #endif
19879 ; return 0; }
19881 if { (eval echo configure:19882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19882 rm -rf conftest*
19883 eval "ac_cv_func_$ac_func=yes"
19884 else
19885 echo "configure: failed program was:" >&5
19886 cat conftest.$ac_ext >&5
19887 rm -rf conftest*
19888 eval "ac_cv_func_$ac_func=no"
19890 rm -f conftest*
19893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19894 echo "$ac_t""yes" 1>&6
19895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19896 cat >> confdefs.h <<EOF
19897 #define $ac_tr_func 1
19900 else
19901 echo "$ac_t""no" 1>&6
19903 done
19905 else
19907 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19908 echo "configure:19909: checking for _finitel declaration" >&5
19909 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19910 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19911 echo $ac_n "(cached) $ac_c" 1>&6
19912 else
19915 ac_ext=C
19916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19917 ac_cpp='$CXXCPP $CPPFLAGS'
19918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19920 cross_compiling=$ac_cv_prog_cxx_cross
19922 cat > conftest.$ac_ext <<EOF
19923 #line 19924 "configure"
19924 #include "confdefs.h"
19925 #include <math.h>
19926 #ifdef HAVE_IEEEFP_H
19927 #include <ieeefp.h>
19928 #endif
19930 int main() {
19931 _finitel(0);
19932 ; return 0; }
19934 if { (eval echo configure:19935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19935 rm -rf conftest*
19936 glibcpp_cv_func__finitel_use=yes
19937 else
19938 echo "configure: failed program was:" >&5
19939 cat conftest.$ac_ext >&5
19940 rm -rf conftest*
19941 glibcpp_cv_func__finitel_use=no
19943 rm -f conftest*
19944 ac_ext=c
19945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19949 cross_compiling=$ac_cv_prog_cc_cross
19955 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19957 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19958 for ac_func in _finitel
19960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19961 echo "configure:19962: checking for $ac_func" >&5
19962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19963 echo $ac_n "(cached) $ac_c" 1>&6
19964 else
19965 cat > conftest.$ac_ext <<EOF
19966 #line 19967 "configure"
19967 #include "confdefs.h"
19968 /* System header to define __stub macros and hopefully few prototypes,
19969 which can conflict with char $ac_func(); below. */
19970 #include <assert.h>
19971 /* Override any gcc2 internal prototype to avoid an error. */
19972 /* We use char because int might match the return type of a gcc2
19973 builtin and then its argument prototype would still apply. */
19974 char $ac_func();
19976 int main() {
19978 /* The GNU C library defines this for functions which it implements
19979 to always fail with ENOSYS. Some functions are actually named
19980 something starting with __ and the normal name is an alias. */
19981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19982 choke me
19983 #else
19984 $ac_func();
19985 #endif
19987 ; return 0; }
19989 if { (eval echo configure:19990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19990 rm -rf conftest*
19991 eval "ac_cv_func_$ac_func=yes"
19992 else
19993 echo "configure: failed program was:" >&5
19994 cat conftest.$ac_ext >&5
19995 rm -rf conftest*
19996 eval "ac_cv_func_$ac_func=no"
19998 rm -f conftest*
20001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20002 echo "$ac_t""yes" 1>&6
20003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20004 cat >> confdefs.h <<EOF
20005 #define $ac_tr_func 1
20008 else
20009 echo "$ac_t""no" 1>&6
20011 done
20019 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20020 echo "configure:20021: checking for _float trig functions" >&5
20021 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20022 echo $ac_n "(cached) $ac_c" 1>&6
20023 else
20026 ac_ext=C
20027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20028 ac_cpp='$CXXCPP $CPPFLAGS'
20029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20031 cross_compiling=$ac_cv_prog_cxx_cross
20033 cat > conftest.$ac_ext <<EOF
20034 #line 20035 "configure"
20035 #include "confdefs.h"
20036 #include <math.h>
20037 int main() {
20038 `for x in _acosf _asinf _atanf \
20039 _cosf _sinf _tanf \
20040 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20041 ; return 0; }
20043 if { (eval echo configure:20044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20044 rm -rf conftest*
20045 glibcpp_cv_func__float_trig_use=yes
20046 else
20047 echo "configure: failed program was:" >&5
20048 cat conftest.$ac_ext >&5
20049 rm -rf conftest*
20050 glibcpp_cv_func__float_trig_use=no
20052 rm -f conftest*
20053 ac_ext=c
20054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20055 ac_cpp='$CPP $CPPFLAGS'
20056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20058 cross_compiling=$ac_cv_prog_cc_cross
20062 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20063 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20064 for ac_func in _acosf _asinf _atanf \
20065 _cosf _sinf _tanf \
20066 _coshf _sinhf _tanhf
20068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20069 echo "configure:20070: checking for $ac_func" >&5
20070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20071 echo $ac_n "(cached) $ac_c" 1>&6
20072 else
20073 cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20076 /* System header to define __stub macros and hopefully few prototypes,
20077 which can conflict with char $ac_func(); below. */
20078 #include <assert.h>
20079 /* Override any gcc2 internal prototype to avoid an error. */
20080 /* We use char because int might match the return type of a gcc2
20081 builtin and then its argument prototype would still apply. */
20082 char $ac_func();
20084 int main() {
20086 /* The GNU C library defines this for functions which it implements
20087 to always fail with ENOSYS. Some functions are actually named
20088 something starting with __ and the normal name is an alias. */
20089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20090 choke me
20091 #else
20092 $ac_func();
20093 #endif
20095 ; return 0; }
20097 if { (eval echo configure:20098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20098 rm -rf conftest*
20099 eval "ac_cv_func_$ac_func=yes"
20100 else
20101 echo "configure: failed program was:" >&5
20102 cat conftest.$ac_ext >&5
20103 rm -rf conftest*
20104 eval "ac_cv_func_$ac_func=no"
20106 rm -f conftest*
20109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20110 echo "$ac_t""yes" 1>&6
20111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20112 cat >> confdefs.h <<EOF
20113 #define $ac_tr_func 1
20116 else
20117 echo "$ac_t""no" 1>&6
20119 done
20124 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20125 echo "configure:20126: checking for _float round functions" >&5
20126 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20127 echo $ac_n "(cached) $ac_c" 1>&6
20128 else
20131 ac_ext=C
20132 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20133 ac_cpp='$CXXCPP $CPPFLAGS'
20134 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20135 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20136 cross_compiling=$ac_cv_prog_cxx_cross
20138 cat > conftest.$ac_ext <<EOF
20139 #line 20140 "configure"
20140 #include "confdefs.h"
20141 #include <math.h>
20142 int main() {
20143 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20144 ; return 0; }
20146 if { (eval echo configure:20147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20147 rm -rf conftest*
20148 glibcpp_cv_func__float_round_use=yes
20149 else
20150 echo "configure: failed program was:" >&5
20151 cat conftest.$ac_ext >&5
20152 rm -rf conftest*
20153 glibcpp_cv_func__float_round_use=no
20155 rm -f conftest*
20156 ac_ext=c
20157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20158 ac_cpp='$CPP $CPPFLAGS'
20159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20161 cross_compiling=$ac_cv_prog_cc_cross
20165 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20166 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20167 for ac_func in _ceilf _floorf
20169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20170 echo "configure:20171: checking for $ac_func" >&5
20171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20172 echo $ac_n "(cached) $ac_c" 1>&6
20173 else
20174 cat > conftest.$ac_ext <<EOF
20175 #line 20176 "configure"
20176 #include "confdefs.h"
20177 /* System header to define __stub macros and hopefully few prototypes,
20178 which can conflict with char $ac_func(); below. */
20179 #include <assert.h>
20180 /* Override any gcc2 internal prototype to avoid an error. */
20181 /* We use char because int might match the return type of a gcc2
20182 builtin and then its argument prototype would still apply. */
20183 char $ac_func();
20185 int main() {
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20191 choke me
20192 #else
20193 $ac_func();
20194 #endif
20196 ; return 0; }
20198 if { (eval echo configure:20199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20199 rm -rf conftest*
20200 eval "ac_cv_func_$ac_func=yes"
20201 else
20202 echo "configure: failed program was:" >&5
20203 cat conftest.$ac_ext >&5
20204 rm -rf conftest*
20205 eval "ac_cv_func_$ac_func=no"
20207 rm -f conftest*
20210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20211 echo "$ac_t""yes" 1>&6
20212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20213 cat >> confdefs.h <<EOF
20214 #define $ac_tr_func 1
20217 else
20218 echo "$ac_t""no" 1>&6
20220 done
20226 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20227 echo "configure:20228: checking for _long double trig functions" >&5
20228 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20229 echo $ac_n "(cached) $ac_c" 1>&6
20230 else
20233 ac_ext=C
20234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20235 ac_cpp='$CXXCPP $CPPFLAGS'
20236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20238 cross_compiling=$ac_cv_prog_cxx_cross
20240 cat > conftest.$ac_ext <<EOF
20241 #line 20242 "configure"
20242 #include "confdefs.h"
20243 #include <math.h>
20244 int main() {
20245 `for x in _acosl _asinl _atanl \
20246 _cosl _sinl _tanl \
20247 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20248 ; return 0; }
20250 if { (eval echo configure:20251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20251 rm -rf conftest*
20252 glibcpp_cv_func__long_double_trig_use=yes
20253 else
20254 echo "configure: failed program was:" >&5
20255 cat conftest.$ac_ext >&5
20256 rm -rf conftest*
20257 glibcpp_cv_func__long_double_trig_use=no
20259 rm -f conftest*
20260 ac_ext=c
20261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20262 ac_cpp='$CPP $CPPFLAGS'
20263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20265 cross_compiling=$ac_cv_prog_cc_cross
20269 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20270 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20271 for ac_func in _acosl _asinl _atanl \
20272 _cosl _sinl _tanl \
20273 _coshl _sinhl _tanhl
20275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20276 echo "configure:20277: checking for $ac_func" >&5
20277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20278 echo $ac_n "(cached) $ac_c" 1>&6
20279 else
20280 cat > conftest.$ac_ext <<EOF
20281 #line 20282 "configure"
20282 #include "confdefs.h"
20283 /* System header to define __stub macros and hopefully few prototypes,
20284 which can conflict with char $ac_func(); below. */
20285 #include <assert.h>
20286 /* Override any gcc2 internal prototype to avoid an error. */
20287 /* We use char because int might match the return type of a gcc2
20288 builtin and then its argument prototype would still apply. */
20289 char $ac_func();
20291 int main() {
20293 /* The GNU C library defines this for functions which it implements
20294 to always fail with ENOSYS. Some functions are actually named
20295 something starting with __ and the normal name is an alias. */
20296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20297 choke me
20298 #else
20299 $ac_func();
20300 #endif
20302 ; return 0; }
20304 if { (eval echo configure:20305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20305 rm -rf conftest*
20306 eval "ac_cv_func_$ac_func=yes"
20307 else
20308 echo "configure: failed program was:" >&5
20309 cat conftest.$ac_ext >&5
20310 rm -rf conftest*
20311 eval "ac_cv_func_$ac_func=no"
20313 rm -f conftest*
20316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20317 echo "$ac_t""yes" 1>&6
20318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20319 cat >> confdefs.h <<EOF
20320 #define $ac_tr_func 1
20323 else
20324 echo "$ac_t""no" 1>&6
20326 done
20331 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20332 echo "configure:20333: checking for _long double round functions" >&5
20333 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20334 echo $ac_n "(cached) $ac_c" 1>&6
20335 else
20338 ac_ext=C
20339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20340 ac_cpp='$CXXCPP $CPPFLAGS'
20341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20343 cross_compiling=$ac_cv_prog_cxx_cross
20345 cat > conftest.$ac_ext <<EOF
20346 #line 20347 "configure"
20347 #include "confdefs.h"
20348 #include <math.h>
20349 int main() {
20350 `for x in _ceill _floorl; do echo "$x (0);"; done`
20351 ; return 0; }
20353 if { (eval echo configure:20354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20354 rm -rf conftest*
20355 glibcpp_cv_func__long_double_round_use=yes
20356 else
20357 echo "configure: failed program was:" >&5
20358 cat conftest.$ac_ext >&5
20359 rm -rf conftest*
20360 glibcpp_cv_func__long_double_round_use=no
20362 rm -f conftest*
20363 ac_ext=c
20364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20368 cross_compiling=$ac_cv_prog_cc_cross
20372 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20373 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20374 for ac_func in _ceill _floorl
20376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20377 echo "configure:20378: checking for $ac_func" >&5
20378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20379 echo $ac_n "(cached) $ac_c" 1>&6
20380 else
20381 cat > conftest.$ac_ext <<EOF
20382 #line 20383 "configure"
20383 #include "confdefs.h"
20384 /* System header to define __stub macros and hopefully few prototypes,
20385 which can conflict with char $ac_func(); below. */
20386 #include <assert.h>
20387 /* Override any gcc2 internal prototype to avoid an error. */
20388 /* We use char because int might match the return type of a gcc2
20389 builtin and then its argument prototype would still apply. */
20390 char $ac_func();
20392 int main() {
20394 /* The GNU C library defines this for functions which it implements
20395 to always fail with ENOSYS. Some functions are actually named
20396 something starting with __ and the normal name is an alias. */
20397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20398 choke me
20399 #else
20400 $ac_func();
20401 #endif
20403 ; return 0; }
20405 if { (eval echo configure:20406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20406 rm -rf conftest*
20407 eval "ac_cv_func_$ac_func=yes"
20408 else
20409 echo "configure: failed program was:" >&5
20410 cat conftest.$ac_ext >&5
20411 rm -rf conftest*
20412 eval "ac_cv_func_$ac_func=no"
20414 rm -f conftest*
20417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20418 echo "$ac_t""yes" 1>&6
20419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20420 cat >> confdefs.h <<EOF
20421 #define $ac_tr_func 1
20424 else
20425 echo "$ac_t""no" 1>&6
20427 done
20432 LIBS="$ac_save_LIBS"
20433 CXXFLAGS="$ac_save_CXXFLAGS"
20437 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20438 echo "configure:20439: checking for __builtin_abs declaration" >&5
20439 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20440 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20441 echo $ac_n "(cached) $ac_c" 1>&6
20442 else
20445 ac_ext=C
20446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20447 ac_cpp='$CXXCPP $CPPFLAGS'
20448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20450 cross_compiling=$ac_cv_prog_cxx_cross
20452 cat > conftest.$ac_ext <<EOF
20453 #line 20454 "configure"
20454 #include "confdefs.h"
20455 #include <math.h>
20456 int main() {
20457 __builtin_abs(0);
20458 ; return 0; }
20460 if { (eval echo configure:20461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20461 rm -rf conftest*
20462 glibcpp_cv_func___builtin_abs_use=yes
20463 else
20464 echo "configure: failed program was:" >&5
20465 cat conftest.$ac_ext >&5
20466 rm -rf conftest*
20467 glibcpp_cv_func___builtin_abs_use=no
20469 rm -f conftest*
20470 ac_ext=c
20471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20475 cross_compiling=$ac_cv_prog_cc_cross
20481 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20482 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20483 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20484 echo "configure:20485: checking for __builtin_abs linkage" >&5
20485 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20486 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20487 echo $ac_n "(cached) $ac_c" 1>&6
20488 else
20490 cat > conftest.$ac_ext <<EOF
20491 #line 20492 "configure"
20492 #include "confdefs.h"
20493 #include <math.h>
20494 int main() {
20495 __builtin_abs(0);
20496 ; return 0; }
20498 if { (eval echo configure:20499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20499 rm -rf conftest*
20500 glibcpp_cv_func___builtin_abs_link=yes
20501 else
20502 echo "configure: failed program was:" >&5
20503 cat conftest.$ac_ext >&5
20504 rm -rf conftest*
20505 glibcpp_cv_func___builtin_abs_link=no
20507 rm -f conftest*
20512 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20513 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20514 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20515 cat >> confdefs.h <<EOF
20516 #define ${ac_tr_func} 1
20523 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20524 echo "configure:20525: checking for __builtin_fabsf declaration" >&5
20525 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20526 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20527 echo $ac_n "(cached) $ac_c" 1>&6
20528 else
20531 ac_ext=C
20532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20533 ac_cpp='$CXXCPP $CPPFLAGS'
20534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20536 cross_compiling=$ac_cv_prog_cxx_cross
20538 cat > conftest.$ac_ext <<EOF
20539 #line 20540 "configure"
20540 #include "confdefs.h"
20541 #include <math.h>
20542 int main() {
20543 __builtin_fabsf(0);
20544 ; return 0; }
20546 if { (eval echo configure:20547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20547 rm -rf conftest*
20548 glibcpp_cv_func___builtin_fabsf_use=yes
20549 else
20550 echo "configure: failed program was:" >&5
20551 cat conftest.$ac_ext >&5
20552 rm -rf conftest*
20553 glibcpp_cv_func___builtin_fabsf_use=no
20555 rm -f conftest*
20556 ac_ext=c
20557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20561 cross_compiling=$ac_cv_prog_cc_cross
20567 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20568 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20569 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20570 echo "configure:20571: checking for __builtin_fabsf linkage" >&5
20571 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20572 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20573 echo $ac_n "(cached) $ac_c" 1>&6
20574 else
20576 cat > conftest.$ac_ext <<EOF
20577 #line 20578 "configure"
20578 #include "confdefs.h"
20579 #include <math.h>
20580 int main() {
20581 __builtin_fabsf(0);
20582 ; return 0; }
20584 if { (eval echo configure:20585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20585 rm -rf conftest*
20586 glibcpp_cv_func___builtin_fabsf_link=yes
20587 else
20588 echo "configure: failed program was:" >&5
20589 cat conftest.$ac_ext >&5
20590 rm -rf conftest*
20591 glibcpp_cv_func___builtin_fabsf_link=no
20593 rm -f conftest*
20598 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20599 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20600 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20601 cat >> confdefs.h <<EOF
20602 #define ${ac_tr_func} 1
20609 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20610 echo "configure:20611: checking for __builtin_fabs declaration" >&5
20611 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20612 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20613 echo $ac_n "(cached) $ac_c" 1>&6
20614 else
20617 ac_ext=C
20618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20619 ac_cpp='$CXXCPP $CPPFLAGS'
20620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20622 cross_compiling=$ac_cv_prog_cxx_cross
20624 cat > conftest.$ac_ext <<EOF
20625 #line 20626 "configure"
20626 #include "confdefs.h"
20627 #include <math.h>
20628 int main() {
20629 __builtin_fabs(0);
20630 ; return 0; }
20632 if { (eval echo configure:20633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20633 rm -rf conftest*
20634 glibcpp_cv_func___builtin_fabs_use=yes
20635 else
20636 echo "configure: failed program was:" >&5
20637 cat conftest.$ac_ext >&5
20638 rm -rf conftest*
20639 glibcpp_cv_func___builtin_fabs_use=no
20641 rm -f conftest*
20642 ac_ext=c
20643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20647 cross_compiling=$ac_cv_prog_cc_cross
20653 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20654 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20655 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20656 echo "configure:20657: checking for __builtin_fabs linkage" >&5
20657 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20658 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20659 echo $ac_n "(cached) $ac_c" 1>&6
20660 else
20662 cat > conftest.$ac_ext <<EOF
20663 #line 20664 "configure"
20664 #include "confdefs.h"
20665 #include <math.h>
20666 int main() {
20667 __builtin_fabs(0);
20668 ; return 0; }
20670 if { (eval echo configure:20671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20671 rm -rf conftest*
20672 glibcpp_cv_func___builtin_fabs_link=yes
20673 else
20674 echo "configure: failed program was:" >&5
20675 cat conftest.$ac_ext >&5
20676 rm -rf conftest*
20677 glibcpp_cv_func___builtin_fabs_link=no
20679 rm -f conftest*
20684 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20685 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20686 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20687 cat >> confdefs.h <<EOF
20688 #define ${ac_tr_func} 1
20695 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20696 echo "configure:20697: checking for __builtin_fabsl declaration" >&5
20697 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20698 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20699 echo $ac_n "(cached) $ac_c" 1>&6
20700 else
20703 ac_ext=C
20704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20705 ac_cpp='$CXXCPP $CPPFLAGS'
20706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20708 cross_compiling=$ac_cv_prog_cxx_cross
20710 cat > conftest.$ac_ext <<EOF
20711 #line 20712 "configure"
20712 #include "confdefs.h"
20713 #include <math.h>
20714 int main() {
20715 __builtin_fabsl(0);
20716 ; return 0; }
20718 if { (eval echo configure:20719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20719 rm -rf conftest*
20720 glibcpp_cv_func___builtin_fabsl_use=yes
20721 else
20722 echo "configure: failed program was:" >&5
20723 cat conftest.$ac_ext >&5
20724 rm -rf conftest*
20725 glibcpp_cv_func___builtin_fabsl_use=no
20727 rm -f conftest*
20728 ac_ext=c
20729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20733 cross_compiling=$ac_cv_prog_cc_cross
20739 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20740 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20741 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20742 echo "configure:20743: checking for __builtin_fabsl linkage" >&5
20743 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20744 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20745 echo $ac_n "(cached) $ac_c" 1>&6
20746 else
20748 cat > conftest.$ac_ext <<EOF
20749 #line 20750 "configure"
20750 #include "confdefs.h"
20751 #include <math.h>
20752 int main() {
20753 __builtin_fabsl(0);
20754 ; return 0; }
20756 if { (eval echo configure:20757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20757 rm -rf conftest*
20758 glibcpp_cv_func___builtin_fabsl_link=yes
20759 else
20760 echo "configure: failed program was:" >&5
20761 cat conftest.$ac_ext >&5
20762 rm -rf conftest*
20763 glibcpp_cv_func___builtin_fabsl_link=no
20765 rm -f conftest*
20770 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20771 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20772 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20773 cat >> confdefs.h <<EOF
20774 #define ${ac_tr_func} 1
20781 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20782 echo "configure:20783: checking for __builtin_labs declaration" >&5
20783 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20784 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20785 echo $ac_n "(cached) $ac_c" 1>&6
20786 else
20789 ac_ext=C
20790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20791 ac_cpp='$CXXCPP $CPPFLAGS'
20792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20794 cross_compiling=$ac_cv_prog_cxx_cross
20796 cat > conftest.$ac_ext <<EOF
20797 #line 20798 "configure"
20798 #include "confdefs.h"
20799 #include <math.h>
20800 int main() {
20801 __builtin_labs(0);
20802 ; return 0; }
20804 if { (eval echo configure:20805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20805 rm -rf conftest*
20806 glibcpp_cv_func___builtin_labs_use=yes
20807 else
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20810 rm -rf conftest*
20811 glibcpp_cv_func___builtin_labs_use=no
20813 rm -f conftest*
20814 ac_ext=c
20815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20816 ac_cpp='$CPP $CPPFLAGS'
20817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20819 cross_compiling=$ac_cv_prog_cc_cross
20825 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20826 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20827 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20828 echo "configure:20829: checking for __builtin_labs linkage" >&5
20829 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20830 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20831 echo $ac_n "(cached) $ac_c" 1>&6
20832 else
20834 cat > conftest.$ac_ext <<EOF
20835 #line 20836 "configure"
20836 #include "confdefs.h"
20837 #include <math.h>
20838 int main() {
20839 __builtin_labs(0);
20840 ; return 0; }
20842 if { (eval echo configure:20843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20843 rm -rf conftest*
20844 glibcpp_cv_func___builtin_labs_link=yes
20845 else
20846 echo "configure: failed program was:" >&5
20847 cat conftest.$ac_ext >&5
20848 rm -rf conftest*
20849 glibcpp_cv_func___builtin_labs_link=no
20851 rm -f conftest*
20856 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20857 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20858 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20859 cat >> confdefs.h <<EOF
20860 #define ${ac_tr_func} 1
20868 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20869 echo "configure:20870: checking for __builtin_sqrtf declaration" >&5
20870 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20871 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20872 echo $ac_n "(cached) $ac_c" 1>&6
20873 else
20876 ac_ext=C
20877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20878 ac_cpp='$CXXCPP $CPPFLAGS'
20879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20881 cross_compiling=$ac_cv_prog_cxx_cross
20883 cat > conftest.$ac_ext <<EOF
20884 #line 20885 "configure"
20885 #include "confdefs.h"
20886 #include <math.h>
20887 int main() {
20888 __builtin_sqrtf(0);
20889 ; return 0; }
20891 if { (eval echo configure:20892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20892 rm -rf conftest*
20893 glibcpp_cv_func___builtin_sqrtf_use=yes
20894 else
20895 echo "configure: failed program was:" >&5
20896 cat conftest.$ac_ext >&5
20897 rm -rf conftest*
20898 glibcpp_cv_func___builtin_sqrtf_use=no
20900 rm -f conftest*
20901 ac_ext=c
20902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20903 ac_cpp='$CPP $CPPFLAGS'
20904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20906 cross_compiling=$ac_cv_prog_cc_cross
20912 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20913 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20914 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20915 echo "configure:20916: checking for __builtin_sqrtf linkage" >&5
20916 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20917 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20918 echo $ac_n "(cached) $ac_c" 1>&6
20919 else
20921 cat > conftest.$ac_ext <<EOF
20922 #line 20923 "configure"
20923 #include "confdefs.h"
20924 #include <math.h>
20925 int main() {
20926 __builtin_sqrtf(0);
20927 ; return 0; }
20929 if { (eval echo configure:20930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20930 rm -rf conftest*
20931 glibcpp_cv_func___builtin_sqrtf_link=yes
20932 else
20933 echo "configure: failed program was:" >&5
20934 cat conftest.$ac_ext >&5
20935 rm -rf conftest*
20936 glibcpp_cv_func___builtin_sqrtf_link=no
20938 rm -f conftest*
20943 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
20944 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
20945 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20946 cat >> confdefs.h <<EOF
20947 #define ${ac_tr_func} 1
20954 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20955 echo "configure:20956: checking for __builtin_sqrt declaration" >&5
20956 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
20957 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20958 echo $ac_n "(cached) $ac_c" 1>&6
20959 else
20962 ac_ext=C
20963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20967 cross_compiling=$ac_cv_prog_cxx_cross
20969 cat > conftest.$ac_ext <<EOF
20970 #line 20971 "configure"
20971 #include "confdefs.h"
20972 #include <math.h>
20973 int main() {
20974 __builtin_sqrt(0);
20975 ; return 0; }
20977 if { (eval echo configure:20978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20978 rm -rf conftest*
20979 glibcpp_cv_func___builtin_sqrt_use=yes
20980 else
20981 echo "configure: failed program was:" >&5
20982 cat conftest.$ac_ext >&5
20983 rm -rf conftest*
20984 glibcpp_cv_func___builtin_sqrt_use=no
20986 rm -f conftest*
20987 ac_ext=c
20988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20992 cross_compiling=$ac_cv_prog_cc_cross
20998 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
20999 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21000 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21001 echo "configure:21002: checking for __builtin_sqrt linkage" >&5
21002 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21003 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21004 echo $ac_n "(cached) $ac_c" 1>&6
21005 else
21007 cat > conftest.$ac_ext <<EOF
21008 #line 21009 "configure"
21009 #include "confdefs.h"
21010 #include <math.h>
21011 int main() {
21012 __builtin_sqrt(0);
21013 ; return 0; }
21015 if { (eval echo configure:21016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21016 rm -rf conftest*
21017 glibcpp_cv_func___builtin_sqrt_link=yes
21018 else
21019 echo "configure: failed program was:" >&5
21020 cat conftest.$ac_ext >&5
21021 rm -rf conftest*
21022 glibcpp_cv_func___builtin_sqrt_link=no
21024 rm -f conftest*
21029 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21030 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21031 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21032 cat >> confdefs.h <<EOF
21033 #define ${ac_tr_func} 1
21040 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21041 echo "configure:21042: checking for __builtin_sqrtl declaration" >&5
21042 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21043 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21044 echo $ac_n "(cached) $ac_c" 1>&6
21045 else
21048 ac_ext=C
21049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21050 ac_cpp='$CXXCPP $CPPFLAGS'
21051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21053 cross_compiling=$ac_cv_prog_cxx_cross
21055 cat > conftest.$ac_ext <<EOF
21056 #line 21057 "configure"
21057 #include "confdefs.h"
21058 #include <math.h>
21059 int main() {
21060 __builtin_sqrtl(0);
21061 ; return 0; }
21063 if { (eval echo configure:21064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21064 rm -rf conftest*
21065 glibcpp_cv_func___builtin_sqrtl_use=yes
21066 else
21067 echo "configure: failed program was:" >&5
21068 cat conftest.$ac_ext >&5
21069 rm -rf conftest*
21070 glibcpp_cv_func___builtin_sqrtl_use=no
21072 rm -f conftest*
21073 ac_ext=c
21074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21075 ac_cpp='$CPP $CPPFLAGS'
21076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21078 cross_compiling=$ac_cv_prog_cc_cross
21084 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21085 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21086 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21087 echo "configure:21088: checking for __builtin_sqrtl linkage" >&5
21088 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21089 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21090 echo $ac_n "(cached) $ac_c" 1>&6
21091 else
21093 cat > conftest.$ac_ext <<EOF
21094 #line 21095 "configure"
21095 #include "confdefs.h"
21096 #include <math.h>
21097 int main() {
21098 __builtin_sqrtl(0);
21099 ; return 0; }
21101 if { (eval echo configure:21102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21102 rm -rf conftest*
21103 glibcpp_cv_func___builtin_sqrtl_link=yes
21104 else
21105 echo "configure: failed program was:" >&5
21106 cat conftest.$ac_ext >&5
21107 rm -rf conftest*
21108 glibcpp_cv_func___builtin_sqrtl_link=no
21110 rm -f conftest*
21115 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21116 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21117 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21118 cat >> confdefs.h <<EOF
21119 #define ${ac_tr_func} 1
21127 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21128 echo "configure:21129: checking for __builtin_sinf declaration" >&5
21129 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21130 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21131 echo $ac_n "(cached) $ac_c" 1>&6
21132 else
21135 ac_ext=C
21136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21137 ac_cpp='$CXXCPP $CPPFLAGS'
21138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21140 cross_compiling=$ac_cv_prog_cxx_cross
21142 cat > conftest.$ac_ext <<EOF
21143 #line 21144 "configure"
21144 #include "confdefs.h"
21145 #include <math.h>
21146 int main() {
21147 __builtin_sinf(0);
21148 ; return 0; }
21150 if { (eval echo configure:21151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21151 rm -rf conftest*
21152 glibcpp_cv_func___builtin_sinf_use=yes
21153 else
21154 echo "configure: failed program was:" >&5
21155 cat conftest.$ac_ext >&5
21156 rm -rf conftest*
21157 glibcpp_cv_func___builtin_sinf_use=no
21159 rm -f conftest*
21160 ac_ext=c
21161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21162 ac_cpp='$CPP $CPPFLAGS'
21163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21165 cross_compiling=$ac_cv_prog_cc_cross
21171 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21172 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21173 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21174 echo "configure:21175: checking for __builtin_sinf linkage" >&5
21175 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21176 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21177 echo $ac_n "(cached) $ac_c" 1>&6
21178 else
21180 cat > conftest.$ac_ext <<EOF
21181 #line 21182 "configure"
21182 #include "confdefs.h"
21183 #include <math.h>
21184 int main() {
21185 __builtin_sinf(0);
21186 ; return 0; }
21188 if { (eval echo configure:21189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21189 rm -rf conftest*
21190 glibcpp_cv_func___builtin_sinf_link=yes
21191 else
21192 echo "configure: failed program was:" >&5
21193 cat conftest.$ac_ext >&5
21194 rm -rf conftest*
21195 glibcpp_cv_func___builtin_sinf_link=no
21197 rm -f conftest*
21202 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21203 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21204 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21205 cat >> confdefs.h <<EOF
21206 #define ${ac_tr_func} 1
21213 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21214 echo "configure:21215: checking for __builtin_sin declaration" >&5
21215 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21216 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21217 echo $ac_n "(cached) $ac_c" 1>&6
21218 else
21221 ac_ext=C
21222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21223 ac_cpp='$CXXCPP $CPPFLAGS'
21224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21226 cross_compiling=$ac_cv_prog_cxx_cross
21228 cat > conftest.$ac_ext <<EOF
21229 #line 21230 "configure"
21230 #include "confdefs.h"
21231 #include <math.h>
21232 int main() {
21233 __builtin_sin(0);
21234 ; return 0; }
21236 if { (eval echo configure:21237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21237 rm -rf conftest*
21238 glibcpp_cv_func___builtin_sin_use=yes
21239 else
21240 echo "configure: failed program was:" >&5
21241 cat conftest.$ac_ext >&5
21242 rm -rf conftest*
21243 glibcpp_cv_func___builtin_sin_use=no
21245 rm -f conftest*
21246 ac_ext=c
21247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21251 cross_compiling=$ac_cv_prog_cc_cross
21257 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21258 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21259 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21260 echo "configure:21261: checking for __builtin_sin linkage" >&5
21261 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21262 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21263 echo $ac_n "(cached) $ac_c" 1>&6
21264 else
21266 cat > conftest.$ac_ext <<EOF
21267 #line 21268 "configure"
21268 #include "confdefs.h"
21269 #include <math.h>
21270 int main() {
21271 __builtin_sin(0);
21272 ; return 0; }
21274 if { (eval echo configure:21275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21275 rm -rf conftest*
21276 glibcpp_cv_func___builtin_sin_link=yes
21277 else
21278 echo "configure: failed program was:" >&5
21279 cat conftest.$ac_ext >&5
21280 rm -rf conftest*
21281 glibcpp_cv_func___builtin_sin_link=no
21283 rm -f conftest*
21288 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21289 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21290 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21291 cat >> confdefs.h <<EOF
21292 #define ${ac_tr_func} 1
21299 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21300 echo "configure:21301: checking for __builtin_sinl declaration" >&5
21301 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21302 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21303 echo $ac_n "(cached) $ac_c" 1>&6
21304 else
21307 ac_ext=C
21308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21309 ac_cpp='$CXXCPP $CPPFLAGS'
21310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21312 cross_compiling=$ac_cv_prog_cxx_cross
21314 cat > conftest.$ac_ext <<EOF
21315 #line 21316 "configure"
21316 #include "confdefs.h"
21317 #include <math.h>
21318 int main() {
21319 __builtin_sinl(0);
21320 ; return 0; }
21322 if { (eval echo configure:21323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21323 rm -rf conftest*
21324 glibcpp_cv_func___builtin_sinl_use=yes
21325 else
21326 echo "configure: failed program was:" >&5
21327 cat conftest.$ac_ext >&5
21328 rm -rf conftest*
21329 glibcpp_cv_func___builtin_sinl_use=no
21331 rm -f conftest*
21332 ac_ext=c
21333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21337 cross_compiling=$ac_cv_prog_cc_cross
21343 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21344 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21345 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21346 echo "configure:21347: checking for __builtin_sinl linkage" >&5
21347 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21348 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21349 echo $ac_n "(cached) $ac_c" 1>&6
21350 else
21352 cat > conftest.$ac_ext <<EOF
21353 #line 21354 "configure"
21354 #include "confdefs.h"
21355 #include <math.h>
21356 int main() {
21357 __builtin_sinl(0);
21358 ; return 0; }
21360 if { (eval echo configure:21361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21361 rm -rf conftest*
21362 glibcpp_cv_func___builtin_sinl_link=yes
21363 else
21364 echo "configure: failed program was:" >&5
21365 cat conftest.$ac_ext >&5
21366 rm -rf conftest*
21367 glibcpp_cv_func___builtin_sinl_link=no
21369 rm -f conftest*
21374 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21375 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21376 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21377 cat >> confdefs.h <<EOF
21378 #define ${ac_tr_func} 1
21386 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21387 echo "configure:21388: checking for __builtin_cosf declaration" >&5
21388 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21389 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21390 echo $ac_n "(cached) $ac_c" 1>&6
21391 else
21394 ac_ext=C
21395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21396 ac_cpp='$CXXCPP $CPPFLAGS'
21397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21399 cross_compiling=$ac_cv_prog_cxx_cross
21401 cat > conftest.$ac_ext <<EOF
21402 #line 21403 "configure"
21403 #include "confdefs.h"
21404 #include <math.h>
21405 int main() {
21406 __builtin_cosf(0);
21407 ; return 0; }
21409 if { (eval echo configure:21410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21410 rm -rf conftest*
21411 glibcpp_cv_func___builtin_cosf_use=yes
21412 else
21413 echo "configure: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21415 rm -rf conftest*
21416 glibcpp_cv_func___builtin_cosf_use=no
21418 rm -f conftest*
21419 ac_ext=c
21420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21421 ac_cpp='$CPP $CPPFLAGS'
21422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21424 cross_compiling=$ac_cv_prog_cc_cross
21430 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21431 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21432 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21433 echo "configure:21434: checking for __builtin_cosf linkage" >&5
21434 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21435 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21436 echo $ac_n "(cached) $ac_c" 1>&6
21437 else
21439 cat > conftest.$ac_ext <<EOF
21440 #line 21441 "configure"
21441 #include "confdefs.h"
21442 #include <math.h>
21443 int main() {
21444 __builtin_cosf(0);
21445 ; return 0; }
21447 if { (eval echo configure:21448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21448 rm -rf conftest*
21449 glibcpp_cv_func___builtin_cosf_link=yes
21450 else
21451 echo "configure: failed program was:" >&5
21452 cat conftest.$ac_ext >&5
21453 rm -rf conftest*
21454 glibcpp_cv_func___builtin_cosf_link=no
21456 rm -f conftest*
21461 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21462 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21463 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21464 cat >> confdefs.h <<EOF
21465 #define ${ac_tr_func} 1
21472 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21473 echo "configure:21474: checking for __builtin_cos declaration" >&5
21474 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21475 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21477 else
21480 ac_ext=C
21481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21482 ac_cpp='$CXXCPP $CPPFLAGS'
21483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21485 cross_compiling=$ac_cv_prog_cxx_cross
21487 cat > conftest.$ac_ext <<EOF
21488 #line 21489 "configure"
21489 #include "confdefs.h"
21490 #include <math.h>
21491 int main() {
21492 __builtin_cos(0);
21493 ; return 0; }
21495 if { (eval echo configure:21496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21496 rm -rf conftest*
21497 glibcpp_cv_func___builtin_cos_use=yes
21498 else
21499 echo "configure: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21501 rm -rf conftest*
21502 glibcpp_cv_func___builtin_cos_use=no
21504 rm -f conftest*
21505 ac_ext=c
21506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21507 ac_cpp='$CPP $CPPFLAGS'
21508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21510 cross_compiling=$ac_cv_prog_cc_cross
21516 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21517 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21518 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21519 echo "configure:21520: checking for __builtin_cos linkage" >&5
21520 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21521 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21522 echo $ac_n "(cached) $ac_c" 1>&6
21523 else
21525 cat > conftest.$ac_ext <<EOF
21526 #line 21527 "configure"
21527 #include "confdefs.h"
21528 #include <math.h>
21529 int main() {
21530 __builtin_cos(0);
21531 ; return 0; }
21533 if { (eval echo configure:21534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21534 rm -rf conftest*
21535 glibcpp_cv_func___builtin_cos_link=yes
21536 else
21537 echo "configure: failed program was:" >&5
21538 cat conftest.$ac_ext >&5
21539 rm -rf conftest*
21540 glibcpp_cv_func___builtin_cos_link=no
21542 rm -f conftest*
21547 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21548 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21549 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21550 cat >> confdefs.h <<EOF
21551 #define ${ac_tr_func} 1
21558 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21559 echo "configure:21560: checking for __builtin_cosl declaration" >&5
21560 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21561 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21562 echo $ac_n "(cached) $ac_c" 1>&6
21563 else
21566 ac_ext=C
21567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21568 ac_cpp='$CXXCPP $CPPFLAGS'
21569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21571 cross_compiling=$ac_cv_prog_cxx_cross
21573 cat > conftest.$ac_ext <<EOF
21574 #line 21575 "configure"
21575 #include "confdefs.h"
21576 #include <math.h>
21577 int main() {
21578 __builtin_cosl(0);
21579 ; return 0; }
21581 if { (eval echo configure:21582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21582 rm -rf conftest*
21583 glibcpp_cv_func___builtin_cosl_use=yes
21584 else
21585 echo "configure: failed program was:" >&5
21586 cat conftest.$ac_ext >&5
21587 rm -rf conftest*
21588 glibcpp_cv_func___builtin_cosl_use=no
21590 rm -f conftest*
21591 ac_ext=c
21592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21593 ac_cpp='$CPP $CPPFLAGS'
21594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21596 cross_compiling=$ac_cv_prog_cc_cross
21602 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21603 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21604 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21605 echo "configure:21606: checking for __builtin_cosl linkage" >&5
21606 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21607 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21608 echo $ac_n "(cached) $ac_c" 1>&6
21609 else
21611 cat > conftest.$ac_ext <<EOF
21612 #line 21613 "configure"
21613 #include "confdefs.h"
21614 #include <math.h>
21615 int main() {
21616 __builtin_cosl(0);
21617 ; return 0; }
21619 if { (eval echo configure:21620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21620 rm -rf conftest*
21621 glibcpp_cv_func___builtin_cosl_link=yes
21622 else
21623 echo "configure: failed program was:" >&5
21624 cat conftest.$ac_ext >&5
21625 rm -rf conftest*
21626 glibcpp_cv_func___builtin_cosl_link=no
21628 rm -f conftest*
21633 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21634 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21635 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21636 cat >> confdefs.h <<EOF
21637 #define ${ac_tr_func} 1
21644 dummyvar=no
21645 if test x$dummyvar = x"yes"; then
21646 cat >> confdefs.h <<\EOF
21647 #define HAVE___BUILTIN_ABS 1
21650 cat >> confdefs.h <<\EOF
21651 #define HAVE___BUILTIN_LABS 1
21654 cat >> confdefs.h <<\EOF
21655 #define HAVE___BUILTIN_COS 1
21658 cat >> confdefs.h <<\EOF
21659 #define HAVE___BUILTIN_COSF 1
21662 cat >> confdefs.h <<\EOF
21663 #define HAVE___BUILTIN_COSL 1
21666 cat >> confdefs.h <<\EOF
21667 #define HAVE___BUILTIN_FABS 1
21670 cat >> confdefs.h <<\EOF
21671 #define HAVE___BUILTIN_FABSF 1
21674 cat >> confdefs.h <<\EOF
21675 #define HAVE___BUILTIN_FABSL 1
21678 cat >> confdefs.h <<\EOF
21679 #define HAVE___BUILTIN_SIN 1
21682 cat >> confdefs.h <<\EOF
21683 #define HAVE___BUILTIN_SINF 1
21686 cat >> confdefs.h <<\EOF
21687 #define HAVE___BUILTIN_SINL 1
21690 cat >> confdefs.h <<\EOF
21691 #define HAVE___BUILTIN_SQRT 1
21694 cat >> confdefs.h <<\EOF
21695 #define HAVE___BUILTIN_SQRTF 1
21698 cat >> confdefs.h <<\EOF
21699 #define HAVE___BUILTIN_SQRTL 1
21705 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21706 echo "configure:21707: checking for main in -lm" >&5
21707 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21709 echo $ac_n "(cached) $ac_c" 1>&6
21710 else
21711 ac_save_LIBS="$LIBS"
21712 LIBS="-lm $LIBS"
21713 cat > conftest.$ac_ext <<EOF
21714 #line 21715 "configure"
21715 #include "confdefs.h"
21717 int main() {
21718 main()
21719 ; return 0; }
21721 if { (eval echo configure:21722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21722 rm -rf conftest*
21723 eval "ac_cv_lib_$ac_lib_var=yes"
21724 else
21725 echo "configure: failed program was:" >&5
21726 cat conftest.$ac_ext >&5
21727 rm -rf conftest*
21728 eval "ac_cv_lib_$ac_lib_var=no"
21730 rm -f conftest*
21731 LIBS="$ac_save_LIBS"
21734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21735 echo "$ac_t""yes" 1>&6
21736 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21738 cat >> confdefs.h <<EOF
21739 #define $ac_tr_lib 1
21742 LIBS="-lm $LIBS"
21744 else
21745 echo "$ac_t""no" 1>&6
21748 for ac_func in nan copysignf
21750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21751 echo "configure:21752: checking for $ac_func" >&5
21752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21753 echo $ac_n "(cached) $ac_c" 1>&6
21754 else
21755 cat > conftest.$ac_ext <<EOF
21756 #line 21757 "configure"
21757 #include "confdefs.h"
21758 /* System header to define __stub macros and hopefully few prototypes,
21759 which can conflict with char $ac_func(); below. */
21760 #include <assert.h>
21761 /* Override any gcc2 internal prototype to avoid an error. */
21762 /* We use char because int might match the return type of a gcc2
21763 builtin and then its argument prototype would still apply. */
21764 char $ac_func();
21766 int main() {
21768 /* The GNU C library defines this for functions which it implements
21769 to always fail with ENOSYS. Some functions are actually named
21770 something starting with __ and the normal name is an alias. */
21771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21772 choke me
21773 #else
21774 $ac_func();
21775 #endif
21777 ; return 0; }
21779 if { (eval echo configure:21780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21780 rm -rf conftest*
21781 eval "ac_cv_func_$ac_func=yes"
21782 else
21783 echo "configure: failed program was:" >&5
21784 cat conftest.$ac_ext >&5
21785 rm -rf conftest*
21786 eval "ac_cv_func_$ac_func=no"
21788 rm -f conftest*
21791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21792 echo "$ac_t""yes" 1>&6
21793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21794 cat >> confdefs.h <<EOF
21795 #define $ac_tr_func 1
21798 else
21799 echo "$ac_t""no" 1>&6
21800 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21802 done
21805 for ac_func in __signbit
21807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21808 echo "configure:21809: checking for $ac_func" >&5
21809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21810 echo $ac_n "(cached) $ac_c" 1>&6
21811 else
21812 cat > conftest.$ac_ext <<EOF
21813 #line 21814 "configure"
21814 #include "confdefs.h"
21815 /* System header to define __stub macros and hopefully few prototypes,
21816 which can conflict with char $ac_func(); below. */
21817 #include <assert.h>
21818 /* Override any gcc2 internal prototype to avoid an error. */
21819 /* We use char because int might match the return type of a gcc2
21820 builtin and then its argument prototype would still apply. */
21821 char $ac_func();
21823 int main() {
21825 /* The GNU C library defines this for functions which it implements
21826 to always fail with ENOSYS. Some functions are actually named
21827 something starting with __ and the normal name is an alias. */
21828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21829 choke me
21830 #else
21831 $ac_func();
21832 #endif
21834 ; return 0; }
21836 if { (eval echo configure:21837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21837 rm -rf conftest*
21838 eval "ac_cv_func_$ac_func=yes"
21839 else
21840 echo "configure: failed program was:" >&5
21841 cat conftest.$ac_ext >&5
21842 rm -rf conftest*
21843 eval "ac_cv_func_$ac_func=no"
21845 rm -f conftest*
21848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21849 echo "$ac_t""yes" 1>&6
21850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21851 cat >> confdefs.h <<EOF
21852 #define $ac_tr_func 1
21855 else
21856 echo "$ac_t""no" 1>&6
21857 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21859 done
21861 for ac_func in __signbitf
21863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21864 echo "configure:21865: checking for $ac_func" >&5
21865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21866 echo $ac_n "(cached) $ac_c" 1>&6
21867 else
21868 cat > conftest.$ac_ext <<EOF
21869 #line 21870 "configure"
21870 #include "confdefs.h"
21871 /* System header to define __stub macros and hopefully few prototypes,
21872 which can conflict with char $ac_func(); below. */
21873 #include <assert.h>
21874 /* Override any gcc2 internal prototype to avoid an error. */
21875 /* We use char because int might match the return type of a gcc2
21876 builtin and then its argument prototype would still apply. */
21877 char $ac_func();
21879 int main() {
21881 /* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885 choke me
21886 #else
21887 $ac_func();
21888 #endif
21890 ; return 0; }
21892 if { (eval echo configure:21893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21893 rm -rf conftest*
21894 eval "ac_cv_func_$ac_func=yes"
21895 else
21896 echo "configure: failed program was:" >&5
21897 cat conftest.$ac_ext >&5
21898 rm -rf conftest*
21899 eval "ac_cv_func_$ac_func=no"
21901 rm -f conftest*
21904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21905 echo "$ac_t""yes" 1>&6
21906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21907 cat >> confdefs.h <<EOF
21908 #define $ac_tr_func 1
21911 else
21912 echo "$ac_t""no" 1>&6
21913 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21915 done
21918 if test x$ac_cv_func_copysignl = x"yes"; then
21919 for ac_func in __signbitl
21921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21922 echo "configure:21923: checking for $ac_func" >&5
21923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21924 echo $ac_n "(cached) $ac_c" 1>&6
21925 else
21926 cat > conftest.$ac_ext <<EOF
21927 #line 21928 "configure"
21928 #include "confdefs.h"
21929 /* System header to define __stub macros and hopefully few prototypes,
21930 which can conflict with char $ac_func(); below. */
21931 #include <assert.h>
21932 /* Override any gcc2 internal prototype to avoid an error. */
21933 /* We use char because int might match the return type of a gcc2
21934 builtin and then its argument prototype would still apply. */
21935 char $ac_func();
21937 int main() {
21939 /* The GNU C library defines this for functions which it implements
21940 to always fail with ENOSYS. Some functions are actually named
21941 something starting with __ and the normal name is an alias. */
21942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21943 choke me
21944 #else
21945 $ac_func();
21946 #endif
21948 ; return 0; }
21950 if { (eval echo configure:21951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21951 rm -rf conftest*
21952 eval "ac_cv_func_$ac_func=yes"
21953 else
21954 echo "configure: failed program was:" >&5
21955 cat conftest.$ac_ext >&5
21956 rm -rf conftest*
21957 eval "ac_cv_func_$ac_func=no"
21959 rm -f conftest*
21962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21963 echo "$ac_t""yes" 1>&6
21964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21965 cat >> confdefs.h <<EOF
21966 #define $ac_tr_func 1
21969 else
21970 echo "$ac_t""no" 1>&6
21971 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21973 done
21977 if test -n "$LIBMATHOBJS"; then
21978 need_libmath=yes
21983 if test "$need_libmath" = yes; then
21984 GLIBCPP_BUILD_LIBMATH_TRUE=
21985 GLIBCPP_BUILD_LIBMATH_FALSE='#'
21986 else
21987 GLIBCPP_BUILD_LIBMATH_TRUE='#'
21988 GLIBCPP_BUILD_LIBMATH_FALSE=
21992 enable_wchar_t=no
21994 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21995 echo "configure:21996: checking for mbstate_t" >&5
21996 cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
21999 #include <wchar.h>
22000 int main() {
22001 mbstate_t teststate;
22002 ; return 0; }
22004 if { (eval echo configure:22005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22005 rm -rf conftest*
22006 have_mbstate_t=yes
22007 else
22008 echo "configure: failed program was:" >&5
22009 cat conftest.$ac_ext >&5
22010 rm -rf conftest*
22011 have_mbstate_t=no
22013 rm -f conftest*
22014 echo "$ac_t""$have_mbstate_t" 1>&6
22015 if test x"$have_mbstate_t" = xyes; then
22016 cat >> confdefs.h <<\EOF
22017 #define HAVE_MBSTATE_T 1
22022 for ac_hdr in wchar.h
22024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22026 echo "configure:22027: checking for $ac_hdr" >&5
22027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22028 echo $ac_n "(cached) $ac_c" 1>&6
22029 else
22030 cat > conftest.$ac_ext <<EOF
22031 #line 22032 "configure"
22032 #include "confdefs.h"
22033 #include <$ac_hdr>
22035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22036 { (eval echo configure:22037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22038 if test -z "$ac_err"; then
22039 rm -rf conftest*
22040 eval "ac_cv_header_$ac_safe=yes"
22041 else
22042 echo "$ac_err" >&5
22043 echo "configure: failed program was:" >&5
22044 cat conftest.$ac_ext >&5
22045 rm -rf conftest*
22046 eval "ac_cv_header_$ac_safe=no"
22048 rm -f conftest*
22050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22051 echo "$ac_t""yes" 1>&6
22052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22053 cat >> confdefs.h <<EOF
22054 #define $ac_tr_hdr 1
22056 ac_has_wchar_h=yes
22057 else
22058 echo "$ac_t""no" 1>&6
22059 ac_has_wchar_h=no
22061 done
22063 for ac_hdr in wctype.h
22065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22067 echo "configure:22068: checking for $ac_hdr" >&5
22068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22069 echo $ac_n "(cached) $ac_c" 1>&6
22070 else
22071 cat > conftest.$ac_ext <<EOF
22072 #line 22073 "configure"
22073 #include "confdefs.h"
22074 #include <$ac_hdr>
22076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22077 { (eval echo configure:22078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22079 if test -z "$ac_err"; then
22080 rm -rf conftest*
22081 eval "ac_cv_header_$ac_safe=yes"
22082 else
22083 echo "$ac_err" >&5
22084 echo "configure: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22086 rm -rf conftest*
22087 eval "ac_cv_header_$ac_safe=no"
22089 rm -f conftest*
22091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22092 echo "$ac_t""yes" 1>&6
22093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22094 cat >> confdefs.h <<EOF
22095 #define $ac_tr_hdr 1
22097 ac_has_wctype_h=yes
22098 else
22099 echo "$ac_t""no" 1>&6
22100 ac_has_wctype_h=no
22102 done
22105 if test x"$ac_has_wchar_h" = xyes &&
22106 test x"$ac_has_wctype_h" = xyes &&
22107 test x"$enable_c_mbchar" != xno; then
22109 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22110 echo "configure:22111: checking for WCHAR_MIN and WCHAR_MAX" >&5
22111 cat > conftest.$ac_ext <<EOF
22112 #line 22113 "configure"
22113 #include "confdefs.h"
22114 #include <wchar.h>
22115 int main() {
22116 int i = WCHAR_MIN; int j = WCHAR_MAX;
22117 ; return 0; }
22119 if { (eval echo configure:22120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22120 rm -rf conftest*
22121 has_wchar_minmax=yes
22122 else
22123 echo "configure: failed program was:" >&5
22124 cat conftest.$ac_ext >&5
22125 rm -rf conftest*
22126 has_wchar_minmax=no
22128 rm -f conftest*
22129 echo "$ac_t""$has_wchar_minmax" 1>&6
22131 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22132 echo "configure:22133: checking for WEOF" >&5
22133 cat > conftest.$ac_ext <<EOF
22134 #line 22135 "configure"
22135 #include "confdefs.h"
22137 #include <wchar.h>
22138 #include <stddef.h>
22139 int main() {
22140 wint_t i = WEOF;
22141 ; return 0; }
22143 if { (eval echo configure:22144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22144 rm -rf conftest*
22145 has_weof=yes
22146 else
22147 echo "configure: failed program was:" >&5
22148 cat conftest.$ac_ext >&5
22149 rm -rf conftest*
22150 has_weof=no
22152 rm -f conftest*
22153 echo "$ac_t""$has_weof" 1>&6
22155 ac_wfuncs=yes
22156 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22159 echo "configure:22160: checking for $ac_func" >&5
22160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22161 echo $ac_n "(cached) $ac_c" 1>&6
22162 else
22163 cat > conftest.$ac_ext <<EOF
22164 #line 22165 "configure"
22165 #include "confdefs.h"
22166 /* System header to define __stub macros and hopefully few prototypes,
22167 which can conflict with char $ac_func(); below. */
22168 #include <assert.h>
22169 /* Override any gcc2 internal prototype to avoid an error. */
22170 /* We use char because int might match the return type of a gcc2
22171 builtin and then its argument prototype would still apply. */
22172 char $ac_func();
22174 int main() {
22176 /* The GNU C library defines this for functions which it implements
22177 to always fail with ENOSYS. Some functions are actually named
22178 something starting with __ and the normal name is an alias. */
22179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22180 choke me
22181 #else
22182 $ac_func();
22183 #endif
22185 ; return 0; }
22187 if { (eval echo configure:22188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22188 rm -rf conftest*
22189 eval "ac_cv_func_$ac_func=yes"
22190 else
22191 echo "configure: failed program was:" >&5
22192 cat conftest.$ac_ext >&5
22193 rm -rf conftest*
22194 eval "ac_cv_func_$ac_func=no"
22196 rm -f conftest*
22199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22200 echo "$ac_t""yes" 1>&6
22201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22202 cat >> confdefs.h <<EOF
22203 #define $ac_tr_func 1
22206 else
22207 echo "$ac_t""no" 1>&6
22209 ac_wfuncs=no
22211 done
22214 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22215 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22216 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22217 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22218 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22219 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22222 echo "configure:22223: checking for $ac_func" >&5
22223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22224 echo $ac_n "(cached) $ac_c" 1>&6
22225 else
22226 cat > conftest.$ac_ext <<EOF
22227 #line 22228 "configure"
22228 #include "confdefs.h"
22229 /* System header to define __stub macros and hopefully few prototypes,
22230 which can conflict with char $ac_func(); below. */
22231 #include <assert.h>
22232 /* Override any gcc2 internal prototype to avoid an error. */
22233 /* We use char because int might match the return type of a gcc2
22234 builtin and then its argument prototype would still apply. */
22235 char $ac_func();
22237 int main() {
22239 /* The GNU C library defines this for functions which it implements
22240 to always fail with ENOSYS. Some functions are actually named
22241 something starting with __ and the normal name is an alias. */
22242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22243 choke me
22244 #else
22245 $ac_func();
22246 #endif
22248 ; return 0; }
22250 if { (eval echo configure:22251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22251 rm -rf conftest*
22252 eval "ac_cv_func_$ac_func=yes"
22253 else
22254 echo "configure: failed program was:" >&5
22255 cat conftest.$ac_ext >&5
22256 rm -rf conftest*
22257 eval "ac_cv_func_$ac_func=no"
22259 rm -f conftest*
22262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22263 echo "$ac_t""yes" 1>&6
22264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22265 cat >> confdefs.h <<EOF
22266 #define $ac_tr_func 1
22269 else
22270 echo "$ac_t""no" 1>&6
22272 ac_wfuncs=no
22274 done
22277 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22278 echo "configure:22279: checking for ISO C99 wchar_t support" >&5
22279 if test x"$has_weof" = xyes &&
22280 test x"$has_wchar_minmax" = xyes &&
22281 test x"$ac_wfuncs" = xyes; then
22282 ac_isoC99_wchar_t=yes
22283 else
22284 ac_isoC99_wchar_t=no
22286 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22288 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22289 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22290 echo "configure:22291: checking for iconv.h" >&5
22291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22292 echo $ac_n "(cached) $ac_c" 1>&6
22293 else
22294 cat > conftest.$ac_ext <<EOF
22295 #line 22296 "configure"
22296 #include "confdefs.h"
22297 #include <iconv.h>
22299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22300 { (eval echo configure:22301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22302 if test -z "$ac_err"; then
22303 rm -rf conftest*
22304 eval "ac_cv_header_$ac_safe=yes"
22305 else
22306 echo "$ac_err" >&5
22307 echo "configure: failed program was:" >&5
22308 cat conftest.$ac_ext >&5
22309 rm -rf conftest*
22310 eval "ac_cv_header_$ac_safe=no"
22312 rm -f conftest*
22314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22315 echo "$ac_t""yes" 1>&6
22316 ac_has_iconv_h=yes
22317 else
22318 echo "$ac_t""no" 1>&6
22319 ac_has_iconv_h=no
22322 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22323 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22324 echo "configure:22325: checking for langinfo.h" >&5
22325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22326 echo $ac_n "(cached) $ac_c" 1>&6
22327 else
22328 cat > conftest.$ac_ext <<EOF
22329 #line 22330 "configure"
22330 #include "confdefs.h"
22331 #include <langinfo.h>
22333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22334 { (eval echo configure:22335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22336 if test -z "$ac_err"; then
22337 rm -rf conftest*
22338 eval "ac_cv_header_$ac_safe=yes"
22339 else
22340 echo "$ac_err" >&5
22341 echo "configure: failed program was:" >&5
22342 cat conftest.$ac_ext >&5
22343 rm -rf conftest*
22344 eval "ac_cv_header_$ac_safe=no"
22346 rm -f conftest*
22348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22349 echo "$ac_t""yes" 1>&6
22350 ac_has_langinfo_h=yes
22351 else
22352 echo "$ac_t""no" 1>&6
22353 ac_has_langinfo_h=no
22357 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22358 echo "configure:22359: checking for iconv in -liconv" >&5
22359 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22361 echo $ac_n "(cached) $ac_c" 1>&6
22362 else
22363 ac_save_LIBS="$LIBS"
22364 LIBS="-liconv $LIBS"
22365 cat > conftest.$ac_ext <<EOF
22366 #line 22367 "configure"
22367 #include "confdefs.h"
22368 /* Override any gcc2 internal prototype to avoid an error. */
22369 /* We use char because int might match the return type of a gcc2
22370 builtin and then its argument prototype would still apply. */
22371 char iconv();
22373 int main() {
22374 iconv()
22375 ; return 0; }
22377 if { (eval echo configure:22378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22378 rm -rf conftest*
22379 eval "ac_cv_lib_$ac_lib_var=yes"
22380 else
22381 echo "configure: failed program was:" >&5
22382 cat conftest.$ac_ext >&5
22383 rm -rf conftest*
22384 eval "ac_cv_lib_$ac_lib_var=no"
22386 rm -f conftest*
22387 LIBS="$ac_save_LIBS"
22390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22391 echo "$ac_t""yes" 1>&6
22392 libiconv="-liconv"
22393 else
22394 echo "$ac_t""no" 1>&6
22397 ac_save_LIBS="$LIBS"
22398 LIBS="$LIBS $libiconv"
22400 for ac_func in iconv_open iconv_close iconv nl_langinfo
22402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22403 echo "configure:22404: checking for $ac_func" >&5
22404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22405 echo $ac_n "(cached) $ac_c" 1>&6
22406 else
22407 cat > conftest.$ac_ext <<EOF
22408 #line 22409 "configure"
22409 #include "confdefs.h"
22410 /* System header to define __stub macros and hopefully few prototypes,
22411 which can conflict with char $ac_func(); below. */
22412 #include <assert.h>
22413 /* Override any gcc2 internal prototype to avoid an error. */
22414 /* We use char because int might match the return type of a gcc2
22415 builtin and then its argument prototype would still apply. */
22416 char $ac_func();
22418 int main() {
22420 /* The GNU C library defines this for functions which it implements
22421 to always fail with ENOSYS. Some functions are actually named
22422 something starting with __ and the normal name is an alias. */
22423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22424 choke me
22425 #else
22426 $ac_func();
22427 #endif
22429 ; return 0; }
22431 if { (eval echo configure:22432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22432 rm -rf conftest*
22433 eval "ac_cv_func_$ac_func=yes"
22434 else
22435 echo "configure: failed program was:" >&5
22436 cat conftest.$ac_ext >&5
22437 rm -rf conftest*
22438 eval "ac_cv_func_$ac_func=no"
22440 rm -f conftest*
22443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22444 echo "$ac_t""yes" 1>&6
22445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22446 cat >> confdefs.h <<EOF
22447 #define $ac_tr_func 1
22450 ac_XPG2funcs=yes
22451 else
22452 echo "$ac_t""no" 1>&6
22453 ac_XPG2funcs=no
22455 done
22458 LIBS="$ac_save_LIBS"
22460 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22461 echo "configure:22462: checking for XPG2 wchar_t support" >&5
22462 if test x"$ac_has_iconv_h" = xyes &&
22463 test x"$ac_has_langinfo_h" = xyes &&
22464 test x"$ac_XPG2funcs" = xyes; then
22465 ac_XPG2_wchar_t=yes
22466 else
22467 ac_XPG2_wchar_t=no
22469 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22471 if test x"$ac_isoC99_wchar_t" = xyes &&
22472 test x"$ac_XPG2_wchar_t" = xyes; then
22473 cat >> confdefs.h <<\EOF
22474 #define _GLIBCPP_USE_WCHAR_T 1
22477 enable_wchar_t=yes
22480 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22481 echo "configure:22482: checking for enabled wchar_t specializations" >&5
22482 echo "$ac_t""$enable_wchar_t" 1>&6
22485 if test "$enable_wchar_t" = yes; then
22486 GLIBCPP_TEST_WCHAR_T_TRUE=
22487 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22488 else
22489 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22490 GLIBCPP_TEST_WCHAR_T_FALSE=
22494 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22495 ac_save_CXXFLAGS="$CXXFLAGS"
22496 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22499 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22500 echo "configure:22501: checking for strtold declaration" >&5
22501 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22502 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22503 echo $ac_n "(cached) $ac_c" 1>&6
22504 else
22507 ac_ext=C
22508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22509 ac_cpp='$CXXCPP $CPPFLAGS'
22510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22512 cross_compiling=$ac_cv_prog_cxx_cross
22514 cat > conftest.$ac_ext <<EOF
22515 #line 22516 "configure"
22516 #include "confdefs.h"
22517 #include <stdlib.h>
22518 int main() {
22519 strtold(0, 0);
22520 ; return 0; }
22522 if { (eval echo configure:22523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22523 rm -rf conftest*
22524 glibcpp_cv_func_strtold_use=yes
22525 else
22526 echo "configure: failed program was:" >&5
22527 cat conftest.$ac_ext >&5
22528 rm -rf conftest*
22529 glibcpp_cv_func_strtold_use=no
22531 rm -f conftest*
22532 ac_ext=c
22533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22534 ac_cpp='$CPP $CPPFLAGS'
22535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22537 cross_compiling=$ac_cv_prog_cc_cross
22543 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22544 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22545 for ac_func in strtold
22547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22548 echo "configure:22549: checking for $ac_func" >&5
22549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22550 echo $ac_n "(cached) $ac_c" 1>&6
22551 else
22552 cat > conftest.$ac_ext <<EOF
22553 #line 22554 "configure"
22554 #include "confdefs.h"
22555 /* System header to define __stub macros and hopefully few prototypes,
22556 which can conflict with char $ac_func(); below. */
22557 #include <assert.h>
22558 /* Override any gcc2 internal prototype to avoid an error. */
22559 /* We use char because int might match the return type of a gcc2
22560 builtin and then its argument prototype would still apply. */
22561 char $ac_func();
22563 int main() {
22565 /* The GNU C library defines this for functions which it implements
22566 to always fail with ENOSYS. Some functions are actually named
22567 something starting with __ and the normal name is an alias. */
22568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22569 choke me
22570 #else
22571 $ac_func();
22572 #endif
22574 ; return 0; }
22576 if { (eval echo configure:22577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22577 rm -rf conftest*
22578 eval "ac_cv_func_$ac_func=yes"
22579 else
22580 echo "configure: failed program was:" >&5
22581 cat conftest.$ac_ext >&5
22582 rm -rf conftest*
22583 eval "ac_cv_func_$ac_func=no"
22585 rm -f conftest*
22588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22589 echo "$ac_t""yes" 1>&6
22590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22591 cat >> confdefs.h <<EOF
22592 #define $ac_tr_func 1
22595 else
22596 echo "$ac_t""no" 1>&6
22598 done
22603 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22604 echo "configure:22605: checking for strtof declaration" >&5
22605 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22606 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22607 echo $ac_n "(cached) $ac_c" 1>&6
22608 else
22611 ac_ext=C
22612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22613 ac_cpp='$CXXCPP $CPPFLAGS'
22614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22616 cross_compiling=$ac_cv_prog_cxx_cross
22618 cat > conftest.$ac_ext <<EOF
22619 #line 22620 "configure"
22620 #include "confdefs.h"
22621 #include <stdlib.h>
22622 int main() {
22623 strtof(0, 0);
22624 ; return 0; }
22626 if { (eval echo configure:22627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22627 rm -rf conftest*
22628 glibcpp_cv_func_strtof_use=yes
22629 else
22630 echo "configure: failed program was:" >&5
22631 cat conftest.$ac_ext >&5
22632 rm -rf conftest*
22633 glibcpp_cv_func_strtof_use=no
22635 rm -f conftest*
22636 ac_ext=c
22637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22638 ac_cpp='$CPP $CPPFLAGS'
22639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22641 cross_compiling=$ac_cv_prog_cc_cross
22647 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22648 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22649 for ac_func in strtof
22651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22652 echo "configure:22653: checking for $ac_func" >&5
22653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22654 echo $ac_n "(cached) $ac_c" 1>&6
22655 else
22656 cat > conftest.$ac_ext <<EOF
22657 #line 22658 "configure"
22658 #include "confdefs.h"
22659 /* System header to define __stub macros and hopefully few prototypes,
22660 which can conflict with char $ac_func(); below. */
22661 #include <assert.h>
22662 /* Override any gcc2 internal prototype to avoid an error. */
22663 /* We use char because int might match the return type of a gcc2
22664 builtin and then its argument prototype would still apply. */
22665 char $ac_func();
22667 int main() {
22669 /* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22673 choke me
22674 #else
22675 $ac_func();
22676 #endif
22678 ; return 0; }
22680 if { (eval echo configure:22681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22681 rm -rf conftest*
22682 eval "ac_cv_func_$ac_func=yes"
22683 else
22684 echo "configure: failed program was:" >&5
22685 cat conftest.$ac_ext >&5
22686 rm -rf conftest*
22687 eval "ac_cv_func_$ac_func=no"
22689 rm -f conftest*
22692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22693 echo "$ac_t""yes" 1>&6
22694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22695 cat >> confdefs.h <<EOF
22696 #define $ac_tr_func 1
22699 else
22700 echo "$ac_t""no" 1>&6
22702 done
22706 for ac_func in drand48
22708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22709 echo "configure:22710: checking for $ac_func" >&5
22710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22711 echo $ac_n "(cached) $ac_c" 1>&6
22712 else
22713 cat > conftest.$ac_ext <<EOF
22714 #line 22715 "configure"
22715 #include "confdefs.h"
22716 /* System header to define __stub macros and hopefully few prototypes,
22717 which can conflict with char $ac_func(); below. */
22718 #include <assert.h>
22719 /* Override any gcc2 internal prototype to avoid an error. */
22720 /* We use char because int might match the return type of a gcc2
22721 builtin and then its argument prototype would still apply. */
22722 char $ac_func();
22724 int main() {
22726 /* The GNU C library defines this for functions which it implements
22727 to always fail with ENOSYS. Some functions are actually named
22728 something starting with __ and the normal name is an alias. */
22729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22730 choke me
22731 #else
22732 $ac_func();
22733 #endif
22735 ; return 0; }
22737 if { (eval echo configure:22738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22738 rm -rf conftest*
22739 eval "ac_cv_func_$ac_func=yes"
22740 else
22741 echo "configure: failed program was:" >&5
22742 cat conftest.$ac_ext >&5
22743 rm -rf conftest*
22744 eval "ac_cv_func_$ac_func=no"
22746 rm -f conftest*
22749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22750 echo "$ac_t""yes" 1>&6
22751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22752 cat >> confdefs.h <<EOF
22753 #define $ac_tr_func 1
22756 else
22757 echo "$ac_t""no" 1>&6
22759 done
22762 CXXFLAGS="$ac_save_CXXFLAGS"
22765 # For showmanyc_helper().
22766 for ac_hdr in sys/ioctl.h sys/filio.h
22768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22770 echo "configure:22771: checking for $ac_hdr" >&5
22771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22772 echo $ac_n "(cached) $ac_c" 1>&6
22773 else
22774 cat > conftest.$ac_ext <<EOF
22775 #line 22776 "configure"
22776 #include "confdefs.h"
22777 #include <$ac_hdr>
22779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22780 { (eval echo configure:22781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22782 if test -z "$ac_err"; then
22783 rm -rf conftest*
22784 eval "ac_cv_header_$ac_safe=yes"
22785 else
22786 echo "$ac_err" >&5
22787 echo "configure: failed program was:" >&5
22788 cat conftest.$ac_ext >&5
22789 rm -rf conftest*
22790 eval "ac_cv_header_$ac_safe=no"
22792 rm -f conftest*
22794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22795 echo "$ac_t""yes" 1>&6
22796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22797 cat >> confdefs.h <<EOF
22798 #define $ac_tr_hdr 1
22801 else
22802 echo "$ac_t""no" 1>&6
22804 done
22807 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22808 echo $ac_n "(cached) $ac_c" 1>&6
22809 else
22811 cat > conftest.$ac_ext <<EOF
22812 #line 22813 "configure"
22813 #include "confdefs.h"
22814 #include <poll.h>
22815 int main() {
22816 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22817 ; return 0; }
22819 if { (eval echo configure:22820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22820 rm -rf conftest*
22821 glibcpp_cv_POLL=yes
22822 else
22823 echo "configure: failed program was:" >&5
22824 cat conftest.$ac_ext >&5
22825 rm -rf conftest*
22826 glibcpp_cv_POLL=no
22828 rm -f conftest*
22832 if test x$glibcpp_cv_POLL = xyes; then
22833 cat >> confdefs.h <<\EOF
22834 #define HAVE_POLL 1
22840 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22841 echo $ac_n "(cached) $ac_c" 1>&6
22842 else
22844 cat > conftest.$ac_ext <<EOF
22845 #line 22846 "configure"
22846 #include "confdefs.h"
22847 #include <sys/stat.h>
22848 int main() {
22849 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22850 ; return 0; }
22852 if { (eval echo configure:22853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22853 rm -rf conftest*
22854 glibcpp_cv_S_ISREG=yes
22855 else
22856 echo "configure: failed program was:" >&5
22857 cat conftest.$ac_ext >&5
22858 rm -rf conftest*
22859 glibcpp_cv_S_ISREG=no
22861 rm -f conftest*
22865 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22866 echo $ac_n "(cached) $ac_c" 1>&6
22867 else
22869 cat > conftest.$ac_ext <<EOF
22870 #line 22871 "configure"
22871 #include "confdefs.h"
22872 #include <sys/stat.h>
22873 int main() {
22874 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22875 ; return 0; }
22877 if { (eval echo configure:22878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22878 rm -rf conftest*
22879 glibcpp_cv_S_IFREG=yes
22880 else
22881 echo "configure: failed program was:" >&5
22882 cat conftest.$ac_ext >&5
22883 rm -rf conftest*
22884 glibcpp_cv_S_IFREG=no
22886 rm -f conftest*
22890 if test x$glibcpp_cv_S_ISREG = xyes; then
22891 cat >> confdefs.h <<\EOF
22892 #define HAVE_S_ISREG 1
22895 elif test x$glibcpp_cv_S_IFREG = xyes; then
22896 cat >> confdefs.h <<\EOF
22897 #define HAVE_S_IFREG 1
22904 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22905 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22906 echo "configure:22907: checking for locale.h" >&5
22907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22908 echo $ac_n "(cached) $ac_c" 1>&6
22909 else
22910 cat > conftest.$ac_ext <<EOF
22911 #line 22912 "configure"
22912 #include "confdefs.h"
22913 #include <locale.h>
22915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22916 { (eval echo configure:22917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22918 if test -z "$ac_err"; then
22919 rm -rf conftest*
22920 eval "ac_cv_header_$ac_safe=yes"
22921 else
22922 echo "$ac_err" >&5
22923 echo "configure: failed program was:" >&5
22924 cat conftest.$ac_ext >&5
22925 rm -rf conftest*
22926 eval "ac_cv_header_$ac_safe=no"
22928 rm -f conftest*
22930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22931 echo "$ac_t""yes" 1>&6
22933 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22934 echo "configure:22935: checking for LC_MESSAGES" >&5
22935 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22936 echo $ac_n "(cached) $ac_c" 1>&6
22937 else
22938 cat > conftest.$ac_ext <<EOF
22939 #line 22940 "configure"
22940 #include "confdefs.h"
22941 #include <locale.h>
22942 int main() {
22943 return LC_MESSAGES
22944 ; return 0; }
22946 if { (eval echo configure:22947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22947 rm -rf conftest*
22948 ac_cv_val_LC_MESSAGES=yes
22949 else
22950 echo "configure: failed program was:" >&5
22951 cat conftest.$ac_ext >&5
22952 rm -rf conftest*
22953 ac_cv_val_LC_MESSAGES=no
22955 rm -f conftest*
22958 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22959 if test $ac_cv_val_LC_MESSAGES = yes; then
22960 cat >> confdefs.h <<\EOF
22961 #define HAVE_LC_MESSAGES 1
22966 else
22967 echo "$ac_t""no" 1>&6
22972 cat > conftest.$ac_ext <<EOF
22973 #line 22974 "configure"
22974 #include "confdefs.h"
22976 #include <setjmp.h>
22978 int main() {
22979 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22980 ; return 0; }
22982 if { (eval echo configure:22983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22983 rm -rf conftest*
22984 cat >> confdefs.h <<\EOF
22985 #define HAVE_SIGSETJMP 1
22989 else
22990 echo "configure: failed program was:" >&5
22991 cat conftest.$ac_ext >&5
22993 rm -f conftest*
22995 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22999 echo "configure:23000: checking for $ac_hdr" >&5
23000 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23001 echo $ac_n "(cached) $ac_c" 1>&6
23002 else
23003 cat > conftest.$ac_ext <<EOF
23004 #line 23005 "configure"
23005 #include "confdefs.h"
23006 #include <$ac_hdr>
23008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23009 { (eval echo configure:23010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23011 if test -z "$ac_err"; then
23012 rm -rf conftest*
23013 eval "ac_cv_header_$ac_safe=yes"
23014 else
23015 echo "$ac_err" >&5
23016 echo "configure: failed program was:" >&5
23017 cat conftest.$ac_ext >&5
23018 rm -rf conftest*
23019 eval "ac_cv_header_$ac_safe=no"
23021 rm -f conftest*
23023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23024 echo "$ac_t""yes" 1>&6
23025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23026 cat >> confdefs.h <<EOF
23027 #define $ac_tr_hdr 1
23030 else
23031 echo "$ac_t""no" 1>&6
23033 done
23035 for ac_func in getpagesize
23037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23038 echo "configure:23039: checking for $ac_func" >&5
23039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23040 echo $ac_n "(cached) $ac_c" 1>&6
23041 else
23042 cat > conftest.$ac_ext <<EOF
23043 #line 23044 "configure"
23044 #include "confdefs.h"
23045 /* System header to define __stub macros and hopefully few prototypes,
23046 which can conflict with char $ac_func(); below. */
23047 #include <assert.h>
23048 /* Override any gcc2 internal prototype to avoid an error. */
23049 /* We use char because int might match the return type of a gcc2
23050 builtin and then its argument prototype would still apply. */
23051 char $ac_func();
23053 int main() {
23055 /* The GNU C library defines this for functions which it implements
23056 to always fail with ENOSYS. Some functions are actually named
23057 something starting with __ and the normal name is an alias. */
23058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23059 choke me
23060 #else
23061 $ac_func();
23062 #endif
23064 ; return 0; }
23066 if { (eval echo configure:23067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23067 rm -rf conftest*
23068 eval "ac_cv_func_$ac_func=yes"
23069 else
23070 echo "configure: failed program was:" >&5
23071 cat conftest.$ac_ext >&5
23072 rm -rf conftest*
23073 eval "ac_cv_func_$ac_func=no"
23075 rm -f conftest*
23078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23079 echo "$ac_t""yes" 1>&6
23080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23081 cat >> confdefs.h <<EOF
23082 #define $ac_tr_func 1
23085 else
23086 echo "$ac_t""no" 1>&6
23088 done
23090 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23091 echo "configure:23092: checking for working mmap" >&5
23092 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23093 echo $ac_n "(cached) $ac_c" 1>&6
23094 else
23095 if test "$cross_compiling" = yes; then
23096 ac_cv_func_mmap_fixed_mapped=no
23097 else
23098 cat > conftest.$ac_ext <<EOF
23099 #line 23100 "configure"
23100 #include "confdefs.h"
23102 /* Thanks to Mike Haertel and Jim Avera for this test.
23103 Here is a matrix of mmap possibilities:
23104 mmap private not fixed
23105 mmap private fixed at somewhere currently unmapped
23106 mmap private fixed at somewhere already mapped
23107 mmap shared not fixed
23108 mmap shared fixed at somewhere currently unmapped
23109 mmap shared fixed at somewhere already mapped
23110 For private mappings, we should verify that changes cannot be read()
23111 back from the file, nor mmap's back from the file at a different
23112 address. (There have been systems where private was not correctly
23113 implemented like the infamous i386 svr4.0, and systems where the
23114 VM page cache was not coherent with the filesystem buffer cache
23115 like early versions of FreeBSD and possibly contemporary NetBSD.)
23116 For shared mappings, we should conversely verify that changes get
23117 propogated back to all the places they're supposed to be.
23119 Grep wants private fixed already mapped.
23120 The main things grep needs to know about mmap are:
23121 * does it exist and is it safe to write into the mmap'd area
23122 * how to use it (BSD variants) */
23123 #include <sys/types.h>
23124 #include <fcntl.h>
23125 #include <sys/mman.h>
23127 #if HAVE_SYS_TYPES_H
23128 # include <sys/types.h>
23129 #endif
23131 #if HAVE_STDLIB_H
23132 # include <stdlib.h>
23133 #endif
23135 #if HAVE_SYS_STAT_H
23136 # include <sys/stat.h>
23137 #endif
23139 #if HAVE_UNISTD_H
23140 # include <unistd.h>
23141 #endif
23143 /* This mess was copied from the GNU getpagesize.h. */
23144 #ifndef HAVE_GETPAGESIZE
23146 /* Assume that all systems that can run configure have sys/param.h. */
23147 # ifndef HAVE_SYS_PARAM_H
23148 # define HAVE_SYS_PARAM_H 1
23149 # endif
23151 # ifdef _SC_PAGESIZE
23152 # define getpagesize() sysconf(_SC_PAGESIZE)
23153 # else /* no _SC_PAGESIZE */
23154 # ifdef HAVE_SYS_PARAM_H
23155 # include <sys/param.h>
23156 # ifdef EXEC_PAGESIZE
23157 # define getpagesize() EXEC_PAGESIZE
23158 # else /* no EXEC_PAGESIZE */
23159 # ifdef NBPG
23160 # define getpagesize() NBPG * CLSIZE
23161 # ifndef CLSIZE
23162 # define CLSIZE 1
23163 # endif /* no CLSIZE */
23164 # else /* no NBPG */
23165 # ifdef NBPC
23166 # define getpagesize() NBPC
23167 # else /* no NBPC */
23168 # ifdef PAGESIZE
23169 # define getpagesize() PAGESIZE
23170 # endif /* PAGESIZE */
23171 # endif /* no NBPC */
23172 # endif /* no NBPG */
23173 # endif /* no EXEC_PAGESIZE */
23174 # else /* no HAVE_SYS_PARAM_H */
23175 # define getpagesize() 8192 /* punt totally */
23176 # endif /* no HAVE_SYS_PARAM_H */
23177 # endif /* no _SC_PAGESIZE */
23179 #endif /* no HAVE_GETPAGESIZE */
23181 #ifdef __cplusplus
23182 extern "C" { void *malloc(unsigned); }
23183 #else
23184 char *malloc();
23185 #endif
23188 main()
23190 char *data, *data2, *data3;
23191 int i, pagesize;
23192 int fd;
23194 pagesize = getpagesize();
23197 * First, make a file with some known garbage in it.
23199 data = malloc(pagesize);
23200 if (!data)
23201 exit(1);
23202 for (i = 0; i < pagesize; ++i)
23203 *(data + i) = rand();
23204 umask(0);
23205 fd = creat("conftestmmap", 0600);
23206 if (fd < 0)
23207 exit(1);
23208 if (write(fd, data, pagesize) != pagesize)
23209 exit(1);
23210 close(fd);
23213 * Next, try to mmap the file at a fixed address which
23214 * already has something else allocated at it. If we can,
23215 * also make sure that we see the same garbage.
23217 fd = open("conftestmmap", O_RDWR);
23218 if (fd < 0)
23219 exit(1);
23220 data2 = malloc(2 * pagesize);
23221 if (!data2)
23222 exit(1);
23223 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23224 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23225 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23226 exit(1);
23227 for (i = 0; i < pagesize; ++i)
23228 if (*(data + i) != *(data2 + i))
23229 exit(1);
23232 * Finally, make sure that changes to the mapped area
23233 * do not percolate back to the file as seen by read().
23234 * (This is a bug on some variants of i386 svr4.0.)
23236 for (i = 0; i < pagesize; ++i)
23237 *(data2 + i) = *(data2 + i) + 1;
23238 data3 = malloc(pagesize);
23239 if (!data3)
23240 exit(1);
23241 if (read(fd, data3, pagesize) != pagesize)
23242 exit(1);
23243 for (i = 0; i < pagesize; ++i)
23244 if (*(data + i) != *(data3 + i))
23245 exit(1);
23246 close(fd);
23247 unlink("conftestmmap");
23248 exit(0);
23252 if { (eval echo configure:23253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23253 then
23254 ac_cv_func_mmap_fixed_mapped=yes
23255 else
23256 echo "configure: failed program was:" >&5
23257 cat conftest.$ac_ext >&5
23258 rm -fr conftest*
23259 ac_cv_func_mmap_fixed_mapped=no
23261 rm -fr conftest*
23266 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23268 cat >> confdefs.h <<\EOF
23269 #define HAVE_MMAP 1
23275 # Establish limits on memory usage during 'make check'
23278 setrlimit_have_headers=yes
23279 for ac_hdr in unistd.h sys/time.h sys/resource.h
23281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23283 echo "configure:23284: checking for $ac_hdr" >&5
23284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23285 echo $ac_n "(cached) $ac_c" 1>&6
23286 else
23287 cat > conftest.$ac_ext <<EOF
23288 #line 23289 "configure"
23289 #include "confdefs.h"
23290 #include <$ac_hdr>
23292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23293 { (eval echo configure:23294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23295 if test -z "$ac_err"; then
23296 rm -rf conftest*
23297 eval "ac_cv_header_$ac_safe=yes"
23298 else
23299 echo "$ac_err" >&5
23300 echo "configure: failed program was:" >&5
23301 cat conftest.$ac_ext >&5
23302 rm -rf conftest*
23303 eval "ac_cv_header_$ac_safe=no"
23305 rm -f conftest*
23307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23308 echo "$ac_t""yes" 1>&6
23309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23310 cat >> confdefs.h <<EOF
23311 #define $ac_tr_hdr 1
23314 else
23315 echo "$ac_t""no" 1>&6
23316 setrlimit_have_headers=no
23318 done
23320 # If don't have the headers, then we can't run the tests now, and we
23321 # won't be seeing any of these during testsuite compilation.
23322 if test $setrlimit_have_headers = yes; then
23323 # Can't do these in a loop, else the resulting syntax is wrong.
23325 cat > conftest.$ac_ext <<EOF
23326 #line 23327 "configure"
23327 #include "confdefs.h"
23328 #include <unistd.h>
23329 #include <sys/time.h>
23330 #include <sys/resource.h>
23332 int main() {
23333 int f = RLIMIT_DATA ;
23334 ; return 0; }
23336 if { (eval echo configure:23337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23337 rm -rf conftest*
23338 glibcpp_mresult=1
23339 else
23340 echo "configure: failed program was:" >&5
23341 cat conftest.$ac_ext >&5
23342 rm -rf conftest*
23343 glibcpp_mresult=0
23345 rm -f conftest*
23346 cat >> confdefs.h <<EOF
23347 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23352 cat > conftest.$ac_ext <<EOF
23353 #line 23354 "configure"
23354 #include "confdefs.h"
23355 #include <unistd.h>
23356 #include <sys/time.h>
23357 #include <sys/resource.h>
23359 int main() {
23360 int f = RLIMIT_RSS ;
23361 ; return 0; }
23363 if { (eval echo configure:23364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23364 rm -rf conftest*
23365 glibcpp_mresult=1
23366 else
23367 echo "configure: failed program was:" >&5
23368 cat conftest.$ac_ext >&5
23369 rm -rf conftest*
23370 glibcpp_mresult=0
23372 rm -f conftest*
23373 cat >> confdefs.h <<EOF
23374 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23379 cat > conftest.$ac_ext <<EOF
23380 #line 23381 "configure"
23381 #include "confdefs.h"
23382 #include <unistd.h>
23383 #include <sys/time.h>
23384 #include <sys/resource.h>
23386 int main() {
23387 int f = RLIMIT_VMEM ;
23388 ; return 0; }
23390 if { (eval echo configure:23391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23391 rm -rf conftest*
23392 glibcpp_mresult=1
23393 else
23394 echo "configure: failed program was:" >&5
23395 cat conftest.$ac_ext >&5
23396 rm -rf conftest*
23397 glibcpp_mresult=0
23399 rm -f conftest*
23400 cat >> confdefs.h <<EOF
23401 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23406 cat > conftest.$ac_ext <<EOF
23407 #line 23408 "configure"
23408 #include "confdefs.h"
23409 #include <unistd.h>
23410 #include <sys/time.h>
23411 #include <sys/resource.h>
23413 int main() {
23414 int f = RLIMIT_AS ;
23415 ; return 0; }
23417 if { (eval echo configure:23418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23418 rm -rf conftest*
23419 glibcpp_mresult=1
23420 else
23421 echo "configure: failed program was:" >&5
23422 cat conftest.$ac_ext >&5
23423 rm -rf conftest*
23424 glibcpp_mresult=0
23426 rm -f conftest*
23427 cat >> confdefs.h <<EOF
23428 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23433 # Check for rlimit, setrlimit.
23434 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23435 echo $ac_n "(cached) $ac_c" 1>&6
23436 else
23438 cat > conftest.$ac_ext <<EOF
23439 #line 23440 "configure"
23440 #include "confdefs.h"
23441 #include <unistd.h>
23442 #include <sys/time.h>
23443 #include <sys/resource.h>
23445 int main() {
23446 struct rlimit r; setrlimit(0, &r);
23447 ; return 0; }
23449 if { (eval echo configure:23450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23450 rm -rf conftest*
23451 ac_setrlimit=yes
23452 else
23453 echo "configure: failed program was:" >&5
23454 cat conftest.$ac_ext >&5
23455 rm -rf conftest*
23456 ac_setrlimit=no
23458 rm -f conftest*
23464 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23465 echo "configure:23466: checking for testsuite memory limit support" >&5
23466 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23467 ac_mem_limits=yes
23468 cat >> confdefs.h <<\EOF
23469 #define _GLIBCPP_MEM_LIMITS 1
23472 else
23473 ac_mem_limits=no
23475 echo "$ac_t""$ac_mem_limits" 1>&6
23478 # Look for setenv, so that extended locale tests can be performed.
23480 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23481 echo "configure:23482: checking for setenv declaration" >&5
23482 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23483 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23484 echo $ac_n "(cached) $ac_c" 1>&6
23485 else
23488 ac_ext=C
23489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23490 ac_cpp='$CXXCPP $CPPFLAGS'
23491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23493 cross_compiling=$ac_cv_prog_cxx_cross
23495 cat > conftest.$ac_ext <<EOF
23496 #line 23497 "configure"
23497 #include "confdefs.h"
23498 #include <stdlib.h>
23499 int main() {
23500 setenv(0, 0, 0);
23501 ; return 0; }
23503 if { (eval echo configure:23504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23504 rm -rf conftest*
23505 glibcpp_cv_func_setenv_use=yes
23506 else
23507 echo "configure: failed program was:" >&5
23508 cat conftest.$ac_ext >&5
23509 rm -rf conftest*
23510 glibcpp_cv_func_setenv_use=no
23512 rm -f conftest*
23513 ac_ext=c
23514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23515 ac_cpp='$CPP $CPPFLAGS'
23516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23518 cross_compiling=$ac_cv_prog_cc_cross
23524 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23525 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23526 for ac_func in setenv
23528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23529 echo "configure:23530: checking for $ac_func" >&5
23530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23531 echo $ac_n "(cached) $ac_c" 1>&6
23532 else
23533 cat > conftest.$ac_ext <<EOF
23534 #line 23535 "configure"
23535 #include "confdefs.h"
23536 /* System header to define __stub macros and hopefully few prototypes,
23537 which can conflict with char $ac_func(); below. */
23538 #include <assert.h>
23539 /* Override any gcc2 internal prototype to avoid an error. */
23540 /* We use char because int might match the return type of a gcc2
23541 builtin and then its argument prototype would still apply. */
23542 char $ac_func();
23544 int main() {
23546 /* The GNU C library defines this for functions which it implements
23547 to always fail with ENOSYS. Some functions are actually named
23548 something starting with __ and the normal name is an alias. */
23549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23550 choke me
23551 #else
23552 $ac_func();
23553 #endif
23555 ; return 0; }
23557 if { (eval echo configure:23558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23558 rm -rf conftest*
23559 eval "ac_cv_func_$ac_func=yes"
23560 else
23561 echo "configure: failed program was:" >&5
23562 cat conftest.$ac_ext >&5
23563 rm -rf conftest*
23564 eval "ac_cv_func_$ac_func=no"
23566 rm -f conftest*
23569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23570 echo "$ac_t""yes" 1>&6
23571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23572 cat >> confdefs.h <<EOF
23573 #define $ac_tr_func 1
23576 else
23577 echo "$ac_t""no" 1>&6
23579 done
23584 # Export file names for ABI checking.
23585 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23588 case "$target" in
23589 *-*-cygwin* ) enable_abi_check=no ;;
23590 * ) enable_abi_check=yes ;;
23591 esac
23593 # Don't do ABI checking unless native.
23596 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23597 && test "$enable_abi_check" = yes ; then
23598 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23599 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23600 else
23601 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23602 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23607 # This depends on the possibly-skipped linker test above.
23608 # Check whether --enable-symvers or --disable-symvers was given.
23609 if test "${enable_symvers+set}" = set; then
23610 enableval="$enable_symvers"
23611 case "$enableval" in
23612 yes) enable_symvers=yes ;;
23613 no) enable_symvers=no ;;
23614 # other names here, just as sanity checks
23615 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23616 gnu) enable_symvers=$enableval ;;
23617 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23618 esac
23619 else
23620 enable_symvers=yes
23623 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23624 # don't know enough about $LD to do tricks...
23625 if test x$enable_shared = xno ||
23626 test "x$LD" = x ||
23627 test x$glibcpp_gnu_ld_version = x; then
23628 enable_symvers=no
23631 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23632 if test $enable_symvers != no; then
23633 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23634 echo "configure:23635: checking for shared libgcc" >&5
23635 ac_save_CFLAGS="$CFLAGS"
23636 CFLAGS=' -lgcc_s'
23637 cat > conftest.$ac_ext <<EOF
23638 #line 23639 "configure"
23639 #include "confdefs.h"
23641 int main() {
23642 return 0
23643 ; return 0; }
23645 if { (eval echo configure:23646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23646 rm -rf conftest*
23647 glibcpp_shared_libgcc=yes
23648 else
23649 echo "configure: failed program was:" >&5
23650 cat conftest.$ac_ext >&5
23651 rm -rf conftest*
23652 glibcpp_shared_libgcc=no
23654 rm -f conftest*
23655 CFLAGS="$ac_save_CFLAGS"
23656 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23659 # For GNU ld, we need at least this version. It's 2.12 in the same format
23660 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23661 glibcpp_min_gnu_ld_version=21200
23663 # Check to see if unspecified "yes" value can win, given results
23664 # above.
23665 if test $enable_symvers = yes ; then
23666 if test $with_gnu_ld = yes &&
23667 test $glibcpp_shared_libgcc = yes ;
23668 then
23669 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23670 enable_symvers=gnu
23671 else
23672 ac_test_CFLAGS="${CFLAGS+set}"
23673 ac_save_CFLAGS="$CFLAGS"
23674 CFLAGS='-shared -Wl,--version-script,conftest.map'
23675 enable_symvers=no
23677 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23679 cat > conftest.$ac_ext <<EOF
23680 #line 23681 "configure"
23681 #include "confdefs.h"
23682 int foo;
23683 int main() {
23685 ; return 0; }
23687 if { (eval echo configure:23688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23688 rm -rf conftest*
23689 enable_symvers=gnu
23690 else
23691 echo "configure: failed program was:" >&5
23692 cat conftest.$ac_ext >&5
23694 rm -f conftest*
23695 if test "$ac_test_CFLAGS" = set; then
23696 CFLAGS="$ac_save_CFLAGS"
23697 else
23698 # this is the suspicious part
23699 CFLAGS=''
23701 rm -f conftest.map
23703 else
23704 # just fail for now
23705 enable_symvers=no
23709 case $enable_symvers in
23711 SYMVER_MAP=config/linker-map.dummy
23713 gnu)
23714 SYMVER_MAP=config/linker-map.gnu
23715 cat >> confdefs.h <<\EOF
23716 #define _GLIBCPP_SYMVER 1
23720 esac
23725 if test $enable_symvers != no; then
23726 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23727 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23728 else
23729 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23730 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23732 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23733 echo "configure:23734: checking versioning on shared library symbols" >&5
23734 echo "$ac_t""$enable_symvers" 1>&6
23737 # Propagate the target-specific source directories through the build chain.
23738 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23739 # uses it, and it only gets used in this file.)
23740 OS_INC_SRCDIR=config/${os_include_dir}
23741 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23745 # Set up cross-compile flags
23748 if test "$CANADIAN" = yes; then
23749 CANADIAN_TRUE=
23750 CANADIAN_FALSE='#'
23751 else
23752 CANADIAN_TRUE='#'
23753 CANADIAN_FALSE=
23756 cat > confcache <<\EOF
23757 # This file is a shell script that caches the results of configure
23758 # tests run on this system so they can be shared between configure
23759 # scripts and configure runs. It is not useful on other systems.
23760 # If it contains results you don't want to keep, you may remove or edit it.
23762 # By default, configure uses ./config.cache as the cache file,
23763 # creating it if it does not exist already. You can give configure
23764 # the --cache-file=FILE option to use a different cache file; that is
23765 # what configure does when it calls configure scripts in
23766 # subdirectories, so they share the cache.
23767 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23768 # config.status only pays attention to the cache file if you give it the
23769 # --recheck option to rerun configure.
23772 # The following way of writing the cache mishandles newlines in values,
23773 # but we know of no workaround that is simple, portable, and efficient.
23774 # So, don't put newlines in cache variables' values.
23775 # Ultrix sh set writes to stderr and can't be redirected directly,
23776 # and sets the high bit in the cache file unless we assign to the vars.
23777 (set) 2>&1 |
23778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23779 *ac_space=\ *)
23780 # `set' does not quote correctly, so add quotes (double-quote substitution
23781 # turns \\\\ into \\, and sed turns \\ into \).
23782 sed -n \
23783 -e "s/'/'\\\\''/g" \
23784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23787 # `set' quotes correctly as required by POSIX, so do not add quotes.
23788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23790 esac >> confcache
23791 if cmp -s $cache_file confcache; then
23793 else
23794 if test -w $cache_file; then
23795 echo "updating cache $cache_file"
23796 cat confcache > $cache_file
23797 else
23798 echo "not updating unwritable cache $cache_file"
23801 rm -f confcache
23804 if test "${multilib}" = "yes"; then
23805 multilib_arg="--enable-multilib"
23806 else
23807 multilib_arg=
23810 # Export all the install information
23812 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23813 # exported correctly in GLIBCPP_CONFIGURE.
23814 glibcpp_toolexecdir=no
23815 glibcpp_toolexeclibdir=no
23816 glibcpp_prefixdir=${prefix}
23818 # Process the option --with-gxx-include-dir=<path to include-files directory>
23819 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23820 echo "configure:23821: checking for --with-gxx-include-dir" >&5
23821 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23822 if test "${with_gxx_include_dir+set}" = set; then
23823 withval="$with_gxx_include_dir"
23824 case "${withval}" in
23825 yes)
23826 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23827 gxx_include_dir=no
23830 gxx_include_dir=no
23833 gxx_include_dir=${withval}
23835 esac
23836 else
23837 gxx_include_dir=no
23840 echo "$ac_t""$gxx_include_dir" 1>&6
23842 # Process the option "--enable-version-specific-runtime-libs"
23843 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23844 echo "configure:23845: checking for --enable-version-specific-runtime-libs" >&5
23845 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23846 if test "${enable_version_specific_runtime_libs+set}" = set; then
23847 enableval="$enable_version_specific_runtime_libs"
23848 case "$enableval" in
23849 yes) version_specific_libs=yes ;;
23850 no) version_specific_libs=no ;;
23851 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23852 esac
23853 else
23854 version_specific_libs=no
23856 # Option set, now we can test it.
23857 echo "$ac_t""$version_specific_libs" 1>&6
23859 # Default case for install directory for include files.
23860 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23861 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23864 # Version-specific runtime libs processing.
23865 if test $version_specific_libs = yes; then
23866 # Need the gcc compiler version to know where to install libraries
23867 # and header files if --enable-version-specific-runtime-libs option
23868 # is selected.
23869 if test x"$gxx_include_dir" = x"no"; then
23870 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23872 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23873 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23876 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23877 # Install a library built with a cross compiler in tooldir, not libdir.
23878 if test x"$glibcpp_toolexecdir" = x"no"; then
23879 if test -n "$with_cross_host" &&
23880 test x"$with_cross_host" != x"no"; then
23881 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23882 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23883 else
23884 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23885 glibcpp_toolexeclibdir='$(libdir)'
23887 multi_os_directory=`$CC -print-multi-os-directory`
23888 case $multi_os_directory in
23889 .) ;; # Avoid trailing /.
23890 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23891 esac
23894 echo $ac_n "checking for install location""... $ac_c" 1>&6
23895 echo "configure:23896: checking for install location" >&5
23896 echo "$ac_t""$gxx_include_dir" 1>&6
23904 # Export all the include and flag information to Makefiles.
23906 # Root level of the build directory include sources.
23907 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23909 # Passed down for canadian crosses.
23910 if test x"$CANADIAN" = xyes; then
23911 TOPLEVEL_INCLUDES='-I$(includedir)'
23914 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23916 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23918 if test x"$need_libio" = xyes; then
23919 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23923 # Now, export this to all the little Makefiles....
23930 # Optimization flags that are probably a good idea for thrill-seekers. Just
23931 # uncomment the lines below and make, everything else is ready to go...
23932 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23933 OPTIMIZE_CXXFLAGS=
23936 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23940 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23941 grep "enable shared" > /dev/null; then
23942 LIBSUPCXX_PICFLAGS=-prefer-pic
23943 else
23944 LIBSUPCXX_PICFLAGS=
23948 # Generate the various Makefiles, include files, and scripts.
23949 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23950 # and libsupc++/Makefile.am so that multilib installs will end up
23951 # installed in the correct place. To work around this not being passed
23952 # down from config-ml.in -> top_srcdir/Makefile.am ->
23953 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23954 trap '' 1 2 15
23955 cat > confcache <<\EOF
23956 # This file is a shell script that caches the results of configure
23957 # tests run on this system so they can be shared between configure
23958 # scripts and configure runs. It is not useful on other systems.
23959 # If it contains results you don't want to keep, you may remove or edit it.
23961 # By default, configure uses ./config.cache as the cache file,
23962 # creating it if it does not exist already. You can give configure
23963 # the --cache-file=FILE option to use a different cache file; that is
23964 # what configure does when it calls configure scripts in
23965 # subdirectories, so they share the cache.
23966 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23967 # config.status only pays attention to the cache file if you give it the
23968 # --recheck option to rerun configure.
23971 # The following way of writing the cache mishandles newlines in values,
23972 # but we know of no workaround that is simple, portable, and efficient.
23973 # So, don't put newlines in cache variables' values.
23974 # Ultrix sh set writes to stderr and can't be redirected directly,
23975 # and sets the high bit in the cache file unless we assign to the vars.
23976 (set) 2>&1 |
23977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23978 *ac_space=\ *)
23979 # `set' does not quote correctly, so add quotes (double-quote substitution
23980 # turns \\\\ into \\, and sed turns \\ into \).
23981 sed -n \
23982 -e "s/'/'\\\\''/g" \
23983 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23986 # `set' quotes correctly as required by POSIX, so do not add quotes.
23987 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23989 esac >> confcache
23990 if cmp -s $cache_file confcache; then
23992 else
23993 if test -w $cache_file; then
23994 echo "updating cache $cache_file"
23995 cat confcache > $cache_file
23996 else
23997 echo "not updating unwritable cache $cache_file"
24000 rm -f confcache
24002 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24005 # Let make expand exec_prefix.
24006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24008 # Any assignment to VPATH causes Sun make to only execute
24009 # the first set of double-colon rules, so remove it if not needed.
24010 # If there is a colon in the path, we need to keep it.
24011 if test "x$srcdir" = x.; then
24012 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24015 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24017 DEFS=-DHAVE_CONFIG_H
24019 # Without the "./", some shells look in PATH for config.status.
24020 : ${CONFIG_STATUS=./config.status}
24022 echo creating $CONFIG_STATUS
24023 rm -f $CONFIG_STATUS
24024 cat > $CONFIG_STATUS <<EOF
24025 #! /bin/sh
24026 # Generated automatically by configure.
24027 # Run this file to recreate the current configuration.
24028 # This directory was configured as follows,
24029 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24031 # $0 $ac_configure_args
24033 # Compiler output produced by configure, useful for debugging
24034 # configure, is in ./config.log if it exists.
24036 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24037 for ac_option
24039 case "\$ac_option" in
24040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24041 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24042 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24043 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24044 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24045 exit 0 ;;
24046 -help | --help | --hel | --he | --h)
24047 echo "\$ac_cs_usage"; exit 0 ;;
24048 *) echo "\$ac_cs_usage"; exit 1 ;;
24049 esac
24050 done
24052 ac_given_srcdir=$srcdir
24053 ac_given_INSTALL="$INSTALL"
24055 trap 'rm -fr `echo "Makefile \
24056 include/Makefile src/Makefile \
24057 libmath/Makefile libio/Makefile libsupc++/Makefile \
24058 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24060 cat >> $CONFIG_STATUS <<EOF
24062 # Protect against being on the right side of a sed subst in config.status.
24063 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24064 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24065 $ac_vpsub
24066 $extrasub
24067 s%@SHELL@%$SHELL%g
24068 s%@CFLAGS@%$CFLAGS%g
24069 s%@CPPFLAGS@%$CPPFLAGS%g
24070 s%@CXXFLAGS@%$CXXFLAGS%g
24071 s%@FFLAGS@%$FFLAGS%g
24072 s%@DEFS@%$DEFS%g
24073 s%@LDFLAGS@%$LDFLAGS%g
24074 s%@LIBS@%$LIBS%g
24075 s%@exec_prefix@%$exec_prefix%g
24076 s%@prefix@%$prefix%g
24077 s%@program_transform_name@%$program_transform_name%g
24078 s%@bindir@%$bindir%g
24079 s%@sbindir@%$sbindir%g
24080 s%@libexecdir@%$libexecdir%g
24081 s%@datadir@%$datadir%g
24082 s%@sysconfdir@%$sysconfdir%g
24083 s%@sharedstatedir@%$sharedstatedir%g
24084 s%@localstatedir@%$localstatedir%g
24085 s%@libdir@%$libdir%g
24086 s%@includedir@%$includedir%g
24087 s%@oldincludedir@%$oldincludedir%g
24088 s%@infodir@%$infodir%g
24089 s%@mandir@%$mandir%g
24090 s%@PACKAGE@%$PACKAGE%g
24091 s%@libtool_VERSION@%$libtool_VERSION%g
24092 s%@toplevel_srcdir@%$toplevel_srcdir%g
24093 s%@host@%$host%g
24094 s%@host_alias@%$host_alias%g
24095 s%@host_cpu@%$host_cpu%g
24096 s%@host_vendor@%$host_vendor%g
24097 s%@host_os@%$host_os%g
24098 s%@target@%$target%g
24099 s%@target_alias@%$target_alias%g
24100 s%@target_cpu@%$target_cpu%g
24101 s%@target_vendor@%$target_vendor%g
24102 s%@target_os@%$target_os%g
24103 s%@build@%$build%g
24104 s%@build_alias@%$build_alias%g
24105 s%@build_cpu@%$build_cpu%g
24106 s%@build_vendor@%$build_vendor%g
24107 s%@build_os@%$build_os%g
24108 s%@glibcpp_builddir@%$glibcpp_builddir%g
24109 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24110 s%@AWK@%$AWK%g
24111 s%@LN_S@%$LN_S%g
24112 s%@glibcpp_basedir@%$glibcpp_basedir%g
24113 s%@CC@%$CC%g
24114 s%@glibcpp_CXX@%$glibcpp_CXX%g
24115 s%@AS@%$AS%g
24116 s%@AR@%$AR%g
24117 s%@RANLIB@%$RANLIB%g
24118 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24119 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24120 s%@INSTALL_DATA@%$INSTALL_DATA%g
24121 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24122 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24123 s%@MAINT@%$MAINT%g
24124 s%@EXEEXT@%$EXEEXT%g
24125 s%@VERSION@%$VERSION%g
24126 s%@ACLOCAL@%$ACLOCAL%g
24127 s%@AUTOCONF@%$AUTOCONF%g
24128 s%@AUTOMAKE@%$AUTOMAKE%g
24129 s%@AUTOHEADER@%$AUTOHEADER%g
24130 s%@MAKEINFO@%$MAKEINFO%g
24131 s%@SET_MAKE@%$SET_MAKE%g
24132 s%@OBJEXT@%$OBJEXT%g
24133 s%@STRIP@%$STRIP%g
24134 s%@LIBTOOL@%$LIBTOOL%g
24135 s%@CXXCPP@%$CXXCPP%g
24136 s%@enable_shared@%$enable_shared%g
24137 s%@enable_static@%$enable_static%g
24138 s%@ifGNUmake@%$ifGNUmake%g
24139 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24140 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24141 s%@CPP@%$CPP%g
24142 s%@CSTDIO_H@%$CSTDIO_H%g
24143 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24144 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24145 s%@CCODECVT_C@%$CCODECVT_C%g
24146 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24147 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24148 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24149 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24150 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24151 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24152 s%@libio_la@%$libio_la%g
24153 s%@check_msgfmt@%$check_msgfmt%g
24154 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24155 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24156 s%@glibcpp_localedir@%$glibcpp_localedir%g
24157 s%@USE_NLS@%$USE_NLS%g
24158 s%@CLOCALE_H@%$CLOCALE_H%g
24159 s%@CCODECVT_H@%$CCODECVT_H%g
24160 s%@CMESSAGES_H@%$CMESSAGES_H%g
24161 s%@CCODECVT_CC@%$CCODECVT_CC%g
24162 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24163 s%@CCTYPE_CC@%$CCTYPE_CC%g
24164 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24165 s%@CMONEY_CC@%$CMONEY_CC%g
24166 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24167 s%@CTIME_H@%$CTIME_H%g
24168 s%@CTIME_CC@%$CTIME_CC%g
24169 s%@CLOCALE_CC@%$CLOCALE_CC%g
24170 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24171 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24172 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24173 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24174 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24175 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24176 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24177 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24178 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24179 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24180 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24181 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24182 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24183 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24184 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24185 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24186 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24187 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24188 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24189 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24190 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24191 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24192 s%@WERROR@%$WERROR%g
24193 s%@baseline_file@%$baseline_file%g
24194 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24195 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24196 s%@SYMVER_MAP@%$SYMVER_MAP%g
24197 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24198 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24199 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24200 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24201 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24202 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24203 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24204 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24205 s%@gxx_include_dir@%$gxx_include_dir%g
24206 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24207 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24208 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24209 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24210 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24211 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24212 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24213 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24214 s%@WARN_FLAGS@%$WARN_FLAGS%g
24215 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24217 CEOF
24220 cat >> $CONFIG_STATUS <<\EOF
24222 # Split the substitutions into bite-sized pieces for seds with
24223 # small command number limits, like on Digital OSF/1 and HP-UX.
24224 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24225 ac_file=1 # Number of current file.
24226 ac_beg=1 # First line for current file.
24227 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24228 ac_more_lines=:
24229 ac_sed_cmds=""
24230 while $ac_more_lines; do
24231 if test $ac_beg -gt 1; then
24232 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24233 else
24234 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24236 if test ! -s conftest.s$ac_file; then
24237 ac_more_lines=false
24238 rm -f conftest.s$ac_file
24239 else
24240 if test -z "$ac_sed_cmds"; then
24241 ac_sed_cmds="sed -f conftest.s$ac_file"
24242 else
24243 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24245 ac_file=`expr $ac_file + 1`
24246 ac_beg=$ac_end
24247 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24249 done
24250 if test -z "$ac_sed_cmds"; then
24251 ac_sed_cmds=cat
24255 cat >> $CONFIG_STATUS <<EOF
24257 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24258 include/Makefile src/Makefile \
24259 libmath/Makefile libio/Makefile libsupc++/Makefile \
24260 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24262 cat >> $CONFIG_STATUS <<\EOF
24263 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24265 case "$ac_file" in
24266 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24267 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24268 *) ac_file_in="${ac_file}.in" ;;
24269 esac
24271 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24273 # Remove last slash and all that follows it. Not all systems have dirname.
24274 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24275 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24276 # The file is in a subdirectory.
24277 test ! -d "$ac_dir" && mkdir "$ac_dir"
24278 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24279 # A "../" for each directory in $ac_dir_suffix.
24280 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24281 else
24282 ac_dir_suffix= ac_dots=
24285 case "$ac_given_srcdir" in
24286 .) srcdir=.
24287 if test -z "$ac_dots"; then top_srcdir=.
24288 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24289 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24290 *) # Relative path.
24291 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24292 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24293 esac
24295 case "$ac_given_INSTALL" in
24296 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24297 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24298 esac
24300 echo creating "$ac_file"
24301 rm -f "$ac_file"
24302 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24303 case "$ac_file" in
24304 *Makefile*) ac_comsub="1i\\
24305 # $configure_input" ;;
24306 *) ac_comsub= ;;
24307 esac
24309 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24310 sed -e "$ac_comsub
24311 s%@configure_input@%$configure_input%g
24312 s%@srcdir@%$srcdir%g
24313 s%@top_srcdir@%$top_srcdir%g
24314 s%@INSTALL@%$INSTALL%g
24315 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24316 fi; done
24317 rm -f conftest.s*
24319 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24320 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24322 # ac_d sets the value in "#define NAME VALUE" lines.
24323 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24324 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24325 ac_dC='\3'
24326 ac_dD='%g'
24327 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24328 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24329 ac_uB='\([ ]\)%\1#\2define\3'
24330 ac_uC=' '
24331 ac_uD='\4%g'
24332 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24333 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24334 ac_eB='$%\1#\2define\3'
24335 ac_eC=' '
24336 ac_eD='%g'
24338 if test "${CONFIG_HEADERS+set}" != set; then
24340 cat >> $CONFIG_STATUS <<EOF
24341 CONFIG_HEADERS="config.h"
24343 cat >> $CONFIG_STATUS <<\EOF
24345 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24347 case "$ac_file" in
24348 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24349 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24350 *) ac_file_in="${ac_file}.in" ;;
24351 esac
24353 echo creating $ac_file
24355 rm -f conftest.frag conftest.in conftest.out
24356 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24357 cat $ac_file_inputs > conftest.in
24361 # Transform confdefs.h into a sed script conftest.vals that substitutes
24362 # the proper values into config.h.in to produce config.h. And first:
24363 # Protect against being on the right side of a sed subst in config.status.
24364 # Protect against being in an unquoted here document in config.status.
24365 rm -f conftest.vals
24366 cat > conftest.hdr <<\EOF
24367 s/[\\&%]/\\&/g
24368 s%[\\$`]%\\&%g
24369 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24370 s%ac_d%ac_u%gp
24371 s%ac_u%ac_e%gp
24373 sed -n -f conftest.hdr confdefs.h > conftest.vals
24374 rm -f conftest.hdr
24376 # This sed command replaces #undef with comments. This is necessary, for
24377 # example, in the case of _POSIX_SOURCE, which is predefined and required
24378 # on some systems where configure will not decide to define it.
24379 cat >> conftest.vals <<\EOF
24380 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24383 # Break up conftest.vals because some shells have a limit on
24384 # the size of here documents, and old seds have small limits too.
24386 rm -f conftest.tail
24387 while :
24389 ac_lines=`grep -c . conftest.vals`
24390 # grep -c gives empty output for an empty file on some AIX systems.
24391 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24392 # Write a limited-size here document to conftest.frag.
24393 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24394 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24395 echo 'CEOF
24396 sed -f conftest.frag conftest.in > conftest.out
24397 rm -f conftest.in
24398 mv conftest.out conftest.in
24399 ' >> $CONFIG_STATUS
24400 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24401 rm -f conftest.vals
24402 mv conftest.tail conftest.vals
24403 done
24404 rm -f conftest.vals
24406 cat >> $CONFIG_STATUS <<\EOF
24407 rm -f conftest.frag conftest.h
24408 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24409 cat conftest.in >> conftest.h
24410 rm -f conftest.in
24411 if cmp -s $ac_file conftest.h 2>/dev/null; then
24412 echo "$ac_file is unchanged"
24413 rm -f conftest.h
24414 else
24415 # Remove last slash and all that follows it. Not all systems have dirname.
24416 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24417 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24418 # The file is in a subdirectory.
24419 test ! -d "$ac_dir" && mkdir "$ac_dir"
24421 rm -f $ac_file
24422 mv conftest.h $ac_file
24424 fi; done
24427 cat >> $CONFIG_STATUS <<EOF
24429 srcdir=${srcdir}
24430 host=${host}
24431 target=${target}
24432 with_target_subdir=${with_target_subdir}
24433 with_build_subdir=${with_build_subdir}
24434 with_multisubdir=${with_multisubdir}
24435 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24436 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24437 glibcpp_basedir=${glibcpp_basedir}
24438 CC="${CC}"
24439 CXX="${CXX}"
24440 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24443 cat >> $CONFIG_STATUS <<\EOF
24444 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24445 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24446 if test -n "$CONFIG_FILES"; then
24447 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24448 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24449 # Ony modify Makefiles that are just being created.
24450 case " $CONFIG_FILES" in
24451 *" Makefile"*)
24452 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24454 esac
24455 case $CONFIG_FILES in
24456 *src/Makefile*)
24457 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24459 esac
24460 case $CONFIG_FILES in
24461 *libsupc++/Makefile*)
24462 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24464 esac
24467 chmod +x mkcheck
24468 chmod +x testsuite_flags
24469 exit 0
24471 chmod +x $CONFIG_STATUS
24472 rm -fr confdefs* $ac_clean_files
24473 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24477 # Sanity checking & User-visible messages.
24478 # Checks down here, otherwise they get scrolled off before
24479 # the user will notice.
24481 # Trying to get more people to read documentation. Possibly remove
24482 # check and warn all the time. There is no "informational" AC_MSG_
24483 # macro, so these are going to be printed even when --quiet/--silent
24484 # is given.
24485 if test ! -f stamp-sanity-warned; then
24486 touch stamp-sanity-warned
24487 echo ""
24488 echo "Please make certain that you read the installation information here:"
24489 echo " faster => ${srcdir}/docs/html/install.html"
24490 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24491 echo ""
24492 echo "and the configuration information here:"
24493 echo " faster => ${srcdir}/docs/html/configopts.html"
24494 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24495 echo ""
24496 echo "before proceeding with ${_cv_gnu_make_command}."
24497 echo ""