Add an UNSPEC_PROLOGUE_USE to prevent the link register from being considered dead.
[official-gcc.git] / libstdc++-v3 / configure
blob87442c7c177740a340c6c0e8157a8b211c0da249
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=5:2: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 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments. Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516 if test "$*" = "X"; then
1517 # -L didn't work.
1518 set X `ls -t $srcdir/configure conftestfile`
1520 if test "$*" != "X $srcdir/configure conftestfile" \
1521 && test "$*" != "X conftestfile $srcdir/configure"; then
1523 # If neither matched, then we have a broken ls. This can happen
1524 # if, for instance, CONFIG_SHELL is bash and it inherits a
1525 # broken ls alias from the environment. This has actually
1526 # happened. Such a system could not be considered "sane".
1527 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1531 test "$2" = conftestfile
1533 then
1534 # Ok.
1536 else
1537 { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543 program_transform_name=
1544 else
1545 # Double any \ or $. echo might interpret backslashes.
1546 cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550 rm -f conftestsed
1552 test "$program_prefix" != NONE &&
1553 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftestmake <<\EOF
1568 all:
1569 @echo 'ac_maketemp="${MAKE}"'
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574 eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576 eval ac_cv_prog_make_${ac_make}_set=no
1578 rm -f conftestmake
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 SET_MAKE=
1583 else
1584 echo "$ac_t""no" 1>&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1589 PACKAGE=$PACKAGE
1591 VERSION=$gcc_version
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf. Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613 ACLOCAL=aclocal
1614 echo "$ac_t""found" 1>&6
1615 else
1616 ACLOCAL="$missing_dir/missing aclocal"
1617 echo "$ac_t""missing" 1>&6
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf. Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626 AUTOCONF=autoconf
1627 echo "$ac_t""found" 1>&6
1628 else
1629 AUTOCONF="$missing_dir/missing autoconf"
1630 echo "$ac_t""missing" 1>&6
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf. Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639 AUTOMAKE=automake
1640 echo "$ac_t""found" 1>&6
1641 else
1642 AUTOMAKE="$missing_dir/missing automake"
1643 echo "$ac_t""missing" 1>&6
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652 AUTOHEADER=autoheader
1653 echo "$ac_t""found" 1>&6
1654 else
1655 AUTOHEADER="$missing_dir/missing autoheader"
1656 echo "$ac_t""missing" 1>&6
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf. Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665 MAKEINFO=makeinfo
1666 echo "$ac_t""found" 1>&6
1667 else
1668 MAKEINFO="$missing_dir/missing makeinfo"
1669 echo "$ac_t""missing" 1>&6
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680 enableval="$enable_shared"
1681 p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1686 enable_shared=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_shared=yes
1693 done
1694 IFS="$ac_save_ifs"
1696 esac
1697 else
1698 enable_shared=yes
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703 enableval="$enable_static"
1704 p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1709 enable_static=no
1710 # Look at the argument we got. We use all the common list separators.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712 for pkg in $enableval; do
1713 if test "X$pkg" = "X$p"; then
1714 enable_static=yes
1716 done
1717 IFS="$ac_save_ifs"
1719 esac
1720 else
1721 enable_static=yes
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726 enableval="$enable_fast_install"
1727 p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1732 enable_fast_install=no
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X$pkg" = "X$p"; then
1737 enable_fast_install=yes
1739 done
1740 IFS="$ac_save_ifs"
1742 esac
1743 else
1744 enable_fast_install=yes
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749 withval="$with_gnu_ld"
1750 test "$withval" = no || with_gnu_ld=yes
1751 else
1752 with_gnu_ld=no
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757 # Check if gcc -print-prog-name=ld gives a path.
1758 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760 case $host in
1761 *-*-mingw*)
1762 # gcc leaves a trailing carriage return which upsets mingw
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766 esac
1767 case $ac_prog in
1768 # Accept absolute paths.
1769 [\\/]* | [A-Za-z]:[\\/]*)
1770 re_direlt='/[^/][^/]*/\.\./'
1771 # Canonicalize the path of ld
1772 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775 done
1776 test -z "$LD" && LD="$ac_prog"
1779 # If it fails, then pretend we aren't using GCC.
1780 ac_prog=ld
1783 # If it is relative, then search for the first ld in PATH.
1784 with_gnu_ld=unknown
1786 esac
1787 elif test "$with_gnu_ld" = yes; then
1788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 if test -z "$LD"; then
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802 lt_cv_path_LD="$ac_dir/$ac_prog"
1803 # Check to see if the program is GNU ld. I'd rather use --version,
1804 # but apparently some GNU ld's only accept -v.
1805 # Break only if it was the GNU/non-GNU ld that we prefer.
1806 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807 test "$with_gnu_ld" != no && break
1808 else
1809 test "$with_gnu_ld" != yes && break
1812 done
1813 IFS="$ac_save_ifs"
1814 else
1815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821 echo "$ac_t""$LD" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833 lt_cv_prog_gnu_ld=yes
1834 else
1835 lt_cv_prog_gnu_ld=no
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 lt_cv_ld_reload_flag='-r'
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 if test -n "$NM"; then
1861 # Let the user override the test.
1862 lt_cv_path_NM="$NM"
1863 else
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866 test -z "$ac_dir" && ac_dir=.
1867 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869 # Check to see if the nm accepts a BSD-compat flag.
1870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871 # nm: unknown option "B" ignored
1872 # Tru64's nm complains that /dev/null is an invalid object file
1873 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874 lt_cv_path_NM="$tmp_nm -B"
1875 break
1876 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877 lt_cv_path_NM="$tmp_nm -p"
1878 break
1879 else
1880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881 continue # so that we can try to find one that supports BSD flags
1884 done
1885 IFS="$ac_save_ifs"
1886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1912 case $host_os in
1913 aix*)
1914 lt_cv_deplibs_check_method=pass_all
1917 beos*)
1918 lt_cv_deplibs_check_method=pass_all
1921 bsdi4*)
1922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923 lt_cv_file_magic_cmd='/usr/bin/file -L'
1924 lt_cv_file_magic_test_file=/shlib/libc.so
1927 cygwin* | mingw* |pw32*)
1928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929 lt_cv_file_magic_cmd='$OBJDUMP -f'
1932 darwin* | rhapsody*)
1933 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 case "$host_os" in
1936 rhapsody* | darwin1.012)
1937 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939 *) # Darwin 1.3 on
1940 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942 esac
1945 freebsd* )
1946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947 case $host_cpu in
1948 i*86 )
1949 # Not sure whether the presence of OpenBSD here was a mistake.
1950 # Let's accept both of them until this is cleared up.
1951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952 lt_cv_file_magic_cmd=/usr/bin/file
1953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955 esac
1956 else
1957 lt_cv_deplibs_check_method=pass_all
1961 gnu*)
1962 lt_cv_deplibs_check_method=pass_all
1965 hpux10.20*|hpux11*)
1966 case $host_cpu in
1967 hppa*)
1968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969 lt_cv_file_magic_cmd=/usr/bin/file
1970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 ia64*)
1973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977 esac
1980 irix5* | irix6*)
1981 case $host_os in
1982 irix5*)
1983 # this will be overridden with pass_all, but let us keep it just in case
1984 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1987 case $LD in
1988 *-32|*"-32 ") libmagic=32-bit;;
1989 *-n32|*"-n32 ") libmagic=N32;;
1990 *-64|*"-64 ") libmagic=64-bit;;
1991 *) libmagic=never-match;;
1992 esac
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996 esac
1997 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998 lt_cv_deplibs_check_method=pass_all
2001 # This must be Linux ELF.
2002 linux-gnu*)
2003 case $host_cpu in
2004 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2005 lt_cv_deplibs_check_method=pass_all ;;
2007 # glibc up to 2.1.1 does not perform some relocations on ARM
2008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009 esac
2010 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2013 netbsd*)
2014 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2015 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2016 else
2017 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2021 newsos6)
2022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023 lt_cv_file_magic_cmd=/usr/bin/file
2024 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2027 osf3* | osf4* | osf5*)
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030 lt_cv_file_magic_test_file=/shlib/libc.so
2031 lt_cv_deplibs_check_method=pass_all
2034 sco3.2v5*)
2035 lt_cv_deplibs_check_method=pass_all
2038 solaris*)
2039 lt_cv_deplibs_check_method=pass_all
2040 lt_cv_file_magic_test_file=/lib/libc.so
2043 sysv5uw[78]* | sysv4*uw2*)
2044 lt_cv_deplibs_check_method=pass_all
2047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048 case $host_vendor in
2049 ncr)
2050 lt_cv_deplibs_check_method=pass_all
2052 motorola)
2053 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]'
2054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056 esac
2058 esac
2062 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063 file_magic_cmd=$lt_cv_file_magic_cmd
2064 deplibs_check_method=$lt_cv_deplibs_check_method
2066 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2067 echo "configure:2068: checking for object suffix" >&5
2068 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 rm -f conftest*
2072 echo 'int i = 1;' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074 for ac_file in conftest.*; do
2075 case $ac_file in
2076 *.c) ;;
2077 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078 esac
2079 done
2080 else
2081 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 rm -f conftest*
2086 echo "$ac_t""$ac_cv_objext" 1>&6
2087 OBJEXT=$ac_cv_objext
2088 ac_objext=$ac_cv_objext
2090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092 # Only perform the check for file, if the check method requires it
2093 case $deplibs_check_method in
2094 file_magic*)
2095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2096 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2097 echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
2098 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 case $MAGIC_CMD in
2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105 ?:/*)
2106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2109 ac_save_MAGIC_CMD="$MAGIC_CMD"
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 ac_dummy="/usr/bin:$PATH"
2112 for ac_dir in $ac_dummy; do
2113 test -z "$ac_dir" && ac_dir=.
2114 if test -f $ac_dir/${ac_tool_prefix}file; then
2115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2116 if test -n "$file_magic_test_file"; then
2117 case $deplibs_check_method in
2118 "file_magic "*)
2119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122 egrep "$file_magic_regex" > /dev/null; then
2124 else
2125 cat <<EOF 1>&2
2127 *** Warning: the command libtool uses to detect shared libraries,
2128 *** $file_magic_cmd, produces output that libtool cannot recognize.
2129 *** The result is that libtool may fail to recognize shared libraries
2130 *** as such. This will affect the creation of libtool libraries that
2131 *** depend on shared libraries, but programs linked with such libtool
2132 *** libraries will work regardless of this problem. Nevertheless, you
2133 *** may want to report the problem to your system manager and/or to
2134 *** bug-libtool@gnu.org
2137 fi ;;
2138 esac
2140 break
2142 done
2143 IFS="$ac_save_ifs"
2144 MAGIC_CMD="$ac_save_MAGIC_CMD"
2146 esac
2149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150 if test -n "$MAGIC_CMD"; then
2151 echo "$ac_t""$MAGIC_CMD" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2156 if test -z "$lt_cv_path_MAGIC_CMD"; then
2157 if test -n "$ac_tool_prefix"; then
2158 echo $ac_n "checking for file""... $ac_c" 1>&6
2159 echo "configure:2160: checking for file" >&5
2160 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 case $MAGIC_CMD in
2165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167 ?:/*)
2168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2171 ac_save_MAGIC_CMD="$MAGIC_CMD"
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="/usr/bin:$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/file; then
2177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2178 if test -n "$file_magic_test_file"; then
2179 case $deplibs_check_method in
2180 "file_magic "*)
2181 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184 egrep "$file_magic_regex" > /dev/null; then
2186 else
2187 cat <<EOF 1>&2
2189 *** Warning: the command libtool uses to detect shared libraries,
2190 *** $file_magic_cmd, produces output that libtool cannot recognize.
2191 *** The result is that libtool may fail to recognize shared libraries
2192 *** as such. This will affect the creation of libtool libraries that
2193 *** depend on shared libraries, but programs linked with such libtool
2194 *** libraries will work regardless of this problem. Nevertheless, you
2195 *** may want to report the problem to your system manager and/or to
2196 *** bug-libtool@gnu.org
2199 fi ;;
2200 esac
2202 break
2204 done
2205 IFS="$ac_save_ifs"
2206 MAGIC_CMD="$ac_save_MAGIC_CMD"
2208 esac
2211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212 if test -n "$MAGIC_CMD"; then
2213 echo "$ac_t""$MAGIC_CMD" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2218 else
2219 MAGIC_CMD=:
2225 esac
2227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 if test -n "$RANLIB"; then
2235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236 else
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2238 ac_dummy="$PATH"
2239 for ac_dir in $ac_dummy; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f $ac_dir/$ac_word; then
2242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2249 RANLIB="$ac_cv_prog_RANLIB"
2250 if test -n "$RANLIB"; then
2251 echo "$ac_t""$RANLIB" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2257 if test -z "$ac_cv_prog_RANLIB"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "ranlib", so it can be a program name with args.
2260 set dummy ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266 if test -n "$RANLIB"; then
2267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268 else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 ac_dummy="$PATH"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_prog_RANLIB="ranlib"
2275 break
2277 done
2278 IFS="$ac_save_ifs"
2279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284 echo "$ac_t""$RANLIB" 1>&6
2285 else
2286 echo "$ac_t""no" 1>&6
2289 else
2290 RANLIB=":"
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}strip; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 break
2312 done
2313 IFS="$ac_save_ifs"
2316 STRIP="$ac_cv_prog_STRIP"
2317 if test -n "$STRIP"; then
2318 echo "$ac_t""$STRIP" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 if test -n "$STRIP"; then
2334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335 else
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_STRIP="strip"
2342 break
2344 done
2345 IFS="$ac_save_ifs"
2346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351 echo "$ac_t""$STRIP" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2356 else
2357 STRIP=":"
2362 # Check for any special flags to pass to ltconfig.
2363 libtool_flags="--cache-file=$cache_file"
2364 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2367 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2369 libtool_flags="$libtool_flags --enable-dlopen"
2371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372 if test "${enable_libtool_lock+set}" = set; then
2373 enableval="$enable_libtool_lock"
2377 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380 # Check whether --with-pic or --without-pic was given.
2381 if test "${with_pic+set}" = set; then
2382 withval="$with_pic"
2383 pic_mode="$withval"
2384 else
2385 pic_mode=default
2388 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391 # Some flags need to be propagated to the compiler or linker for good
2392 # libtool support.
2393 case $host in
2394 *-*-irix6*)
2395 # Find out which ABI we are using.
2396 echo '#line 2397 "configure"' > conftest.$ac_ext
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 case `/usr/bin/file conftest.$ac_objext` in
2399 *32-bit*)
2400 LD="${LD-ld} -32"
2402 *N32*)
2403 LD="${LD-ld} -n32"
2405 *64-bit*)
2406 LD="${LD-ld} -64"
2408 esac
2410 rm -rf conftest*
2413 ia64-*-hpux*)
2414 # Find out which ABI we are using.
2415 echo 'int i;' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 case "`/usr/bin/file conftest.o`" in
2418 *ELF-32*)
2419 HPUX_IA64_MODE="32"
2421 *ELF-64*)
2422 HPUX_IA64_MODE="64"
2424 esac
2426 rm -rf conftest*
2429 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2430 # Find out which ABI we are using.
2431 echo 'int i;' > conftest.$ac_ext
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 case "`/usr/bin/file conftest.o`" in
2434 *32-bit*)
2435 case $host in
2436 x86_64-*linux*)
2437 LD="${LD-ld} -m elf_i386"
2439 ppc64-*linux*)
2440 LD="${LD-ld} -m elf32ppclinux"
2442 s390x-*linux*)
2443 LD="${LD-ld} -m elf_s390"
2445 sparc64-*linux*)
2446 LD="${LD-ld} -m elf32_sparc"
2448 esac
2450 *64-bit*)
2451 case $host in
2452 x86_64-*linux*)
2453 LD="${LD-ld} -m elf_x86_64"
2455 ppc*-*linux*|powerpc*-*linux*)
2456 LD="${LD-ld} -m elf64ppc"
2458 s390*-*linux*)
2459 LD="${LD-ld} -m elf64_s390"
2461 sparc*-*linux*)
2462 LD="${LD-ld} -m elf64_sparc"
2464 esac
2466 esac
2468 rm -rf conftest*
2471 *-*-sco3.2v5*)
2472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473 SAVE_CFLAGS="$CFLAGS"
2474 CFLAGS="$CFLAGS -belf"
2475 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2481 ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2492 int main() {
2494 ; return 0; }
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 rm -rf conftest*
2498 lt_cv_cc_needs_belf=yes
2499 else
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 lt_cv_cc_needs_belf=no
2505 rm -f conftest*
2506 ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518 CFLAGS="$SAVE_CFLAGS"
2523 esac
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531 ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537 CXXCPP="${CXX-g++} -E"
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2548 else
2549 echo "$ac_err" >&5
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 CXXCPP=/lib/cpp
2555 rm -f conftest*
2556 ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs. It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already. You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593 *ac_space=\ *)
2594 # `set' does not quote correctly, so add quotes (double-quote substitution
2595 # turns \\\\ into \\, and sed turns \\ into \).
2596 sed -n \
2597 -e "s/'/'\\\\''/g" \
2598 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2601 # `set' quotes correctly as required by POSIX, so do not add quotes.
2602 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2604 esac >> confcache
2605 if cmp -s $cache_file confcache; then
2607 else
2608 if test -w $cache_file; then
2609 echo "updating cache $cache_file"
2610 cat confcache > $cache_file
2611 else
2612 echo "not updating unwritable cache $cache_file"
2615 rm -f confcache
2618 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631 echo "loading cache $cache_file"
2632 . $cache_file
2633 else
2634 echo "creating cache $cache_file"
2635 > $cache_file
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 _cv_gnu_make_command='' ;
2687 for a in "${MAKE-make}" make gmake gnumake ; do
2688 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689 then
2690 _cv_gnu_make_command=$a ;
2691 break;
2693 done ;
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698 if test "x$_cv_gnu_make_command" != "x" ; then
2699 ifGNUmake='' ;
2700 else
2701 ifGNUmake='#' ;
2706 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2707 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2708 echo "configure:2709: checking how to run the C preprocessor" >&5
2709 # On Suns, sometimes $CPP names a directory.
2710 if test -n "$CPP" && test -d "$CPP"; then
2711 CPP=
2713 if test -z "$CPP"; then
2714 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 # This must be in double quotes, not single quotes, because CPP may get
2718 # substituted into the Makefile and "${CC-cc}" will confuse make.
2719 CPP="${CC-cc} -E"
2720 # On the NeXT, cc -E runs the code through the compiler's parser,
2721 # not just through cpp.
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <assert.h>
2726 Syntax Error
2728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2733 else
2734 echo "$ac_err" >&5
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 rm -rf conftest*
2738 CPP="${CC-cc} -E -traditional-cpp"
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <assert.h>
2743 Syntax Error
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 else
2751 echo "$ac_err" >&5
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 rm -rf conftest*
2755 CPP="${CC-cc} -nologo -E"
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <assert.h>
2760 Syntax Error
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2767 else
2768 echo "$ac_err" >&5
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 rm -rf conftest*
2772 CPP=/lib/cpp
2774 rm -f conftest*
2776 rm -f conftest*
2778 rm -f conftest*
2779 ac_cv_prog_CPP="$CPP"
2781 CPP="$ac_cv_prog_CPP"
2782 else
2783 ac_cv_prog_CPP="$CPP"
2785 echo "$ac_t""$CPP" 1>&6
2788 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2789 echo "configure:2790: checking for cstdio to use" >&5
2790 # Check whether --enable-cstdio or --disable-cstdio was given.
2791 if test "${enable_cstdio+set}" = set; then
2792 enableval="$enable_cstdio"
2793 if test x$enable_cstdio = xno; then
2794 enable_cstdio=stdio
2796 else
2797 enable_cstdio=stdio
2801 enable_cstdio_flag=$enable_cstdio
2803 case x${enable_cstdio_flag} in
2804 xlibio)
2805 CSTDIO_H=config/io/c_io_libio.h
2806 BASIC_FILE_H=config/io/basic_file_libio.h
2807 BASIC_FILE_CC=config/io/basic_file_libio.cc
2808 echo "$ac_t""libio" 1>&6
2810 # see if we are on a system with libio native (ie, linux)
2811 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2813 echo "configure:2814: checking for libio.h" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2816 else
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <libio.h>
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826 rm -rf conftest*
2827 eval "ac_cv_header_$ac_safe=yes"
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 eval "ac_cv_header_$ac_safe=no"
2835 rm -f conftest*
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 has_libio=yes
2840 else
2841 echo "$ac_t""no" 1>&6
2842 has_libio=no
2846 # Need to check and see what version of glibc is being used. If
2847 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2848 # compile most of libio for linux systems.
2849 if test x$has_libio = x"yes"; then
2850 case "$target" in
2851 *-*-linux*)
2852 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2853 echo "configure:2854: checking for glibc version >= 2.2" >&5
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2858 #include <features.h>
2859 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2861 #endif
2864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2865 egrep "ok" >/dev/null 2>&1; then
2866 rm -rf conftest*
2867 glibc_satisfactory=yes
2868 else
2869 rm -rf conftest*
2870 glibc_satisfactory=no
2872 rm -f conftest*
2874 echo "$ac_t""$glibc_satisfactory" 1>&6
2876 esac
2878 # XXX at the moment, admit defeat and force the recompilation
2879 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2880 glibc_satisfactory=no
2882 if test x$glibc_satisfactory = x"yes"; then
2883 need_libio=no
2884 need_wlibio=no
2885 else
2886 need_libio=yes
2887 # bkoz XXX need to add checks to enable this
2888 # pme XXX here's a first pass at such a check
2889 if test x$enable_c_mbchar != xno; then
2890 need_wlibio=yes
2891 else
2892 need_wlibio=no
2896 else
2897 # Using libio, but <libio.h> doesn't exist on the target system. . .
2898 need_libio=yes
2899 # bkoz XXX need to add checks to enable this
2900 # pme XXX here's a first pass at such a check
2901 if test x$enable_c_mbchar != xno; then
2902 need_wlibio=yes
2903 else
2904 need_wlibio=no
2908 xstdio | x | xno | xnone | xyes)
2909 # default
2910 CSTDIO_H=config/io/c_io_stdio.h
2911 BASIC_FILE_H=config/io/basic_file_stdio.h
2912 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2913 echo "$ac_t""stdio" 1>&6
2915 # We're not using stdio.
2916 need_libio=no
2917 need_wlibio=no
2920 echo "$enable_cstdio is an unknown io package" 1>&2
2921 exit 1
2923 esac
2928 # 2000-08-04 bkoz hack
2929 CCODECVT_C=config/io/c_io_libio_codecvt.c
2931 # 2000-08-04 bkoz hack
2935 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2936 GLIBCPP_BUILD_LIBIO_TRUE=
2937 GLIBCPP_BUILD_LIBIO_FALSE='#'
2938 else
2939 GLIBCPP_BUILD_LIBIO_TRUE='#'
2940 GLIBCPP_BUILD_LIBIO_FALSE=
2944 if test "$need_libio" = yes; then
2945 GLIBCPP_NEED_LIBIO_TRUE=
2946 GLIBCPP_NEED_LIBIO_FALSE='#'
2947 else
2948 GLIBCPP_NEED_LIBIO_TRUE='#'
2949 GLIBCPP_NEED_LIBIO_FALSE=
2953 if test "$need_wlibio" = yes; then
2954 GLIBCPP_NEED_WLIBIO_TRUE=
2955 GLIBCPP_NEED_WLIBIO_FALSE='#'
2956 else
2957 GLIBCPP_NEED_WLIBIO_TRUE='#'
2958 GLIBCPP_NEED_WLIBIO_FALSE=
2960 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2961 libio_la=../libio/libio.la
2962 else
2963 libio_la=
2968 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2969 echo "configure:2970: checking for clocale to use" >&5
2970 # Check whether --enable-clocale or --disable-clocale was given.
2971 if test "${enable_clocale+set}" = set; then
2972 enableval="$enable_clocale"
2973 if test x$enable_clocale = xno; then
2974 enable_clocale=no
2976 else
2977 enable_clocale=no
2981 enable_clocale_flag=$enable_clocale
2983 if test x$enable_clocale_flag = xno; then
2984 case x${target_os} in
2985 xlinux* | xgnu*)
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2990 #include <features.h>
2991 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2992 _GLIBCPP_ok
2993 #endif
2996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2997 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2998 rm -rf conftest*
2999 enable_clocale_flag=gnu
3000 else
3001 rm -rf conftest*
3002 enable_clocale_flag=generic
3004 rm -f conftest*
3007 # Test for bugs early in glibc-2.2.x series
3008 if test x$enable_clocale_flag = xgnu; then
3009 if test "$cross_compiling" = yes; then
3010 enable_clocale_flag=generic
3011 else
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3016 #define _GNU_SOURCE 1
3017 #include <locale.h>
3018 #include <string.h>
3019 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3020 extern __typeof(newlocale) __newlocale;
3021 extern __typeof(duplocale) __duplocale;
3022 extern __typeof(strcoll_l) __strcoll_l;
3023 #endif
3024 int main()
3026 const char __one[] = "Äuglein Augmen";
3027 const char __two[] = "Äuglein";
3028 int i;
3029 int j;
3030 __locale_t loc;
3031 __locale_t loc_dup;
3032 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3033 loc_dup = __duplocale(loc);
3034 i = __strcoll_l(__one, __two, loc);
3035 j = __strcoll_l(__one, __two, loc_dup);
3036 return 0;
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3041 then
3042 enable_clocale_flag=gnu
3043 else
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 rm -fr conftest*
3047 enable_clocale_flag=generic
3049 rm -fr conftest*
3054 # ... at some point put __strxfrm_l tests in as well.
3057 enable_clocale_flag=generic
3059 esac
3062 # Check whether --enable-nls or --disable-nls was given.
3063 if test "${enable_nls+set}" = set; then
3064 enableval="$enable_nls"
3066 else
3067 enable_nls=yes
3070 USE_NLS=no
3072 case x${enable_clocale_flag} in
3073 xgeneric)
3074 echo "$ac_t""generic" 1>&6
3076 CLOCALE_H=config/locale/generic/c_locale.h
3077 CLOCALE_CC=config/locale/generic/c_locale.cc
3078 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3079 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3080 CCOLLATE_CC=config/locale/generic/collate_members.cc
3081 CCTYPE_CC=config/locale/generic/ctype_members.cc
3082 CMESSAGES_H=config/locale/generic/messages_members.h
3083 CMESSAGES_CC=config/locale/generic/messages_members.cc
3084 CMONEY_CC=config/locale/generic/monetary_members.cc
3085 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3086 CTIME_H=config/locale/generic/time_members.h
3087 CTIME_CC=config/locale/generic/time_members.cc
3088 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3090 xgnu)
3091 echo "$ac_t""gnu" 1>&6
3093 # Declare intention to use gettext, and add support for specific
3094 # languages.
3095 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3096 ALL_LINGUAS="de fr"
3098 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3099 # Extract the first word of "msgfmt", so it can be a program name with args.
3100 set dummy msgfmt; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 if test -n "$check_msgfmt"; then
3107 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3108 else
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3110 ac_dummy="$PATH"
3111 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 if test -f $ac_dir/$ac_word; then
3114 ac_cv_prog_check_msgfmt="yes"
3115 break
3117 done
3118 IFS="$ac_save_ifs"
3119 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3122 check_msgfmt="$ac_cv_prog_check_msgfmt"
3123 if test -n "$check_msgfmt"; then
3124 echo "$ac_t""$check_msgfmt" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3129 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3130 USE_NLS=yes
3132 # Export the build objects.
3133 for ling in $ALL_LINGUAS; do \
3134 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3135 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3136 done
3140 CLOCALE_H=config/locale/gnu/c_locale.h
3141 CLOCALE_CC=config/locale/gnu/c_locale.cc
3142 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3143 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3144 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3145 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3146 CMESSAGES_H=config/locale/gnu/messages_members.h
3147 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3148 CMONEY_CC=config/locale/gnu/monetary_members.cc
3149 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3150 CTIME_H=config/locale/gnu/time_members.h
3151 CTIME_CC=config/locale/gnu/time_members.cc
3152 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3154 xieee_1003.1-2001)
3155 echo "$ac_t""generic" 1>&6
3157 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3158 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3159 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3160 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3161 CCOLLATE_CC=config/locale/generic/collate_members.cc
3162 CCTYPE_CC=config/locale/generic/ctype_members.cc
3163 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3164 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3165 CMONEY_CC=config/locale/generic/monetary_members.cc
3166 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3167 CTIME_H=config/locale/generic/time_members.h
3168 CTIME_CC=config/locale/generic/time_members.cc
3169 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3172 echo "$enable_clocale is an unknown locale package" 1>&2
3173 exit 1
3175 esac
3177 # This is where the testsuite looks for locale catalogs, using the
3178 # -DLOCALEDIR define during testsuite compilation.
3179 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3197 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3198 echo "configure:3199: checking for c header strategy to use" >&5
3199 # Check whether --enable-cheaders or --disable-cheaders was given.
3200 if test "${enable_cheaders+set}" = set; then
3201 enableval="$enable_cheaders"
3203 case "$enableval" in
3205 enable_cheaders=c
3207 c_std)
3208 enable_cheaders=c_std
3210 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3212 esac
3213 else
3214 enable_cheaders=c_std
3217 echo "$ac_t""$enable_cheaders" 1>&6
3219 case "$enable_cheaders" in
3220 c_std)
3221 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3224 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3226 esac
3231 if test "$enable_cheaders" = c; then
3232 GLIBCPP_C_HEADERS_C_TRUE=
3233 GLIBCPP_C_HEADERS_C_FALSE='#'
3234 else
3235 GLIBCPP_C_HEADERS_C_TRUE='#'
3236 GLIBCPP_C_HEADERS_C_FALSE=
3240 if test "$enable_cheaders" = c_std; then
3241 GLIBCPP_C_HEADERS_C_STD_TRUE=
3242 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3243 else
3244 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3245 GLIBCPP_C_HEADERS_C_STD_FALSE=
3249 if test "$c_compatibility" = yes; then
3250 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3251 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3252 else
3253 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3254 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3257 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3258 if test "${enable_c_mbchar+set}" = set; then
3259 enableval="$enable_c_mbchar"
3260 case "$enableval" in
3261 yes) enable_c_mbchar=yes ;;
3262 no) enable_c_mbchar=no ;;
3263 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3264 esac
3265 else
3266 enable_c_mbchar=yes
3270 # Check whether --enable-c99 or --disable-c99 was given.
3271 if test "${enable_c99+set}" = set; then
3272 enableval="$enable_c99"
3273 case "$enableval" in
3274 yes) enable_c99=yes ;;
3275 no) enable_c99=no ;;
3276 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3277 esac
3278 else
3279 enable_c99=yes
3283 ac_ext=C
3284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3285 ac_cpp='$CXXCPP $CPPFLAGS'
3286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3288 cross_compiling=$ac_cv_prog_cxx_cross
3291 # Check for the existence of <math.h> functions used if C99 is enabled.
3292 ac_c99_math=yes;
3293 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3294 echo "configure:3295: checking for ISO C99 support in <math.h>" >&5
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <math.h>
3299 int main() {
3300 fpclassify(0.0);
3301 ; return 0; }
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 else
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 rm -rf conftest*
3309 ac_c99_math=no
3311 rm -f conftest*
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 #include <math.h>
3316 int main() {
3317 isfinite(0.0);
3318 ; return 0; }
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3322 else
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
3326 ac_c99_math=no
3328 rm -f conftest*
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <math.h>
3333 int main() {
3334 isinf(0.0);
3335 ; return 0; }
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339 else
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3342 rm -rf conftest*
3343 ac_c99_math=no
3345 rm -f conftest*
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <math.h>
3350 int main() {
3351 isnan(0.0);
3352 ; return 0; }
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3356 else
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 ac_c99_math=no
3362 rm -f conftest*
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <math.h>
3367 int main() {
3368 isnormal(0.0);
3369 ; return 0; }
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3373 else
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3376 rm -rf conftest*
3377 ac_c99_math=no
3379 rm -f conftest*
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <math.h>
3384 int main() {
3385 signbit(0.0);
3386 ; return 0; }
3388 if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3390 else
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 rm -rf conftest*
3394 ac_c99_math=no
3396 rm -f conftest*
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <math.h>
3401 int main() {
3402 isgreater(0.0,0.0);
3403 ; return 0; }
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 else
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 rm -rf conftest*
3411 ac_c99_math=no
3413 rm -f conftest*
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <math.h>
3418 int main() {
3419 isgreaterequal(0.0,0.0);
3420 ; return 0; }
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424 else
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 rm -rf conftest*
3428 ac_c99_math=no
3430 rm -f conftest*
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <math.h>
3435 int main() {
3436 isless(0.0,0.0);
3437 ; return 0; }
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441 else
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 rm -rf conftest*
3445 ac_c99_math=no
3447 rm -f conftest*
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <math.h>
3452 int main() {
3453 islessequal(0.0,0.0);
3454 ; return 0; }
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458 else
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 rm -rf conftest*
3462 ac_c99_math=no
3464 rm -f conftest*
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <math.h>
3469 int main() {
3470 islessgreater(0.0,0.0);
3471 ; return 0; }
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 rm -rf conftest*
3479 ac_c99_math=no
3481 rm -f conftest*
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <math.h>
3486 int main() {
3487 isunordered(0.0,0.0);
3488 ; return 0; }
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 else
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3495 rm -rf conftest*
3496 ac_c99_math=no
3498 rm -f conftest*
3499 echo "$ac_t""$ac_c99_math" 1>&6
3501 # Check for the existence in <stdio.h> of vscanf, et. al.
3502 ac_c99_stdio=yes;
3503 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3504 echo "configure:3505: checking for ISO C99 support in <stdio.h>" >&5
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdio.h>
3509 int main() {
3510 snprintf("12", 0, "%i");
3511 ; return 0; }
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 ac_c99_stdio=no
3521 rm -f conftest*
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <stdio.h>
3526 #include <stdarg.h>
3527 void foo(char* fmt, ...)
3528 {va_list args; va_start(args, fmt);
3529 vfscanf(stderr, "%i", args);}
3530 int main() {
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_stdio=no
3542 rm -f conftest*
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <stdio.h>
3547 #include <stdarg.h>
3548 void foo(char* fmt, ...)
3549 {va_list args; va_start(args, fmt);
3550 vscanf("%i", args);}
3551 int main() {
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -rf conftest*
3561 ac_c99_stdio=no
3563 rm -f conftest*
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <stdio.h>
3568 #include <stdarg.h>
3569 void foo(char* fmt, ...)
3570 {va_list args; va_start(args, fmt);
3571 vsnprintf(fmt, 0, "%i", args);}
3572 int main() {
3574 ; return 0; }
3576 if { (eval echo configure:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 else
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 rm -rf conftest*
3582 ac_c99_stdio=no
3584 rm -f conftest*
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdio.h>
3589 #include <stdarg.h>
3590 void foo(char* fmt, ...)
3591 {va_list args; va_start(args, fmt);
3592 vsscanf(fmt, "%i", args);}
3593 int main() {
3595 ; return 0; }
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 else
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 rm -rf conftest*
3603 ac_c99_stdio=no
3605 rm -f conftest*
3606 echo "$ac_t""$ac_c99_stdio" 1>&6
3608 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3609 ac_c99_stdlib=yes;
3610 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3611 echo "configure:3612: checking for lldiv_t declaration" >&5
3612 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 #include <stdlib.h>
3620 int main() {
3621 lldiv_t mydivt;
3622 ; return 0; }
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625 rm -rf conftest*
3626 ac_c99_lldiv_t=yes
3627 else
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 rm -rf conftest*
3631 ac_c99_lldiv_t=no
3633 rm -f conftest*
3637 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3639 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3640 echo "configure:3641: checking for ISO C99 support in <stdlib.h>" >&5
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <stdlib.h>
3645 int main() {
3646 char* tmp; strtof("gnu", &tmp);
3647 ; return 0; }
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3651 else
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3654 rm -rf conftest*
3655 ac_c99_stdlib=no
3657 rm -f conftest*
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 #include <stdlib.h>
3662 int main() {
3663 char* tmp; strtold("gnu", &tmp);
3664 ; return 0; }
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 else
3669 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3671 rm -rf conftest*
3672 ac_c99_stdlib=no
3674 rm -f conftest*
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <stdlib.h>
3679 int main() {
3680 llabs(10);
3681 ; return 0; }
3683 if { (eval echo configure:3684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3685 else
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 ac_c99_stdlib=no
3691 rm -f conftest*
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <stdlib.h>
3696 int main() {
3697 lldiv(10,1);
3698 ; return 0; }
3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3702 else
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 rm -rf conftest*
3706 ac_c99_stdlib=no
3708 rm -f conftest*
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <stdlib.h>
3713 int main() {
3714 atoll("10");
3715 ; return 0; }
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 else
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3722 rm -rf conftest*
3723 ac_c99_stdlib=no
3725 rm -f conftest*
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <stdlib.h>
3730 int main() {
3731 _Exit(0);
3732 ; return 0; }
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3736 else
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3739 rm -rf conftest*
3740 ac_c99_stdlib=no
3742 rm -f conftest*
3743 if test x"$ac_c99_lldiv_t" = x"no"; then
3744 ac_c99_stdlib=no;
3746 echo "$ac_t""$ac_c99_stdlib" 1>&6
3748 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3749 # XXX the wchar.h checks should be rolled into the general C99 bits.
3750 ac_c99_wchar=yes;
3751 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3752 echo "configure:3753: checking for additional ISO C99 support in <wchar.h>" >&5
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <wchar.h>
3757 int main() {
3758 wcstold(L"10.0", NULL);
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_wchar=no
3769 rm -f conftest*
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <wchar.h>
3774 int main() {
3775 wcstoll(L"10", NULL, 10);
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_wchar=no
3786 rm -f conftest*
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <wchar.h>
3791 int main() {
3792 wcstoull(L"10", NULL, 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_wchar=no
3803 rm -f conftest*
3804 echo "$ac_t""$ac_c99_wchar" 1>&6
3806 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3807 echo "configure:3808: checking for enabled ISO C99 support" >&5
3808 if test x"$ac_c99_math" = x"no" ||
3809 test x"$ac_c99_stdio" = x"no" ||
3810 test x"$ac_c99_stdlib" = x"no" ||
3811 test x"$ac_c99_wchar" = x"no"; then
3812 enable_c99=no;
3814 echo "$ac_t""$enable_c99" 1>&6
3816 # Option parsed, now set things appropriately
3817 if test x"$enable_c99" = x"yes"; then
3818 cat >> confdefs.h <<\EOF
3819 #define _GLIBCPP_USE_C99 1
3824 ac_ext=c
3825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3829 cross_compiling=$ac_cv_prog_cc_cross
3833 # Check whether --enable-long-long or --disable-long-long was given.
3834 if test "${enable_long_long+set}" = set; then
3835 enableval="$enable_long_long"
3836 case "$enableval" in
3837 yes) enable_long_long=yes ;;
3838 no) enable_long_long=no ;;
3839 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3840 esac
3841 else
3842 enable_long_long=yes
3846 ac_ext=C
3847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3851 cross_compiling=$ac_cv_prog_cxx_cross
3854 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3855 echo "configure:3856: checking for enabled long long I/O support" >&5
3856 # iostreams require strtoll, strtoull to compile
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 #include <stdlib.h>
3861 int main() {
3862 char* tmp; strtoll("gnu", &tmp, 10);
3863 ; return 0; }
3865 if { (eval echo configure:3866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867 else
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3870 rm -rf conftest*
3871 enable_long_long=no
3873 rm -f conftest*
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 #include <stdlib.h>
3878 int main() {
3879 char* tmp; strtoull("gnu", &tmp, 10);
3880 ; return 0; }
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 enable_long_long=no
3890 rm -f conftest*
3892 # Option parsed, now set things appropriately
3893 if test x"$enable_long_long" = xyes; then
3894 cat >> confdefs.h <<\EOF
3895 #define _GLIBCPP_USE_LONG_LONG 1
3899 echo "$ac_t""$enable_long_long" 1>&6
3901 ac_ext=c
3902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3906 cross_compiling=$ac_cv_prog_cc_cross
3910 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3911 echo "configure:3912: checking for thread model used by GCC" >&5
3912 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3913 echo "$ac_t""$target_thread_file" 1>&6
3915 if test $target_thread_file != single; then
3916 cat >> confdefs.h <<\EOF
3917 #define HAVE_GTHR_DEFAULT 1
3920 cat >> confdefs.h <<\EOF
3921 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3926 glibcpp_thread_h=gthr-$target_thread_file.h
3930 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3931 echo "configure:3932: checking for exception model to use" >&5
3933 ac_ext=C
3934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3935 ac_cpp='$CXXCPP $CPPFLAGS'
3936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3938 cross_compiling=$ac_cv_prog_cxx_cross
3940 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3941 if test "${enable_sjlj_exceptions+set}" = set; then
3942 enableval="$enable_sjlj_exceptions"
3944 else
3945 cat > conftest.$ac_ext << EOF
3946 #line 3947 "configure"
3947 struct S { ~S(); };
3948 void bar();
3949 void foo()
3951 S s;
3952 bar();
3955 old_CXXFLAGS="$CXXFLAGS"
3956 CXXFLAGS=-S
3957 if { (eval echo configure:3958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3959 enable_sjlj_exceptions=yes
3960 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3961 enable_sjlj_exceptions=no
3964 CXXFLAGS="$old_CXXFLAGS"
3965 rm -f conftest*
3968 if test x$enable_sjlj_exceptions = xyes; then
3969 cat >> confdefs.h <<\EOF
3970 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3973 ac_exception_model_name=sjlj
3974 elif test x$enable_sjlj_exceptions = xno; then
3975 ac_exception_model_name="call frame"
3976 else
3977 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
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
3986 echo "$ac_t""$ac_exception_model_name" 1>&6
3989 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3990 echo "configure:3991: checking for use of libunwind" >&5
3991 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3992 if test "${enable_libunwind_exceptions+set}" = set; then
3993 enableval="$enable_libunwind_exceptions"
3994 use_libunwind_exceptions=$enableval
3995 else
3996 use_libunwind_exceptions=no
3999 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4000 if test x"$use_libunwind_exceptions" = xyes; then
4001 LIBUNWIND_FLAG="-lunwind"
4002 else
4003 LIBUNWIND_FLAG=""
4007 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4008 if test "${enable_concept_checks+set}" = set; then
4009 enableval="$enable_concept_checks"
4010 case "$enableval" in
4011 yes) enable_concept_checks=yes ;;
4012 no) enable_concept_checks=no ;;
4013 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4014 esac
4015 else
4016 enable_concept_checks=no
4018 if test x"$enable_concept_checks" = xyes; then
4019 cat >> confdefs.h <<\EOF
4020 #define _GLIBCPP_CONCEPT_CHECKS 1
4025 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4026 echo "configure:4027: checking for extra compiler flags for building" >&5
4027 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4028 if test "${enable_cxx_flags+set}" = set; then
4029 enableval="$enable_cxx_flags"
4030 case "x$enable_cxx_flags" in
4031 xyes)
4032 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4033 xno | xnone | x)
4034 enable_cxx_flags='' ;;
4036 enable_cxx_flags="$enableval" ;;
4037 esac
4038 else
4039 enable_cxx_flags=
4043 if test -n "$enable_cxx_flags"; then
4044 for f in $enable_cxx_flags; do
4045 case "$f" in
4046 -fhonor-std) ;;
4047 -*) ;;
4048 *) # and we're trying to pass /what/ exactly?
4049 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4050 esac
4051 done
4053 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4054 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4057 # Check whether --enable-debug or --disable-debug was given.
4058 if test "${enable_debug+set}" = set; then
4059 enableval="$enable_debug"
4060 case "${enableval}" in
4061 yes) enable_debug=yes ;;
4062 no) enable_debug=no ;;
4063 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4064 esac
4065 else
4066 enable_debug=no
4068 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4069 echo "configure:4070: checking for additional debug build" >&5
4070 echo "$ac_t""$enable_debug" 1>&6
4073 if test "$enable_debug" = yes; then
4074 GLIBCPP_BUILD_DEBUG_TRUE=
4075 GLIBCPP_BUILD_DEBUG_FALSE='#'
4076 else
4077 GLIBCPP_BUILD_DEBUG_TRUE='#'
4078 GLIBCPP_BUILD_DEBUG_FALSE=
4081 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4082 if test "${enable_debug_flags+set}" = set; then
4083 enableval="$enable_debug_flags"
4084 case "${enableval}" in
4085 none) ;;
4086 -*) enable_debug_flags="${enableval}" ;;
4087 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4088 esac
4089 else
4090 enable_debug_flags=none
4093 case x"$enable_debug" in
4094 xyes)
4095 case "$enable_debug_flags" in
4096 none)
4097 DEBUG_FLAGS="-g3 -O0";;
4098 -*) #valid input
4099 DEBUG_FLAGS="${enableval}"
4100 esac
4102 xno)
4103 DEBUG_FLAGS=""
4105 esac
4108 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4109 echo "configure:4110: checking for debug build flags" >&5
4110 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4113 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4114 for ac_hdr in string.h stdlib.h
4116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4118 echo "configure:4119: checking for $ac_hdr" >&5
4119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4121 else
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <$ac_hdr>
4127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4128 { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4130 if test -z "$ac_err"; then
4131 rm -rf conftest*
4132 eval "ac_cv_header_$ac_safe=yes"
4133 else
4134 echo "$ac_err" >&5
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 rm -rf conftest*
4138 eval "ac_cv_header_$ac_safe=no"
4140 rm -f conftest*
4142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4145 cat >> confdefs.h <<EOF
4146 #define $ac_tr_hdr 1
4149 else
4150 echo "$ac_t""no" 1>&6
4152 done
4155 # No surprises, no surprises...
4156 if test $ATOMICITYH = cpu/generic ; then
4157 echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4158 if test $target_thread_file = single; then
4159 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4160 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4161 else
4162 echo "configure: warning: They will be faked using a mutex." 1>&2
4163 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4168 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4170 # We are being configured with some form of cross compiler.
4171 GLIBCPP_IS_CROSS_COMPILING=1
4173 # This lets us hard-code the functionality we know we'll have in the cross
4174 # target environment. "Let" is a sugar-coated word placed on an especially
4175 # dull and tedious hack, actually.
4177 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4178 # that involve linking, can't be used:
4179 # "cannot open sim-crt0.o"
4180 # "cannot open crt0.o"
4181 # etc. All this is because there currently exists no unified, consistent
4182 # way for top level CC information to be passed down to target directories:
4183 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4184 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4185 # crosses can be removed.
4187 # If Canadian cross, then don't pick up tools from the build directory.
4188 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4189 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4190 CANADIAN=yes
4191 else
4192 CANADIAN=no
4195 # Construct crosses by hand, eliminating bits that need ld...
4196 # GLIBCPP_CHECK_COMPILER_FEATURES
4197 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4198 # GLIBCPP_CHECK_MATH_SUPPORT
4200 case "$target" in
4201 *-linux*)
4202 os_include_dir="os/gnu-linux"
4203 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4204 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4205 fp.h locale.h float.h inttypes.h
4207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_hdr" >&5
4210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4212 else
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 #include <$ac_hdr>
4218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4219 { (eval echo configure:4220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4221 if test -z "$ac_err"; then
4222 rm -rf conftest*
4223 eval "ac_cv_header_$ac_safe=yes"
4224 else
4225 echo "$ac_err" >&5
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 eval "ac_cv_header_$ac_safe=no"
4231 rm -f conftest*
4233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_hdr 1
4240 else
4241 echo "$ac_t""no" 1>&6
4243 done
4245 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4248 # If we're not using GNU ld, then there's no point in even trying these
4249 # tests. Check for that first. We should have already tested for gld
4250 # by now (in libtool), but require it now just to be safe...
4251 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4252 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4255 # The name set by libtool depends on the version of libtool. Shame on us
4256 # for depending on an impl detail, but c'est la vie. Older versions used
4257 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4258 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4259 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4260 # set (hence we're using an older libtool), then set it.
4261 if test x${with_gnu_ld+set} != xset; then
4262 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4263 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4264 with_gnu_ld=no
4265 else
4266 with_gnu_ld=$ac_cv_prog_gnu_ld
4270 # Start by getting the version number. I think the libtool test already
4271 # does some of this, but throws away the result.
4273 ldver=`$LD --version 2>/dev/null | head -1 | \
4274 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4276 glibcpp_gnu_ld_version=`echo $ldver | \
4277 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4279 # Set --gc-sections.
4280 if test "$with_gnu_ld" = "notbroken"; then
4281 # GNU ld it is! Joy and bunny rabbits!
4283 # All these tests are for C++; save the language and the compiler flags.
4284 # Need to do this so that g++ won't try to link in libstdc++
4285 ac_test_CFLAGS="${CFLAGS+set}"
4286 ac_save_CFLAGS="$CFLAGS"
4287 CFLAGS='-x c++ -Wl,--gc-sections'
4289 # Check for -Wl,--gc-sections
4290 # XXX This test is broken at the moment, as symbols required for
4291 # linking are now in libsupc++ (not built yet.....). In addition,
4292 # this test has cored on solaris in the past. In addition,
4293 # --gc-sections doesn't really work at the moment (keeps on discarding
4294 # used sections, first .eh_frame and now some of the glibc sections for
4295 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4296 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4297 echo "configure:4298: checking for ld that supports -Wl,--gc-sections" >&5
4298 if test "$cross_compiling" = yes; then
4299 ac_sectionLDflags=yes
4300 else
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4305 int main(void)
4307 try { throw 1; }
4308 catch (...) { };
4309 return 0;
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4314 then
4315 ac_sectionLDflags=yes
4316 else
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4319 rm -fr conftest*
4320 ac_sectionLDflags=no
4322 rm -fr conftest*
4325 if test "$ac_test_CFLAGS" = set; then
4326 CFLAGS="$ac_save_CFLAGS"
4327 else
4328 # this is the suspicious part
4329 CFLAGS=''
4331 if test "$ac_sectionLDflags" = "yes"; then
4332 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4334 echo "$ac_t""$ac_sectionLDflags" 1>&6
4337 # Set linker optimization flags.
4338 if test x"$with_gnu_ld" = x"yes"; then
4339 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4346 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4347 echo "configure:4348: checking for main in -lm" >&5
4348 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 ac_save_LIBS="$LIBS"
4353 LIBS="-lm $LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4358 int main() {
4359 main()
4360 ; return 0; }
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363 rm -rf conftest*
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4365 else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -rf conftest*
4369 eval "ac_cv_lib_$ac_lib_var=no"
4371 rm -f conftest*
4372 LIBS="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4379 cat >> confdefs.h <<EOF
4380 #define $ac_tr_lib 1
4383 LIBS="-lm $LIBS"
4385 else
4386 echo "$ac_t""no" 1>&6
4389 for ac_func in nan copysignf
4391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4392 echo "configure:4393: checking for $ac_func" >&5
4393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4395 else
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399 /* System header to define __stub macros and hopefully few prototypes,
4400 which can conflict with char $ac_func(); below. */
4401 #include <assert.h>
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4405 char $ac_func();
4407 int main() {
4409 /* The GNU C library defines this for functions which it implements
4410 to always fail with ENOSYS. Some functions are actually named
4411 something starting with __ and the normal name is an alias. */
4412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4413 choke me
4414 #else
4415 $ac_func();
4416 #endif
4418 ; return 0; }
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 rm -rf conftest*
4422 eval "ac_cv_func_$ac_func=yes"
4423 else
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4426 rm -rf conftest*
4427 eval "ac_cv_func_$ac_func=no"
4429 rm -f conftest*
4432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4435 cat >> confdefs.h <<EOF
4436 #define $ac_tr_func 1
4439 else
4440 echo "$ac_t""no" 1>&6
4441 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4443 done
4446 for ac_func in __signbit
4448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_func" >&5
4450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457 which can conflict with char $ac_func(); below. */
4458 #include <assert.h>
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462 char $ac_func();
4464 int main() {
4466 /* The GNU C library defines this for functions which it implements
4467 to always fail with ENOSYS. Some functions are actually named
4468 something starting with __ and the normal name is an alias. */
4469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4470 choke me
4471 #else
4472 $ac_func();
4473 #endif
4475 ; return 0; }
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 rm -rf conftest*
4479 eval "ac_cv_func_$ac_func=yes"
4480 else
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 rm -rf conftest*
4484 eval "ac_cv_func_$ac_func=no"
4486 rm -f conftest*
4489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4492 cat >> confdefs.h <<EOF
4493 #define $ac_tr_func 1
4496 else
4497 echo "$ac_t""no" 1>&6
4498 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4500 done
4502 for ac_func in __signbitf
4504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_func" >&5
4506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4508 else
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* System header to define __stub macros and hopefully few prototypes,
4513 which can conflict with char $ac_func(); below. */
4514 #include <assert.h>
4515 /* Override any gcc2 internal prototype to avoid an error. */
4516 /* We use char because int might match the return type of a gcc2
4517 builtin and then its argument prototype would still apply. */
4518 char $ac_func();
4520 int main() {
4522 /* The GNU C library defines this for functions which it implements
4523 to always fail with ENOSYS. Some functions are actually named
4524 something starting with __ and the normal name is an alias. */
4525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4526 choke me
4527 #else
4528 $ac_func();
4529 #endif
4531 ; return 0; }
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 rm -rf conftest*
4535 eval "ac_cv_func_$ac_func=yes"
4536 else
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 rm -rf conftest*
4540 eval "ac_cv_func_$ac_func=no"
4542 rm -f conftest*
4545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4548 cat >> confdefs.h <<EOF
4549 #define $ac_tr_func 1
4552 else
4553 echo "$ac_t""no" 1>&6
4554 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4556 done
4559 if test x$ac_cv_func_copysignl = x"yes"; then
4560 for ac_func in __signbitl
4562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_func" >&5
4564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566 else
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 /* System header to define __stub macros and hopefully few prototypes,
4571 which can conflict with char $ac_func(); below. */
4572 #include <assert.h>
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576 char $ac_func();
4578 int main() {
4580 /* The GNU C library defines this for functions which it implements
4581 to always fail with ENOSYS. Some functions are actually named
4582 something starting with __ and the normal name is an alias. */
4583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4584 choke me
4585 #else
4586 $ac_func();
4587 #endif
4589 ; return 0; }
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 rm -rf conftest*
4593 eval "ac_cv_func_$ac_func=yes"
4594 else
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 rm -rf conftest*
4598 eval "ac_cv_func_$ac_func=no"
4600 rm -f conftest*
4603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4606 cat >> confdefs.h <<EOF
4607 #define $ac_tr_func 1
4610 else
4611 echo "$ac_t""no" 1>&6
4612 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4614 done
4618 if test -n "$LIBMATHOBJS"; then
4619 need_libmath=yes
4624 if test "$need_libmath" = yes; then
4625 GLIBCPP_BUILD_LIBMATH_TRUE=
4626 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4627 else
4628 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4629 GLIBCPP_BUILD_LIBMATH_FALSE=
4633 enable_wchar_t=no
4635 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4636 echo "configure:4637: checking for mbstate_t" >&5
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 #include <wchar.h>
4641 int main() {
4642 mbstate_t teststate;
4643 ; return 0; }
4645 if { (eval echo configure:4646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4646 rm -rf conftest*
4647 have_mbstate_t=yes
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 have_mbstate_t=no
4654 rm -f conftest*
4655 echo "$ac_t""$have_mbstate_t" 1>&6
4656 if test x"$have_mbstate_t" = xyes; then
4657 cat >> confdefs.h <<\EOF
4658 #define HAVE_MBSTATE_T 1
4663 for ac_hdr in wchar.h
4665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_hdr" >&5
4668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4670 else
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 #include <$ac_hdr>
4676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4677 { (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4679 if test -z "$ac_err"; then
4680 rm -rf conftest*
4681 eval "ac_cv_header_$ac_safe=yes"
4682 else
4683 echo "$ac_err" >&5
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 eval "ac_cv_header_$ac_safe=no"
4689 rm -f conftest*
4691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4692 echo "$ac_t""yes" 1>&6
4693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4694 cat >> confdefs.h <<EOF
4695 #define $ac_tr_hdr 1
4697 ac_has_wchar_h=yes
4698 else
4699 echo "$ac_t""no" 1>&6
4700 ac_has_wchar_h=no
4702 done
4704 for ac_hdr in wctype.h
4706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_hdr" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4711 else
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 #include <$ac_hdr>
4717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4718 { (eval echo configure:4719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4720 if test -z "$ac_err"; then
4721 rm -rf conftest*
4722 eval "ac_cv_header_$ac_safe=yes"
4723 else
4724 echo "$ac_err" >&5
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 rm -rf conftest*
4728 eval "ac_cv_header_$ac_safe=no"
4730 rm -f conftest*
4732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4735 cat >> confdefs.h <<EOF
4736 #define $ac_tr_hdr 1
4738 ac_has_wctype_h=yes
4739 else
4740 echo "$ac_t""no" 1>&6
4741 ac_has_wctype_h=no
4743 done
4746 if test x"$ac_has_wchar_h" = xyes &&
4747 test x"$ac_has_wctype_h" = xyes &&
4748 test x"$enable_c_mbchar" != xno; then
4750 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4751 echo "configure:4752: checking for WCHAR_MIN and WCHAR_MAX" >&5
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 #include <wchar.h>
4756 int main() {
4757 int i = WCHAR_MIN; int j = WCHAR_MAX;
4758 ; return 0; }
4760 if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4761 rm -rf conftest*
4762 has_wchar_minmax=yes
4763 else
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4766 rm -rf conftest*
4767 has_wchar_minmax=no
4769 rm -f conftest*
4770 echo "$ac_t""$has_wchar_minmax" 1>&6
4772 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4773 echo "configure:4774: checking for WEOF" >&5
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4778 #include <wchar.h>
4779 #include <stddef.h>
4780 int main() {
4781 wint_t i = WEOF;
4782 ; return 0; }
4784 if { (eval echo configure:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785 rm -rf conftest*
4786 has_weof=yes
4787 else
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 rm -rf conftest*
4791 has_weof=no
4793 rm -f conftest*
4794 echo "$ac_t""$has_weof" 1>&6
4796 ac_wfuncs=yes
4797 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4800 echo "configure:4801: checking for $ac_func" >&5
4801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4802 echo $ac_n "(cached) $ac_c" 1>&6
4803 else
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807 /* System header to define __stub macros and hopefully few prototypes,
4808 which can conflict with char $ac_func(); below. */
4809 #include <assert.h>
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char $ac_func();
4815 int main() {
4817 /* The GNU C library defines this for functions which it implements
4818 to always fail with ENOSYS. Some functions are actually named
4819 something starting with __ and the normal name is an alias. */
4820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4821 choke me
4822 #else
4823 $ac_func();
4824 #endif
4826 ; return 0; }
4828 if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4829 rm -rf conftest*
4830 eval "ac_cv_func_$ac_func=yes"
4831 else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 eval "ac_cv_func_$ac_func=no"
4837 rm -f conftest*
4840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_func 1
4847 else
4848 echo "$ac_t""no" 1>&6
4850 ac_wfuncs=no
4852 done
4855 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4856 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4857 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4858 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4859 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4860 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4863 echo "configure:4864: checking for $ac_func" >&5
4864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866 else
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char $ac_func(); below. */
4872 #include <assert.h>
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char $ac_func();
4878 int main() {
4880 /* The GNU C library defines this for functions which it implements
4881 to always fail with ENOSYS. Some functions are actually named
4882 something starting with __ and the normal name is an alias. */
4883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4884 choke me
4885 #else
4886 $ac_func();
4887 #endif
4889 ; return 0; }
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 rm -rf conftest*
4893 eval "ac_cv_func_$ac_func=yes"
4894 else
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 rm -rf conftest*
4898 eval "ac_cv_func_$ac_func=no"
4900 rm -f conftest*
4903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4906 cat >> confdefs.h <<EOF
4907 #define $ac_tr_func 1
4910 else
4911 echo "$ac_t""no" 1>&6
4913 ac_wfuncs=no
4915 done
4918 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4919 echo "configure:4920: checking for ISO C99 wchar_t support" >&5
4920 if test x"$has_weof" = xyes &&
4921 test x"$has_wchar_minmax" = xyes &&
4922 test x"$ac_wfuncs" = xyes; then
4923 ac_isoC99_wchar_t=yes
4924 else
4925 ac_isoC99_wchar_t=no
4927 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4929 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4930 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4931 echo "configure:4932: checking for iconv.h" >&5
4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4934 else
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 #include <iconv.h>
4940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4941 { (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4943 if test -z "$ac_err"; then
4944 rm -rf conftest*
4945 eval "ac_cv_header_$ac_safe=yes"
4946 else
4947 echo "$ac_err" >&5
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 rm -rf conftest*
4951 eval "ac_cv_header_$ac_safe=no"
4953 rm -f conftest*
4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_has_iconv_h=yes
4958 else
4959 echo "$ac_t""no" 1>&6
4960 ac_has_iconv_h=no
4963 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4964 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4965 echo "configure:4966: checking for langinfo.h" >&5
4966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4968 else
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 #include <langinfo.h>
4974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4975 { (eval echo configure:4976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4977 if test -z "$ac_err"; then
4978 rm -rf conftest*
4979 eval "ac_cv_header_$ac_safe=yes"
4980 else
4981 echo "$ac_err" >&5
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 rm -rf conftest*
4985 eval "ac_cv_header_$ac_safe=no"
4987 rm -f conftest*
4989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_has_langinfo_h=yes
4992 else
4993 echo "$ac_t""no" 1>&6
4994 ac_has_langinfo_h=no
4998 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4999 echo "configure:5000: checking for iconv in -liconv" >&5
5000 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 ac_save_LIBS="$LIBS"
5005 LIBS="-liconv $LIBS"
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5012 char iconv();
5014 int main() {
5015 iconv()
5016 ; return 0; }
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 rm -rf conftest*
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5021 else
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 eval "ac_cv_lib_$ac_lib_var=no"
5027 rm -f conftest*
5028 LIBS="$ac_save_LIBS"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 libiconv="-liconv"
5034 else
5035 echo "$ac_t""no" 1>&6
5038 ac_save_LIBS="$LIBS"
5039 LIBS="$LIBS $libiconv"
5041 for ac_func in iconv_open iconv_close iconv nl_langinfo
5043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5044 echo "configure:5045: checking for $ac_func" >&5
5045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func(); below. */
5053 #include <assert.h>
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char $ac_func();
5059 int main() {
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 choke me
5066 #else
5067 $ac_func();
5068 #endif
5070 ; return 0; }
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 rm -rf conftest*
5074 eval "ac_cv_func_$ac_func=yes"
5075 else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 rm -rf conftest*
5079 eval "ac_cv_func_$ac_func=no"
5081 rm -f conftest*
5084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_func 1
5091 ac_XPG2funcs=yes
5092 else
5093 echo "$ac_t""no" 1>&6
5094 ac_XPG2funcs=no
5096 done
5099 LIBS="$ac_save_LIBS"
5101 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5102 echo "configure:5103: checking for XPG2 wchar_t support" >&5
5103 if test x"$ac_has_iconv_h" = xyes &&
5104 test x"$ac_has_langinfo_h" = xyes &&
5105 test x"$ac_XPG2funcs" = xyes; then
5106 ac_XPG2_wchar_t=yes
5107 else
5108 ac_XPG2_wchar_t=no
5110 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5112 if test x"$ac_isoC99_wchar_t" = xyes &&
5113 test x"$ac_XPG2_wchar_t" = xyes; then
5114 cat >> confdefs.h <<\EOF
5115 #define _GLIBCPP_USE_WCHAR_T 1
5118 enable_wchar_t=yes
5121 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5122 echo "configure:5123: checking for enabled wchar_t specializations" >&5
5123 echo "$ac_t""$enable_wchar_t" 1>&6
5126 if test "$enable_wchar_t" = yes; then
5127 GLIBCPP_TEST_WCHAR_T_TRUE=
5128 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5129 else
5130 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5131 GLIBCPP_TEST_WCHAR_T_FALSE=
5134 cat >> confdefs.h <<\EOF
5135 #define HAVE_COPYSIGN 1
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_COPYSIGNF 1
5142 cat >> confdefs.h <<\EOF
5143 #define HAVE_FINITE 1
5146 cat >> confdefs.h <<\EOF
5147 #define HAVE_FINITEF 1
5150 cat >> confdefs.h <<\EOF
5151 #define HAVE_FREXPF 1
5154 cat >> confdefs.h <<\EOF
5155 #define HAVE_HYPOTF 1
5158 cat >> confdefs.h <<\EOF
5159 #define HAVE_ISINF 1
5162 cat >> confdefs.h <<\EOF
5163 #define HAVE_ISINFF 1
5166 cat >> confdefs.h <<\EOF
5167 #define HAVE_ISNAN 1
5170 cat >> confdefs.h <<\EOF
5171 #define HAVE_ISNANF 1
5174 cat >> confdefs.h <<\EOF
5175 #define HAVE_SINCOS 1
5178 cat >> confdefs.h <<\EOF
5179 #define HAVE_SINCOSF 1
5182 if test x"long_double_math_on_this_cpu" = x"yes"; then
5183 cat >> confdefs.h <<\EOF
5184 #define HAVE_FINITEL 1
5187 cat >> confdefs.h <<\EOF
5188 #define HAVE_HYPOTL 1
5191 cat >> confdefs.h <<\EOF
5192 #define HAVE_ISINFL 1
5195 cat >> confdefs.h <<\EOF
5196 #define HAVE_ISNANL 1
5201 *-hpux*)
5202 # Check for available headers.
5203 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5204 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5205 fp.h locale.h float.h inttypes.h
5207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_hdr" >&5
5210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5212 else
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 #include <$ac_hdr>
5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5221 if test -z "$ac_err"; then
5222 rm -rf conftest*
5223 eval "ac_cv_header_$ac_safe=yes"
5224 else
5225 echo "$ac_err" >&5
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5228 rm -rf conftest*
5229 eval "ac_cv_header_$ac_safe=no"
5231 rm -f conftest*
5233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_hdr 1
5240 else
5241 echo "$ac_t""no" 1>&6
5243 done
5245 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5248 # If we're not using GNU ld, then there's no point in even trying these
5249 # tests. Check for that first. We should have already tested for gld
5250 # by now (in libtool), but require it now just to be safe...
5251 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5252 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5255 # The name set by libtool depends on the version of libtool. Shame on us
5256 # for depending on an impl detail, but c'est la vie. Older versions used
5257 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5258 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5259 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5260 # set (hence we're using an older libtool), then set it.
5261 if test x${with_gnu_ld+set} != xset; then
5262 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5263 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5264 with_gnu_ld=no
5265 else
5266 with_gnu_ld=$ac_cv_prog_gnu_ld
5270 # Start by getting the version number. I think the libtool test already
5271 # does some of this, but throws away the result.
5273 ldver=`$LD --version 2>/dev/null | head -1 | \
5274 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5276 glibcpp_gnu_ld_version=`echo $ldver | \
5277 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5279 # Set --gc-sections.
5280 if test "$with_gnu_ld" = "notbroken"; then
5281 # GNU ld it is! Joy and bunny rabbits!
5283 # All these tests are for C++; save the language and the compiler flags.
5284 # Need to do this so that g++ won't try to link in libstdc++
5285 ac_test_CFLAGS="${CFLAGS+set}"
5286 ac_save_CFLAGS="$CFLAGS"
5287 CFLAGS='-x c++ -Wl,--gc-sections'
5289 # Check for -Wl,--gc-sections
5290 # XXX This test is broken at the moment, as symbols required for
5291 # linking are now in libsupc++ (not built yet.....). In addition,
5292 # this test has cored on solaris in the past. In addition,
5293 # --gc-sections doesn't really work at the moment (keeps on discarding
5294 # used sections, first .eh_frame and now some of the glibc sections for
5295 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5296 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5297 echo "configure:5298: checking for ld that supports -Wl,--gc-sections" >&5
5298 if test "$cross_compiling" = yes; then
5299 ac_sectionLDflags=yes
5300 else
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5305 int main(void)
5307 try { throw 1; }
5308 catch (...) { };
5309 return 0;
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5314 then
5315 ac_sectionLDflags=yes
5316 else
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 rm -fr conftest*
5320 ac_sectionLDflags=no
5322 rm -fr conftest*
5325 if test "$ac_test_CFLAGS" = set; then
5326 CFLAGS="$ac_save_CFLAGS"
5327 else
5328 # this is the suspicious part
5329 CFLAGS=''
5331 if test "$ac_sectionLDflags" = "yes"; then
5332 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5334 echo "$ac_t""$ac_sectionLDflags" 1>&6
5337 # Set linker optimization flags.
5338 if test x"$with_gnu_ld" = x"yes"; then
5339 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5346 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5347 echo "configure:5348: checking for main in -lm" >&5
5348 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352 ac_save_LIBS="$LIBS"
5353 LIBS="-lm $LIBS"
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5358 int main() {
5359 main()
5360 ; return 0; }
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 rm -rf conftest*
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5365 else
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 rm -rf conftest*
5369 eval "ac_cv_lib_$ac_lib_var=no"
5371 rm -f conftest*
5372 LIBS="$ac_save_LIBS"
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5379 cat >> confdefs.h <<EOF
5380 #define $ac_tr_lib 1
5383 LIBS="-lm $LIBS"
5385 else
5386 echo "$ac_t""no" 1>&6
5389 for ac_func in nan copysignf
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400 which can conflict with char $ac_func(); below. */
5401 #include <assert.h>
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5405 char $ac_func();
5407 int main() {
5409 /* The GNU C library defines this for functions which it implements
5410 to always fail with ENOSYS. Some functions are actually named
5411 something starting with __ and the normal name is an alias. */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 choke me
5414 #else
5415 $ac_func();
5416 #endif
5418 ; return 0; }
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 rm -rf conftest*
5422 eval "ac_cv_func_$ac_func=yes"
5423 else
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5426 rm -rf conftest*
5427 eval "ac_cv_func_$ac_func=no"
5429 rm -f conftest*
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5439 else
5440 echo "$ac_t""no" 1>&6
5441 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5443 done
5446 for ac_func in __signbit
5448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5449 echo "configure:5450: checking for $ac_func" >&5
5450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5452 else
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5456 /* System header to define __stub macros and hopefully few prototypes,
5457 which can conflict with char $ac_func(); below. */
5458 #include <assert.h>
5459 /* Override any gcc2 internal prototype to avoid an error. */
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char $ac_func();
5464 int main() {
5466 /* The GNU C library defines this for functions which it implements
5467 to always fail with ENOSYS. Some functions are actually named
5468 something starting with __ and the normal name is an alias. */
5469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 choke me
5471 #else
5472 $ac_func();
5473 #endif
5475 ; return 0; }
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5478 rm -rf conftest*
5479 eval "ac_cv_func_$ac_func=yes"
5480 else
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 rm -rf conftest*
5484 eval "ac_cv_func_$ac_func=no"
5486 rm -f conftest*
5489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5490 echo "$ac_t""yes" 1>&6
5491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5492 cat >> confdefs.h <<EOF
5493 #define $ac_tr_func 1
5496 else
5497 echo "$ac_t""no" 1>&6
5498 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5500 done
5502 for ac_func in __signbitf
5504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5505 echo "configure:5506: checking for $ac_func" >&5
5506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5508 else
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* System header to define __stub macros and hopefully few prototypes,
5513 which can conflict with char $ac_func(); below. */
5514 #include <assert.h>
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518 char $ac_func();
5520 int main() {
5522 /* The GNU C library defines this for functions which it implements
5523 to always fail with ENOSYS. Some functions are actually named
5524 something starting with __ and the normal name is an alias. */
5525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5526 choke me
5527 #else
5528 $ac_func();
5529 #endif
5531 ; return 0; }
5533 if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 rm -rf conftest*
5535 eval "ac_cv_func_$ac_func=yes"
5536 else
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5539 rm -rf conftest*
5540 eval "ac_cv_func_$ac_func=no"
5542 rm -f conftest*
5545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5548 cat >> confdefs.h <<EOF
5549 #define $ac_tr_func 1
5552 else
5553 echo "$ac_t""no" 1>&6
5554 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5556 done
5559 if test x$ac_cv_func_copysignl = x"yes"; then
5560 for ac_func in __signbitl
5562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5563 echo "configure:5564: checking for $ac_func" >&5
5564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5566 else
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* System header to define __stub macros and hopefully few prototypes,
5571 which can conflict with char $ac_func(); below. */
5572 #include <assert.h>
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char $ac_func();
5578 int main() {
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 choke me
5585 #else
5586 $ac_func();
5587 #endif
5589 ; return 0; }
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 rm -rf conftest*
5593 eval "ac_cv_func_$ac_func=yes"
5594 else
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 rm -rf conftest*
5598 eval "ac_cv_func_$ac_func=no"
5600 rm -f conftest*
5603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5606 cat >> confdefs.h <<EOF
5607 #define $ac_tr_func 1
5610 else
5611 echo "$ac_t""no" 1>&6
5612 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5614 done
5618 if test -n "$LIBMATHOBJS"; then
5619 need_libmath=yes
5624 if test "$need_libmath" = yes; then
5625 GLIBCPP_BUILD_LIBMATH_TRUE=
5626 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5627 else
5628 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5629 GLIBCPP_BUILD_LIBMATH_FALSE=
5633 enable_wchar_t=no
5635 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5636 echo "configure:5637: checking for mbstate_t" >&5
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 #include <wchar.h>
5641 int main() {
5642 mbstate_t teststate;
5643 ; return 0; }
5645 if { (eval echo configure:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5646 rm -rf conftest*
5647 have_mbstate_t=yes
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 have_mbstate_t=no
5654 rm -f conftest*
5655 echo "$ac_t""$have_mbstate_t" 1>&6
5656 if test x"$have_mbstate_t" = xyes; then
5657 cat >> confdefs.h <<\EOF
5658 #define HAVE_MBSTATE_T 1
5663 for ac_hdr in wchar.h
5665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5667 echo "configure:5668: checking for $ac_hdr" >&5
5668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5670 else
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5674 #include <$ac_hdr>
5676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5677 { (eval echo configure:5678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5679 if test -z "$ac_err"; then
5680 rm -rf conftest*
5681 eval "ac_cv_header_$ac_safe=yes"
5682 else
5683 echo "$ac_err" >&5
5684 echo "configure: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 rm -rf conftest*
5687 eval "ac_cv_header_$ac_safe=no"
5689 rm -f conftest*
5691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5692 echo "$ac_t""yes" 1>&6
5693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5694 cat >> confdefs.h <<EOF
5695 #define $ac_tr_hdr 1
5697 ac_has_wchar_h=yes
5698 else
5699 echo "$ac_t""no" 1>&6
5700 ac_has_wchar_h=no
5702 done
5704 for ac_hdr in wctype.h
5706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_hdr" >&5
5709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 #include <$ac_hdr>
5717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5718 { (eval echo configure:5719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5720 if test -z "$ac_err"; then
5721 rm -rf conftest*
5722 eval "ac_cv_header_$ac_safe=yes"
5723 else
5724 echo "$ac_err" >&5
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 rm -rf conftest*
5728 eval "ac_cv_header_$ac_safe=no"
5730 rm -f conftest*
5732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_hdr 1
5738 ac_has_wctype_h=yes
5739 else
5740 echo "$ac_t""no" 1>&6
5741 ac_has_wctype_h=no
5743 done
5746 if test x"$ac_has_wchar_h" = xyes &&
5747 test x"$ac_has_wctype_h" = xyes &&
5748 test x"$enable_c_mbchar" != xno; then
5750 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5751 echo "configure:5752: checking for WCHAR_MIN and WCHAR_MAX" >&5
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 #include <wchar.h>
5756 int main() {
5757 int i = WCHAR_MIN; int j = WCHAR_MAX;
5758 ; return 0; }
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 rm -rf conftest*
5762 has_wchar_minmax=yes
5763 else
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 has_wchar_minmax=no
5769 rm -f conftest*
5770 echo "$ac_t""$has_wchar_minmax" 1>&6
5772 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5773 echo "configure:5774: checking for WEOF" >&5
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5778 #include <wchar.h>
5779 #include <stddef.h>
5780 int main() {
5781 wint_t i = WEOF;
5782 ; return 0; }
5784 if { (eval echo configure:5785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5785 rm -rf conftest*
5786 has_weof=yes
5787 else
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 rm -rf conftest*
5791 has_weof=no
5793 rm -f conftest*
5794 echo "$ac_t""$has_weof" 1>&6
5796 ac_wfuncs=yes
5797 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5800 echo "configure:5801: checking for $ac_func" >&5
5801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5803 else
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func(); below. */
5809 #include <assert.h>
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5813 char $ac_func();
5815 int main() {
5817 /* The GNU C library defines this for functions which it implements
5818 to always fail with ENOSYS. Some functions are actually named
5819 something starting with __ and the normal name is an alias. */
5820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5821 choke me
5822 #else
5823 $ac_func();
5824 #endif
5826 ; return 0; }
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 rm -rf conftest*
5830 eval "ac_cv_func_$ac_func=yes"
5831 else
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 rm -rf conftest*
5835 eval "ac_cv_func_$ac_func=no"
5837 rm -f conftest*
5840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_func 1
5847 else
5848 echo "$ac_t""no" 1>&6
5850 ac_wfuncs=no
5852 done
5855 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5856 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5857 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5858 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5859 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5860 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5872 #include <assert.h>
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char $ac_func();
5878 int main() {
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5884 choke me
5885 #else
5886 $ac_func();
5887 #endif
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=yes"
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 eval "ac_cv_func_$ac_func=no"
5900 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_func 1
5910 else
5911 echo "$ac_t""no" 1>&6
5913 ac_wfuncs=no
5915 done
5918 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5919 echo "configure:5920: checking for ISO C99 wchar_t support" >&5
5920 if test x"$has_weof" = xyes &&
5921 test x"$has_wchar_minmax" = xyes &&
5922 test x"$ac_wfuncs" = xyes; then
5923 ac_isoC99_wchar_t=yes
5924 else
5925 ac_isoC99_wchar_t=no
5927 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5929 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5930 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5931 echo "configure:5932: checking for iconv.h" >&5
5932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5934 else
5935 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure"
5937 #include "confdefs.h"
5938 #include <iconv.h>
5940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5941 { (eval echo configure:5942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5943 if test -z "$ac_err"; then
5944 rm -rf conftest*
5945 eval "ac_cv_header_$ac_safe=yes"
5946 else
5947 echo "$ac_err" >&5
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 rm -rf conftest*
5951 eval "ac_cv_header_$ac_safe=no"
5953 rm -f conftest*
5955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5956 echo "$ac_t""yes" 1>&6
5957 ac_has_iconv_h=yes
5958 else
5959 echo "$ac_t""no" 1>&6
5960 ac_has_iconv_h=no
5963 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5964 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5965 echo "configure:5966: checking for langinfo.h" >&5
5966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968 else
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5972 #include <langinfo.h>
5974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5975 { (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5977 if test -z "$ac_err"; then
5978 rm -rf conftest*
5979 eval "ac_cv_header_$ac_safe=yes"
5980 else
5981 echo "$ac_err" >&5
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5984 rm -rf conftest*
5985 eval "ac_cv_header_$ac_safe=no"
5987 rm -f conftest*
5989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5991 ac_has_langinfo_h=yes
5992 else
5993 echo "$ac_t""no" 1>&6
5994 ac_has_langinfo_h=no
5998 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5999 echo "configure:6000: checking for iconv in -liconv" >&5
6000 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004 ac_save_LIBS="$LIBS"
6005 LIBS="-liconv $LIBS"
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char iconv();
6014 int main() {
6015 iconv()
6016 ; return 0; }
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 rm -rf conftest*
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6021 else
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6024 rm -rf conftest*
6025 eval "ac_cv_lib_$ac_lib_var=no"
6027 rm -f conftest*
6028 LIBS="$ac_save_LIBS"
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6032 echo "$ac_t""yes" 1>&6
6033 libiconv="-liconv"
6034 else
6035 echo "$ac_t""no" 1>&6
6038 ac_save_LIBS="$LIBS"
6039 LIBS="$LIBS $libiconv"
6041 for ac_func in iconv_open iconv_close iconv nl_langinfo
6043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_func" >&5
6045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6047 else
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 /* System header to define __stub macros and hopefully few prototypes,
6052 which can conflict with char $ac_func(); below. */
6053 #include <assert.h>
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6057 char $ac_func();
6059 int main() {
6061 /* The GNU C library defines this for functions which it implements
6062 to always fail with ENOSYS. Some functions are actually named
6063 something starting with __ and the normal name is an alias. */
6064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6065 choke me
6066 #else
6067 $ac_func();
6068 #endif
6070 ; return 0; }
6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 rm -rf conftest*
6074 eval "ac_cv_func_$ac_func=yes"
6075 else
6076 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6078 rm -rf conftest*
6079 eval "ac_cv_func_$ac_func=no"
6081 rm -f conftest*
6084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6087 cat >> confdefs.h <<EOF
6088 #define $ac_tr_func 1
6091 ac_XPG2funcs=yes
6092 else
6093 echo "$ac_t""no" 1>&6
6094 ac_XPG2funcs=no
6096 done
6099 LIBS="$ac_save_LIBS"
6101 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6102 echo "configure:6103: checking for XPG2 wchar_t support" >&5
6103 if test x"$ac_has_iconv_h" = xyes &&
6104 test x"$ac_has_langinfo_h" = xyes &&
6105 test x"$ac_XPG2funcs" = xyes; then
6106 ac_XPG2_wchar_t=yes
6107 else
6108 ac_XPG2_wchar_t=no
6110 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6112 if test x"$ac_isoC99_wchar_t" = xyes &&
6113 test x"$ac_XPG2_wchar_t" = xyes; then
6114 cat >> confdefs.h <<\EOF
6115 #define _GLIBCPP_USE_WCHAR_T 1
6118 enable_wchar_t=yes
6121 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6122 echo "configure:6123: checking for enabled wchar_t specializations" >&5
6123 echo "$ac_t""$enable_wchar_t" 1>&6
6126 if test "$enable_wchar_t" = yes; then
6127 GLIBCPP_TEST_WCHAR_T_TRUE=
6128 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6129 else
6130 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6131 GLIBCPP_TEST_WCHAR_T_FALSE=
6134 os_include_dir="os/hpux"
6135 cat >> confdefs.h <<\EOF
6136 #define HAVE_COPYSIGN 1
6139 cat >> confdefs.h <<\EOF
6140 #define HAVE_COPYSIGNF 1
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_FREXPF 1
6147 cat >> confdefs.h <<\EOF
6148 #define HAVE_HYPOT 1
6151 case "$target" in
6152 *-hpux10*)
6153 cat >> confdefs.h <<\EOF
6154 #define HAVE_FINITE 1
6157 cat >> confdefs.h <<\EOF
6158 #define HAVE_FINITEF 1
6161 cat >> confdefs.h <<\EOF
6162 #define HAVE_ISINF 1
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_ISINFF 1
6169 cat >> confdefs.h <<\EOF
6170 #define HAVE_ISNAN 1
6173 cat >> confdefs.h <<\EOF
6174 #define HAVE_ISNANF 1
6178 esac
6181 *-netbsd*)
6182 # Check for available headers.
6183 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6184 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6185 fp.h locale.h float.h inttypes.h
6187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6189 echo "configure:6190: checking for $ac_hdr" >&5
6190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6192 else
6193 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 #include <$ac_hdr>
6198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6199 { (eval echo configure:6200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6201 if test -z "$ac_err"; then
6202 rm -rf conftest*
6203 eval "ac_cv_header_$ac_safe=yes"
6204 else
6205 echo "$ac_err" >&5
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6208 rm -rf conftest*
6209 eval "ac_cv_header_$ac_safe=no"
6211 rm -f conftest*
6213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6216 cat >> confdefs.h <<EOF
6217 #define $ac_tr_hdr 1
6220 else
6221 echo "$ac_t""no" 1>&6
6223 done
6225 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6228 # If we're not using GNU ld, then there's no point in even trying these
6229 # tests. Check for that first. We should have already tested for gld
6230 # by now (in libtool), but require it now just to be safe...
6231 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6232 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6235 # The name set by libtool depends on the version of libtool. Shame on us
6236 # for depending on an impl detail, but c'est la vie. Older versions used
6237 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6238 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6239 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6240 # set (hence we're using an older libtool), then set it.
6241 if test x${with_gnu_ld+set} != xset; then
6242 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6243 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6244 with_gnu_ld=no
6245 else
6246 with_gnu_ld=$ac_cv_prog_gnu_ld
6250 # Start by getting the version number. I think the libtool test already
6251 # does some of this, but throws away the result.
6253 ldver=`$LD --version 2>/dev/null | head -1 | \
6254 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6256 glibcpp_gnu_ld_version=`echo $ldver | \
6257 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6259 # Set --gc-sections.
6260 if test "$with_gnu_ld" = "notbroken"; then
6261 # GNU ld it is! Joy and bunny rabbits!
6263 # All these tests are for C++; save the language and the compiler flags.
6264 # Need to do this so that g++ won't try to link in libstdc++
6265 ac_test_CFLAGS="${CFLAGS+set}"
6266 ac_save_CFLAGS="$CFLAGS"
6267 CFLAGS='-x c++ -Wl,--gc-sections'
6269 # Check for -Wl,--gc-sections
6270 # XXX This test is broken at the moment, as symbols required for
6271 # linking are now in libsupc++ (not built yet.....). In addition,
6272 # this test has cored on solaris in the past. In addition,
6273 # --gc-sections doesn't really work at the moment (keeps on discarding
6274 # used sections, first .eh_frame and now some of the glibc sections for
6275 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6276 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6277 echo "configure:6278: checking for ld that supports -Wl,--gc-sections" >&5
6278 if test "$cross_compiling" = yes; then
6279 ac_sectionLDflags=yes
6280 else
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6285 int main(void)
6287 try { throw 1; }
6288 catch (...) { };
6289 return 0;
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6294 then
6295 ac_sectionLDflags=yes
6296 else
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 rm -fr conftest*
6300 ac_sectionLDflags=no
6302 rm -fr conftest*
6305 if test "$ac_test_CFLAGS" = set; then
6306 CFLAGS="$ac_save_CFLAGS"
6307 else
6308 # this is the suspicious part
6309 CFLAGS=''
6311 if test "$ac_sectionLDflags" = "yes"; then
6312 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6314 echo "$ac_t""$ac_sectionLDflags" 1>&6
6317 # Set linker optimization flags.
6318 if test x"$with_gnu_ld" = x"yes"; then
6319 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6326 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6327 echo "configure:6328: checking for main in -lm" >&5
6328 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6331 else
6332 ac_save_LIBS="$LIBS"
6333 LIBS="-lm $LIBS"
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6338 int main() {
6339 main()
6340 ; return 0; }
6342 if { (eval echo configure:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 rm -rf conftest*
6344 eval "ac_cv_lib_$ac_lib_var=yes"
6345 else
6346 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 rm -rf conftest*
6349 eval "ac_cv_lib_$ac_lib_var=no"
6351 rm -f conftest*
6352 LIBS="$ac_save_LIBS"
6355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6356 echo "$ac_t""yes" 1>&6
6357 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6359 cat >> confdefs.h <<EOF
6360 #define $ac_tr_lib 1
6363 LIBS="-lm $LIBS"
6365 else
6366 echo "$ac_t""no" 1>&6
6369 for ac_func in nan copysignf
6371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6372 echo "configure:6373: checking for $ac_func" >&5
6373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6374 echo $ac_n "(cached) $ac_c" 1>&6
6375 else
6376 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6379 /* System header to define __stub macros and hopefully few prototypes,
6380 which can conflict with char $ac_func(); below. */
6381 #include <assert.h>
6382 /* Override any gcc2 internal prototype to avoid an error. */
6383 /* We use char because int might match the return type of a gcc2
6384 builtin and then its argument prototype would still apply. */
6385 char $ac_func();
6387 int main() {
6389 /* The GNU C library defines this for functions which it implements
6390 to always fail with ENOSYS. Some functions are actually named
6391 something starting with __ and the normal name is an alias. */
6392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 choke me
6394 #else
6395 $ac_func();
6396 #endif
6398 ; return 0; }
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6401 rm -rf conftest*
6402 eval "ac_cv_func_$ac_func=yes"
6403 else
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6406 rm -rf conftest*
6407 eval "ac_cv_func_$ac_func=no"
6409 rm -f conftest*
6412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6413 echo "$ac_t""yes" 1>&6
6414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6415 cat >> confdefs.h <<EOF
6416 #define $ac_tr_func 1
6419 else
6420 echo "$ac_t""no" 1>&6
6421 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6423 done
6426 for ac_func in __signbit
6428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_func" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* System header to define __stub macros and hopefully few prototypes,
6437 which can conflict with char $ac_func(); below. */
6438 #include <assert.h>
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6442 char $ac_func();
6444 int main() {
6446 /* The GNU C library defines this for functions which it implements
6447 to always fail with ENOSYS. Some functions are actually named
6448 something starting with __ and the normal name is an alias. */
6449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6450 choke me
6451 #else
6452 $ac_func();
6453 #endif
6455 ; return 0; }
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 rm -rf conftest*
6459 eval "ac_cv_func_$ac_func=yes"
6460 else
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 rm -rf conftest*
6464 eval "ac_cv_func_$ac_func=no"
6466 rm -f conftest*
6469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_func 1
6476 else
6477 echo "$ac_t""no" 1>&6
6478 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6480 done
6482 for ac_func in __signbitf
6484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_func" >&5
6486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6488 else
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char $ac_func(); below. */
6494 #include <assert.h>
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6498 char $ac_func();
6500 int main() {
6502 /* The GNU C library defines this for functions which it implements
6503 to always fail with ENOSYS. Some functions are actually named
6504 something starting with __ and the normal name is an alias. */
6505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 choke me
6507 #else
6508 $ac_func();
6509 #endif
6511 ; return 0; }
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 rm -rf conftest*
6515 eval "ac_cv_func_$ac_func=yes"
6516 else
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 rm -rf conftest*
6520 eval "ac_cv_func_$ac_func=no"
6522 rm -f conftest*
6525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6526 echo "$ac_t""yes" 1>&6
6527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6528 cat >> confdefs.h <<EOF
6529 #define $ac_tr_func 1
6532 else
6533 echo "$ac_t""no" 1>&6
6534 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6536 done
6539 if test x$ac_cv_func_copysignl = x"yes"; then
6540 for ac_func in __signbitl
6542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6543 echo "configure:6544: checking for $ac_func" >&5
6544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6546 else
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 /* System header to define __stub macros and hopefully few prototypes,
6551 which can conflict with char $ac_func(); below. */
6552 #include <assert.h>
6553 /* Override any gcc2 internal prototype to avoid an error. */
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6556 char $ac_func();
6558 int main() {
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6564 choke me
6565 #else
6566 $ac_func();
6567 #endif
6569 ; return 0; }
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 rm -rf conftest*
6573 eval "ac_cv_func_$ac_func=yes"
6574 else
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 rm -rf conftest*
6578 eval "ac_cv_func_$ac_func=no"
6580 rm -f conftest*
6583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6586 cat >> confdefs.h <<EOF
6587 #define $ac_tr_func 1
6590 else
6591 echo "$ac_t""no" 1>&6
6592 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6594 done
6598 if test -n "$LIBMATHOBJS"; then
6599 need_libmath=yes
6604 if test "$need_libmath" = yes; then
6605 GLIBCPP_BUILD_LIBMATH_TRUE=
6606 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6607 else
6608 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6609 GLIBCPP_BUILD_LIBMATH_FALSE=
6613 enable_wchar_t=no
6615 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6616 echo "configure:6617: checking for mbstate_t" >&5
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 #include <wchar.h>
6621 int main() {
6622 mbstate_t teststate;
6623 ; return 0; }
6625 if { (eval echo configure:6626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6626 rm -rf conftest*
6627 have_mbstate_t=yes
6628 else
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6631 rm -rf conftest*
6632 have_mbstate_t=no
6634 rm -f conftest*
6635 echo "$ac_t""$have_mbstate_t" 1>&6
6636 if test x"$have_mbstate_t" = xyes; then
6637 cat >> confdefs.h <<\EOF
6638 #define HAVE_MBSTATE_T 1
6643 for ac_hdr in wchar.h
6645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6647 echo "configure:6648: checking for $ac_hdr" >&5
6648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6649 echo $ac_n "(cached) $ac_c" 1>&6
6650 else
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6654 #include <$ac_hdr>
6656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6657 { (eval echo configure:6658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6659 if test -z "$ac_err"; then
6660 rm -rf conftest*
6661 eval "ac_cv_header_$ac_safe=yes"
6662 else
6663 echo "$ac_err" >&5
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 rm -rf conftest*
6667 eval "ac_cv_header_$ac_safe=no"
6669 rm -f conftest*
6671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6674 cat >> confdefs.h <<EOF
6675 #define $ac_tr_hdr 1
6677 ac_has_wchar_h=yes
6678 else
6679 echo "$ac_t""no" 1>&6
6680 ac_has_wchar_h=no
6682 done
6684 for ac_hdr in wctype.h
6686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_hdr" >&5
6689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 #include <$ac_hdr>
6697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6698 { (eval echo configure:6699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6700 if test -z "$ac_err"; then
6701 rm -rf conftest*
6702 eval "ac_cv_header_$ac_safe=yes"
6703 else
6704 echo "$ac_err" >&5
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6707 rm -rf conftest*
6708 eval "ac_cv_header_$ac_safe=no"
6710 rm -f conftest*
6712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6715 cat >> confdefs.h <<EOF
6716 #define $ac_tr_hdr 1
6718 ac_has_wctype_h=yes
6719 else
6720 echo "$ac_t""no" 1>&6
6721 ac_has_wctype_h=no
6723 done
6726 if test x"$ac_has_wchar_h" = xyes &&
6727 test x"$ac_has_wctype_h" = xyes &&
6728 test x"$enable_c_mbchar" != xno; then
6730 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6731 echo "configure:6732: checking for WCHAR_MIN and WCHAR_MAX" >&5
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <wchar.h>
6736 int main() {
6737 int i = WCHAR_MIN; int j = WCHAR_MAX;
6738 ; return 0; }
6740 if { (eval echo configure:6741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6741 rm -rf conftest*
6742 has_wchar_minmax=yes
6743 else
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6746 rm -rf conftest*
6747 has_wchar_minmax=no
6749 rm -f conftest*
6750 echo "$ac_t""$has_wchar_minmax" 1>&6
6752 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6753 echo "configure:6754: checking for WEOF" >&5
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6758 #include <wchar.h>
6759 #include <stddef.h>
6760 int main() {
6761 wint_t i = WEOF;
6762 ; return 0; }
6764 if { (eval echo configure:6765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6765 rm -rf conftest*
6766 has_weof=yes
6767 else
6768 echo "configure: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 rm -rf conftest*
6771 has_weof=no
6773 rm -f conftest*
6774 echo "$ac_t""$has_weof" 1>&6
6776 ac_wfuncs=yes
6777 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6780 echo "configure:6781: checking for $ac_func" >&5
6781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6783 else
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 /* System header to define __stub macros and hopefully few prototypes,
6788 which can conflict with char $ac_func(); below. */
6789 #include <assert.h>
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6793 char $ac_func();
6795 int main() {
6797 /* The GNU C library defines this for functions which it implements
6798 to always fail with ENOSYS. Some functions are actually named
6799 something starting with __ and the normal name is an alias. */
6800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6801 choke me
6802 #else
6803 $ac_func();
6804 #endif
6806 ; return 0; }
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 rm -rf conftest*
6810 eval "ac_cv_func_$ac_func=yes"
6811 else
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -rf conftest*
6815 eval "ac_cv_func_$ac_func=no"
6817 rm -f conftest*
6820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6823 cat >> confdefs.h <<EOF
6824 #define $ac_tr_func 1
6827 else
6828 echo "$ac_t""no" 1>&6
6830 ac_wfuncs=no
6832 done
6835 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6836 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6837 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6838 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6839 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6840 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_func" >&5
6844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6846 else
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 /* System header to define __stub macros and hopefully few prototypes,
6851 which can conflict with char $ac_func(); below. */
6852 #include <assert.h>
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6856 char $ac_func();
6858 int main() {
6860 /* The GNU C library defines this for functions which it implements
6861 to always fail with ENOSYS. Some functions are actually named
6862 something starting with __ and the normal name is an alias. */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 choke me
6865 #else
6866 $ac_func();
6867 #endif
6869 ; return 0; }
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872 rm -rf conftest*
6873 eval "ac_cv_func_$ac_func=yes"
6874 else
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 rm -rf conftest*
6878 eval "ac_cv_func_$ac_func=no"
6880 rm -f conftest*
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886 cat >> confdefs.h <<EOF
6887 #define $ac_tr_func 1
6890 else
6891 echo "$ac_t""no" 1>&6
6893 ac_wfuncs=no
6895 done
6898 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6899 echo "configure:6900: checking for ISO C99 wchar_t support" >&5
6900 if test x"$has_weof" = xyes &&
6901 test x"$has_wchar_minmax" = xyes &&
6902 test x"$ac_wfuncs" = xyes; then
6903 ac_isoC99_wchar_t=yes
6904 else
6905 ac_isoC99_wchar_t=no
6907 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6909 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6910 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6911 echo "configure:6912: checking for iconv.h" >&5
6912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6914 else
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 #include <iconv.h>
6920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6921 { (eval echo configure:6922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6923 if test -z "$ac_err"; then
6924 rm -rf conftest*
6925 eval "ac_cv_header_$ac_safe=yes"
6926 else
6927 echo "$ac_err" >&5
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 rm -rf conftest*
6931 eval "ac_cv_header_$ac_safe=no"
6933 rm -f conftest*
6935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6936 echo "$ac_t""yes" 1>&6
6937 ac_has_iconv_h=yes
6938 else
6939 echo "$ac_t""no" 1>&6
6940 ac_has_iconv_h=no
6943 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6944 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6945 echo "configure:6946: checking for langinfo.h" >&5
6946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6948 else
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 #include <langinfo.h>
6954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6955 { (eval echo configure:6956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6957 if test -z "$ac_err"; then
6958 rm -rf conftest*
6959 eval "ac_cv_header_$ac_safe=yes"
6960 else
6961 echo "$ac_err" >&5
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 rm -rf conftest*
6965 eval "ac_cv_header_$ac_safe=no"
6967 rm -f conftest*
6969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 ac_has_langinfo_h=yes
6972 else
6973 echo "$ac_t""no" 1>&6
6974 ac_has_langinfo_h=no
6978 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6979 echo "configure:6980: checking for iconv in -liconv" >&5
6980 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6983 else
6984 ac_save_LIBS="$LIBS"
6985 LIBS="-liconv $LIBS"
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* Override any gcc2 internal prototype to avoid an error. */
6990 /* We use char because int might match the return type of a gcc2
6991 builtin and then its argument prototype would still apply. */
6992 char iconv();
6994 int main() {
6995 iconv()
6996 ; return 0; }
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999 rm -rf conftest*
7000 eval "ac_cv_lib_$ac_lib_var=yes"
7001 else
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 rm -rf conftest*
7005 eval "ac_cv_lib_$ac_lib_var=no"
7007 rm -f conftest*
7008 LIBS="$ac_save_LIBS"
7011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7012 echo "$ac_t""yes" 1>&6
7013 libiconv="-liconv"
7014 else
7015 echo "$ac_t""no" 1>&6
7018 ac_save_LIBS="$LIBS"
7019 LIBS="$LIBS $libiconv"
7021 for ac_func in iconv_open iconv_close iconv nl_langinfo
7023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7024 echo "configure:7025: checking for $ac_func" >&5
7025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 /* System header to define __stub macros and hopefully few prototypes,
7032 which can conflict with char $ac_func(); below. */
7033 #include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char $ac_func();
7039 int main() {
7041 /* The GNU C library defines this for functions which it implements
7042 to always fail with ENOSYS. Some functions are actually named
7043 something starting with __ and the normal name is an alias. */
7044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7045 choke me
7046 #else
7047 $ac_func();
7048 #endif
7050 ; return 0; }
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053 rm -rf conftest*
7054 eval "ac_cv_func_$ac_func=yes"
7055 else
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7058 rm -rf conftest*
7059 eval "ac_cv_func_$ac_func=no"
7061 rm -f conftest*
7064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7067 cat >> confdefs.h <<EOF
7068 #define $ac_tr_func 1
7071 ac_XPG2funcs=yes
7072 else
7073 echo "$ac_t""no" 1>&6
7074 ac_XPG2funcs=no
7076 done
7079 LIBS="$ac_save_LIBS"
7081 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7082 echo "configure:7083: checking for XPG2 wchar_t support" >&5
7083 if test x"$ac_has_iconv_h" = xyes &&
7084 test x"$ac_has_langinfo_h" = xyes &&
7085 test x"$ac_XPG2funcs" = xyes; then
7086 ac_XPG2_wchar_t=yes
7087 else
7088 ac_XPG2_wchar_t=no
7090 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7092 if test x"$ac_isoC99_wchar_t" = xyes &&
7093 test x"$ac_XPG2_wchar_t" = xyes; then
7094 cat >> confdefs.h <<\EOF
7095 #define _GLIBCPP_USE_WCHAR_T 1
7098 enable_wchar_t=yes
7101 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7102 echo "configure:7103: checking for enabled wchar_t specializations" >&5
7103 echo "$ac_t""$enable_wchar_t" 1>&6
7106 if test "$enable_wchar_t" = yes; then
7107 GLIBCPP_TEST_WCHAR_T_TRUE=
7108 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7109 else
7110 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7111 GLIBCPP_TEST_WCHAR_T_FALSE=
7114 os_include_dir="os/bsd/netbsd"
7115 cat >> confdefs.h <<\EOF
7116 #define HAVE_COPYSIGN 1
7119 cat >> confdefs.h <<\EOF
7120 #define HAVE_COPYSIGNF 1
7123 cat >> confdefs.h <<\EOF
7124 #define HAVE_FINITEF 1
7127 cat >> confdefs.h <<\EOF
7128 #define HAVE_FINITE 1
7131 cat >> confdefs.h <<\EOF
7132 #define HAVE_FREXPF 1
7135 cat >> confdefs.h <<\EOF
7136 #define HAVE_HYPOTF 1
7139 cat >> confdefs.h <<\EOF
7140 #define HAVE_ISINF 1
7143 cat >> confdefs.h <<\EOF
7144 #define HAVE_ISINFF 1
7147 cat >> confdefs.h <<\EOF
7148 #define HAVE_ISNAN 1
7151 cat >> confdefs.h <<\EOF
7152 #define HAVE_ISNANF 1
7155 if test x"long_double_math_on_this_cpu" = x"yes"; then
7156 cat >> confdefs.h <<\EOF
7157 #define HAVE_FINITEL 1
7160 cat >> confdefs.h <<\EOF
7161 #define HAVE_ISINFL 1
7164 cat >> confdefs.h <<\EOF
7165 #define HAVE_ISNANL 1
7170 *-freebsd*)
7171 # Check for available headers.
7172 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7173 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7174 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7175 sys/time.h unistd.h
7177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7179 echo "configure:7180: checking for $ac_hdr" >&5
7180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7181 echo $ac_n "(cached) $ac_c" 1>&6
7182 else
7183 cat > conftest.$ac_ext <<EOF
7184 #line 7185 "configure"
7185 #include "confdefs.h"
7186 #include <$ac_hdr>
7188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7189 { (eval echo configure:7190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7191 if test -z "$ac_err"; then
7192 rm -rf conftest*
7193 eval "ac_cv_header_$ac_safe=yes"
7194 else
7195 echo "$ac_err" >&5
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7198 rm -rf conftest*
7199 eval "ac_cv_header_$ac_safe=no"
7201 rm -f conftest*
7203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7206 cat >> confdefs.h <<EOF
7207 #define $ac_tr_hdr 1
7210 else
7211 echo "$ac_t""no" 1>&6
7213 done
7215 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7218 # If we're not using GNU ld, then there's no point in even trying these
7219 # tests. Check for that first. We should have already tested for gld
7220 # by now (in libtool), but require it now just to be safe...
7221 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7222 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7225 # The name set by libtool depends on the version of libtool. Shame on us
7226 # for depending on an impl detail, but c'est la vie. Older versions used
7227 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7228 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7229 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7230 # set (hence we're using an older libtool), then set it.
7231 if test x${with_gnu_ld+set} != xset; then
7232 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7233 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7234 with_gnu_ld=no
7235 else
7236 with_gnu_ld=$ac_cv_prog_gnu_ld
7240 # Start by getting the version number. I think the libtool test already
7241 # does some of this, but throws away the result.
7243 ldver=`$LD --version 2>/dev/null | head -1 | \
7244 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7246 glibcpp_gnu_ld_version=`echo $ldver | \
7247 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7249 # Set --gc-sections.
7250 if test "$with_gnu_ld" = "notbroken"; then
7251 # GNU ld it is! Joy and bunny rabbits!
7253 # All these tests are for C++; save the language and the compiler flags.
7254 # Need to do this so that g++ won't try to link in libstdc++
7255 ac_test_CFLAGS="${CFLAGS+set}"
7256 ac_save_CFLAGS="$CFLAGS"
7257 CFLAGS='-x c++ -Wl,--gc-sections'
7259 # Check for -Wl,--gc-sections
7260 # XXX This test is broken at the moment, as symbols required for
7261 # linking are now in libsupc++ (not built yet.....). In addition,
7262 # this test has cored on solaris in the past. In addition,
7263 # --gc-sections doesn't really work at the moment (keeps on discarding
7264 # used sections, first .eh_frame and now some of the glibc sections for
7265 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7266 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7267 echo "configure:7268: checking for ld that supports -Wl,--gc-sections" >&5
7268 if test "$cross_compiling" = yes; then
7269 ac_sectionLDflags=yes
7270 else
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7275 int main(void)
7277 try { throw 1; }
7278 catch (...) { };
7279 return 0;
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7284 then
7285 ac_sectionLDflags=yes
7286 else
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 rm -fr conftest*
7290 ac_sectionLDflags=no
7292 rm -fr conftest*
7295 if test "$ac_test_CFLAGS" = set; then
7296 CFLAGS="$ac_save_CFLAGS"
7297 else
7298 # this is the suspicious part
7299 CFLAGS=''
7301 if test "$ac_sectionLDflags" = "yes"; then
7302 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7304 echo "$ac_t""$ac_sectionLDflags" 1>&6
7307 # Set linker optimization flags.
7308 if test x"$with_gnu_ld" = x"yes"; then
7309 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7316 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7317 echo "configure:7318: checking for main in -lm" >&5
7318 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7321 else
7322 ac_save_LIBS="$LIBS"
7323 LIBS="-lm $LIBS"
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7328 int main() {
7329 main()
7330 ; return 0; }
7332 if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7333 rm -rf conftest*
7334 eval "ac_cv_lib_$ac_lib_var=yes"
7335 else
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 rm -rf conftest*
7339 eval "ac_cv_lib_$ac_lib_var=no"
7341 rm -f conftest*
7342 LIBS="$ac_save_LIBS"
7345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7349 cat >> confdefs.h <<EOF
7350 #define $ac_tr_lib 1
7353 LIBS="-lm $LIBS"
7355 else
7356 echo "$ac_t""no" 1>&6
7359 for ac_func in nan copysignf
7361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7362 echo "configure:7363: checking for $ac_func" >&5
7363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7365 else
7366 cat > conftest.$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func(); below. */
7371 #include <assert.h>
7372 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7375 char $ac_func();
7377 int main() {
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7383 choke me
7384 #else
7385 $ac_func();
7386 #endif
7388 ; return 0; }
7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 rm -rf conftest*
7392 eval "ac_cv_func_$ac_func=yes"
7393 else
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 rm -rf conftest*
7397 eval "ac_cv_func_$ac_func=no"
7399 rm -f conftest*
7402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7405 cat >> confdefs.h <<EOF
7406 #define $ac_tr_func 1
7409 else
7410 echo "$ac_t""no" 1>&6
7411 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7413 done
7416 for ac_func in __signbit
7418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7419 echo "configure:7420: checking for $ac_func" >&5
7420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7422 else
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7426 /* System header to define __stub macros and hopefully few prototypes,
7427 which can conflict with char $ac_func(); below. */
7428 #include <assert.h>
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7432 char $ac_func();
7434 int main() {
7436 /* The GNU C library defines this for functions which it implements
7437 to always fail with ENOSYS. Some functions are actually named
7438 something starting with __ and the normal name is an alias. */
7439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7440 choke me
7441 #else
7442 $ac_func();
7443 #endif
7445 ; return 0; }
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 rm -rf conftest*
7449 eval "ac_cv_func_$ac_func=yes"
7450 else
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 rm -rf conftest*
7454 eval "ac_cv_func_$ac_func=no"
7456 rm -f conftest*
7459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7460 echo "$ac_t""yes" 1>&6
7461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7462 cat >> confdefs.h <<EOF
7463 #define $ac_tr_func 1
7466 else
7467 echo "$ac_t""no" 1>&6
7468 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7470 done
7472 for ac_func in __signbitf
7474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7475 echo "configure:7476: checking for $ac_func" >&5
7476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7478 else
7479 cat > conftest.$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char $ac_func(); below. */
7484 #include <assert.h>
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7488 char $ac_func();
7490 int main() {
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7496 choke me
7497 #else
7498 $ac_func();
7499 #endif
7501 ; return 0; }
7503 if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7504 rm -rf conftest*
7505 eval "ac_cv_func_$ac_func=yes"
7506 else
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 rm -rf conftest*
7510 eval "ac_cv_func_$ac_func=no"
7512 rm -f conftest*
7515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7518 cat >> confdefs.h <<EOF
7519 #define $ac_tr_func 1
7522 else
7523 echo "$ac_t""no" 1>&6
7524 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7526 done
7529 if test x$ac_cv_func_copysignl = x"yes"; then
7530 for ac_func in __signbitl
7532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7533 echo "configure:7534: checking for $ac_func" >&5
7534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7536 else
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func(); below. */
7542 #include <assert.h>
7543 /* Override any gcc2 internal prototype to avoid an error. */
7544 /* We use char because int might match the return type of a gcc2
7545 builtin and then its argument prototype would still apply. */
7546 char $ac_func();
7548 int main() {
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7554 choke me
7555 #else
7556 $ac_func();
7557 #endif
7559 ; return 0; }
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7562 rm -rf conftest*
7563 eval "ac_cv_func_$ac_func=yes"
7564 else
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 rm -rf conftest*
7568 eval "ac_cv_func_$ac_func=no"
7570 rm -f conftest*
7573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7576 cat >> confdefs.h <<EOF
7577 #define $ac_tr_func 1
7580 else
7581 echo "$ac_t""no" 1>&6
7582 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7584 done
7588 if test -n "$LIBMATHOBJS"; then
7589 need_libmath=yes
7594 if test "$need_libmath" = yes; then
7595 GLIBCPP_BUILD_LIBMATH_TRUE=
7596 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7597 else
7598 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7599 GLIBCPP_BUILD_LIBMATH_FALSE=
7603 enable_wchar_t=no
7605 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7606 echo "configure:7607: checking for mbstate_t" >&5
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 #include <wchar.h>
7611 int main() {
7612 mbstate_t teststate;
7613 ; return 0; }
7615 if { (eval echo configure:7616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7616 rm -rf conftest*
7617 have_mbstate_t=yes
7618 else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 have_mbstate_t=no
7624 rm -f conftest*
7625 echo "$ac_t""$have_mbstate_t" 1>&6
7626 if test x"$have_mbstate_t" = xyes; then
7627 cat >> confdefs.h <<\EOF
7628 #define HAVE_MBSTATE_T 1
7633 for ac_hdr in wchar.h
7635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7637 echo "configure:7638: checking for $ac_hdr" >&5
7638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7640 else
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <$ac_hdr>
7646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7647 { (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7649 if test -z "$ac_err"; then
7650 rm -rf conftest*
7651 eval "ac_cv_header_$ac_safe=yes"
7652 else
7653 echo "$ac_err" >&5
7654 echo "configure: failed program was:" >&5
7655 cat conftest.$ac_ext >&5
7656 rm -rf conftest*
7657 eval "ac_cv_header_$ac_safe=no"
7659 rm -f conftest*
7661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7662 echo "$ac_t""yes" 1>&6
7663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7664 cat >> confdefs.h <<EOF
7665 #define $ac_tr_hdr 1
7667 ac_has_wchar_h=yes
7668 else
7669 echo "$ac_t""no" 1>&6
7670 ac_has_wchar_h=no
7672 done
7674 for ac_hdr in wctype.h
7676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7678 echo "configure:7679: checking for $ac_hdr" >&5
7679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7681 else
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 #include <$ac_hdr>
7687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7688 { (eval echo configure:7689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7690 if test -z "$ac_err"; then
7691 rm -rf conftest*
7692 eval "ac_cv_header_$ac_safe=yes"
7693 else
7694 echo "$ac_err" >&5
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 rm -rf conftest*
7698 eval "ac_cv_header_$ac_safe=no"
7700 rm -f conftest*
7702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7705 cat >> confdefs.h <<EOF
7706 #define $ac_tr_hdr 1
7708 ac_has_wctype_h=yes
7709 else
7710 echo "$ac_t""no" 1>&6
7711 ac_has_wctype_h=no
7713 done
7716 if test x"$ac_has_wchar_h" = xyes &&
7717 test x"$ac_has_wctype_h" = xyes &&
7718 test x"$enable_c_mbchar" != xno; then
7720 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7721 echo "configure:7722: checking for WCHAR_MIN and WCHAR_MAX" >&5
7722 cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725 #include <wchar.h>
7726 int main() {
7727 int i = WCHAR_MIN; int j = WCHAR_MAX;
7728 ; return 0; }
7730 if { (eval echo configure:7731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7731 rm -rf conftest*
7732 has_wchar_minmax=yes
7733 else
7734 echo "configure: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7736 rm -rf conftest*
7737 has_wchar_minmax=no
7739 rm -f conftest*
7740 echo "$ac_t""$has_wchar_minmax" 1>&6
7742 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7743 echo "configure:7744: checking for WEOF" >&5
7744 cat > conftest.$ac_ext <<EOF
7745 #line 7746 "configure"
7746 #include "confdefs.h"
7748 #include <wchar.h>
7749 #include <stddef.h>
7750 int main() {
7751 wint_t i = WEOF;
7752 ; return 0; }
7754 if { (eval echo configure:7755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7755 rm -rf conftest*
7756 has_weof=yes
7757 else
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 rm -rf conftest*
7761 has_weof=no
7763 rm -f conftest*
7764 echo "$ac_t""$has_weof" 1>&6
7766 ac_wfuncs=yes
7767 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_func" >&5
7771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* System header to define __stub macros and hopefully few prototypes,
7778 which can conflict with char $ac_func(); below. */
7779 #include <assert.h>
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783 char $ac_func();
7785 int main() {
7787 /* The GNU C library defines this for functions which it implements
7788 to always fail with ENOSYS. Some functions are actually named
7789 something starting with __ and the normal name is an alias. */
7790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7791 choke me
7792 #else
7793 $ac_func();
7794 #endif
7796 ; return 0; }
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799 rm -rf conftest*
7800 eval "ac_cv_func_$ac_func=yes"
7801 else
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 rm -rf conftest*
7805 eval "ac_cv_func_$ac_func=no"
7807 rm -f conftest*
7810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7813 cat >> confdefs.h <<EOF
7814 #define $ac_tr_func 1
7817 else
7818 echo "$ac_t""no" 1>&6
7820 ac_wfuncs=no
7822 done
7825 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7826 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7827 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7828 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7829 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7830 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7836 else
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7842 #include <assert.h>
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7846 char $ac_func();
7848 int main() {
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7854 choke me
7855 #else
7856 $ac_func();
7857 #endif
7859 ; return 0; }
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 rm -rf conftest*
7863 eval "ac_cv_func_$ac_func=yes"
7864 else
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_func_$ac_func=no"
7870 rm -f conftest*
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_func 1
7880 else
7881 echo "$ac_t""no" 1>&6
7883 ac_wfuncs=no
7885 done
7888 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7889 echo "configure:7890: checking for ISO C99 wchar_t support" >&5
7890 if test x"$has_weof" = xyes &&
7891 test x"$has_wchar_minmax" = xyes &&
7892 test x"$ac_wfuncs" = xyes; then
7893 ac_isoC99_wchar_t=yes
7894 else
7895 ac_isoC99_wchar_t=no
7897 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7899 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7900 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7901 echo "configure:7902: checking for iconv.h" >&5
7902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7904 else
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 #include <iconv.h>
7910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7911 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7913 if test -z "$ac_err"; then
7914 rm -rf conftest*
7915 eval "ac_cv_header_$ac_safe=yes"
7916 else
7917 echo "$ac_err" >&5
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 rm -rf conftest*
7921 eval "ac_cv_header_$ac_safe=no"
7923 rm -f conftest*
7925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_has_iconv_h=yes
7928 else
7929 echo "$ac_t""no" 1>&6
7930 ac_has_iconv_h=no
7933 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7934 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7935 echo "configure:7936: checking for langinfo.h" >&5
7936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7938 else
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 #include <langinfo.h>
7944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7945 { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7947 if test -z "$ac_err"; then
7948 rm -rf conftest*
7949 eval "ac_cv_header_$ac_safe=yes"
7950 else
7951 echo "$ac_err" >&5
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 rm -rf conftest*
7955 eval "ac_cv_header_$ac_safe=no"
7957 rm -f conftest*
7959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_has_langinfo_h=yes
7962 else
7963 echo "$ac_t""no" 1>&6
7964 ac_has_langinfo_h=no
7968 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7969 echo "configure:7970: checking for iconv in -liconv" >&5
7970 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7973 else
7974 ac_save_LIBS="$LIBS"
7975 LIBS="-liconv $LIBS"
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 /* Override any gcc2 internal prototype to avoid an error. */
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7982 char iconv();
7984 int main() {
7985 iconv()
7986 ; return 0; }
7988 if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7989 rm -rf conftest*
7990 eval "ac_cv_lib_$ac_lib_var=yes"
7991 else
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 rm -rf conftest*
7995 eval "ac_cv_lib_$ac_lib_var=no"
7997 rm -f conftest*
7998 LIBS="$ac_save_LIBS"
8001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 libiconv="-liconv"
8004 else
8005 echo "$ac_t""no" 1>&6
8008 ac_save_LIBS="$LIBS"
8009 LIBS="$LIBS $libiconv"
8011 for ac_func in iconv_open iconv_close iconv nl_langinfo
8013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_func" >&5
8015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8017 else
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func(); below. */
8023 #include <assert.h>
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char $ac_func();
8029 int main() {
8031 /* The GNU C library defines this for functions which it implements
8032 to always fail with ENOSYS. Some functions are actually named
8033 something starting with __ and the normal name is an alias. */
8034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8035 choke me
8036 #else
8037 $ac_func();
8038 #endif
8040 ; return 0; }
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8043 rm -rf conftest*
8044 eval "ac_cv_func_$ac_func=yes"
8045 else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 rm -rf conftest*
8049 eval "ac_cv_func_$ac_func=no"
8051 rm -f conftest*
8054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 cat >> confdefs.h <<EOF
8058 #define $ac_tr_func 1
8061 ac_XPG2funcs=yes
8062 else
8063 echo "$ac_t""no" 1>&6
8064 ac_XPG2funcs=no
8066 done
8069 LIBS="$ac_save_LIBS"
8071 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8072 echo "configure:8073: checking for XPG2 wchar_t support" >&5
8073 if test x"$ac_has_iconv_h" = xyes &&
8074 test x"$ac_has_langinfo_h" = xyes &&
8075 test x"$ac_XPG2funcs" = xyes; then
8076 ac_XPG2_wchar_t=yes
8077 else
8078 ac_XPG2_wchar_t=no
8080 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8082 if test x"$ac_isoC99_wchar_t" = xyes &&
8083 test x"$ac_XPG2_wchar_t" = xyes; then
8084 cat >> confdefs.h <<\EOF
8085 #define _GLIBCPP_USE_WCHAR_T 1
8088 enable_wchar_t=yes
8091 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8092 echo "configure:8093: checking for enabled wchar_t specializations" >&5
8093 echo "$ac_t""$enable_wchar_t" 1>&6
8096 if test "$enable_wchar_t" = yes; then
8097 GLIBCPP_TEST_WCHAR_T_TRUE=
8098 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8099 else
8100 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8101 GLIBCPP_TEST_WCHAR_T_FALSE=
8104 os_include_dir="os/bsd/freebsd"
8105 cat >> confdefs.h <<\EOF
8106 #define HAVE_LC_MESSAGES 1
8109 cat >> confdefs.h <<\EOF
8110 #define HAVE_DRAND48 1
8113 cat >> confdefs.h <<\EOF
8114 #define HAVE_GETPAGESIZE 1
8117 cat >> confdefs.h <<\EOF
8118 #define HAVE_SETENV 1
8121 cat >> confdefs.h <<\EOF
8122 #define HAVE_SIGSETJMP 1
8125 cat >> confdefs.h <<\EOF
8126 #define HAVE_COPYSIGN 1
8129 cat >> confdefs.h <<\EOF
8130 #define HAVE_COPYSIGNF 1
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_FINITEF 1
8137 cat >> confdefs.h <<\EOF
8138 #define HAVE_FINITE 1
8141 cat >> confdefs.h <<\EOF
8142 #define HAVE_FREXPF 1
8145 cat >> confdefs.h <<\EOF
8146 #define HAVE_HYPOT 1
8149 cat >> confdefs.h <<\EOF
8150 #define HAVE_HYPOTF 1
8153 cat >> confdefs.h <<\EOF
8154 #define HAVE_ISINF 1
8157 cat >> confdefs.h <<\EOF
8158 #define HAVE_ISNAN 1
8161 cat >> confdefs.h <<\EOF
8162 #define HAVE_ISNANF 1
8165 if test x"long_double_math_on_this_cpu" = x"yes"; then
8166 cat >> confdefs.h <<\EOF
8167 #define HAVE_FINITEL 1
8170 cat >> confdefs.h <<\EOF
8171 #define HAVE_ISINFL 1
8174 cat >> confdefs.h <<\EOF
8175 #define HAVE_ISNANL 1
8180 *-mingw32*)
8181 for ac_hdr in sys/types.h locale.h float.h
8183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8185 echo "configure:8186: checking for $ac_hdr" >&5
8186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8188 else
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8191 "configure"
8191 #include "confdefs.h"
8192 #include <$ac_hdr>
8194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8195 { (eval echo configure:8196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8197 if test -z "$ac_err"; then
8198 rm -rf conftest*
8199 eval "ac_cv_header_$ac_safe=yes"
8200 else
8201 echo "$ac_err" >&5
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8204 rm -rf conftest*
8205 eval "ac_cv_header_$ac_safe=no"
8207 rm -f conftest*
8209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8212 cat >> confdefs.h <<EOF
8213 #define $ac_tr_hdr 1
8216 else
8217 echo "$ac_t""no" 1>&6
8219 done
8222 # If we're not using GNU ld, then there's no point in even trying these
8223 # tests. Check for that first. We should have already tested for gld
8224 # by now (in libtool), but require it now just to be safe...
8225 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8226 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8229 # The name set by libtool depends on the version of libtool. Shame on us
8230 # for depending on an impl detail, but c'est la vie. Older versions used
8231 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8232 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8233 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8234 # set (hence we're using an older libtool), then set it.
8235 if test x${with_gnu_ld+set} != xset; then
8236 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8237 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8238 with_gnu_ld=no
8239 else
8240 with_gnu_ld=$ac_cv_prog_gnu_ld
8244 # Start by getting the version number. I think the libtool test already
8245 # does some of this, but throws away the result.
8247 ldver=`$LD --version 2>/dev/null | head -1 | \
8248 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8250 glibcpp_gnu_ld_version=`echo $ldver | \
8251 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8253 # Set --gc-sections.
8254 if test "$with_gnu_ld" = "notbroken"; then
8255 # GNU ld it is! Joy and bunny rabbits!
8257 # All these tests are for C++; save the language and the compiler flags.
8258 # Need to do this so that g++ won't try to link in libstdc++
8259 ac_test_CFLAGS="${CFLAGS+set}"
8260 ac_save_CFLAGS="$CFLAGS"
8261 CFLAGS='-x c++ -Wl,--gc-sections'
8263 # Check for -Wl,--gc-sections
8264 # XXX This test is broken at the moment, as symbols required for
8265 # linking are now in libsupc++ (not built yet.....). In addition,
8266 # this test has cored on solaris in the past. In addition,
8267 # --gc-sections doesn't really work at the moment (keeps on discarding
8268 # used sections, first .eh_frame and now some of the glibc sections for
8269 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8270 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8271 echo "configure:8272: checking for ld that supports -Wl,--gc-sections" >&5
8272 if test "$cross_compiling" = yes; then
8273 ac_sectionLDflags=yes
8274 else
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8279 int main(void)
8281 try { throw 1; }
8282 catch (...) { };
8283 return 0;
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8288 then
8289 ac_sectionLDflags=yes
8290 else
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 rm -fr conftest*
8294 ac_sectionLDflags=no
8296 rm -fr conftest*
8299 if test "$ac_test_CFLAGS" = set; then
8300 CFLAGS="$ac_save_CFLAGS"
8301 else
8302 # this is the suspicious part
8303 CFLAGS=''
8305 if test "$ac_sectionLDflags" = "yes"; then
8306 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8308 echo "$ac_t""$ac_sectionLDflags" 1>&6
8311 # Set linker optimization flags.
8312 if test x"$with_gnu_ld" = x"yes"; then
8313 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8320 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8321 echo "configure:8322: checking for main in -lm" >&5
8322 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8325 else
8326 ac_save_LIBS="$LIBS"
8327 LIBS="-lm $LIBS"
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8332 int main() {
8333 main()
8334 ; return 0; }
8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 rm -rf conftest*
8338 eval "ac_cv_lib_$ac_lib_var=yes"
8339 else
8340 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5
8342 rm -rf conftest*
8343 eval "ac_cv_lib_$ac_lib_var=no"
8345 rm -f conftest*
8346 LIBS="$ac_save_LIBS"
8349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_lib 1
8357 LIBS="-lm $LIBS"
8359 else
8360 echo "$ac_t""no" 1>&6
8363 for ac_func in nan copysignf
8365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8366 echo "configure:8367: checking for $ac_func" >&5
8367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8368 echo $ac_n "(cached) $ac_c" 1>&6
8369 else
8370 cat > conftest.$ac_ext <<EOF
8371 #line 8372 "configure"
8372 #include "confdefs.h"
8373 /* System header to define __stub macros and hopefully few prototypes,
8374 which can conflict with char $ac_func(); below. */
8375 #include <assert.h>
8376 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8379 char $ac_func();
8381 int main() {
8383 /* The GNU C library defines this for functions which it implements
8384 to always fail with ENOSYS. Some functions are actually named
8385 something starting with __ and the normal name is an alias. */
8386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8387 choke me
8388 #else
8389 $ac_func();
8390 #endif
8392 ; return 0; }
8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8395 rm -rf conftest*
8396 eval "ac_cv_func_$ac_func=yes"
8397 else
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8400 rm -rf conftest*
8401 eval "ac_cv_func_$ac_func=no"
8403 rm -f conftest*
8406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8407 echo "$ac_t""yes" 1>&6
8408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8409 cat >> confdefs.h <<EOF
8410 #define $ac_tr_func 1
8413 else
8414 echo "$ac_t""no" 1>&6
8415 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8417 done
8420 for ac_func in __signbit
8422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8423 echo "configure:8424: checking for $ac_func" >&5
8424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8426 else
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 /* System header to define __stub macros and hopefully few prototypes,
8431 which can conflict with char $ac_func(); below. */
8432 #include <assert.h>
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436 char $ac_func();
8438 int main() {
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8444 choke me
8445 #else
8446 $ac_func();
8447 #endif
8449 ; return 0; }
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8452 rm -rf conftest*
8453 eval "ac_cv_func_$ac_func=yes"
8454 else
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8457 rm -rf conftest*
8458 eval "ac_cv_func_$ac_func=no"
8460 rm -f conftest*
8463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
8465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8466 cat >> confdefs.h <<EOF
8467 #define $ac_tr_func 1
8470 else
8471 echo "$ac_t""no" 1>&6
8472 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8474 done
8476 for ac_func in __signbitf
8478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8479 echo "configure:8480: checking for $ac_func" >&5
8480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8482 else
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 /* System header to define __stub macros and hopefully few prototypes,
8487 which can conflict with char $ac_func(); below. */
8488 #include <assert.h>
8489 /* Override any gcc2 internal prototype to avoid an error. */
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492 char $ac_func();
8494 int main() {
8496 /* The GNU C library defines this for functions which it implements
8497 to always fail with ENOSYS. Some functions are actually named
8498 something starting with __ and the normal name is an alias. */
8499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8500 choke me
8501 #else
8502 $ac_func();
8503 #endif
8505 ; return 0; }
8507 if { (eval echo configure:8508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8508 rm -rf conftest*
8509 eval "ac_cv_func_$ac_func=yes"
8510 else
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 rm -rf conftest*
8514 eval "ac_cv_func_$ac_func=no"
8516 rm -f conftest*
8519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8520 echo "$ac_t""yes" 1>&6
8521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8522 cat >> confdefs.h <<EOF
8523 #define $ac_tr_func 1
8526 else
8527 echo "$ac_t""no" 1>&6
8528 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8530 done
8533 if test x$ac_cv_func_copysignl = x"yes"; then
8534 for ac_func in __signbitl
8536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8537 echo "configure:8538: checking for $ac_func" >&5
8538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8540 else
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* System header to define __stub macros and hopefully few prototypes,
8545 which can conflict with char $ac_func(); below. */
8546 #include <assert.h>
8547 /* Override any gcc2 internal prototype to avoid an error. */
8548 /* We use char because int might match the return type of a gcc2
8549 builtin and then its argument prototype would still apply. */
8550 char $ac_func();
8552 int main() {
8554 /* The GNU C library defines this for functions which it implements
8555 to always fail with ENOSYS. Some functions are actually named
8556 something starting with __ and the normal name is an alias. */
8557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8558 choke me
8559 #else
8560 $ac_func();
8561 #endif
8563 ; return 0; }
8565 if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8566 rm -rf conftest*
8567 eval "ac_cv_func_$ac_func=yes"
8568 else
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 rm -rf conftest*
8572 eval "ac_cv_func_$ac_func=no"
8574 rm -f conftest*
8577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8580 cat >> confdefs.h <<EOF
8581 #define $ac_tr_func 1
8584 else
8585 echo "$ac_t""no" 1>&6
8586 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8588 done
8592 if test -n "$LIBMATHOBJS"; then
8593 need_libmath=yes
8598 if test "$need_libmath" = yes; then
8599 GLIBCPP_BUILD_LIBMATH_TRUE=
8600 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8601 else
8602 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8603 GLIBCPP_BUILD_LIBMATH_FALSE=
8607 enable_wchar_t=no
8609 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8610 echo "configure:8611: checking for mbstate_t" >&5
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <wchar.h>
8615 int main() {
8616 mbstate_t teststate;
8617 ; return 0; }
8619 if { (eval echo configure:8620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620 rm -rf conftest*
8621 have_mbstate_t=yes
8622 else
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 rm -rf conftest*
8626 have_mbstate_t=no
8628 rm -f conftest*
8629 echo "$ac_t""$have_mbstate_t" 1>&6
8630 if test x"$have_mbstate_t" = xyes; then
8631 cat >> confdefs.h <<\EOF
8632 #define HAVE_MBSTATE_T 1
8637 for ac_hdr in wchar.h
8639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8641 echo "configure:8642: checking for $ac_hdr" >&5
8642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8644 else
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 #include <$ac_hdr>
8650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8651 { (eval echo configure:8652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8653 if test -z "$ac_err"; then
8654 rm -rf conftest*
8655 eval "ac_cv_header_$ac_safe=yes"
8656 else
8657 echo "$ac_err" >&5
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 eval "ac_cv_header_$ac_safe=no"
8663 rm -f conftest*
8665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8668 cat >> confdefs.h <<EOF
8669 #define $ac_tr_hdr 1
8671 ac_has_wchar_h=yes
8672 else
8673 echo "$ac_t""no" 1>&6
8674 ac_has_wchar_h=no
8676 done
8678 for ac_hdr in wctype.h
8680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8682 echo "configure:8683: checking for $ac_hdr" >&5
8683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 #include <$ac_hdr>
8691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8692 { (eval echo configure:8693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8694 if test -z "$ac_err"; then
8695 rm -rf conftest*
8696 eval "ac_cv_header_$ac_safe=yes"
8697 else
8698 echo "$ac_err" >&5
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 rm -rf conftest*
8702 eval "ac_cv_header_$ac_safe=no"
8704 rm -f conftest*
8706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8707 echo "$ac_t""yes" 1>&6
8708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8709 cat >> confdefs.h <<EOF
8710 #define $ac_tr_hdr 1
8712 ac_has_wctype_h=yes
8713 else
8714 echo "$ac_t""no" 1>&6
8715 ac_has_wctype_h=no
8717 done
8720 if test x"$ac_has_wchar_h" = xyes &&
8721 test x"$ac_has_wctype_h" = xyes &&
8722 test x"$enable_c_mbchar" != xno; then
8724 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8725 echo "configure:8726: checking for WCHAR_MIN and WCHAR_MAX" >&5
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 #include <wchar.h>
8730 int main() {
8731 int i = WCHAR_MIN; int j = WCHAR_MAX;
8732 ; return 0; }
8734 if { (eval echo configure:8735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8735 rm -rf conftest*
8736 has_wchar_minmax=yes
8737 else
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 has_wchar_minmax=no
8743 rm -f conftest*
8744 echo "$ac_t""$has_wchar_minmax" 1>&6
8746 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8747 echo "configure:8748: checking for WEOF" >&5
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8752 #include <wchar.h>
8753 #include <stddef.h>
8754 int main() {
8755 wint_t i = WEOF;
8756 ; return 0; }
8758 if { (eval echo configure:8759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8759 rm -rf conftest*
8760 has_weof=yes
8761 else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 rm -rf conftest*
8765 has_weof=no
8767 rm -f conftest*
8768 echo "$ac_t""$has_weof" 1>&6
8770 ac_wfuncs=yes
8771 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8774 echo "configure:8775: checking for $ac_func" >&5
8775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8777 else
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char $ac_func(); below. */
8783 #include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8787 char $ac_func();
8789 int main() {
8791 /* The GNU C library defines this for functions which it implements
8792 to always fail with ENOSYS. Some functions are actually named
8793 something starting with __ and the normal name is an alias. */
8794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8795 choke me
8796 #else
8797 $ac_func();
8798 #endif
8800 ; return 0; }
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8803 rm -rf conftest*
8804 eval "ac_cv_func_$ac_func=yes"
8805 else
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=no"
8811 rm -f conftest*
8814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8817 cat >> confdefs.h <<EOF
8818 #define $ac_tr_func 1
8821 else
8822 echo "$ac_t""no" 1>&6
8824 ac_wfuncs=no
8826 done
8829 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8830 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8831 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8832 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8833 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8834 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_func" >&5
8838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840 else
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 /* System header to define __stub macros and hopefully few prototypes,
8845 which can conflict with char $ac_func(); below. */
8846 #include <assert.h>
8847 /* Override any gcc2 internal prototype to avoid an error. */
8848 /* We use char because int might match the return type of a gcc2
8849 builtin and then its argument prototype would still apply. */
8850 char $ac_func();
8852 int main() {
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8858 choke me
8859 #else
8860 $ac_func();
8861 #endif
8863 ; return 0; }
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8866 rm -rf conftest*
8867 eval "ac_cv_func_$ac_func=yes"
8868 else
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 rm -rf conftest*
8872 eval "ac_cv_func_$ac_func=no"
8874 rm -f conftest*
8877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8880 cat >> confdefs.h <<EOF
8881 #define $ac_tr_func 1
8884 else
8885 echo "$ac_t""no" 1>&6
8887 ac_wfuncs=no
8889 done
8892 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8893 echo "configure:8894: checking for ISO C99 wchar_t support" >&5
8894 if test x"$has_weof" = xyes &&
8895 test x"$has_wchar_minmax" = xyes &&
8896 test x"$ac_wfuncs" = xyes; then
8897 ac_isoC99_wchar_t=yes
8898 else
8899 ac_isoC99_wchar_t=no
8901 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8903 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8904 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8905 echo "configure:8906: checking for iconv.h" >&5
8906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 #include <iconv.h>
8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8917 if test -z "$ac_err"; then
8918 rm -rf conftest*
8919 eval "ac_cv_header_$ac_safe=yes"
8920 else
8921 echo "$ac_err" >&5
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8924 rm -rf conftest*
8925 eval "ac_cv_header_$ac_safe=no"
8927 rm -f conftest*
8929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_has_iconv_h=yes
8932 else
8933 echo "$ac_t""no" 1>&6
8934 ac_has_iconv_h=no
8937 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8938 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8939 echo "configure:8940: checking for langinfo.h" >&5
8940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 #include <langinfo.h>
8948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8949 { (eval echo configure:8950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8951 if test -z "$ac_err"; then
8952 rm -rf conftest*
8953 eval "ac_cv_header_$ac_safe=yes"
8954 else
8955 echo "$ac_err" >&5
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8958 rm -rf conftest*
8959 eval "ac_cv_header_$ac_safe=no"
8961 rm -f conftest*
8963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8964 echo "$ac_t""yes" 1>&6
8965 ac_has_langinfo_h=yes
8966 else
8967 echo "$ac_t""no" 1>&6
8968 ac_has_langinfo_h=no
8972 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8973 echo "configure:8974: checking for iconv in -liconv" >&5
8974 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8977 else
8978 ac_save_LIBS="$LIBS"
8979 LIBS="-liconv $LIBS"
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char iconv();
8988 int main() {
8989 iconv()
8990 ; return 0; }
8992 if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 rm -rf conftest*
8994 eval "ac_cv_lib_$ac_lib_var=yes"
8995 else
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 eval "ac_cv_lib_$ac_lib_var=no"
9001 rm -f conftest*
9002 LIBS="$ac_save_LIBS"
9005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 libiconv="-liconv"
9008 else
9009 echo "$ac_t""no" 1>&6
9012 ac_save_LIBS="$LIBS"
9013 LIBS="$LIBS $libiconv"
9015 for ac_func in iconv_open iconv_close iconv nl_langinfo
9017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9018 echo "configure:9019: checking for $ac_func" >&5
9019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9021 else
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char $ac_func(); below. */
9027 #include <assert.h>
9028 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031 char $ac_func();
9033 int main() {
9035 /* The GNU C library defines this for functions which it implements
9036 to always fail with ENOSYS. Some functions are actually named
9037 something starting with __ and the normal name is an alias. */
9038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9039 choke me
9040 #else
9041 $ac_func();
9042 #endif
9044 ; return 0; }
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9047 rm -rf conftest*
9048 eval "ac_cv_func_$ac_func=yes"
9049 else
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9052 rm -rf conftest*
9053 eval "ac_cv_func_$ac_func=no"
9055 rm -f conftest*
9058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9059 echo "$ac_t""yes" 1>&6
9060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9061 cat >> confdefs.h <<EOF
9062 #define $ac_tr_func 1
9065 ac_XPG2funcs=yes
9066 else
9067 echo "$ac_t""no" 1>&6
9068 ac_XPG2funcs=no
9070 done
9073 LIBS="$ac_save_LIBS"
9075 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9076 echo "configure:9077: checking for XPG2 wchar_t support" >&5
9077 if test x"$ac_has_iconv_h" = xyes &&
9078 test x"$ac_has_langinfo_h" = xyes &&
9079 test x"$ac_XPG2funcs" = xyes; then
9080 ac_XPG2_wchar_t=yes
9081 else
9082 ac_XPG2_wchar_t=no
9084 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9086 if test x"$ac_isoC99_wchar_t" = xyes &&
9087 test x"$ac_XPG2_wchar_t" = xyes; then
9088 cat >> confdefs.h <<\EOF
9089 #define _GLIBCPP_USE_WCHAR_T 1
9092 enable_wchar_t=yes
9095 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9096 echo "configure:9097: checking for enabled wchar_t specializations" >&5
9097 echo "$ac_t""$enable_wchar_t" 1>&6
9100 if test "$enable_wchar_t" = yes; then
9101 GLIBCPP_TEST_WCHAR_T_TRUE=
9102 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9103 else
9104 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9105 GLIBCPP_TEST_WCHAR_T_FALSE=
9108 os_include_dir="os/mingw32"
9110 *-windiss*)
9111 os_include_dir="os/windiss"
9113 *-qnx6.[12]*)
9114 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9117 # If we're not using GNU ld, then there's no point in even trying these
9118 # tests. Check for that first. We should have already tested for gld
9119 # by now (in libtool), but require it now just to be safe...
9120 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9121 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9124 # The name set by libtool depends on the version of libtool. Shame on us
9125 # for depending on an impl detail, but c'est la vie. Older versions used
9126 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9127 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9128 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9129 # set (hence we're using an older libtool), then set it.
9130 if test x${with_gnu_ld+set} != xset; then
9131 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9132 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9133 with_gnu_ld=no
9134 else
9135 with_gnu_ld=$ac_cv_prog_gnu_ld
9139 # Start by getting the version number. I think the libtool test already
9140 # does some of this, but throws away the result.
9142 ldver=`$LD --version 2>/dev/null | head -1 | \
9143 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9145 glibcpp_gnu_ld_version=`echo $ldver | \
9146 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9148 # Set --gc-sections.
9149 if test "$with_gnu_ld" = "notbroken"; then
9150 # GNU ld it is! Joy and bunny rabbits!
9152 # All these tests are for C++; save the language and the compiler flags.
9153 # Need to do this so that g++ won't try to link in libstdc++
9154 ac_test_CFLAGS="${CFLAGS+set}"
9155 ac_save_CFLAGS="$CFLAGS"
9156 CFLAGS='-x c++ -Wl,--gc-sections'
9158 # Check for -Wl,--gc-sections
9159 # XXX This test is broken at the moment, as symbols required for
9160 # linking are now in libsupc++ (not built yet.....). In addition,
9161 # this test has cored on solaris in the past. In addition,
9162 # --gc-sections doesn't really work at the moment (keeps on discarding
9163 # used sections, first .eh_frame and now some of the glibc sections for
9164 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9165 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9166 echo "configure:9167: checking for ld that supports -Wl,--gc-sections" >&5
9167 if test "$cross_compiling" = yes; then
9168 ac_sectionLDflags=yes
9169 else
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9174 int main(void)
9176 try { throw 1; }
9177 catch (...) { };
9178 return 0;
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9183 then
9184 ac_sectionLDflags=yes
9185 else
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9188 rm -fr conftest*
9189 ac_sectionLDflags=no
9191 rm -fr conftest*
9194 if test "$ac_test_CFLAGS" = set; then
9195 CFLAGS="$ac_save_CFLAGS"
9196 else
9197 # this is the suspicious part
9198 CFLAGS=''
9200 if test "$ac_sectionLDflags" = "yes"; then
9201 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9203 echo "$ac_t""$ac_sectionLDflags" 1>&6
9206 # Set linker optimization flags.
9207 if test x"$with_gnu_ld" = x"yes"; then
9208 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9215 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9216 echo "configure:9217: checking for main in -lm" >&5
9217 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9221 ac_save_LIBS="$LIBS"
9222 LIBS="-lm $LIBS"
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9227 int main() {
9228 main()
9229 ; return 0; }
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 rm -rf conftest*
9233 eval "ac_cv_lib_$ac_lib_var=yes"
9234 else
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 rm -rf conftest*
9238 eval "ac_cv_lib_$ac_lib_var=no"
9240 rm -f conftest*
9241 LIBS="$ac_save_LIBS"
9244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9245 echo "$ac_t""yes" 1>&6
9246 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9248 cat >> confdefs.h <<EOF
9249 #define $ac_tr_lib 1
9252 LIBS="-lm $LIBS"
9254 else
9255 echo "$ac_t""no" 1>&6
9258 for ac_func in nan copysignf
9260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9261 echo "configure:9262: checking for $ac_func" >&5
9262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 /* System header to define __stub macros and hopefully few prototypes,
9269 which can conflict with char $ac_func(); below. */
9270 #include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274 char $ac_func();
9276 int main() {
9278 /* The GNU C library defines this for functions which it implements
9279 to always fail with ENOSYS. Some functions are actually named
9280 something starting with __ and the normal name is an alias. */
9281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9282 choke me
9283 #else
9284 $ac_func();
9285 #endif
9287 ; return 0; }
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest*
9291 eval "ac_cv_func_$ac_func=yes"
9292 else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -rf conftest*
9296 eval "ac_cv_func_$ac_func=no"
9298 rm -f conftest*
9301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9302 echo "$ac_t""yes" 1>&6
9303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9304 cat >> confdefs.h <<EOF
9305 #define $ac_tr_func 1
9308 else
9309 echo "$ac_t""no" 1>&6
9310 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9312 done
9315 for ac_func in __signbit
9317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9318 echo "configure:9319: checking for $ac_func" >&5
9319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9321 else
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 /* System header to define __stub macros and hopefully few prototypes,
9326 which can conflict with char $ac_func(); below. */
9327 #include <assert.h>
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331 char $ac_func();
9333 int main() {
9335 /* The GNU C library defines this for functions which it implements
9336 to always fail with ENOSYS. Some functions are actually named
9337 something starting with __ and the normal name is an alias. */
9338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9339 choke me
9340 #else
9341 $ac_func();
9342 #endif
9344 ; return 0; }
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9347 rm -rf conftest*
9348 eval "ac_cv_func_$ac_func=yes"
9349 else
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 rm -rf conftest*
9353 eval "ac_cv_func_$ac_func=no"
9355 rm -f conftest*
9358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9359 echo "$ac_t""yes" 1>&6
9360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9361 cat >> confdefs.h <<EOF
9362 #define $ac_tr_func 1
9365 else
9366 echo "$ac_t""no" 1>&6
9367 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9369 done
9371 for ac_func in __signbitf
9373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9374 echo "configure:9375: checking for $ac_func" >&5
9375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9377 else
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 /* System header to define __stub macros and hopefully few prototypes,
9382 which can conflict with char $ac_func(); below. */
9383 #include <assert.h>
9384 /* Override any gcc2 internal prototype to avoid an error. */
9385 /* We use char because int might match the return type of a gcc2
9386 builtin and then its argument prototype would still apply. */
9387 char $ac_func();
9389 int main() {
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9395 choke me
9396 #else
9397 $ac_func();
9398 #endif
9400 ; return 0; }
9402 if { (eval echo configure:9403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9403 rm -rf conftest*
9404 eval "ac_cv_func_$ac_func=yes"
9405 else
9406 echo "configure: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 rm -rf conftest*
9409 eval "ac_cv_func_$ac_func=no"
9411 rm -f conftest*
9414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9415 echo "$ac_t""yes" 1>&6
9416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9417 cat >> confdefs.h <<EOF
9418 #define $ac_tr_func 1
9421 else
9422 echo "$ac_t""no" 1>&6
9423 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9425 done
9428 if test x$ac_cv_func_copysignl = x"yes"; then
9429 for ac_func in __signbitl
9431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9432 echo "configure:9433: checking for $ac_func" >&5
9433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 /* System header to define __stub macros and hopefully few prototypes,
9440 which can conflict with char $ac_func(); below. */
9441 #include <assert.h>
9442 /* Override any gcc2 internal prototype to avoid an error. */
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char $ac_func();
9447 int main() {
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9453 choke me
9454 #else
9455 $ac_func();
9456 #endif
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9461 rm -rf conftest*
9462 eval "ac_cv_func_$ac_func=yes"
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 eval "ac_cv_func_$ac_func=no"
9469 rm -f conftest*
9472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9473 echo "$ac_t""yes" 1>&6
9474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9475 cat >> confdefs.h <<EOF
9476 #define $ac_tr_func 1
9479 else
9480 echo "$ac_t""no" 1>&6
9481 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9483 done
9487 if test -n "$LIBMATHOBJS"; then
9488 need_libmath=yes
9493 if test "$need_libmath" = yes; then
9494 GLIBCPP_BUILD_LIBMATH_TRUE=
9495 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9496 else
9497 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9498 GLIBCPP_BUILD_LIBMATH_FALSE=
9502 enable_wchar_t=no
9504 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9505 echo "configure:9506: checking for mbstate_t" >&5
9506 cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <wchar.h>
9510 int main() {
9511 mbstate_t teststate;
9512 ; return 0; }
9514 if { (eval echo configure:9515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9515 rm -rf conftest*
9516 have_mbstate_t=yes
9517 else
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 rm -rf conftest*
9521 have_mbstate_t=no
9523 rm -f conftest*
9524 echo "$ac_t""$have_mbstate_t" 1>&6
9525 if test x"$have_mbstate_t" = xyes; then
9526 cat >> confdefs.h <<\EOF
9527 #define HAVE_MBSTATE_T 1
9532 for ac_hdr in wchar.h
9534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9536 echo "configure:9537: checking for $ac_hdr" >&5
9537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9539 else
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <$ac_hdr>
9545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9546 { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9548 if test -z "$ac_err"; then
9549 rm -rf conftest*
9550 eval "ac_cv_header_$ac_safe=yes"
9551 else
9552 echo "$ac_err" >&5
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -rf conftest*
9556 eval "ac_cv_header_$ac_safe=no"
9558 rm -f conftest*
9560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9561 echo "$ac_t""yes" 1>&6
9562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9563 cat >> confdefs.h <<EOF
9564 #define $ac_tr_hdr 1
9566 ac_has_wchar_h=yes
9567 else
9568 echo "$ac_t""no" 1>&6
9569 ac_has_wchar_h=no
9571 done
9573 for ac_hdr in wctype.h
9575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9577 echo "configure:9578: checking for $ac_hdr" >&5
9578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9581 cat > conftest.$ac_ext <<EOF
9582 #line 9583 "configure"
9583 #include "confdefs.h"
9584 #include <$ac_hdr>
9586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9587 { (eval echo configure:9588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9589 if test -z "$ac_err"; then
9590 rm -rf conftest*
9591 eval "ac_cv_header_$ac_safe=yes"
9592 else
9593 echo "$ac_err" >&5
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 eval "ac_cv_header_$ac_safe=no"
9599 rm -f conftest*
9601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9602 echo "$ac_t""yes" 1>&6
9603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9604 cat >> confdefs.h <<EOF
9605 #define $ac_tr_hdr 1
9607 ac_has_wctype_h=yes
9608 else
9609 echo "$ac_t""no" 1>&6
9610 ac_has_wctype_h=no
9612 done
9615 if test x"$ac_has_wchar_h" = xyes &&
9616 test x"$ac_has_wctype_h" = xyes &&
9617 test x"$enable_c_mbchar" != xno; then
9619 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9620 echo "configure:9621: checking for WCHAR_MIN and WCHAR_MAX" >&5
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include <wchar.h>
9625 int main() {
9626 int i = WCHAR_MIN; int j = WCHAR_MAX;
9627 ; return 0; }
9629 if { (eval echo configure:9630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9630 rm -rf conftest*
9631 has_wchar_minmax=yes
9632 else
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 rm -rf conftest*
9636 has_wchar_minmax=no
9638 rm -f conftest*
9639 echo "$ac_t""$has_wchar_minmax" 1>&6
9641 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9642 echo "configure:9643: checking for WEOF" >&5
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9647 #include <wchar.h>
9648 #include <stddef.h>
9649 int main() {
9650 wint_t i = WEOF;
9651 ; return 0; }
9653 if { (eval echo configure:9654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9654 rm -rf conftest*
9655 has_weof=yes
9656 else
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9659 rm -rf conftest*
9660 has_weof=no
9662 rm -f conftest*
9663 echo "$ac_t""$has_weof" 1>&6
9665 ac_wfuncs=yes
9666 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9669 echo "configure:9670: checking for $ac_func" >&5
9670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 /* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char $ac_func(); below. */
9678 #include <assert.h>
9679 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682 char $ac_func();
9684 int main() {
9686 /* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9690 choke me
9691 #else
9692 $ac_func();
9693 #endif
9695 ; return 0; }
9697 if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9698 rm -rf conftest*
9699 eval "ac_cv_func_$ac_func=yes"
9700 else
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_func_$ac_func=no"
9706 rm -f conftest*
9709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9712 cat >> confdefs.h <<EOF
9713 #define $ac_tr_func 1
9716 else
9717 echo "$ac_t""no" 1>&6
9719 ac_wfuncs=no
9721 done
9724 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9725 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9726 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9727 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9728 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9729 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9732 echo "configure:9733: checking for $ac_func" >&5
9733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9735 else
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* System header to define __stub macros and hopefully few prototypes,
9740 which can conflict with char $ac_func(); below. */
9741 #include <assert.h>
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char $ac_func();
9747 int main() {
9749 /* The GNU C library defines this for functions which it implements
9750 to always fail with ENOSYS. Some functions are actually named
9751 something starting with __ and the normal name is an alias. */
9752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9753 choke me
9754 #else
9755 $ac_func();
9756 #endif
9758 ; return 0; }
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9761 rm -rf conftest*
9762 eval "ac_cv_func_$ac_func=yes"
9763 else
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 rm -rf conftest*
9767 eval "ac_cv_func_$ac_func=no"
9769 rm -f conftest*
9772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9773 echo "$ac_t""yes" 1>&6
9774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9775 cat >> confdefs.h <<EOF
9776 #define $ac_tr_func 1
9779 else
9780 echo "$ac_t""no" 1>&6
9782 ac_wfuncs=no
9784 done
9787 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9788 echo "configure:9789: checking for ISO C99 wchar_t support" >&5
9789 if test x"$has_weof" = xyes &&
9790 test x"$has_wchar_minmax" = xyes &&
9791 test x"$ac_wfuncs" = xyes; then
9792 ac_isoC99_wchar_t=yes
9793 else
9794 ac_isoC99_wchar_t=no
9796 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9798 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9799 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9800 echo "configure:9801: checking for iconv.h" >&5
9801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803 else
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 #include <iconv.h>
9809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9810 { (eval echo configure:9811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9812 if test -z "$ac_err"; then
9813 rm -rf conftest*
9814 eval "ac_cv_header_$ac_safe=yes"
9815 else
9816 echo "$ac_err" >&5
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 rm -rf conftest*
9820 eval "ac_cv_header_$ac_safe=no"
9822 rm -f conftest*
9824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9825 echo "$ac_t""yes" 1>&6
9826 ac_has_iconv_h=yes
9827 else
9828 echo "$ac_t""no" 1>&6
9829 ac_has_iconv_h=no
9832 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9833 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9834 echo "configure:9835: checking for langinfo.h" >&5
9835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9837 else
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9841 #include <langinfo.h>
9843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9844 { (eval echo configure:9845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9846 if test -z "$ac_err"; then
9847 rm -rf conftest*
9848 eval "ac_cv_header_$ac_safe=yes"
9849 else
9850 echo "$ac_err" >&5
9851 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 rm -rf conftest*
9854 eval "ac_cv_header_$ac_safe=no"
9856 rm -f conftest*
9858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860 ac_has_langinfo_h=yes
9861 else
9862 echo "$ac_t""no" 1>&6
9863 ac_has_langinfo_h=no
9867 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9868 echo "configure:9869: checking for iconv in -liconv" >&5
9869 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9872 else
9873 ac_save_LIBS="$LIBS"
9874 LIBS="-liconv $LIBS"
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881 char iconv();
9883 int main() {
9884 iconv()
9885 ; return 0; }
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9888 rm -rf conftest*
9889 eval "ac_cv_lib_$ac_lib_var=yes"
9890 else
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 rm -rf conftest*
9894 eval "ac_cv_lib_$ac_lib_var=no"
9896 rm -f conftest*
9897 LIBS="$ac_save_LIBS"
9900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9901 echo "$ac_t""yes" 1>&6
9902 libiconv="-liconv"
9903 else
9904 echo "$ac_t""no" 1>&6
9907 ac_save_LIBS="$LIBS"
9908 LIBS="$LIBS $libiconv"
9910 for ac_func in iconv_open iconv_close iconv nl_langinfo
9912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9913 echo "configure:9914: checking for $ac_func" >&5
9914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func(); below. */
9922 #include <assert.h>
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char $ac_func();
9928 int main() {
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 choke me
9935 #else
9936 $ac_func();
9937 #endif
9939 ; return 0; }
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9942 rm -rf conftest*
9943 eval "ac_cv_func_$ac_func=yes"
9944 else
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 rm -rf conftest*
9948 eval "ac_cv_func_$ac_func=no"
9950 rm -f conftest*
9953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_func 1
9960 ac_XPG2funcs=yes
9961 else
9962 echo "$ac_t""no" 1>&6
9963 ac_XPG2funcs=no
9965 done
9968 LIBS="$ac_save_LIBS"
9970 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9971 echo "configure:9972: checking for XPG2 wchar_t support" >&5
9972 if test x"$ac_has_iconv_h" = xyes &&
9973 test x"$ac_has_langinfo_h" = xyes &&
9974 test x"$ac_XPG2funcs" = xyes; then
9975 ac_XPG2_wchar_t=yes
9976 else
9977 ac_XPG2_wchar_t=no
9979 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9981 if test x"$ac_isoC99_wchar_t" = xyes &&
9982 test x"$ac_XPG2_wchar_t" = xyes; then
9983 cat >> confdefs.h <<\EOF
9984 #define _GLIBCPP_USE_WCHAR_T 1
9987 enable_wchar_t=yes
9990 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9991 echo "configure:9992: checking for enabled wchar_t specializations" >&5
9992 echo "$ac_t""$enable_wchar_t" 1>&6
9995 if test "$enable_wchar_t" = yes; then
9996 GLIBCPP_TEST_WCHAR_T_TRUE=
9997 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9998 else
9999 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10000 GLIBCPP_TEST_WCHAR_T_FALSE=
10003 os_include_dir="os/qnx/qnx6.1"
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_COSF 1
10008 cat >> confdefs.h <<\EOF
10009 #define HAVE_COSL 1
10012 cat >> confdefs.h <<\EOF
10013 #define HAVE_COSHF 1
10016 cat >> confdefs.h <<\EOF
10017 #define HAVE_COSHL 1
10020 cat >> confdefs.h <<\EOF
10021 #define HAVE_LOGF 1
10024 cat >> confdefs.h <<\EOF
10025 #define HAVE_LOGL 1
10028 cat >> confdefs.h <<\EOF
10029 #define HAVE_LOG10F 1
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_LOG10L 1
10036 cat >> confdefs.h <<\EOF
10037 #define HAVE_SINF 1
10040 cat >> confdefs.h <<\EOF
10041 #define HAVE_SINL 1
10044 cat >> confdefs.h <<\EOF
10045 #define HAVE_SINHF 1
10048 cat >> confdefs.h <<\EOF
10049 #define HAVE_SINHL 1
10054 os_include_dir="os/newlib"
10055 cat >> confdefs.h <<\EOF
10056 #define HAVE_HYPOT 1
10060 esac
10062 case "$target" in
10063 *-mingw32*)
10065 *-windiss*)
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_ACOSF 1
10070 cat >> confdefs.h <<\EOF
10071 #define HAVE_ASINF 1
10074 cat >> confdefs.h <<\EOF
10075 #define HAVE_ATAN2F 1
10078 cat >> confdefs.h <<\EOF
10079 #define HAVE_ATANF 1
10082 cat >> confdefs.h <<\EOF
10083 #define HAVE_CEILF 1
10086 cat >> confdefs.h <<\EOF
10087 #define HAVE_COPYSIGN 1
10090 cat >> confdefs.h <<\EOF
10091 #define HAVE_COPYSIGNF 1
10094 cat >> confdefs.h <<\EOF
10095 #define HAVE_COSF 1
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_COSHF 1
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_EXPF 1
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_FABSF 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_FLOORF 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_FMODF 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_FREXPF 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_LDEXPF 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_LOG10F 1
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_LOGF 1
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_MODFF 1
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_POWF 1
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_SINF 1
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_SINHF 1
10150 cat >> confdefs.h <<\EOF
10151 #define HAVE_SQRTF 1
10154 cat >> confdefs.h <<\EOF
10155 #define HAVE_TANF 1
10158 cat >> confdefs.h <<\EOF
10159 #define HAVE_TANHF 1
10163 *-freebsd*)
10164 # Must replicate generic section since we don't have strtof or strtold.
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_MMAP 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_ACOSF 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_ASINF 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_ATAN2F 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_ATANF 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_CEILF 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_COPYSIGN 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_COPYSIGNF 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_COSF 1
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_COSHF 1
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_EXPF 1
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_FABSF 1
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_FLOORF 1
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_FMODF 1
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_FREXPF 1
10225 cat >> confdefs.h <<\EOF
10226 #define HAVE_LDEXPF 1
10229 cat >> confdefs.h <<\EOF
10230 #define HAVE_LOG10F 1
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_LOGF 1
10237 cat >> confdefs.h <<\EOF
10238 #define HAVE_MODFF 1
10241 cat >> confdefs.h <<\EOF
10242 #define HAVE_POWF 1
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_SINF 1
10249 cat >> confdefs.h <<\EOF
10250 #define HAVE_SINHF 1
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_SQRTF 1
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_TANF 1
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_TANHF 1
10267 # GLIBCPP_CHECK_STDLIB_SUPPORT
10268 cat >> confdefs.h <<\EOF
10269 #define HAVE_STRTOF 1
10272 cat >> confdefs.h <<\EOF
10273 #define HAVE_STRTOLD 1
10276 # AC_FUNC_MMAP
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_MMAP 1
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_ACOSF 1
10286 cat >> confdefs.h <<\EOF
10287 #define HAVE_ASINF 1
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_ATAN2F 1
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_ATANF 1
10298 cat >> confdefs.h <<\EOF
10299 #define HAVE_CEILF 1
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_COPYSIGN 1
10306 cat >> confdefs.h <<\EOF
10307 #define HAVE_COPYSIGNF 1
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_COSF 1
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_COSHF 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_EXPF 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_FABSF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_FLOORF 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_FMODF 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_FREXPF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_LDEXPF 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_LOG10F 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_LOGF 1
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_MODFF 1
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_POWF 1
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_SINF 1
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_SINHF 1
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_SQRTF 1
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_TANF 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_TANHF 1
10379 esac
10381 # At some point, we should differentiate between architectures
10382 # like x86, which have long double versions, and alpha/powerpc/etc.,
10383 # which don't. For the time being, punt.
10384 if test x"long_double_math_on_this_cpu" = x"yes"; then
10385 cat >> confdefs.h <<\EOF
10386 #define HAVE_ACOSL 1
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_ASINL 1
10393 cat >> confdefs.h <<\EOF
10394 #define HAVE_ATAN2L 1
10397 cat >> confdefs.h <<\EOF
10398 #define HAVE_ATANL 1
10401 cat >> confdefs.h <<\EOF
10402 #define HAVE_CEILL 1
10405 cat >> confdefs.h <<\EOF
10406 #define HAVE_COPYSIGNL 1
10409 cat >> confdefs.h <<\EOF
10410 #define HAVE_COSL 1
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_COSHL 1
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_EXPL 1
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_FABSL 1
10425 cat >> confdefs.h <<\EOF
10426 #define HAVE_FLOORL 1
10429 cat >> confdefs.h <<\EOF
10430 #define HAVE_FMODL 1
10433 cat >> confdefs.h <<\EOF
10434 #define HAVE_FREXPL 1
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_LDEXPL 1
10441 cat >> confdefs.h <<\EOF
10442 #define HAVE_LOG10L 1
10445 cat >> confdefs.h <<\EOF
10446 #define HAVE_LOGL 1
10449 cat >> confdefs.h <<\EOF
10450 #define HAVE_MODFL 1
10453 cat >> confdefs.h <<\EOF
10454 #define HAVE_POWL 1
10457 cat >> confdefs.h <<\EOF
10458 #define HAVE_SINCOSL 1
10461 cat >> confdefs.h <<\EOF
10462 #define HAVE_SINL 1
10465 cat >> confdefs.h <<\EOF
10466 #define HAVE_SINHL 1
10469 cat >> confdefs.h <<\EOF
10470 #define HAVE_SQRTL 1
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_TANL 1
10477 cat >> confdefs.h <<\EOF
10478 #define HAVE_TANHL 1
10483 else
10485 # We are being configured natively. We can do more elaborate tests
10486 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10487 # working.
10488 GLIBCPP_IS_CROSS_COMPILING=0
10489 CANADIAN=no
10491 # Check for available headers.
10492 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10493 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10497 echo "configure:10498: checking for $ac_hdr" >&5
10498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10500 else
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10504 #include <$ac_hdr>
10506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10507 { (eval echo configure:10508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10509 if test -z "$ac_err"; then
10510 rm -rf conftest*
10511 eval "ac_cv_header_$ac_safe=yes"
10512 else
10513 echo "$ac_err" >&5
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 rm -rf conftest*
10517 eval "ac_cv_header_$ac_safe=no"
10519 rm -f conftest*
10521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10522 echo "$ac_t""yes" 1>&6
10523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10524 cat >> confdefs.h <<EOF
10525 #define $ac_tr_hdr 1
10528 else
10529 echo "$ac_t""no" 1>&6
10531 done
10535 # All these tests are for C++; save the language and the compiler flags.
10536 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10537 # found in GLIBCPP_CONFIGURE.
10539 ac_ext=C
10540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10541 ac_cpp='$CXXCPP $CPPFLAGS'
10542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10544 cross_compiling=$ac_cv_prog_cxx_cross
10546 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10547 ac_save_CXXFLAGS="$CXXFLAGS"
10549 # Check for maintainer-mode bits.
10550 if test x"$USE_MAINTAINER_MODE" = xno; then
10551 WERROR=''
10552 else
10553 WERROR='-Werror'
10556 # Check for -ffunction-sections -fdata-sections
10557 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10558 echo "configure:10559: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10559 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10560 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10564 int main() {
10565 int foo;
10567 ; return 0; }
10569 if { (eval echo configure:10570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10570 rm -rf conftest*
10571 ac_fdsections=yes
10572 else
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10575 rm -rf conftest*
10576 ac_fdsections=no
10578 rm -f conftest*
10579 if test "$ac_test_CXXFLAGS" = set; then
10580 CXXFLAGS="$ac_save_CXXFLAGS"
10581 else
10582 # this is the suspicious part
10583 CXXFLAGS=''
10585 if test x"$ac_fdsections" = x"yes"; then
10586 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10588 echo "$ac_t""$ac_fdsections" 1>&6
10590 ac_ext=c
10591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10592 ac_cpp='$CPP $CPPFLAGS'
10593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10595 cross_compiling=$ac_cv_prog_cc_cross
10601 # If we're not using GNU ld, then there's no point in even trying these
10602 # tests. Check for that first. We should have already tested for gld
10603 # by now (in libtool), but require it now just to be safe...
10604 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10605 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10608 # The name set by libtool depends on the version of libtool. Shame on us
10609 # for depending on an impl detail, but c'est la vie. Older versions used
10610 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10611 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10612 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10613 # set (hence we're using an older libtool), then set it.
10614 if test x${with_gnu_ld+set} != xset; then
10615 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10616 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10617 with_gnu_ld=no
10618 else
10619 with_gnu_ld=$ac_cv_prog_gnu_ld
10623 # Start by getting the version number. I think the libtool test already
10624 # does some of this, but throws away the result.
10626 ldver=`$LD --version 2>/dev/null | head -1 | \
10627 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10629 glibcpp_gnu_ld_version=`echo $ldver | \
10630 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10632 # Set --gc-sections.
10633 if test "$with_gnu_ld" = "notbroken"; then
10634 # GNU ld it is! Joy and bunny rabbits!
10636 # All these tests are for C++; save the language and the compiler flags.
10637 # Need to do this so that g++ won't try to link in libstdc++
10638 ac_test_CFLAGS="${CFLAGS+set}"
10639 ac_save_CFLAGS="$CFLAGS"
10640 CFLAGS='-x c++ -Wl,--gc-sections'
10642 # Check for -Wl,--gc-sections
10643 # XXX This test is broken at the moment, as symbols required for
10644 # linking are now in libsupc++ (not built yet.....). In addition,
10645 # this test has cored on solaris in the past. In addition,
10646 # --gc-sections doesn't really work at the moment (keeps on discarding
10647 # used sections, first .eh_frame and now some of the glibc sections for
10648 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10649 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10650 echo "configure:10651: checking for ld that supports -Wl,--gc-sections" >&5
10651 if test "$cross_compiling" = yes; then
10652 ac_sectionLDflags=yes
10653 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10658 int main(void)
10660 try { throw 1; }
10661 catch (...) { };
10662 return 0;
10666 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10667 then
10668 ac_sectionLDflags=yes
10669 else
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -fr conftest*
10673 ac_sectionLDflags=no
10675 rm -fr conftest*
10678 if test "$ac_test_CFLAGS" = set; then
10679 CFLAGS="$ac_save_CFLAGS"
10680 else
10681 # this is the suspicious part
10682 CFLAGS=''
10684 if test "$ac_sectionLDflags" = "yes"; then
10685 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10687 echo "$ac_t""$ac_sectionLDflags" 1>&6
10690 # Set linker optimization flags.
10691 if test x"$with_gnu_ld" = x"yes"; then
10692 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10700 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10701 echo "configure:10702: checking for __builtin_abs declaration" >&5
10702 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10703 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10708 ac_ext=C
10709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10713 cross_compiling=$ac_cv_prog_cxx_cross
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10718 #include <math.h>
10719 int main() {
10720 __builtin_abs(0);
10721 ; return 0; }
10723 if { (eval echo configure:10724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10724 rm -rf conftest*
10725 glibcpp_cv_func___builtin_abs_use=yes
10726 else
10727 echo "configure: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10729 rm -rf conftest*
10730 glibcpp_cv_func___builtin_abs_use=no
10732 rm -f conftest*
10733 ac_ext=c
10734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10735 ac_cpp='$CPP $CPPFLAGS'
10736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10738 cross_compiling=$ac_cv_prog_cc_cross
10744 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10745 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10746 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10747 echo "configure:10748: checking for __builtin_abs linkage" >&5
10748 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10749 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751 else
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 #include <math.h>
10757 int main() {
10758 __builtin_abs(0);
10759 ; return 0; }
10761 if { (eval echo configure:10762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10762 rm -rf conftest*
10763 glibcpp_cv_func___builtin_abs_link=yes
10764 else
10765 echo "configure: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10767 rm -rf conftest*
10768 glibcpp_cv_func___builtin_abs_link=no
10770 rm -f conftest*
10775 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10776 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10777 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10778 cat >> confdefs.h <<EOF
10779 #define ${ac_tr_func} 1
10786 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10787 echo "configure:10788: checking for __builtin_fabsf declaration" >&5
10788 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10789 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10791 else
10794 ac_ext=C
10795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10799 cross_compiling=$ac_cv_prog_cxx_cross
10801 cat > conftest.$ac_ext <<EOF
10802 #line 10803 "configure"
10803 #include "confdefs.h"
10804 #include <math.h>
10805 int main() {
10806 __builtin_fabsf(0);
10807 ; return 0; }
10809 if { (eval echo configure:10810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 rm -rf conftest*
10811 glibcpp_cv_func___builtin_fabsf_use=yes
10812 else
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 rm -rf conftest*
10816 glibcpp_cv_func___builtin_fabsf_use=no
10818 rm -f conftest*
10819 ac_ext=c
10820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10824 cross_compiling=$ac_cv_prog_cc_cross
10830 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10831 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10832 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10833 echo "configure:10834: checking for __builtin_fabsf linkage" >&5
10834 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10835 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10836 echo $ac_n "(cached) $ac_c" 1>&6
10837 else
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 #include <math.h>
10843 int main() {
10844 __builtin_fabsf(0);
10845 ; return 0; }
10847 if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10848 rm -rf conftest*
10849 glibcpp_cv_func___builtin_fabsf_link=yes
10850 else
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 rm -rf conftest*
10854 glibcpp_cv_func___builtin_fabsf_link=no
10856 rm -f conftest*
10861 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10862 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10863 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10864 cat >> confdefs.h <<EOF
10865 #define ${ac_tr_func} 1
10872 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10873 echo "configure:10874: checking for __builtin_fabs declaration" >&5
10874 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10875 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10877 else
10880 ac_ext=C
10881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10882 ac_cpp='$CXXCPP $CPPFLAGS'
10883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10885 cross_compiling=$ac_cv_prog_cxx_cross
10887 cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure"
10889 #include "confdefs.h"
10890 #include <math.h>
10891 int main() {
10892 __builtin_fabs(0);
10893 ; return 0; }
10895 if { (eval echo configure:10896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10896 rm -rf conftest*
10897 glibcpp_cv_func___builtin_fabs_use=yes
10898 else
10899 echo "configure: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10901 rm -rf conftest*
10902 glibcpp_cv_func___builtin_fabs_use=no
10904 rm -f conftest*
10905 ac_ext=c
10906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10910 cross_compiling=$ac_cv_prog_cc_cross
10916 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10917 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10918 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10919 echo "configure:10920: checking for __builtin_fabs linkage" >&5
10920 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10921 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 #include <math.h>
10929 int main() {
10930 __builtin_fabs(0);
10931 ; return 0; }
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 rm -rf conftest*
10935 glibcpp_cv_func___builtin_fabs_link=yes
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 glibcpp_cv_func___builtin_fabs_link=no
10942 rm -f conftest*
10947 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10948 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10949 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10950 cat >> confdefs.h <<EOF
10951 #define ${ac_tr_func} 1
10958 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10959 echo "configure:10960: checking for __builtin_fabsl declaration" >&5
10960 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10961 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10963 else
10966 ac_ext=C
10967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10968 ac_cpp='$CXXCPP $CPPFLAGS'
10969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10971 cross_compiling=$ac_cv_prog_cxx_cross
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 #include <math.h>
10977 int main() {
10978 __builtin_fabsl(0);
10979 ; return 0; }
10981 if { (eval echo configure:10982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10982 rm -rf conftest*
10983 glibcpp_cv_func___builtin_fabsl_use=yes
10984 else
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 rm -rf conftest*
10988 glibcpp_cv_func___builtin_fabsl_use=no
10990 rm -f conftest*
10991 ac_ext=c
10992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10993 ac_cpp='$CPP $CPPFLAGS'
10994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10996 cross_compiling=$ac_cv_prog_cc_cross
11002 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11003 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11004 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11005 echo "configure:11006: checking for __builtin_fabsl linkage" >&5
11006 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11007 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <math.h>
11015 int main() {
11016 __builtin_fabsl(0);
11017 ; return 0; }
11019 if { (eval echo configure:11020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11020 rm -rf conftest*
11021 glibcpp_cv_func___builtin_fabsl_link=yes
11022 else
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11025 rm -rf conftest*
11026 glibcpp_cv_func___builtin_fabsl_link=no
11028 rm -f conftest*
11033 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11034 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11035 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036 cat >> confdefs.h <<EOF
11037 #define ${ac_tr_func} 1
11044 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11045 echo "configure:11046: checking for __builtin_labs declaration" >&5
11046 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11047 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11052 ac_ext=C
11053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11054 ac_cpp='$CXXCPP $CPPFLAGS'
11055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11057 cross_compiling=$ac_cv_prog_cxx_cross
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11062 #include <math.h>
11063 int main() {
11064 __builtin_labs(0);
11065 ; return 0; }
11067 if { (eval echo configure:11068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11068 rm -rf conftest*
11069 glibcpp_cv_func___builtin_labs_use=yes
11070 else
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 rm -rf conftest*
11074 glibcpp_cv_func___builtin_labs_use=no
11076 rm -f conftest*
11077 ac_ext=c
11078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11079 ac_cpp='$CPP $CPPFLAGS'
11080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11082 cross_compiling=$ac_cv_prog_cc_cross
11088 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11089 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11090 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11091 echo "configure:11092: checking for __builtin_labs linkage" >&5
11092 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11093 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11095 else
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 #include <math.h>
11101 int main() {
11102 __builtin_labs(0);
11103 ; return 0; }
11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106 rm -rf conftest*
11107 glibcpp_cv_func___builtin_labs_link=yes
11108 else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 rm -rf conftest*
11112 glibcpp_cv_func___builtin_labs_link=no
11114 rm -f conftest*
11119 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11120 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11121 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11122 cat >> confdefs.h <<EOF
11123 #define ${ac_tr_func} 1
11131 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11132 echo "configure:11133: checking for __builtin_sqrtf declaration" >&5
11133 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11134 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11136 else
11139 ac_ext=C
11140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11141 ac_cpp='$CXXCPP $CPPFLAGS'
11142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11144 cross_compiling=$ac_cv_prog_cxx_cross
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 #include <math.h>
11150 int main() {
11151 __builtin_sqrtf(0);
11152 ; return 0; }
11154 if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11155 rm -rf conftest*
11156 glibcpp_cv_func___builtin_sqrtf_use=yes
11157 else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161 glibcpp_cv_func___builtin_sqrtf_use=no
11163 rm -f conftest*
11164 ac_ext=c
11165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11166 ac_cpp='$CPP $CPPFLAGS'
11167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11169 cross_compiling=$ac_cv_prog_cc_cross
11175 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11176 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11177 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11178 echo "configure:11179: checking for __builtin_sqrtf linkage" >&5
11179 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11180 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182 else
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 #include <math.h>
11188 int main() {
11189 __builtin_sqrtf(0);
11190 ; return 0; }
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11193 rm -rf conftest*
11194 glibcpp_cv_func___builtin_sqrtf_link=yes
11195 else
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 rm -rf conftest*
11199 glibcpp_cv_func___builtin_sqrtf_link=no
11201 rm -f conftest*
11206 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11207 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11208 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11209 cat >> confdefs.h <<EOF
11210 #define ${ac_tr_func} 1
11217 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11218 echo "configure:11219: checking for __builtin_sqrt declaration" >&5
11219 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11220 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11221 echo $ac_n "(cached) $ac_c" 1>&6
11222 else
11225 ac_ext=C
11226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11227 ac_cpp='$CXXCPP $CPPFLAGS'
11228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11230 cross_compiling=$ac_cv_prog_cxx_cross
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include <math.h>
11236 int main() {
11237 __builtin_sqrt(0);
11238 ; return 0; }
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11241 rm -rf conftest*
11242 glibcpp_cv_func___builtin_sqrt_use=yes
11243 else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 glibcpp_cv_func___builtin_sqrt_use=no
11249 rm -f conftest*
11250 ac_ext=c
11251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11252 ac_cpp='$CPP $CPPFLAGS'
11253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11255 cross_compiling=$ac_cv_prog_cc_cross
11261 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11262 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11263 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11264 echo "configure:11265: checking for __builtin_sqrt linkage" >&5
11265 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11266 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 #include <math.h>
11274 int main() {
11275 __builtin_sqrt(0);
11276 ; return 0; }
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 rm -rf conftest*
11280 glibcpp_cv_func___builtin_sqrt_link=yes
11281 else
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 rm -rf conftest*
11285 glibcpp_cv_func___builtin_sqrt_link=no
11287 rm -f conftest*
11292 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11293 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11294 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11295 cat >> confdefs.h <<EOF
11296 #define ${ac_tr_func} 1
11303 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11304 echo "configure:11305: checking for __builtin_sqrtl declaration" >&5
11305 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11306 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11307 echo $ac_n "(cached) $ac_c" 1>&6
11308 else
11311 ac_ext=C
11312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11313 ac_cpp='$CXXCPP $CPPFLAGS'
11314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11316 cross_compiling=$ac_cv_prog_cxx_cross
11318 cat > conftest.$ac_ext <<EOF
11319 #line 11320 "configure"
11320 #include "confdefs.h"
11321 #include <math.h>
11322 int main() {
11323 __builtin_sqrtl(0);
11324 ; return 0; }
11326 if { (eval echo configure:11327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11327 rm -rf conftest*
11328 glibcpp_cv_func___builtin_sqrtl_use=yes
11329 else
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 rm -rf conftest*
11333 glibcpp_cv_func___builtin_sqrtl_use=no
11335 rm -f conftest*
11336 ac_ext=c
11337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11338 ac_cpp='$CPP $CPPFLAGS'
11339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11341 cross_compiling=$ac_cv_prog_cc_cross
11347 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11348 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11349 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11350 echo "configure:11351: checking for __builtin_sqrtl linkage" >&5
11351 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11352 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11353 echo $ac_n "(cached) $ac_c" 1>&6
11354 else
11356 cat > conftest.$ac_ext <<EOF
11357 #line 11358 "configure"
11358 #include "confdefs.h"
11359 #include <math.h>
11360 int main() {
11361 __builtin_sqrtl(0);
11362 ; return 0; }
11364 if { (eval echo configure:11365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11365 rm -rf conftest*
11366 glibcpp_cv_func___builtin_sqrtl_link=yes
11367 else
11368 echo "configure: failed program was:" >&5
11369 cat conftest.$ac_ext >&5
11370 rm -rf conftest*
11371 glibcpp_cv_func___builtin_sqrtl_link=no
11373 rm -f conftest*
11378 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11379 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11380 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11381 cat >> confdefs.h <<EOF
11382 #define ${ac_tr_func} 1
11390 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11391 echo "configure:11392: checking for __builtin_sinf declaration" >&5
11392 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11393 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11395 else
11398 ac_ext=C
11399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11400 ac_cpp='$CXXCPP $CPPFLAGS'
11401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11403 cross_compiling=$ac_cv_prog_cxx_cross
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include <math.h>
11409 int main() {
11410 __builtin_sinf(0);
11411 ; return 0; }
11413 if { (eval echo configure:11414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11414 rm -rf conftest*
11415 glibcpp_cv_func___builtin_sinf_use=yes
11416 else
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 rm -rf conftest*
11420 glibcpp_cv_func___builtin_sinf_use=no
11422 rm -f conftest*
11423 ac_ext=c
11424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11428 cross_compiling=$ac_cv_prog_cc_cross
11434 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11435 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11436 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11437 echo "configure:11438: checking for __builtin_sinf linkage" >&5
11438 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11439 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11440 echo $ac_n "(cached) $ac_c" 1>&6
11441 else
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11446 #include <math.h>
11447 int main() {
11448 __builtin_sinf(0);
11449 ; return 0; }
11451 if { (eval echo configure:11452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11452 rm -rf conftest*
11453 glibcpp_cv_func___builtin_sinf_link=yes
11454 else
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11457 rm -rf conftest*
11458 glibcpp_cv_func___builtin_sinf_link=no
11460 rm -f conftest*
11465 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11466 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11467 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11468 cat >> confdefs.h <<EOF
11469 #define ${ac_tr_func} 1
11476 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11477 echo "configure:11478: checking for __builtin_sin declaration" >&5
11478 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11479 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11481 else
11484 ac_ext=C
11485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11486 ac_cpp='$CXXCPP $CPPFLAGS'
11487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11489 cross_compiling=$ac_cv_prog_cxx_cross
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 #include <math.h>
11495 int main() {
11496 __builtin_sin(0);
11497 ; return 0; }
11499 if { (eval echo configure:11500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11500 rm -rf conftest*
11501 glibcpp_cv_func___builtin_sin_use=yes
11502 else
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 rm -rf conftest*
11506 glibcpp_cv_func___builtin_sin_use=no
11508 rm -f conftest*
11509 ac_ext=c
11510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11511 ac_cpp='$CPP $CPPFLAGS'
11512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11514 cross_compiling=$ac_cv_prog_cc_cross
11520 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11521 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11522 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11523 echo "configure:11524: checking for __builtin_sin linkage" >&5
11524 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11525 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11526 echo $ac_n "(cached) $ac_c" 1>&6
11527 else
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11532 #include <math.h>
11533 int main() {
11534 __builtin_sin(0);
11535 ; return 0; }
11537 if { (eval echo configure:11538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11538 rm -rf conftest*
11539 glibcpp_cv_func___builtin_sin_link=yes
11540 else
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11543 rm -rf conftest*
11544 glibcpp_cv_func___builtin_sin_link=no
11546 rm -f conftest*
11551 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11552 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11553 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11554 cat >> confdefs.h <<EOF
11555 #define ${ac_tr_func} 1
11562 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11563 echo "configure:11564: checking for __builtin_sinl declaration" >&5
11564 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11565 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11567 else
11570 ac_ext=C
11571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11572 ac_cpp='$CXXCPP $CPPFLAGS'
11573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11575 cross_compiling=$ac_cv_prog_cxx_cross
11577 cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11580 #include <math.h>
11581 int main() {
11582 __builtin_sinl(0);
11583 ; return 0; }
11585 if { (eval echo configure:11586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11586 rm -rf conftest*
11587 glibcpp_cv_func___builtin_sinl_use=yes
11588 else
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 rm -rf conftest*
11592 glibcpp_cv_func___builtin_sinl_use=no
11594 rm -f conftest*
11595 ac_ext=c
11596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11597 ac_cpp='$CPP $CPPFLAGS'
11598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11600 cross_compiling=$ac_cv_prog_cc_cross
11606 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11607 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11608 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11609 echo "configure:11610: checking for __builtin_sinl linkage" >&5
11610 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11611 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11613 else
11615 cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure"
11617 #include "confdefs.h"
11618 #include <math.h>
11619 int main() {
11620 __builtin_sinl(0);
11621 ; return 0; }
11623 if { (eval echo configure:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11624 rm -rf conftest*
11625 glibcpp_cv_func___builtin_sinl_link=yes
11626 else
11627 echo "configure: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11629 rm -rf conftest*
11630 glibcpp_cv_func___builtin_sinl_link=no
11632 rm -f conftest*
11637 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11638 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11639 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11640 cat >> confdefs.h <<EOF
11641 #define ${ac_tr_func} 1
11649 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11650 echo "configure:11651: checking for __builtin_cosf declaration" >&5
11651 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11652 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11654 else
11657 ac_ext=C
11658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11659 ac_cpp='$CXXCPP $CPPFLAGS'
11660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11662 cross_compiling=$ac_cv_prog_cxx_cross
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11667 #include <math.h>
11668 int main() {
11669 __builtin_cosf(0);
11670 ; return 0; }
11672 if { (eval echo configure:11673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11673 rm -rf conftest*
11674 glibcpp_cv_func___builtin_cosf_use=yes
11675 else
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11678 rm -rf conftest*
11679 glibcpp_cv_func___builtin_cosf_use=no
11681 rm -f conftest*
11682 ac_ext=c
11683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11684 ac_cpp='$CPP $CPPFLAGS'
11685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11687 cross_compiling=$ac_cv_prog_cc_cross
11693 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11694 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11695 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11696 echo "configure:11697: checking for __builtin_cosf linkage" >&5
11697 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11698 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11700 else
11702 cat > conftest.$ac_ext <<EOF
11703 #line 11704 "configure"
11704 #include "confdefs.h"
11705 #include <math.h>
11706 int main() {
11707 __builtin_cosf(0);
11708 ; return 0; }
11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11711 rm -rf conftest*
11712 glibcpp_cv_func___builtin_cosf_link=yes
11713 else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 glibcpp_cv_func___builtin_cosf_link=no
11719 rm -f conftest*
11724 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11725 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11726 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11727 cat >> confdefs.h <<EOF
11728 #define ${ac_tr_func} 1
11735 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11736 echo "configure:11737: checking for __builtin_cos declaration" >&5
11737 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11738 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11739 echo $ac_n "(cached) $ac_c" 1>&6
11740 else
11743 ac_ext=C
11744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11745 ac_cpp='$CXXCPP $CPPFLAGS'
11746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11748 cross_compiling=$ac_cv_prog_cxx_cross
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 #include <math.h>
11754 int main() {
11755 __builtin_cos(0);
11756 ; return 0; }
11758 if { (eval echo configure:11759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11759 rm -rf conftest*
11760 glibcpp_cv_func___builtin_cos_use=yes
11761 else
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11764 rm -rf conftest*
11765 glibcpp_cv_func___builtin_cos_use=no
11767 rm -f conftest*
11768 ac_ext=c
11769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11770 ac_cpp='$CPP $CPPFLAGS'
11771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11773 cross_compiling=$ac_cv_prog_cc_cross
11779 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11780 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11781 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11782 echo "configure:11783: checking for __builtin_cos linkage" >&5
11783 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11784 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786 else
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 #include <math.h>
11792 int main() {
11793 __builtin_cos(0);
11794 ; return 0; }
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797 rm -rf conftest*
11798 glibcpp_cv_func___builtin_cos_link=yes
11799 else
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11802 rm -rf conftest*
11803 glibcpp_cv_func___builtin_cos_link=no
11805 rm -f conftest*
11810 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11811 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11812 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11813 cat >> confdefs.h <<EOF
11814 #define ${ac_tr_func} 1
11821 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11822 echo "configure:11823: checking for __builtin_cosl declaration" >&5
11823 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11824 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11826 else
11829 ac_ext=C
11830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11834 cross_compiling=$ac_cv_prog_cxx_cross
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839 #include <math.h>
11840 int main() {
11841 __builtin_cosl(0);
11842 ; return 0; }
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845 rm -rf conftest*
11846 glibcpp_cv_func___builtin_cosl_use=yes
11847 else
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 glibcpp_cv_func___builtin_cosl_use=no
11853 rm -f conftest*
11854 ac_ext=c
11855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11859 cross_compiling=$ac_cv_prog_cc_cross
11865 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11866 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11867 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11868 echo "configure:11869: checking for __builtin_cosl linkage" >&5
11869 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11870 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872 else
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 #include <math.h>
11878 int main() {
11879 __builtin_cosl(0);
11880 ; return 0; }
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11883 rm -rf conftest*
11884 glibcpp_cv_func___builtin_cosl_link=yes
11885 else
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 rm -rf conftest*
11889 glibcpp_cv_func___builtin_cosl_link=no
11891 rm -f conftest*
11896 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11897 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11898 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11899 cat >> confdefs.h <<EOF
11900 #define ${ac_tr_func} 1
11907 dummyvar=no
11908 if test x$dummyvar = x"yes"; then
11909 cat >> confdefs.h <<\EOF
11910 #define HAVE___BUILTIN_ABS 1
11913 cat >> confdefs.h <<\EOF
11914 #define HAVE___BUILTIN_LABS 1
11917 cat >> confdefs.h <<\EOF
11918 #define HAVE___BUILTIN_COS 1
11921 cat >> confdefs.h <<\EOF
11922 #define HAVE___BUILTIN_COSF 1
11925 cat >> confdefs.h <<\EOF
11926 #define HAVE___BUILTIN_COSL 1
11929 cat >> confdefs.h <<\EOF
11930 #define HAVE___BUILTIN_FABS 1
11933 cat >> confdefs.h <<\EOF
11934 #define HAVE___BUILTIN_FABSF 1
11937 cat >> confdefs.h <<\EOF
11938 #define HAVE___BUILTIN_FABSL 1
11941 cat >> confdefs.h <<\EOF
11942 #define HAVE___BUILTIN_SIN 1
11945 cat >> confdefs.h <<\EOF
11946 #define HAVE___BUILTIN_SINF 1
11949 cat >> confdefs.h <<\EOF
11950 #define HAVE___BUILTIN_SINL 1
11953 cat >> confdefs.h <<\EOF
11954 #define HAVE___BUILTIN_SQRT 1
11957 cat >> confdefs.h <<\EOF
11958 #define HAVE___BUILTIN_SQRTF 1
11961 cat >> confdefs.h <<\EOF
11962 #define HAVE___BUILTIN_SQRTL 1
11968 ac_test_CXXFLAGS="${CXXFLAGS+set}"
11969 ac_save_CXXFLAGS="$CXXFLAGS"
11970 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11972 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11973 echo "configure:11974: checking for sin in -lm" >&5
11974 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11976 echo $ac_n "(cached) $ac_c" 1>&6
11977 else
11978 ac_save_LIBS="$LIBS"
11979 LIBS="-lm $LIBS"
11980 cat > conftest.$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 /* Override any gcc2 internal prototype to avoid an error. */
11984 /* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986 char sin();
11988 int main() {
11989 sin()
11990 ; return 0; }
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 rm -rf conftest*
11994 eval "ac_cv_lib_$ac_lib_var=yes"
11995 else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=no"
12001 rm -f conftest*
12002 LIBS="$ac_save_LIBS"
12005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12006 echo "$ac_t""yes" 1>&6
12007 libm="-lm"
12008 else
12009 echo "$ac_t""no" 1>&6
12012 ac_save_LIBS="$LIBS"
12013 LIBS="$LIBS $libm"
12017 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12018 echo "configure:12019: checking for isinf declaration" >&5
12019 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12020 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12021 echo $ac_n "(cached) $ac_c" 1>&6
12022 else
12025 ac_ext=C
12026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12027 ac_cpp='$CXXCPP $CPPFLAGS'
12028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12030 cross_compiling=$ac_cv_prog_cxx_cross
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 #include <math.h>
12036 #ifdef HAVE_IEEEFP_H
12037 #include <ieeefp.h>
12038 #endif
12040 int main() {
12041 isinf(0);
12042 ; return 0; }
12044 if { (eval echo configure:12045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12045 rm -rf conftest*
12046 glibcpp_cv_func_isinf_use=yes
12047 else
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12050 rm -rf conftest*
12051 glibcpp_cv_func_isinf_use=no
12053 rm -f conftest*
12054 ac_ext=c
12055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CPP $CPPFLAGS'
12057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cc_cross
12065 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12067 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12068 for ac_func in isinf
12070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12071 echo "configure:12072: checking for $ac_func" >&5
12072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12074 else
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char $ac_func(); below. */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12082 /* We use char because int might match the return type of a gcc2
12083 builtin and then its argument prototype would still apply. */
12084 char $ac_func();
12086 int main() {
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 choke me
12093 #else
12094 $ac_func();
12095 #endif
12097 ; return 0; }
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12100 rm -rf conftest*
12101 eval "ac_cv_func_$ac_func=yes"
12102 else
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 rm -rf conftest*
12106 eval "ac_cv_func_$ac_func=no"
12108 rm -f conftest*
12111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12112 echo "$ac_t""yes" 1>&6
12113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12114 cat >> confdefs.h <<EOF
12115 #define $ac_tr_func 1
12118 else
12119 echo "$ac_t""no" 1>&6
12121 done
12123 else
12125 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12126 echo "configure:12127: checking for _isinf declaration" >&5
12127 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12128 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130 else
12133 ac_ext=C
12134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12135 ac_cpp='$CXXCPP $CPPFLAGS'
12136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12138 cross_compiling=$ac_cv_prog_cxx_cross
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 #include <math.h>
12144 #ifdef HAVE_IEEEFP_H
12145 #include <ieeefp.h>
12146 #endif
12148 int main() {
12149 _isinf(0);
12150 ; return 0; }
12152 if { (eval echo configure:12153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12153 rm -rf conftest*
12154 glibcpp_cv_func__isinf_use=yes
12155 else
12156 echo "configure: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 rm -rf conftest*
12159 glibcpp_cv_func__isinf_use=no
12161 rm -f conftest*
12162 ac_ext=c
12163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12164 ac_cpp='$CPP $CPPFLAGS'
12165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12167 cross_compiling=$ac_cv_prog_cc_cross
12173 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12175 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12176 for ac_func in _isinf
12178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12179 echo "configure:12180: checking for $ac_func" >&5
12180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12182 else
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func(); below. */
12188 #include <assert.h>
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 /* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192 char $ac_func();
12194 int main() {
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12200 choke me
12201 #else
12202 $ac_func();
12203 #endif
12205 ; return 0; }
12207 if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208 rm -rf conftest*
12209 eval "ac_cv_func_$ac_func=yes"
12210 else
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214 eval "ac_cv_func_$ac_func=no"
12216 rm -f conftest*
12219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12222 cat >> confdefs.h <<EOF
12223 #define $ac_tr_func 1
12226 else
12227 echo "$ac_t""no" 1>&6
12229 done
12236 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12237 echo "configure:12238: checking for isnan declaration" >&5
12238 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12239 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12241 else
12244 ac_ext=C
12245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12246 ac_cpp='$CXXCPP $CPPFLAGS'
12247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12249 cross_compiling=$ac_cv_prog_cxx_cross
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12254 #include <math.h>
12255 #ifdef HAVE_IEEEFP_H
12256 #include <ieeefp.h>
12257 #endif
12259 int main() {
12260 isnan(0);
12261 ; return 0; }
12263 if { (eval echo configure:12264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12264 rm -rf conftest*
12265 glibcpp_cv_func_isnan_use=yes
12266 else
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12269 rm -rf conftest*
12270 glibcpp_cv_func_isnan_use=no
12272 rm -f conftest*
12273 ac_ext=c
12274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12275 ac_cpp='$CPP $CPPFLAGS'
12276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278 cross_compiling=$ac_cv_prog_cc_cross
12284 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12286 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12287 for ac_func in isnan
12289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12290 echo "configure:12291: checking for $ac_func" >&5
12291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12293 else
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func(); below. */
12299 #include <assert.h>
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303 char $ac_func();
12305 int main() {
12307 /* The GNU C library defines this for functions which it implements
12308 to always fail with ENOSYS. Some functions are actually named
12309 something starting with __ and the normal name is an alias. */
12310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12311 choke me
12312 #else
12313 $ac_func();
12314 #endif
12316 ; return 0; }
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 eval "ac_cv_func_$ac_func=yes"
12321 else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 eval "ac_cv_func_$ac_func=no"
12327 rm -f conftest*
12330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12331 echo "$ac_t""yes" 1>&6
12332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12333 cat >> confdefs.h <<EOF
12334 #define $ac_tr_func 1
12337 else
12338 echo "$ac_t""no" 1>&6
12340 done
12342 else
12344 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12345 echo "configure:12346: checking for _isnan declaration" >&5
12346 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12347 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12352 ac_ext=C
12353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12354 ac_cpp='$CXXCPP $CPPFLAGS'
12355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12357 cross_compiling=$ac_cv_prog_cxx_cross
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 #include <math.h>
12363 #ifdef HAVE_IEEEFP_H
12364 #include <ieeefp.h>
12365 #endif
12367 int main() {
12368 _isnan(0);
12369 ; return 0; }
12371 if { (eval echo configure:12372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12372 rm -rf conftest*
12373 glibcpp_cv_func__isnan_use=yes
12374 else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 rm -rf conftest*
12378 glibcpp_cv_func__isnan_use=no
12380 rm -f conftest*
12381 ac_ext=c
12382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12386 cross_compiling=$ac_cv_prog_cc_cross
12392 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12394 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12395 for ac_func in _isnan
12397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12398 echo "configure:12399: checking for $ac_func" >&5
12399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401 else
12402 cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405 /* System header to define __stub macros and hopefully few prototypes,
12406 which can conflict with char $ac_func(); below. */
12407 #include <assert.h>
12408 /* Override any gcc2 internal prototype to avoid an error. */
12409 /* We use char because int might match the return type of a gcc2
12410 builtin and then its argument prototype would still apply. */
12411 char $ac_func();
12413 int main() {
12415 /* The GNU C library defines this for functions which it implements
12416 to always fail with ENOSYS. Some functions are actually named
12417 something starting with __ and the normal name is an alias. */
12418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12419 choke me
12420 #else
12421 $ac_func();
12422 #endif
12424 ; return 0; }
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12427 rm -rf conftest*
12428 eval "ac_cv_func_$ac_func=yes"
12429 else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 eval "ac_cv_func_$ac_func=no"
12435 rm -f conftest*
12438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12439 echo "$ac_t""yes" 1>&6
12440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12441 cat >> confdefs.h <<EOF
12442 #define $ac_tr_func 1
12445 else
12446 echo "$ac_t""no" 1>&6
12448 done
12455 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12456 echo "configure:12457: checking for finite declaration" >&5
12457 if test x${glibcpp_cv_func_finite_use+set} != xset; then
12458 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12460 else
12463 ac_ext=C
12464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12465 ac_cpp='$CXXCPP $CPPFLAGS'
12466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12468 cross_compiling=$ac_cv_prog_cxx_cross
12470 cat > conftest.$ac_ext <<EOF
12471 #line 12472 "configure"
12472 #include "confdefs.h"
12473 #include <math.h>
12474 #ifdef HAVE_IEEEFP_H
12475 #include <ieeefp.h>
12476 #endif
12478 int main() {
12479 finite(0);
12480 ; return 0; }
12482 if { (eval echo configure:12483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12483 rm -rf conftest*
12484 glibcpp_cv_func_finite_use=yes
12485 else
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12488 rm -rf conftest*
12489 glibcpp_cv_func_finite_use=no
12491 rm -f conftest*
12492 ac_ext=c
12493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12494 ac_cpp='$CPP $CPPFLAGS'
12495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12497 cross_compiling=$ac_cv_prog_cc_cross
12503 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12505 if test x$glibcpp_cv_func_finite_use = x"yes"; then
12506 for ac_func in finite
12508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12509 echo "configure:12510: checking for $ac_func" >&5
12510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12511 echo $ac_n "(cached) $ac_c" 1>&6
12512 else
12513 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure"
12515 #include "confdefs.h"
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char $ac_func(); below. */
12518 #include <assert.h>
12519 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12522 char $ac_func();
12524 int main() {
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12530 choke me
12531 #else
12532 $ac_func();
12533 #endif
12535 ; return 0; }
12537 if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12538 rm -rf conftest*
12539 eval "ac_cv_func_$ac_func=yes"
12540 else
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -rf conftest*
12544 eval "ac_cv_func_$ac_func=no"
12546 rm -f conftest*
12549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12550 echo "$ac_t""yes" 1>&6
12551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12552 cat >> confdefs.h <<EOF
12553 #define $ac_tr_func 1
12556 else
12557 echo "$ac_t""no" 1>&6
12559 done
12561 else
12563 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12564 echo "configure:12565: checking for _finite declaration" >&5
12565 if test x${glibcpp_cv_func__finite_use+set} != xset; then
12566 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12568 else
12571 ac_ext=C
12572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12573 ac_cpp='$CXXCPP $CPPFLAGS'
12574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12576 cross_compiling=$ac_cv_prog_cxx_cross
12578 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12581 #include <math.h>
12582 #ifdef HAVE_IEEEFP_H
12583 #include <ieeefp.h>
12584 #endif
12586 int main() {
12587 _finite(0);
12588 ; return 0; }
12590 if { (eval echo configure:12591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12591 rm -rf conftest*
12592 glibcpp_cv_func__finite_use=yes
12593 else
12594 echo "configure: failed program was:" >&5
12595 cat conftest.$ac_ext >&5
12596 rm -rf conftest*
12597 glibcpp_cv_func__finite_use=no
12599 rm -f conftest*
12600 ac_ext=c
12601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12605 cross_compiling=$ac_cv_prog_cc_cross
12611 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12613 if test x$glibcpp_cv_func__finite_use = x"yes"; then
12614 for ac_func in _finite
12616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12617 echo "configure:12618: checking for $ac_func" >&5
12618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620 else
12621 cat > conftest.$ac_ext <<EOF
12622 #line 12623 "configure"
12623 #include "confdefs.h"
12624 /* System header to define __stub macros and hopefully few prototypes,
12625 which can conflict with char $ac_func(); below. */
12626 #include <assert.h>
12627 /* Override any gcc2 internal prototype to avoid an error. */
12628 /* We use char because int might match the return type of a gcc2
12629 builtin and then its argument prototype would still apply. */
12630 char $ac_func();
12632 int main() {
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12638 choke me
12639 #else
12640 $ac_func();
12641 #endif
12643 ; return 0; }
12645 if { (eval echo configure:12646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12646 rm -rf conftest*
12647 eval "ac_cv_func_$ac_func=yes"
12648 else
12649 echo "configure: failed program was:" >&5
12650 cat conftest.$ac_ext >&5
12651 rm -rf conftest*
12652 eval "ac_cv_func_$ac_func=no"
12654 rm -f conftest*
12657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12658 echo "$ac_t""yes" 1>&6
12659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12660 cat >> confdefs.h <<EOF
12661 #define $ac_tr_func 1
12664 else
12665 echo "$ac_t""no" 1>&6
12667 done
12674 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12675 echo "configure:12676: checking for copysign declaration" >&5
12676 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12677 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12679 else
12682 ac_ext=C
12683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12684 ac_cpp='$CXXCPP $CPPFLAGS'
12685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12687 cross_compiling=$ac_cv_prog_cxx_cross
12689 cat > conftest.$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692 #include <math.h>
12693 int main() {
12694 copysign(0, 0);
12695 ; return 0; }
12697 if { (eval echo configure:12698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12698 rm -rf conftest*
12699 glibcpp_cv_func_copysign_use=yes
12700 else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 glibcpp_cv_func_copysign_use=no
12706 rm -f conftest*
12707 ac_ext=c
12708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709 ac_cpp='$CPP $CPPFLAGS'
12710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712 cross_compiling=$ac_cv_prog_cc_cross
12718 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12720 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12721 for ac_func in copysign
12723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12724 echo "configure:12725: checking for $ac_func" >&5
12725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12726 echo $ac_n "(cached) $ac_c" 1>&6
12727 else
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12731 /* System header to define __stub macros and hopefully few prototypes,
12732 which can conflict with char $ac_func(); below. */
12733 #include <assert.h>
12734 /* Override any gcc2 internal prototype to avoid an error. */
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12737 char $ac_func();
12739 int main() {
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12745 choke me
12746 #else
12747 $ac_func();
12748 #endif
12750 ; return 0; }
12752 if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12753 rm -rf conftest*
12754 eval "ac_cv_func_$ac_func=yes"
12755 else
12756 echo "configure: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12758 rm -rf conftest*
12759 eval "ac_cv_func_$ac_func=no"
12761 rm -f conftest*
12764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12765 echo "$ac_t""yes" 1>&6
12766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12767 cat >> confdefs.h <<EOF
12768 #define $ac_tr_func 1
12771 else
12772 echo "$ac_t""no" 1>&6
12774 done
12776 else
12778 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12779 echo "configure:12780: checking for _copysign declaration" >&5
12780 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12781 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783 else
12786 ac_ext=C
12787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12788 ac_cpp='$CXXCPP $CPPFLAGS'
12789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12791 cross_compiling=$ac_cv_prog_cxx_cross
12793 cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12796 #include <math.h>
12797 int main() {
12798 _copysign(0, 0);
12799 ; return 0; }
12801 if { (eval echo configure:12802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12802 rm -rf conftest*
12803 glibcpp_cv_func__copysign_use=yes
12804 else
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12807 rm -rf conftest*
12808 glibcpp_cv_func__copysign_use=no
12810 rm -f conftest*
12811 ac_ext=c
12812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12813 ac_cpp='$CPP $CPPFLAGS'
12814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12816 cross_compiling=$ac_cv_prog_cc_cross
12822 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12824 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12825 for ac_func in _copysign
12827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12828 echo "configure:12829: checking for $ac_func" >&5
12829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12830 echo $ac_n "(cached) $ac_c" 1>&6
12831 else
12832 cat > conftest.$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12835 /* System header to define __stub macros and hopefully few prototypes,
12836 which can conflict with char $ac_func(); below. */
12837 #include <assert.h>
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 /* We use char because int might match the return type of a gcc2
12840 builtin and then its argument prototype would still apply. */
12841 char $ac_func();
12843 int main() {
12845 /* The GNU C library defines this for functions which it implements
12846 to always fail with ENOSYS. Some functions are actually named
12847 something starting with __ and the normal name is an alias. */
12848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12849 choke me
12850 #else
12851 $ac_func();
12852 #endif
12854 ; return 0; }
12856 if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12857 rm -rf conftest*
12858 eval "ac_cv_func_$ac_func=yes"
12859 else
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -rf conftest*
12863 eval "ac_cv_func_$ac_func=no"
12865 rm -f conftest*
12868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12869 echo "$ac_t""yes" 1>&6
12870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12871 cat >> confdefs.h <<EOF
12872 #define $ac_tr_func 1
12875 else
12876 echo "$ac_t""no" 1>&6
12878 done
12885 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12886 echo "configure:12887: checking for sincos declaration" >&5
12887 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12888 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12889 echo $ac_n "(cached) $ac_c" 1>&6
12890 else
12893 ac_ext=C
12894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12895 ac_cpp='$CXXCPP $CPPFLAGS'
12896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12898 cross_compiling=$ac_cv_prog_cxx_cross
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 #include <math.h>
12904 int main() {
12905 sincos(0, 0, 0);
12906 ; return 0; }
12908 if { (eval echo configure:12909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12909 rm -rf conftest*
12910 glibcpp_cv_func_sincos_use=yes
12911 else
12912 echo "configure: failed program was:" >&5
12913 cat conftest.$ac_ext >&5
12914 rm -rf conftest*
12915 glibcpp_cv_func_sincos_use=no
12917 rm -f conftest*
12918 ac_ext=c
12919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12920 ac_cpp='$CPP $CPPFLAGS'
12921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12923 cross_compiling=$ac_cv_prog_cc_cross
12929 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12931 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12932 for ac_func in sincos
12934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12935 echo "configure:12936: checking for $ac_func" >&5
12936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938 else
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942 /* System header to define __stub macros and hopefully few prototypes,
12943 which can conflict with char $ac_func(); below. */
12944 #include <assert.h>
12945 /* Override any gcc2 internal prototype to avoid an error. */
12946 /* We use char because int might match the return type of a gcc2
12947 builtin and then its argument prototype would still apply. */
12948 char $ac_func();
12950 int main() {
12952 /* The GNU C library defines this for functions which it implements
12953 to always fail with ENOSYS. Some functions are actually named
12954 something starting with __ and the normal name is an alias. */
12955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12956 choke me
12957 #else
12958 $ac_func();
12959 #endif
12961 ; return 0; }
12963 if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12964 rm -rf conftest*
12965 eval "ac_cv_func_$ac_func=yes"
12966 else
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_func_$ac_func=no"
12972 rm -f conftest*
12975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12976 echo "$ac_t""yes" 1>&6
12977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12978 cat >> confdefs.h <<EOF
12979 #define $ac_tr_func 1
12982 else
12983 echo "$ac_t""no" 1>&6
12985 done
12987 else
12989 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12990 echo "configure:12991: checking for _sincos declaration" >&5
12991 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12992 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12993 echo $ac_n "(cached) $ac_c" 1>&6
12994 else
12997 ac_ext=C
12998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12999 ac_cpp='$CXXCPP $CPPFLAGS'
13000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13002 cross_compiling=$ac_cv_prog_cxx_cross
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13006 "configure"
13006 #include "confdefs.h"
13007 #include <math.h>
13008 int main() {
13009 _sincos(0, 0, 0);
13010 ; return 0; }
13012 if { (eval echo configure:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13013 rm -rf conftest*
13014 glibcpp_cv_func__sincos_use=yes
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 glibcpp_cv_func__sincos_use=no
13021 rm -f conftest*
13022 ac_ext=c
13023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027 cross_compiling=$ac_cv_prog_cc_cross
13033 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13035 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13036 for ac_func in _sincos
13038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13039 echo "configure:13040: checking for $ac_func" >&5
13040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func(); below. */
13048 #include <assert.h>
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char $ac_func();
13054 int main() {
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13060 choke me
13061 #else
13062 $ac_func();
13063 #endif
13065 ; return 0; }
13067 if { (eval echo configure:13068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13068 rm -rf conftest*
13069 eval "ac_cv_func_$ac_func=yes"
13070 else
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 rm -rf conftest*
13074 eval "ac_cv_func_$ac_func=no"
13076 rm -f conftest*
13079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13080 echo "$ac_t""yes" 1>&6
13081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13082 cat >> confdefs.h <<EOF
13083 #define $ac_tr_func 1
13086 else
13087 echo "$ac_t""no" 1>&6
13089 done
13096 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13097 echo "configure:13098: checking for fpclass declaration" >&5
13098 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13099 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101 else
13104 ac_ext=C
13105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13106 ac_cpp='$CXXCPP $CPPFLAGS'
13107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13109 cross_compiling=$ac_cv_prog_cxx_cross
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 #include <math.h>
13115 #ifdef HAVE_IEEEFP_H
13116 #include <ieeefp.h>
13117 #endif
13119 int main() {
13120 fpclass(0);
13121 ; return 0; }
13123 if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13124 rm -rf conftest*
13125 glibcpp_cv_func_fpclass_use=yes
13126 else
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 glibcpp_cv_func_fpclass_use=no
13132 rm -f conftest*
13133 ac_ext=c
13134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13138 cross_compiling=$ac_cv_prog_cc_cross
13144 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13146 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13147 for ac_func in fpclass
13149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13150 echo "configure:13151: checking for $ac_func" >&5
13151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153 else
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 /* System header to define __stub macros and hopefully few prototypes,
13158 which can conflict with char $ac_func(); below. */
13159 #include <assert.h>
13160 /* Override any gcc2 internal prototype to avoid an error. */
13161 /* We use char because int might match the return type of a gcc2
13162 builtin and then its argument prototype would still apply. */
13163 char $ac_func();
13165 int main() {
13167 /* The GNU C library defines this for functions which it implements
13168 to always fail with ENOSYS. Some functions are actually named
13169 something starting with __ and the normal name is an alias. */
13170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13171 choke me
13172 #else
13173 $ac_func();
13174 #endif
13176 ; return 0; }
13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13179 rm -rf conftest*
13180 eval "ac_cv_func_$ac_func=yes"
13181 else
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 eval "ac_cv_func_$ac_func=no"
13187 rm -f conftest*
13190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13193 cat >> confdefs.h <<EOF
13194 #define $ac_tr_func 1
13197 else
13198 echo "$ac_t""no" 1>&6
13200 done
13202 else
13204 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13205 echo "configure:13206: checking for _fpclass declaration" >&5
13206 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13207 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13209 else
13212 ac_ext=C
13213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13214 ac_cpp='$CXXCPP $CPPFLAGS'
13215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13217 cross_compiling=$ac_cv_prog_cxx_cross
13219 cat > conftest.$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 #include <math.h>
13223 #ifdef HAVE_IEEEFP_H
13224 #include <ieeefp.h>
13225 #endif
13227 int main() {
13228 _fpclass(0);
13229 ; return 0; }
13231 if { (eval echo configure:13232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13232 rm -rf conftest*
13233 glibcpp_cv_func__fpclass_use=yes
13234 else
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13237 rm -rf conftest*
13238 glibcpp_cv_func__fpclass_use=no
13240 rm -f conftest*
13241 ac_ext=c
13242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13243 ac_cpp='$CPP $CPPFLAGS'
13244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13246 cross_compiling=$ac_cv_prog_cc_cross
13252 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13254 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13255 for ac_func in _fpclass
13257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13258 echo "configure:13259: checking for $ac_func" >&5
13259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261 else
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func(); below. */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func();
13273 int main() {
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 choke me
13280 #else
13281 $ac_func();
13282 #endif
13284 ; return 0; }
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 rm -rf conftest*
13288 eval "ac_cv_func_$ac_func=yes"
13289 else
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 rm -rf conftest*
13293 eval "ac_cv_func_$ac_func=no"
13295 rm -f conftest*
13298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13301 cat >> confdefs.h <<EOF
13302 #define $ac_tr_func 1
13305 else
13306 echo "$ac_t""no" 1>&6
13308 done
13315 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13316 echo "configure:13317: checking for qfpclass declaration" >&5
13317 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13318 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320 else
13323 ac_ext=C
13324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13325 ac_cpp='$CXXCPP $CPPFLAGS'
13326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13328 cross_compiling=$ac_cv_prog_cxx_cross
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 #include <math.h>
13334 #ifdef HAVE_IEEEFP_H
13335 #include <ieeefp.h>
13336 #endif
13338 int main() {
13339 qfpclass(0);
13340 ; return 0; }
13342 if { (eval echo configure:13343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13343 rm -rf conftest*
13344 glibcpp_cv_func_qfpclass_use=yes
13345 else
13346 echo "configure: failed program was:" >&5
13347 cat conftest.$ac_ext >&5
13348 rm -rf conftest*
13349 glibcpp_cv_func_qfpclass_use=no
13351 rm -f conftest*
13352 ac_ext=c
13353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13354 ac_cpp='$CPP $CPPFLAGS'
13355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13357 cross_compiling=$ac_cv_prog_cc_cross
13363 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13365 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13366 for ac_func in qfpclass
13368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13369 echo "configure:13370: checking for $ac_func" >&5
13370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13371 echo $ac_n "(cached) $ac_c" 1>&6
13372 else
13373 cat > conftest.$ac_ext <<EOF
13374 #line 13375 "configure"
13375 #include "confdefs.h"
13376 /* System header to define __stub macros and hopefully few prototypes,
13377 which can conflict with char $ac_func(); below. */
13378 #include <assert.h>
13379 /* Override any gcc2 internal prototype to avoid an error. */
13380 /* We use char because int might match the return type of a gcc2
13381 builtin and then its argument prototype would still apply. */
13382 char $ac_func();
13384 int main() {
13386 /* The GNU C library defines this for functions which it implements
13387 to always fail with ENOSYS. Some functions are actually named
13388 something starting with __ and the normal name is an alias. */
13389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13390 choke me
13391 #else
13392 $ac_func();
13393 #endif
13395 ; return 0; }
13397 if { (eval echo configure:13398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13398 rm -rf conftest*
13399 eval "ac_cv_func_$ac_func=yes"
13400 else
13401 echo "configure: failed program was:" >&5
13402 cat conftest.$ac_ext >&5
13403 rm -rf conftest*
13404 eval "ac_cv_func_$ac_func=no"
13406 rm -f conftest*
13409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13412 cat >> confdefs.h <<EOF
13413 #define $ac_tr_func 1
13416 else
13417 echo "$ac_t""no" 1>&6
13419 done
13421 else
13423 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13424 echo "configure:13425: checking for _qfpclass declaration" >&5
13425 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13426 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13427 echo $ac_n "(cached) $ac_c" 1>&6
13428 else
13431 ac_ext=C
13432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13433 ac_cpp='$CXXCPP $CPPFLAGS'
13434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13436 cross_compiling=$ac_cv_prog_cxx_cross
13438 cat > conftest.$ac_ext <<EOF
13439 #line 13440 "configure"
13440 #include "confdefs.h"
13441 #include <math.h>
13442 #ifdef HAVE_IEEEFP_H
13443 #include <ieeefp.h>
13444 #endif
13446 int main() {
13447 _qfpclass(0);
13448 ; return 0; }
13450 if { (eval echo configure:13451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13451 rm -rf conftest*
13452 glibcpp_cv_func__qfpclass_use=yes
13453 else
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13456 rm -rf conftest*
13457 glibcpp_cv_func__qfpclass_use=no
13459 rm -f conftest*
13460 ac_ext=c
13461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13462 ac_cpp='$CPP $CPPFLAGS'
13463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13465 cross_compiling=$ac_cv_prog_cc_cross
13471 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13473 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13474 for ac_func in _qfpclass
13476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13477 echo "configure:13478: checking for $ac_func" >&5
13478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480 else
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* System header to define __stub macros and hopefully few prototypes,
13485 which can conflict with char $ac_func(); below. */
13486 #include <assert.h>
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13490 char $ac_func();
13492 int main() {
13494 /* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13498 choke me
13499 #else
13500 $ac_func();
13501 #endif
13503 ; return 0; }
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=yes"
13508 else
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 eval "ac_cv_func_$ac_func=no"
13514 rm -f conftest*
13517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h <<EOF
13521 #define $ac_tr_func 1
13524 else
13525 echo "$ac_t""no" 1>&6
13527 done
13534 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13535 echo "configure:13536: checking for hypot declaration" >&5
13536 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13537 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13538 echo $ac_n "(cached) $ac_c" 1>&6
13539 else
13542 ac_ext=C
13543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13544 ac_cpp='$CXXCPP $CPPFLAGS'
13545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13547 cross_compiling=$ac_cv_prog_cxx_cross
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 #include <math.h>
13553 int main() {
13554 hypot(0, 0);
13555 ; return 0; }
13557 if { (eval echo configure:13558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13558 rm -rf conftest*
13559 glibcpp_cv_func_hypot_use=yes
13560 else
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 rm -rf conftest*
13564 glibcpp_cv_func_hypot_use=no
13566 rm -f conftest*
13567 ac_ext=c
13568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13569 ac_cpp='$CPP $CPPFLAGS'
13570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13572 cross_compiling=$ac_cv_prog_cc_cross
13578 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13580 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13581 for ac_func in hypot
13583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13584 echo "configure:13585: checking for $ac_func" >&5
13585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13586 echo $ac_n "(cached) $ac_c" 1>&6
13587 else
13588 cat > conftest.$ac_ext <<EOF
13589 #line 13590 "configure"
13590 #include "confdefs.h"
13591 /* System header to define __stub macros and hopefully few prototypes,
13592 which can conflict with char $ac_func(); below. */
13593 #include <assert.h>
13594 /* Override any gcc2 internal prototype to avoid an error. */
13595 /* We use char because int might match the return type of a gcc2
13596 builtin and then its argument prototype would still apply. */
13597 char $ac_func();
13599 int main() {
13601 /* The GNU C library defines this for functions which it implements
13602 to always fail with ENOSYS. Some functions are actually named
13603 something starting with __ and the normal name is an alias. */
13604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13605 choke me
13606 #else
13607 $ac_func();
13608 #endif
13610 ; return 0; }
13612 if { (eval echo configure:13613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13613 rm -rf conftest*
13614 eval "ac_cv_func_$ac_func=yes"
13615 else
13616 echo "configure: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13618 rm -rf conftest*
13619 eval "ac_cv_func_$ac_func=no"
13621 rm -f conftest*
13624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13625 echo "$ac_t""yes" 1>&6
13626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13627 cat >> confdefs.h <<EOF
13628 #define $ac_tr_func 1
13631 else
13632 echo "$ac_t""no" 1>&6
13634 done
13636 else
13638 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13639 echo "configure:13640: checking for _hypot declaration" >&5
13640 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13641 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13642 echo $ac_n "(cached) $ac_c" 1>&6
13643 else
13646 ac_ext=C
13647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13648 ac_cpp='$CXXCPP $CPPFLAGS'
13649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13651 cross_compiling=$ac_cv_prog_cxx_cross
13653 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure"
13655 #include "confdefs.h"
13656 #include <math.h>
13657 int main() {
13658 _hypot(0, 0);
13659 ; return 0; }
13661 if { (eval echo configure:13662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13662 rm -rf conftest*
13663 glibcpp_cv_func__hypot_use=yes
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 glibcpp_cv_func__hypot_use=no
13670 rm -f conftest*
13671 ac_ext=c
13672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13676 cross_compiling=$ac_cv_prog_cc_cross
13682 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13684 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13685 for ac_func in _hypot
13687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13688 echo "configure:13689: checking for $ac_func" >&5
13689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char $ac_func(); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char $ac_func();
13703 int main() {
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13709 choke me
13710 #else
13711 $ac_func();
13712 #endif
13714 ; return 0; }
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_func_$ac_func=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_func_$ac_func=no"
13725 rm -f conftest*
13728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13731 cat >> confdefs.h <<EOF
13732 #define $ac_tr_func 1
13735 else
13736 echo "$ac_t""no" 1>&6
13738 done
13745 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13746 echo "configure:13747: checking for float trig functions" >&5
13747 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13748 echo $ac_n "(cached) $ac_c" 1>&6
13749 else
13752 ac_ext=C
13753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13754 ac_cpp='$CXXCPP $CPPFLAGS'
13755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13757 cross_compiling=$ac_cv_prog_cxx_cross
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 #include <math.h>
13763 int main() {
13764 `for x in acosf asinf atanf \
13765 cosf sinf tanf \
13766 coshf sinhf tanhf; do echo "$x (0);"; done`
13767 ; return 0; }
13769 if { (eval echo configure:13770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13770 rm -rf conftest*
13771 glibcpp_cv_func_float_trig_use=yes
13772 else
13773 echo "configure: failed program was:" >&5
13774 cat conftest.$ac_ext >&5
13775 rm -rf conftest*
13776 glibcpp_cv_func_float_trig_use=no
13778 rm -f conftest*
13779 ac_ext=c
13780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13784 cross_compiling=$ac_cv_prog_cc_cross
13788 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13789 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13790 for ac_func in acosf asinf atanf \
13791 cosf sinf tanf \
13792 coshf sinhf tanhf
13794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13795 echo "configure:13796: checking for $ac_func" >&5
13796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13798 else
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* System header to define __stub macros and hopefully few prototypes,
13803 which can conflict with char $ac_func(); below. */
13804 #include <assert.h>
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 /* We use char because int might match the return type of a gcc2
13807 builtin and then its argument prototype would still apply. */
13808 char $ac_func();
13810 int main() {
13812 /* The GNU C library defines this for functions which it implements
13813 to always fail with ENOSYS. Some functions are actually named
13814 something starting with __ and the normal name is an alias. */
13815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13816 choke me
13817 #else
13818 $ac_func();
13819 #endif
13821 ; return 0; }
13823 if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13824 rm -rf conftest*
13825 eval "ac_cv_func_$ac_func=yes"
13826 else
13827 echo "configure: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 rm -rf conftest*
13830 eval "ac_cv_func_$ac_func=no"
13832 rm -f conftest*
13835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13838 cat >> confdefs.h <<EOF
13839 #define $ac_tr_func 1
13842 else
13843 echo "$ac_t""no" 1>&6
13845 done
13850 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13851 echo "configure:13852: checking for float round functions" >&5
13852 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13857 ac_ext=C
13858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13859 ac_cpp='$CXXCPP $CPPFLAGS'
13860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13862 cross_compiling=$ac_cv_prog_cxx_cross
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 #include <math.h>
13868 int main() {
13869 `for x in ceilf floorf; do echo "$x (0);"; done`
13870 ; return 0; }
13872 if { (eval echo configure:13873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13873 rm -rf conftest*
13874 glibcpp_cv_func_float_round_use=yes
13875 else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 glibcpp_cv_func_float_round_use=no
13881 rm -f conftest*
13882 ac_ext=c
13883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13887 cross_compiling=$ac_cv_prog_cc_cross
13891 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13892 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13893 for ac_func in ceilf floorf
13895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13896 echo "configure:13897: checking for $ac_func" >&5
13897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13899 else
13900 cat > conftest.$ac_ext <<EOF
13901 #line 13902 "configure"
13902 #include "confdefs.h"
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func(); below. */
13905 #include <assert.h>
13906 /* Override any gcc2 internal prototype to avoid an error. */
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13909 char $ac_func();
13911 int main() {
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 choke me
13918 #else
13919 $ac_func();
13920 #endif
13922 ; return 0; }
13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925 rm -rf conftest*
13926 eval "ac_cv_func_$ac_func=yes"
13927 else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_func_$ac_func=no"
13933 rm -f conftest*
13936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13937 echo "$ac_t""yes" 1>&6
13938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13939 cat >> confdefs.h <<EOF
13940 #define $ac_tr_func 1
13943 else
13944 echo "$ac_t""no" 1>&6
13946 done
13952 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13953 echo "configure:13954: checking for expf declaration" >&5
13954 if test x${glibcpp_cv_func_expf_use+set} != xset; then
13955 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
13957 else
13960 ac_ext=C
13961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13962 ac_cpp='$CXXCPP $CPPFLAGS'
13963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13965 cross_compiling=$ac_cv_prog_cxx_cross
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13970 #include <math.h>
13971 #ifdef HAVE_IEEEFP_H
13972 #include <ieeefp.h>
13973 #endif
13975 int main() {
13976 expf(0);
13977 ; return 0; }
13979 if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13980 rm -rf conftest*
13981 glibcpp_cv_func_expf_use=yes
13982 else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 glibcpp_cv_func_expf_use=no
13988 rm -f conftest*
13989 ac_ext=c
13990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13991 ac_cpp='$CPP $CPPFLAGS'
13992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13994 cross_compiling=$ac_cv_prog_cc_cross
14000 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14002 if test x$glibcpp_cv_func_expf_use = x"yes"; then
14003 for ac_func in expf
14005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14006 echo "configure:14007: checking for $ac_func" >&5
14007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* System header to define __stub macros and hopefully few prototypes,
14014 which can conflict with char $ac_func(); below. */
14015 #include <assert.h>
14016 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char $ac_func();
14021 int main() {
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14027 choke me
14028 #else
14029 $ac_func();
14030 #endif
14032 ; return 0; }
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=yes"
14037 else
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041 eval "ac_cv_func_$ac_func=no"
14043 rm -f conftest*
14046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14047 echo "$ac_t""yes" 1>&6
14048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14049 cat >> confdefs.h <<EOF
14050 #define $ac_tr_func 1
14053 else
14054 echo "$ac_t""no" 1>&6
14056 done
14058 else
14060 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14061 echo "configure:14062: checking for _expf declaration" >&5
14062 if test x${glibcpp_cv_func__expf_use+set} != xset; then
14063 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14064 echo $ac_n "(cached) $ac_c" 1>&6
14065 else
14068 ac_ext=C
14069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14073 cross_compiling=$ac_cv_prog_cxx_cross
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 #include <math.h>
14079 #ifdef HAVE_IEEEFP_H
14080 #include <ieeefp.h>
14081 #endif
14083 int main() {
14084 _expf(0);
14085 ; return 0; }
14087 if { (eval echo configure:14088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14088 rm -rf conftest*
14089 glibcpp_cv_func__expf_use=yes
14090 else
14091 echo "configure: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 rm -rf conftest*
14094 glibcpp_cv_func__expf_use=no
14096 rm -f conftest*
14097 ac_ext=c
14098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14099 ac_cpp='$CPP $CPPFLAGS'
14100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14102 cross_compiling=$ac_cv_prog_cc_cross
14108 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14110 if test x$glibcpp_cv_func__expf_use = x"yes"; then
14111 for ac_func in _expf
14113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14114 echo "configure:14115: checking for $ac_func" >&5
14115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14117 else
14118 cat > conftest.$ac_ext <<EOF
14119 #line 14120 "configure"
14120 #include "confdefs.h"
14121 /* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func(); below. */
14123 #include <assert.h>
14124 /* Override any gcc2 internal prototype to avoid an error. */
14125 /* We use char because int might match the return type of a gcc2
14126 builtin and then its argument prototype would still apply. */
14127 char $ac_func();
14129 int main() {
14131 /* The GNU C library defines this for functions which it implements
14132 to always fail with ENOSYS. Some functions are actually named
14133 something starting with __ and the normal name is an alias. */
14134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14135 choke me
14136 #else
14137 $ac_func();
14138 #endif
14140 ; return 0; }
14142 if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14143 rm -rf conftest*
14144 eval "ac_cv_func_$ac_func=yes"
14145 else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149 eval "ac_cv_func_$ac_func=no"
14151 rm -f conftest*
14154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14157 cat >> confdefs.h <<EOF
14158 #define $ac_tr_func 1
14161 else
14162 echo "$ac_t""no" 1>&6
14164 done
14171 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14172 echo "configure:14173: checking for isnanf declaration" >&5
14173 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14174 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176 else
14179 ac_ext=C
14180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14181 ac_cpp='$CXXCPP $CPPFLAGS'
14182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14184 cross_compiling=$ac_cv_prog_cxx_cross
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 #include <math.h>
14190 #ifdef HAVE_IEEEFP_H
14191 #include <ieeefp.h>
14192 #endif
14194 int main() {
14195 isnanf(0);
14196 ; return 0; }
14198 if { (eval echo configure:14199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14199 rm -rf conftest*
14200 glibcpp_cv_func_isnanf_use=yes
14201 else
14202 echo "configure: failed program was:" >&5
14203 cat conftest.$ac_ext >&5
14204 rm -rf conftest*
14205 glibcpp_cv_func_isnanf_use=no
14207 rm -f conftest*
14208 ac_ext=c
14209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14210 ac_cpp='$CPP $CPPFLAGS'
14211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14213 cross_compiling=$ac_cv_prog_cc_cross
14219 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14221 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14222 for ac_func in isnanf
14224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14225 echo "configure:14226: checking for $ac_func" >&5
14226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
14228 else
14229 cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure"
14231 #include "confdefs.h"
14232 /* System header to define __stub macros and hopefully few prototypes,
14233 which can conflict with char $ac_func(); below. */
14234 #include <assert.h>
14235 /* Override any gcc2 internal prototype to avoid an error. */
14236 /* We use char because int might match the return type of a gcc2
14237 builtin and then its argument prototype would still apply. */
14238 char $ac_func();
14240 int main() {
14242 /* The GNU C library defines this for functions which it implements
14243 to always fail with ENOSYS. Some functions are actually named
14244 something starting with __ and the normal name is an alias. */
14245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14246 choke me
14247 #else
14248 $ac_func();
14249 #endif
14251 ; return 0; }
14253 if { (eval echo configure:14254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14254 rm -rf conftest*
14255 eval "ac_cv_func_$ac_func=yes"
14256 else
14257 echo "configure: failed program was:" >&5
14258 cat conftest.$ac_ext >&5
14259 rm -rf conftest*
14260 eval "ac_cv_func_$ac_func=no"
14262 rm -f conftest*
14265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14266 echo "$ac_t""yes" 1>&6
14267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14268 cat >> confdefs.h <<EOF
14269 #define $ac_tr_func 1
14272 else
14273 echo "$ac_t""no" 1>&6
14275 done
14277 else
14279 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14280 echo "configure:14281: checking for _isnanf declaration" >&5
14281 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14282 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14283 echo $ac_n "(cached) $ac_c" 1>&6
14284 else
14287 ac_ext=C
14288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14289 ac_cpp='$CXXCPP $CPPFLAGS'
14290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14292 cross_compiling=$ac_cv_prog_cxx_cross
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 #include <math.h>
14298 #ifdef HAVE_IEEEFP_H
14299 #include <ieeefp.h>
14300 #endif
14302 int main() {
14303 _isnanf(0);
14304 ; return 0; }
14306 if { (eval echo configure:14307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14307 rm -rf conftest*
14308 glibcpp_cv_func__isnanf_use=yes
14309 else
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 rm -rf conftest*
14313 glibcpp_cv_func__isnanf_use=no
14315 rm -f conftest*
14316 ac_ext=c
14317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14318 ac_cpp='$CPP $CPPFLAGS'
14319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14321 cross_compiling=$ac_cv_prog_cc_cross
14327 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14329 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14330 for ac_func in _isnanf
14332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14333 echo "configure:14334: checking for $ac_func" >&5
14334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14335 echo $ac_n "(cached) $ac_c" 1>&6
14336 else
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14340 /* System header to define __stub macros and hopefully few prototypes,
14341 which can conflict with char $ac_func(); below. */
14342 #include <assert.h>
14343 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14346 char $ac_func();
14348 int main() {
14350 /* The GNU C library defines this for functions which it implements
14351 to always fail with ENOSYS. Some functions are actually named
14352 something starting with __ and the normal name is an alias. */
14353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14354 choke me
14355 #else
14356 $ac_func();
14357 #endif
14359 ; return 0; }
14361 if { (eval echo configure:14362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14362 rm -rf conftest*
14363 eval "ac_cv_func_$ac_func=yes"
14364 else
14365 echo "configure: failed program was:" >&5
14366 cat conftest.$ac_ext >&5
14367 rm -rf conftest*
14368 eval "ac_cv_func_$ac_func=no"
14370 rm -f conftest*
14373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14374 echo "$ac_t""yes" 1>&6
14375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14376 cat >> confdefs.h <<EOF
14377 #define $ac_tr_func 1
14380 else
14381 echo "$ac_t""no" 1>&6
14383 done
14390 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14391 echo "configure:14392: checking for isinff declaration" >&5
14392 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14393 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14394 echo $ac_n "(cached) $ac_c" 1>&6
14395 else
14398 ac_ext=C
14399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14400 ac_cpp='$CXXCPP $CPPFLAGS'
14401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14403 cross_compiling=$ac_cv_prog_cxx_cross
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14408 #include <math.h>
14409 #ifdef HAVE_IEEEFP_H
14410 #include <ieeefp.h>
14411 #endif
14413 int main() {
14414 isinff(0);
14415 ; return 0; }
14417 if { (eval echo configure:14418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14418 rm -rf conftest*
14419 glibcpp_cv_func_isinff_use=yes
14420 else
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14423 rm -rf conftest*
14424 glibcpp_cv_func_isinff_use=no
14426 rm -f conftest*
14427 ac_ext=c
14428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14429 ac_cpp='$CPP $CPPFLAGS'
14430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14432 cross_compiling=$ac_cv_prog_cc_cross
14438 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14440 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14441 for ac_func in isinff
14443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14444 echo "configure:14445: checking for $ac_func" >&5
14445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14446 echo $ac_n "(cached) $ac_c" 1>&6
14447 else
14448 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char $ac_func(); below. */
14453 #include <assert.h>
14454 /* Override any gcc2 internal prototype to avoid an error. */
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14457 char $ac_func();
14459 int main() {
14461 /* The GNU C library defines this for functions which it implements
14462 to always fail with ENOSYS. Some functions are actually named
14463 something starting with __ and the normal name is an alias. */
14464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14465 choke me
14466 #else
14467 $ac_func();
14468 #endif
14470 ; return 0; }
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14473 rm -rf conftest*
14474 eval "ac_cv_func_$ac_func=yes"
14475 else
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14478 rm -rf conftest*
14479 eval "ac_cv_func_$ac_func=no"
14481 rm -f conftest*
14484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14485 echo "$ac_t""yes" 1>&6
14486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14487 cat >> confdefs.h <<EOF
14488 #define $ac_tr_func 1
14491 else
14492 echo "$ac_t""no" 1>&6
14494 done
14496 else
14498 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14499 echo "configure:14500: checking for _isinff declaration" >&5
14500 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14501 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14502 echo $ac_n "(cached) $ac_c" 1>&6
14503 else
14506 ac_ext=C
14507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508 ac_cpp='$CXXCPP $CPPFLAGS'
14509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511 cross_compiling=$ac_cv_prog_cxx_cross
14513 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 #include <math.h>
14517 #ifdef HAVE_IEEEFP_H
14518 #include <ieeefp.h>
14519 #endif
14521 int main() {
14522 _isinff(0);
14523 ; return 0; }
14525 if { (eval echo configure:14526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14526 rm -rf conftest*
14527 glibcpp_cv_func__isinff_use=yes
14528 else
14529 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 rm -rf conftest*
14532 glibcpp_cv_func__isinff_use=no
14534 rm -f conftest*
14535 ac_ext=c
14536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14537 ac_cpp='$CPP $CPPFLAGS'
14538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14540 cross_compiling=$ac_cv_prog_cc_cross
14546 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14548 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14549 for ac_func in _isinff
14551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14552 echo "configure:14553: checking for $ac_func" >&5
14553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14555 else
14556 cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14559 /* System header to define __stub macros and hopefully few prototypes,
14560 which can conflict with char $ac_func(); below. */
14561 #include <assert.h>
14562 /* Override any gcc2 internal prototype to avoid an error. */
14563 /* We use char because int might match the return type of a gcc2
14564 builtin and then its argument prototype would still apply. */
14565 char $ac_func();
14567 int main() {
14569 /* The GNU C library defines this for functions which it implements
14570 to always fail with ENOSYS. Some functions are actually named
14571 something starting with __ and the normal name is an alias. */
14572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14573 choke me
14574 #else
14575 $ac_func();
14576 #endif
14578 ; return 0; }
14580 if { (eval echo configure:14581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14581 rm -rf conftest*
14582 eval "ac_cv_func_$ac_func=yes"
14583 else
14584 echo "configure: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14586 rm -rf conftest*
14587 eval "ac_cv_func_$ac_func=no"
14589 rm -f conftest*
14592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14593 echo "$ac_t""yes" 1>&6
14594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14595 cat >> confdefs.h <<EOF
14596 #define $ac_tr_func 1
14599 else
14600 echo "$ac_t""no" 1>&6
14602 done
14609 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14610 echo "configure:14611: checking for atan2f declaration" >&5
14611 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14612 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14613 echo $ac_n "(cached) $ac_c" 1>&6
14614 else
14617 ac_ext=C
14618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14619 ac_cpp='$CXXCPP $CPPFLAGS'
14620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14622 cross_compiling=$ac_cv_prog_cxx_cross
14624 cat > conftest.$ac_ext <<EOF
14625 #line 14626 "configure"
14626 #include "confdefs.h"
14627 #include <math.h>
14628 int main() {
14629 atan2f(0, 0);
14630 ; return 0; }
14632 if { (eval echo configure:14633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14633 rm -rf conftest*
14634 glibcpp_cv_func_atan2f_use=yes
14635 else
14636 echo "configure: failed program was:" >&5
14637 cat conftest.$ac_ext >&5
14638 rm -rf conftest*
14639 glibcpp_cv_func_atan2f_use=no
14641 rm -f conftest*
14642 ac_ext=c
14643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14644 ac_cpp='$CPP $CPPFLAGS'
14645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14647 cross_compiling=$ac_cv_prog_cc_cross
14653 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14655 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14656 for ac_func in atan2f
14658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14659 echo "configure:14660: checking for $ac_func" >&5
14660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14661 echo $ac_n "(cached) $ac_c" 1>&6
14662 else
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14666 /* System header to define __stub macros and hopefully few prototypes,
14667 which can conflict with char $ac_func(); below. */
14668 #include <assert.h>
14669 /* Override any gcc2 internal prototype to avoid an error. */
14670 /* We use char because int might match the return type of a gcc2
14671 builtin and then its argument prototype would still apply. */
14672 char $ac_func();
14674 int main() {
14676 /* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
14679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14680 choke me
14681 #else
14682 $ac_func();
14683 #endif
14685 ; return 0; }
14687 if { (eval echo configure:14688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14688 rm -rf conftest*
14689 eval "ac_cv_func_$ac_func=yes"
14690 else
14691 echo "configure: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 rm -rf conftest*
14694 eval "ac_cv_func_$ac_func=no"
14696 rm -f conftest*
14699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14700 echo "$ac_t""yes" 1>&6
14701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14702 cat >> confdefs.h <<EOF
14703 #define $ac_tr_func 1
14706 else
14707 echo "$ac_t""no" 1>&6
14709 done
14711 else
14713 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14714 echo "configure:14715: checking for _atan2f declaration" >&5
14715 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14716 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14717 echo $ac_n "(cached) $ac_c" 1>&6
14718 else
14721 ac_ext=C
14722 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14723 ac_cpp='$CXXCPP $CPPFLAGS'
14724 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14725 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14726 cross_compiling=$ac_cv_prog_cxx_cross
14728 cat > conftest.$ac_ext <<EOF
14729 #line 14730 "configure"
14730 #include "confdefs.h"
14731 #include <math.h>
14732 int main() {
14733 _atan2f(0, 0);
14734 ; return 0; }
14736 if { (eval echo configure:14737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14737 rm -rf conftest*
14738 glibcpp_cv_func__atan2f_use=yes
14739 else
14740 echo "configure: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 rm -rf conftest*
14743 glibcpp_cv_func__atan2f_use=no
14745 rm -f conftest*
14746 ac_ext=c
14747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14748 ac_cpp='$CPP $CPPFLAGS'
14749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14751 cross_compiling=$ac_cv_prog_cc_cross
14757 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14759 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14760 for ac_func in _atan2f
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14766 else
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func(); below. */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14776 char $ac_func();
14778 int main() {
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 $ac_func();
14787 #endif
14789 ; return 0; }
14791 if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792 rm -rf conftest*
14793 eval "ac_cv_func_$ac_func=yes"
14794 else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 eval "ac_cv_func_$ac_func=no"
14800 rm -f conftest*
14803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14806 cat >> confdefs.h <<EOF
14807 #define $ac_tr_func 1
14810 else
14811 echo "$ac_t""no" 1>&6
14813 done
14820 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14821 echo "configure:14822: checking for fabsf declaration" >&5
14822 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14823 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14825 else
14828 ac_ext=C
14829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14830 ac_cpp='$CXXCPP $CPPFLAGS'
14831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14833 cross_compiling=$ac_cv_prog_cxx_cross
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 #include <math.h>
14839 #ifdef HAVE_IEEEFP_H
14840 #include <ieeefp.h>
14841 #endif
14843 int main() {
14844 fabsf(0);
14845 ; return 0; }
14847 if { (eval echo configure:14848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14848 rm -rf conftest*
14849 glibcpp_cv_func_fabsf_use=yes
14850 else
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14853 rm -rf conftest*
14854 glibcpp_cv_func_fabsf_use=no
14856 rm -f conftest*
14857 ac_ext=c
14858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14862 cross_compiling=$ac_cv_prog_cc_cross
14868 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14870 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14871 for ac_func in fabsf
14873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14874 echo "configure:14875: checking for $ac_func" >&5
14875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14877 else
14878 cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func(); below. */
14883 #include <assert.h>
14884 /* Override any gcc2 internal prototype to avoid an error. */
14885 /* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14887 char $ac_func();
14889 int main() {
14891 /* The GNU C library defines this for functions which it implements
14892 to always fail with ENOSYS. Some functions are actually named
14893 something starting with __ and the normal name is an alias. */
14894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14895 choke me
14896 #else
14897 $ac_func();
14898 #endif
14900 ; return 0; }
14902 if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 rm -rf conftest*
14904 eval "ac_cv_func_$ac_func=yes"
14905 else
14906 echo "configure: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 rm -rf conftest*
14909 eval "ac_cv_func_$ac_func=no"
14911 rm -f conftest*
14914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14915 echo "$ac_t""yes" 1>&6
14916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14917 cat >> confdefs.h <<EOF
14918 #define $ac_tr_func 1
14921 else
14922 echo "$ac_t""no" 1>&6
14924 done
14926 else
14928 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14929 echo "configure:14930: checking for _fabsf declaration" >&5
14930 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14931 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14932 echo $ac_n "(cached) $ac_c" 1>&6
14933 else
14936 ac_ext=C
14937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14938 ac_cpp='$CXXCPP $CPPFLAGS'
14939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14941 cross_compiling=$ac_cv_prog_cxx_cross
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 #include <math.h>
14947 #ifdef HAVE_IEEEFP_H
14948 #include <ieeefp.h>
14949 #endif
14951 int main() {
14952 _fabsf(0);
14953 ; return 0; }
14955 if { (eval echo configure:14956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14956 rm -rf conftest*
14957 glibcpp_cv_func__fabsf_use=yes
14958 else
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14961 rm -rf conftest*
14962 glibcpp_cv_func__fabsf_use=no
14964 rm -f conftest*
14965 ac_ext=c
14966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14970 cross_compiling=$ac_cv_prog_cc_cross
14976 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14978 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14979 for ac_func in _fabsf
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14984 echo $ac_n "(cached) $ac_c" 1>&6
14985 else
14986 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* System header to define __stub macros and hopefully few prototypes,
14990 which can conflict with char $ac_func(); below. */
14991 #include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error. */
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
14995 char $ac_func();
14997 int main() {
14999 /* The GNU C library defines this for functions which it implements
15000 to always fail with ENOSYS. Some functions are actually named
15001 something starting with __ and the normal name is an alias. */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003 choke me
15004 #else
15005 $ac_func();
15006 #endif
15008 ; return 0; }
15010 if { (eval echo configure:15011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15011 rm -rf conftest*
15012 eval "ac_cv_func_$ac_func=yes"
15013 else
15014 echo "configure: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15016 rm -rf conftest*
15017 eval "ac_cv_func_$ac_func=no"
15019 rm -f conftest*
15022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15023 echo "$ac_t""yes" 1>&6
15024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15025 cat >> confdefs.h <<EOF
15026 #define $ac_tr_func 1
15029 else
15030 echo "$ac_t""no" 1>&6
15032 done
15039 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15040 echo "configure:15041: checking for fmodf declaration" >&5
15041 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15042 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15043 echo $ac_n "(cached) $ac_c" 1>&6
15044 else
15047 ac_ext=C
15048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15049 ac_cpp='$CXXCPP $CPPFLAGS'
15050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15052 cross_compiling=$ac_cv_prog_cxx_cross
15054 cat > conftest.$ac_ext <<EOF
15055 #line 15056 "configure"
15056 #include "confdefs.h"
15057 #include <math.h>
15058 int main() {
15059 fmodf(0, 0);
15060 ; return 0; }
15062 if { (eval echo configure:15063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15063 rm -rf conftest*
15064 glibcpp_cv_func_fmodf_use=yes
15065 else
15066 echo "configure: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
15068 rm -rf conftest*
15069 glibcpp_cv_func_fmodf_use=no
15071 rm -f conftest*
15072 ac_ext=c
15073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15077 cross_compiling=$ac_cv_prog_cc_cross
15083 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15085 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15086 for ac_func in fmodf
15088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15089 echo "configure:15090: checking for $ac_func" >&5
15090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15091 echo $ac_n "(cached) $ac_c" 1>&6
15092 else
15093 cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15096 /* System header to define __stub macros and hopefully few prototypes,
15097 which can conflict with char $ac_func(); below. */
15098 #include <assert.h>
15099 /* Override any gcc2 internal prototype to avoid an error. */
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15102 char $ac_func();
15104 int main() {
15106 /* The GNU C library defines this for functions which it implements
15107 to always fail with ENOSYS. Some functions are actually named
15108 something starting with __ and the normal name is an alias. */
15109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15110 choke me
15111 #else
15112 $ac_func();
15113 #endif
15115 ; return 0; }
15117 if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15118 rm -rf conftest*
15119 eval "ac_cv_func_$ac_func=yes"
15120 else
15121 echo "configure: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15123 rm -rf conftest*
15124 eval "ac_cv_func_$ac_func=no"
15126 rm -f conftest*
15129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15130 echo "$ac_t""yes" 1>&6
15131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15132 cat >> confdefs.h <<EOF
15133 #define $ac_tr_func 1
15136 else
15137 echo "$ac_t""no" 1>&6
15139 done
15141 else
15143 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15144 echo "configure:15145: checking for _fmodf declaration" >&5
15145 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15146 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148 else
15151 ac_ext=C
15152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153 ac_cpp='$CXXCPP $CPPFLAGS'
15154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156 cross_compiling=$ac_cv_prog_cxx_cross
15158 cat > conftest.$ac_ext <<EOF
15159 #line 15160 "configure"
15160 #include "confdefs.h"
15161 #include <math.h>
15162 int main() {
15163 _fmodf(0, 0);
15164 ; return 0; }
15166 if { (eval echo configure:15167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15167 rm -rf conftest*
15168 glibcpp_cv_func__fmodf_use=yes
15169 else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173 glibcpp_cv_func__fmodf_use=no
15175 rm -f conftest*
15176 ac_ext=c
15177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15178 ac_cpp='$CPP $CPPFLAGS'
15179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15181 cross_compiling=$ac_cv_prog_cc_cross
15187 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15189 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15190 for ac_func in _fmodf
15192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15193 echo "configure:15194: checking for $ac_func" >&5
15194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15195 echo $ac_n "(cached) $ac_c" 1>&6
15196 else
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200 /* System header to define __stub macros and hopefully few prototypes,
15201 which can conflict with char $ac_func(); below. */
15202 #include <assert.h>
15203 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char $ac_func();
15208 int main() {
15210 /* The GNU C library defines this for functions which it implements
15211 to always fail with ENOSYS. Some functions are actually named
15212 something starting with __ and the normal name is an alias. */
15213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15214 choke me
15215 #else
15216 $ac_func();
15217 #endif
15219 ; return 0; }
15221 if { (eval echo configure:15222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15222 rm -rf conftest*
15223 eval "ac_cv_func_$ac_func=yes"
15224 else
15225 echo "configure: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15227 rm -rf conftest*
15228 eval "ac_cv_func_$ac_func=no"
15230 rm -f conftest*
15233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
15235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15236 cat >> confdefs.h <<EOF
15237 #define $ac_tr_func 1
15240 else
15241 echo "$ac_t""no" 1>&6
15243 done
15250 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15251 echo "configure:15252: checking for frexpf declaration" >&5
15252 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15253 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15255 else
15258 ac_ext=C
15259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15260 ac_cpp='$CXXCPP $CPPFLAGS'
15261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15263 cross_compiling=$ac_cv_prog_cxx_cross
15265 cat > conftest.$ac_ext <<EOF
15266 #line 15267 "configure"
15267 #include "confdefs.h"
15268 #include <math.h>
15269 int main() {
15270 frexpf(0, 0);
15271 ; return 0; }
15273 if { (eval echo configure:15274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15274 rm -rf conftest*
15275 glibcpp_cv_func_frexpf_use=yes
15276 else
15277 echo "configure: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15279 rm -rf conftest*
15280 glibcpp_cv_func_frexpf_use=no
15282 rm -f conftest*
15283 ac_ext=c
15284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15285 ac_cpp='$CPP $CPPFLAGS'
15286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15288 cross_compiling=$ac_cv_prog_cc_cross
15294 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15296 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15297 for ac_func in frexpf
15299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15300 echo "configure:15301: checking for $ac_func" >&5
15301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15302 echo $ac_n "(cached) $ac_c" 1>&6
15303 else
15304 cat > conftest.$ac_ext <<EOF
15305 #line 15306 "configure"
15306 #include "confdefs.h"
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func(); below. */
15309 #include <assert.h>
15310 /* Override any gcc2 internal prototype to avoid an error. */
15311 /* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15313 char $ac_func();
15315 int main() {
15317 /* The GNU C library defines this for functions which it implements
15318 to always fail with ENOSYS. Some functions are actually named
15319 something starting with __ and the normal name is an alias. */
15320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15321 choke me
15322 #else
15323 $ac_func();
15324 #endif
15326 ; return 0; }
15328 if { (eval echo configure:15329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15329 rm -rf conftest*
15330 eval "ac_cv_func_$ac_func=yes"
15331 else
15332 echo "configure: failed program was:" >&5
15333 cat conftest.$ac_ext >&5
15334 rm -rf conftest*
15335 eval "ac_cv_func_$ac_func=no"
15337 rm -f conftest*
15340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15341 echo "$ac_t""yes" 1>&6
15342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15343 cat >> confdefs.h <<EOF
15344 #define $ac_tr_func 1
15347 else
15348 echo "$ac_t""no" 1>&6
15350 done
15352 else
15354 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15355 echo "configure:15356: checking for _frexpf declaration" >&5
15356 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15357 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15362 ac_ext=C
15363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15364 ac_cpp='$CXXCPP $CPPFLAGS'
15365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15367 cross_compiling=$ac_cv_prog_cxx_cross
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 #include <math.h>
15373 int main() {
15374 _frexpf(0, 0);
15375 ; return 0; }
15377 if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15378 rm -rf conftest*
15379 glibcpp_cv_func__frexpf_use=yes
15380 else
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15383 rm -rf conftest*
15384 glibcpp_cv_func__frexpf_use=no
15386 rm -f conftest*
15387 ac_ext=c
15388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15389 ac_cpp='$CPP $CPPFLAGS'
15390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15392 cross_compiling=$ac_cv_prog_cc_cross
15398 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15400 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15401 for ac_func in _frexpf
15403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15404 echo "configure:15405: checking for $ac_func" >&5
15405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407 else
15408 cat > conftest.$ac_ext <<EOF
15409 #line 15410 "configure"
15410 #include "confdefs.h"
15411 /* System header to define __stub macros and hopefully few prototypes,
15412 which can conflict with char $ac_func(); below. */
15413 #include <assert.h>
15414 /* Override any gcc2 internal prototype to avoid an error. */
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15417 char $ac_func();
15419 int main() {
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15425 choke me
15426 #else
15427 $ac_func();
15428 #endif
15430 ; return 0; }
15432 if { (eval echo configure:15433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15433 rm -rf conftest*
15434 eval "ac_cv_func_$ac_func=yes"
15435 else
15436 echo "configure: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=no"
15441 rm -f conftest*
15444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15445 echo "$ac_t""yes" 1>&6
15446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15447 cat >> confdefs.h <<EOF
15448 #define $ac_tr_func 1
15451 else
15452 echo "$ac_t""no" 1>&6
15454 done
15461 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15462 echo "configure:15463: checking for hypotf declaration" >&5
15463 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15464 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15466 else
15469 ac_ext=C
15470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15471 ac_cpp='$CXXCPP $CPPFLAGS'
15472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15474 cross_compiling=$ac_cv_prog_cxx_cross
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479 #include <math.h>
15480 int main() {
15481 hypotf(0, 0);
15482 ; return 0; }
15484 if { (eval echo configure:15485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15485 rm -rf conftest*
15486 glibcpp_cv_func_hypotf_use=yes
15487 else
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 glibcpp_cv_func_hypotf_use=no
15493 rm -f conftest*
15494 ac_ext=c
15495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15499 cross_compiling=$ac_cv_prog_cc_cross
15505 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15507 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15508 for ac_func in hypotf
15510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15511 echo "configure:15512: checking for $ac_func" >&5
15512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515 cat > conftest.$ac_ext <<EOF
15516 #line 15517 "configure"
15517 #include "confdefs.h"
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func(); below. */
15520 #include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15524 char $ac_func();
15526 int main() {
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 choke me
15533 #else
15534 $ac_func();
15535 #endif
15537 ; return 0; }
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 rm -rf conftest*
15541 eval "ac_cv_func_$ac_func=yes"
15542 else
15543 echo "configure: failed program was:" >&5
15544 cat conftest.$ac_ext >&5
15545 rm -rf conftest*
15546 eval "ac_cv_func_$ac_func=no"
15548 rm -f conftest*
15551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15552 echo "$ac_t""yes" 1>&6
15553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15554 cat >> confdefs.h <<EOF
15555 #define $ac_tr_func 1
15558 else
15559 echo "$ac_t""no" 1>&6
15561 done
15563 else
15565 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15566 echo "configure:15567: checking for _hypotf declaration" >&5
15567 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15568 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15573 ac_ext=C
15574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15578 cross_compiling=$ac_cv_prog_cxx_cross
15580 cat > conftest.$ac_ext <<EOF
15581 #line 15582 "configure"
15582 #include "confdefs.h"
15583 #include <math.h>
15584 int main() {
15585 _hypotf(0, 0);
15586 ; return 0; }
15588 if { (eval echo configure:15589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15589 rm -rf conftest*
15590 glibcpp_cv_func__hypotf_use=yes
15591 else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595 glibcpp_cv_func__hypotf_use=no
15597 rm -f conftest*
15598 ac_ext=c
15599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15603 cross_compiling=$ac_cv_prog_cc_cross
15609 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15611 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15612 for ac_func in _hypotf
15614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15615 echo "configure:15616: checking for $ac_func" >&5
15616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15617 echo $ac_n "(cached) $ac_c" 1>&6
15618 else
15619 cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15622 /* System header to define __stub macros and hopefully few prototypes,
15623 which can conflict with char $ac_func(); below. */
15624 #include <assert.h>
15625 /* Override any gcc2 internal prototype to avoid an error. */
15626 /* We use char because int might match the return type of a gcc2
15627 builtin and then its argument prototype would still apply. */
15628 char $ac_func();
15630 int main() {
15632 /* The GNU C library defines this for functions which it implements
15633 to always fail with ENOSYS. Some functions are actually named
15634 something starting with __ and the normal name is an alias. */
15635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15636 choke me
15637 #else
15638 $ac_func();
15639 #endif
15641 ; return 0; }
15643 if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15644 rm -rf conftest*
15645 eval "ac_cv_func_$ac_func=yes"
15646 else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
15650 eval "ac_cv_func_$ac_func=no"
15652 rm -f conftest*
15655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15656 echo "$ac_t""yes" 1>&6
15657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15658 cat >> confdefs.h <<EOF
15659 #define $ac_tr_func 1
15662 else
15663 echo "$ac_t""no" 1>&6
15665 done
15672 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15673 echo "configure:15674: checking for ldexpf declaration" >&5
15674 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15675 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15677 else
15680 ac_ext=C
15681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15682 ac_cpp='$CXXCPP $CPPFLAGS'
15683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15685 cross_compiling=$ac_cv_prog_cxx_cross
15687 cat > conftest.$ac_ext <<EOF
15688 #line 15689 "configure"
15689 #include "confdefs.h"
15690 #include <math.h>
15691 int main() {
15692 ldexpf(0, 0);
15693 ; return 0; }
15695 if { (eval echo configure:15696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15696 rm -rf conftest*
15697 glibcpp_cv_func_ldexpf_use=yes
15698 else
15699 echo "configure: failed program was:" >&5
15700 cat conftest.$ac_ext >&5
15701 rm -rf conftest*
15702 glibcpp_cv_func_ldexpf_use=no
15704 rm -f conftest*
15705 ac_ext=c
15706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15707 ac_cpp='$CPP $CPPFLAGS'
15708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15710 cross_compiling=$ac_cv_prog_cc_cross
15716 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15718 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15719 for ac_func in ldexpf
15721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15722 echo "configure:15723: checking for $ac_func" >&5
15723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15724 echo $ac_n "(cached) $ac_c" 1>&6
15725 else
15726 cat > conftest.$ac_ext <<EOF
15727 #line 15728 "configure"
15728 #include "confdefs.h"
15729 /* System header to define __stub macros and hopefully few prototypes,
15730 which can conflict with char $ac_func(); below. */
15731 #include <assert.h>
15732 /* Override any gcc2 internal prototype to avoid an error. */
15733 /* We use char because int might match the return type of a gcc2
15734 builtin and then its argument prototype would still apply. */
15735 char $ac_func();
15737 int main() {
15739 /* The GNU C library defines this for functions which it implements
15740 to always fail with ENOSYS. Some functions are actually named
15741 something starting with __ and the normal name is an alias. */
15742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15743 choke me
15744 #else
15745 $ac_func();
15746 #endif
15748 ; return 0; }
15750 if { (eval echo configure:15751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15751 rm -rf conftest*
15752 eval "ac_cv_func_$ac_func=yes"
15753 else
15754 echo "configure: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 rm -rf conftest*
15757 eval "ac_cv_func_$ac_func=no"
15759 rm -f conftest*
15762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15763 echo "$ac_t""yes" 1>&6
15764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15765 cat >> confdefs.h <<EOF
15766 #define $ac_tr_func 1
15769 else
15770 echo "$ac_t""no" 1>&6
15772 done
15774 else
15776 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15777 echo "configure:15778: checking for _ldexpf declaration" >&5
15778 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15779 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15781 else
15784 ac_ext=C
15785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15786 ac_cpp='$CXXCPP $CPPFLAGS'
15787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15789 cross_compiling=$ac_cv_prog_cxx_cross
15791 cat > conftest.$ac_ext <<EOF
15792 #line 15793 "configure"
15793 #include "confdefs.h"
15794 #include <math.h>
15795 int main() {
15796 _ldexpf(0, 0);
15797 ; return 0; }
15799 if { (eval echo configure:15800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15800 rm -rf conftest*
15801 glibcpp_cv_func__ldexpf_use=yes
15802 else
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15805 rm -rf conftest*
15806 glibcpp_cv_func__ldexpf_use=no
15808 rm -f conftest*
15809 ac_ext=c
15810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15811 ac_cpp='$CPP $CPPFLAGS'
15812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15814 cross_compiling=$ac_cv_prog_cc_cross
15820 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15822 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15823 for ac_func in _ldexpf
15825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15826 echo "configure:15827: checking for $ac_func" >&5
15827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15828 echo $ac_n "(cached) $ac_c" 1>&6
15829 else
15830 cat > conftest.$ac_ext <<EOF
15831 #line 15832 "configure"
15832 #include "confdefs.h"
15833 /* System header to define __stub macros and hopefully few prototypes,
15834 which can conflict with char $ac_func(); below. */
15835 #include <assert.h>
15836 /* Override any gcc2 internal prototype to avoid an error. */
15837 /* We use char because int might match the return type of a gcc2
15838 builtin and then its argument prototype would still apply. */
15839 char $ac_func();
15841 int main() {
15843 /* The GNU C library defines this for functions which it implements
15844 to always fail with ENOSYS. Some functions are actually named
15845 something starting with __ and the normal name is an alias. */
15846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15847 choke me
15848 #else
15849 $ac_func();
15850 #endif
15852 ; return 0; }
15854 if { (eval echo configure:15855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15855 rm -rf conftest*
15856 eval "ac_cv_func_$ac_func=yes"
15857 else
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15860 rm -rf conftest*
15861 eval "ac_cv_func_$ac_func=no"
15863 rm -f conftest*
15866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15869 cat >> confdefs.h <<EOF
15870 #define $ac_tr_func 1
15873 else
15874 echo "$ac_t""no" 1>&6
15876 done
15883 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15884 echo "configure:15885: checking for logf declaration" >&5
15885 if test x${glibcpp_cv_func_logf_use+set} != xset; then
15886 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15887 echo $ac_n "(cached) $ac_c" 1>&6
15888 else
15891 ac_ext=C
15892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15893 ac_cpp='$CXXCPP $CPPFLAGS'
15894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15896 cross_compiling=$ac_cv_prog_cxx_cross
15898 cat > conftest.$ac_ext <<EOF
15899 #line 15900 "configure"
15900 #include "confdefs.h"
15901 #include <math.h>
15902 #ifdef HAVE_IEEEFP_H
15903 #include <ieeefp.h>
15904 #endif
15906 int main() {
15907 logf(0);
15908 ; return 0; }
15910 if { (eval echo configure:15911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15911 rm -rf conftest*
15912 glibcpp_cv_func_logf_use=yes
15913 else
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 rm -rf conftest*
15917 glibcpp_cv_func_logf_use=no
15919 rm -f conftest*
15920 ac_ext=c
15921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15922 ac_cpp='$CPP $CPPFLAGS'
15923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15925 cross_compiling=$ac_cv_prog_cc_cross
15931 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15933 if test x$glibcpp_cv_func_logf_use = x"yes"; then
15934 for ac_func in logf
15936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15937 echo "configure:15938: checking for $ac_func" >&5
15938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15939 echo $ac_n "(cached) $ac_c" 1>&6
15940 else
15941 cat > conftest.$ac_ext <<EOF
15942 #line 15943 "configure"
15943 #include "confdefs.h"
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char $ac_func(); below. */
15946 #include <assert.h>
15947 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */
15950 char $ac_func();
15952 int main() {
15954 /* The GNU C library defines this for functions which it implements
15955 to always fail with ENOSYS. Some functions are actually named
15956 something starting with __ and the normal name is an alias. */
15957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15958 choke me
15959 #else
15960 $ac_func();
15961 #endif
15963 ; return 0; }
15965 if { (eval echo configure:15966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15966 rm -rf conftest*
15967 eval "ac_cv_func_$ac_func=yes"
15968 else
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15971 rm -rf conftest*
15972 eval "ac_cv_func_$ac_func=no"
15974 rm -f conftest*
15977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15978 echo "$ac_t""yes" 1>&6
15979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15980 cat >> confdefs.h <<EOF
15981 #define $ac_tr_func 1
15984 else
15985 echo "$ac_t""no" 1>&6
15987 done
15989 else
15991 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15992 echo "configure:15993: checking for _logf declaration" >&5
15993 if test x${glibcpp_cv_func__logf_use+set} != xset; then
15994 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15995 echo $ac_n "(cached) $ac_c" 1>&6
15996 else
15999 ac_ext=C
16000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16001 ac_cpp='$CXXCPP $CPPFLAGS'
16002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16004 cross_compiling=$ac_cv_prog_cxx_cross
16006 cat > conftest.$ac_ext <<EOF
16007 #line 16008 "configure"
16008 #include "confdefs.h"
16009 #include <math.h>
16010 #ifdef HAVE_IEEEFP_H
16011 #include <ieeefp.h>
16012 #endif
16014 int main() {
16015 _logf(0);
16016 ; return 0; }
16018 if { (eval echo configure:16019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16019 rm -rf conftest*
16020 glibcpp_cv_func__logf_use=yes
16021 else
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 rm -rf conftest*
16025 glibcpp_cv_func__logf_use=no
16027 rm -f conftest*
16028 ac_ext=c
16029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16030 ac_cpp='$CPP $CPPFLAGS'
16031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16033 cross_compiling=$ac_cv_prog_cc_cross
16039 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16041 if test x$glibcpp_cv_func__logf_use = x"yes"; then
16042 for ac_func in _logf
16044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16045 echo "configure:16046: checking for $ac_func" >&5
16046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16047 echo $ac_n "(cached) $ac_c" 1>&6
16048 else
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052 /* System header to define __stub macros and hopefully few prototypes,
16053 which can conflict with char $ac_func(); below. */
16054 #include <assert.h>
16055 /* Override any gcc2 internal prototype to avoid an error. */
16056 /* We use char because int might match the return type of a gcc2
16057 builtin and then its argument prototype would still apply. */
16058 char $ac_func();
16060 int main() {
16062 /* The GNU C library defines this for functions which it implements
16063 to always fail with ENOSYS. Some functions are actually named
16064 something starting with __ and the normal name is an alias. */
16065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16066 choke me
16067 #else
16068 $ac_func();
16069 #endif
16071 ; return 0; }
16073 if { (eval echo configure:16074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16074 rm -rf conftest*
16075 eval "ac_cv_func_$ac_func=yes"
16076 else
16077 echo "configure: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16079 rm -rf conftest*
16080 eval "ac_cv_func_$ac_func=no"
16082 rm -f conftest*
16085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16086 echo "$ac_t""yes" 1>&6
16087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16088 cat >> confdefs.h <<EOF
16089 #define $ac_tr_func 1
16092 else
16093 echo "$ac_t""no" 1>&6
16095 done
16102 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16103 echo "configure:16104: checking for log10f declaration" >&5
16104 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16105 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16107 else
16110 ac_ext=C
16111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16112 ac_cpp='$CXXCPP $CPPFLAGS'
16113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16115 cross_compiling=$ac_cv_prog_cxx_cross
16117 cat > conftest.$ac_ext <<EOF
16118 #line 16119 "configure"
16119 #include "confdefs.h"
16120 #include <math.h>
16121 #ifdef HAVE_IEEEFP_H
16122 #include <ieeefp.h>
16123 #endif
16125 int main() {
16126 log10f(0);
16127 ; return 0; }
16129 if { (eval echo configure:16130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16130 rm -rf conftest*
16131 glibcpp_cv_func_log10f_use=yes
16132 else
16133 echo "configure: failed program was:" >&5
16134 cat conftest.$ac_ext >&5
16135 rm -rf conftest*
16136 glibcpp_cv_func_log10f_use=no
16138 rm -f conftest*
16139 ac_ext=c
16140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16141 ac_cpp='$CPP $CPPFLAGS'
16142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16144 cross_compiling=$ac_cv_prog_cc_cross
16150 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16152 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16153 for ac_func in log10f
16155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16156 echo "configure:16157: checking for $ac_func" >&5
16157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16158 echo $ac_n "(cached) $ac_c" 1>&6
16159 else
16160 cat > conftest.$ac_ext <<EOF
16161 #line 16162 "configure"
16162 #include "confdefs.h"
16163 /* System header to define __stub macros and hopefully few prototypes,
16164 which can conflict with char $ac_func(); below. */
16165 #include <assert.h>
16166 /* Override any gcc2 internal prototype to avoid an error. */
16167 /* We use char because int might match the return type of a gcc2
16168 builtin and then its argument prototype would still apply. */
16169 char $ac_func();
16171 int main() {
16173 /* The GNU C library defines this for functions which it implements
16174 to always fail with ENOSYS. Some functions are actually named
16175 something starting with __ and the normal name is an alias. */
16176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16177 choke me
16178 #else
16179 $ac_func();
16180 #endif
16182 ; return 0; }
16184 if { (eval echo configure:16185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16185 rm -rf conftest*
16186 eval "ac_cv_func_$ac_func=yes"
16187 else
16188 echo "configure: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 rm -rf conftest*
16191 eval "ac_cv_func_$ac_func=no"
16193 rm -f conftest*
16196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16197 echo "$ac_t""yes" 1>&6
16198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16199 cat >> confdefs.h <<EOF
16200 #define $ac_tr_func 1
16203 else
16204 echo "$ac_t""no" 1>&6
16206 done
16208 else
16210 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16211 echo "configure:16212: checking for _log10f declaration" >&5
16212 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16213 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16214 echo $ac_n "(cached) $ac_c" 1>&6
16215 else
16218 ac_ext=C
16219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16220 ac_cpp='$CXXCPP $CPPFLAGS'
16221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16223 cross_compiling=$ac_cv_prog_cxx_cross
16225 cat > conftest.$ac_ext <<EOF
16226 #line 16227 "configure"
16227 #include "confdefs.h"
16228 #include <math.h>
16229 #ifdef HAVE_IEEEFP_H
16230 #include <ieeefp.h>
16231 #endif
16233 int main() {
16234 _log10f(0);
16235 ; return 0; }
16237 if { (eval echo configure:16238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16238 rm -rf conftest*
16239 glibcpp_cv_func__log10f_use=yes
16240 else
16241 echo "configure: failed program was:" >&5
16242 cat conftest.$ac_ext >&5
16243 rm -rf conftest*
16244 glibcpp_cv_func__log10f_use=no
16246 rm -f conftest*
16247 ac_ext=c
16248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16249 ac_cpp='$CPP $CPPFLAGS'
16250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16252 cross_compiling=$ac_cv_prog_cc_cross
16258 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16260 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16261 for ac_func in _log10f
16263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16264 echo "configure:16265: checking for $ac_func" >&5
16265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16266 echo $ac_n "(cached) $ac_c" 1>&6
16267 else
16268 cat > conftest.$ac_ext <<EOF
16269 #line 16270 "configure"
16270 #include "confdefs.h"
16271 /* System header to define __stub macros and hopefully few prototypes,
16272 which can conflict with char $ac_func(); below. */
16273 #include <assert.h>
16274 /* Override any gcc2 internal prototype to avoid an error. */
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16277 char $ac_func();
16279 int main() {
16281 /* The GNU C library defines this for functions which it implements
16282 to always fail with ENOSYS. Some functions are actually named
16283 something starting with __ and the normal name is an alias. */
16284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16285 choke me
16286 #else
16287 $ac_func();
16288 #endif
16290 ; return 0; }
16292 if { (eval echo configure:16293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16293 rm -rf conftest*
16294 eval "ac_cv_func_$ac_func=yes"
16295 else
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16298 rm -rf conftest*
16299 eval "ac_cv_func_$ac_func=no"
16301 rm -f conftest*
16304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16305 echo "$ac_t""yes" 1>&6
16306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16307 cat >> confdefs.h <<EOF
16308 #define $ac_tr_func 1
16311 else
16312 echo "$ac_t""no" 1>&6
16314 done
16321 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16322 echo "configure:16323: checking for modff declaration" >&5
16323 if test x${glibcpp_cv_func_modff_use+set} != xset; then
16324 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16326 else
16329 ac_ext=C
16330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16331 ac_cpp='$CXXCPP $CPPFLAGS'
16332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16334 cross_compiling=$ac_cv_prog_cxx_cross
16336 cat > conftest.$ac_ext <<EOF
16337 #line 16338 "configure"
16338 #include "confdefs.h"
16339 #include <math.h>
16340 int main() {
16341 modff(0, 0);
16342 ; return 0; }
16344 if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16345 rm -rf conftest*
16346 glibcpp_cv_func_modff_use=yes
16347 else
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16350 rm -rf conftest*
16351 glibcpp_cv_func_modff_use=no
16353 rm -f conftest*
16354 ac_ext=c
16355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16356 ac_cpp='$CPP $CPPFLAGS'
16357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16359 cross_compiling=$ac_cv_prog_cc_cross
16365 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16367 if test x$glibcpp_cv_func_modff_use = x"yes"; then
16368 for ac_func in modff
16370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16371 echo "configure:16372: checking for $ac_func" >&5
16372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16374 else
16375 cat > conftest.$ac_ext <<EOF
16376 #line 16377 "configure"
16377 #include "confdefs.h"
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func(); below. */
16380 #include <assert.h>
16381 /* Override any gcc2 internal prototype to avoid an error. */
16382 /* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16384 char $ac_func();
16386 int main() {
16388 /* The GNU C library defines this for functions which it implements
16389 to always fail with ENOSYS. Some functions are actually named
16390 something starting with __ and the normal name is an alias. */
16391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392 choke me
16393 #else
16394 $ac_func();
16395 #endif
16397 ; return 0; }
16399 if { (eval echo configure:16400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16400 rm -rf conftest*
16401 eval "ac_cv_func_$ac_func=yes"
16402 else
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 rm -rf conftest*
16406 eval "ac_cv_func_$ac_func=no"
16408 rm -f conftest*
16411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16412 echo "$ac_t""yes" 1>&6
16413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16414 cat >> confdefs.h <<EOF
16415 #define $ac_tr_func 1
16418 else
16419 echo "$ac_t""no" 1>&6
16421 done
16423 else
16425 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16426 echo "configure:16427: checking for _modff declaration" >&5
16427 if test x${glibcpp_cv_func__modff_use+set} != xset; then
16428 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16429 echo $ac_n "(cached) $ac_c" 1>&6
16430 else
16433 ac_ext=C
16434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16435 ac_cpp='$CXXCPP $CPPFLAGS'
16436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16438 cross_compiling=$ac_cv_prog_cxx_cross
16440 cat > conftest.$ac_ext <<EOF
16441 #line 16442 "configure"
16442 #include "confdefs.h"
16443 #include <math.h>
16444 int main() {
16445 _modff(0, 0);
16446 ; return 0; }
16448 if { (eval echo configure:16449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16449 rm -rf conftest*
16450 glibcpp_cv_func__modff_use=yes
16451 else
16452 echo "configure: failed program was:" >&5
16453 cat conftest.$ac_ext >&5
16454 rm -rf conftest*
16455 glibcpp_cv_func__modff_use=no
16457 rm -f conftest*
16458 ac_ext=c
16459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16460 ac_cpp='$CPP $CPPFLAGS'
16461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16463 cross_compiling=$ac_cv_prog_cc_cross
16469 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16471 if test x$glibcpp_cv_func__modff_use = x"yes"; then
16472 for ac_func in _modff
16474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16475 echo "configure:16476: checking for $ac_func" >&5
16476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16477 echo $ac_n "(cached) $ac_c" 1>&6
16478 else
16479 cat > conftest.$ac_ext <<EOF
16480 #line 16481 "configure"
16481 #include "confdefs.h"
16482 /* System header to define __stub macros and hopefully few prototypes,
16483 which can conflict with char $ac_func(); below. */
16484 #include <assert.h>
16485 /* Override any gcc2 internal prototype to avoid an error. */
16486 /* We use char because int might match the return type of a gcc2
16487 builtin and then its argument prototype would still apply. */
16488 char $ac_func();
16490 int main() {
16492 /* The GNU C library defines this for functions which it implements
16493 to always fail with ENOSYS. Some functions are actually named
16494 something starting with __ and the normal name is an alias. */
16495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16496 choke me
16497 #else
16498 $ac_func();
16499 #endif
16501 ; return 0; }
16503 if { (eval echo configure:16504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16504 rm -rf conftest*
16505 eval "ac_cv_func_$ac_func=yes"
16506 else
16507 echo "configure: failed program was:" >&5
16508 cat conftest.$ac_ext >&5
16509 rm -rf conftest*
16510 eval "ac_cv_func_$ac_func=no"
16512 rm -f conftest*
16515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16516 echo "$ac_t""yes" 1>&6
16517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16518 cat >> confdefs.h <<EOF
16519 #define $ac_tr_func 1
16522 else
16523 echo "$ac_t""no" 1>&6
16525 done
16532 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16533 echo "configure:16534: checking for powf declaration" >&5
16534 if test x${glibcpp_cv_func_powf_use+set} != xset; then
16535 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16536 echo $ac_n "(cached) $ac_c" 1>&6
16537 else
16540 ac_ext=C
16541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16542 ac_cpp='$CXXCPP $CPPFLAGS'
16543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16545 cross_compiling=$ac_cv_prog_cxx_cross
16547 cat > conftest.$ac_ext <<EOF
16548 #line 16549 "configure"
16549 #include "confdefs.h"
16550 #include <math.h>
16551 int main() {
16552 powf(0, 0);
16553 ; return 0; }
16555 if { (eval echo configure:16556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16556 rm -rf conftest*
16557 glibcpp_cv_func_powf_use=yes
16558 else
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16561 rm -rf conftest*
16562 glibcpp_cv_func_powf_use=no
16564 rm -f conftest*
16565 ac_ext=c
16566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16567 ac_cpp='$CPP $CPPFLAGS'
16568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16570 cross_compiling=$ac_cv_prog_cc_cross
16576 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16578 if test x$glibcpp_cv_func_powf_use = x"yes"; then
16579 for ac_func in powf
16581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16582 echo "configure:16583: checking for $ac_func" >&5
16583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16584 echo $ac_n "(cached) $ac_c" 1>&6
16585 else
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16589 /* System header to define __stub macros and hopefully few prototypes,
16590 which can conflict with char $ac_func(); below. */
16591 #include <assert.h>
16592 /* Override any gcc2 internal prototype to avoid an error. */
16593 /* We use char because int might match the return type of a gcc2
16594 builtin and then its argument prototype would still apply. */
16595 char $ac_func();
16597 int main() {
16599 /* The GNU C library defines this for functions which it implements
16600 to always fail with ENOSYS. Some functions are actually named
16601 something starting with __ and the normal name is an alias. */
16602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16603 choke me
16604 #else
16605 $ac_func();
16606 #endif
16608 ; return 0; }
16610 if { (eval echo configure:16611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16611 rm -rf conftest*
16612 eval "ac_cv_func_$ac_func=yes"
16613 else
16614 echo "configure: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16616 rm -rf conftest*
16617 eval "ac_cv_func_$ac_func=no"
16619 rm -f conftest*
16622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16623 echo "$ac_t""yes" 1>&6
16624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16625 cat >> confdefs.h <<EOF
16626 #define $ac_tr_func 1
16629 else
16630 echo "$ac_t""no" 1>&6
16632 done
16634 else
16636 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16637 echo "configure:16638: checking for _powf declaration" >&5
16638 if test x${glibcpp_cv_func__powf_use+set} != xset; then
16639 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16640 echo $ac_n "(cached) $ac_c" 1>&6
16641 else
16644 ac_ext=C
16645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16646 ac_cpp='$CXXCPP $CPPFLAGS'
16647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16649 cross_compiling=$ac_cv_prog_cxx_cross
16651 cat > conftest.$ac_ext <<EOF
16652 #line 16653 "configure"
16653 #include "confdefs.h"
16654 #include <math.h>
16655 int main() {
16656 _powf(0, 0);
16657 ; return 0; }
16659 if { (eval echo configure:16660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16660 rm -rf conftest*
16661 glibcpp_cv_func__powf_use=yes
16662 else
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 rm -rf conftest*
16666 glibcpp_cv_func__powf_use=no
16668 rm -f conftest*
16669 ac_ext=c
16670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16671 ac_cpp='$CPP $CPPFLAGS'
16672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16674 cross_compiling=$ac_cv_prog_cc_cross
16680 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16682 if test x$glibcpp_cv_func__powf_use = x"yes"; then
16683 for ac_func in _powf
16685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16686 echo "configure:16687: checking for $ac_func" >&5
16687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16688 echo $ac_n "(cached) $ac_c" 1>&6
16689 else
16690 cat > conftest.$ac_ext <<EOF
16691 #line 16692 "configure"
16692 #include "confdefs.h"
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func(); below. */
16695 #include <assert.h>
16696 /* Override any gcc2 internal prototype to avoid an error. */
16697 /* We use char because int might match the return type of a gcc2
16698 builtin and then its argument prototype would still apply. */
16699 char $ac_func();
16701 int main() {
16703 /* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
16706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16707 choke me
16708 #else
16709 $ac_func();
16710 #endif
16712 ; return 0; }
16714 if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16715 rm -rf conftest*
16716 eval "ac_cv_func_$ac_func=yes"
16717 else
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 rm -rf conftest*
16721 eval "ac_cv_func_$ac_func=no"
16723 rm -f conftest*
16726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16727 echo "$ac_t""yes" 1>&6
16728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16729 cat >> confdefs.h <<EOF
16730 #define $ac_tr_func 1
16733 else
16734 echo "$ac_t""no" 1>&6
16736 done
16743 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16744 echo "configure:16745: checking for sqrtf declaration" >&5
16745 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16746 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16747 echo $ac_n "(cached) $ac_c" 1>&6
16748 else
16751 ac_ext=C
16752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16753 ac_cpp='$CXXCPP $CPPFLAGS'
16754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16756 cross_compiling=$ac_cv_prog_cxx_cross
16758 cat > conftest.$ac_ext <<EOF
16759 #line 16760 "configure"
16760 #include "confdefs.h"
16761 #include <math.h>
16762 #ifdef HAVE_IEEEFP_H
16763 #include <ieeefp.h>
16764 #endif
16766 int main() {
16767 sqrtf(0);
16768 ; return 0; }
16770 if { (eval echo configure:16771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16771 rm -rf conftest*
16772 glibcpp_cv_func_sqrtf_use=yes
16773 else
16774 echo "configure: failed program was:" >&5
16775 cat conftest.$ac_ext >&5
16776 rm -rf conftest*
16777 glibcpp_cv_func_sqrtf_use=no
16779 rm -f conftest*
16780 ac_ext=c
16781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16782 ac_cpp='$CPP $CPPFLAGS'
16783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16785 cross_compiling=$ac_cv_prog_cc_cross
16791 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16793 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16794 for ac_func in sqrtf
16796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16797 echo "configure:16798: checking for $ac_func" >&5
16798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16799 echo $ac_n "(cached) $ac_c" 1>&6
16800 else
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16803 "configure"
16803 #include "confdefs.h"
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func(); below. */
16806 #include <assert.h>
16807 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16810 char $ac_func();
16812 int main() {
16814 /* The GNU C library defines this for functions which it implements
16815 to always fail with ENOSYS. Some functions are actually named
16816 something starting with __ and the normal name is an alias. */
16817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16818 choke me
16819 #else
16820 $ac_func();
16821 #endif
16823 ; return 0; }
16825 if { (eval echo configure:16826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16826 rm -rf conftest*
16827 eval "ac_cv_func_$ac_func=yes"
16828 else
16829 echo "configure: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16831 rm -rf conftest*
16832 eval "ac_cv_func_$ac_func=no"
16834 rm -f conftest*
16837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16838 echo "$ac_t""yes" 1>&6
16839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16840 cat >> confdefs.h <<EOF
16841 #define $ac_tr_func 1
16844 else
16845 echo "$ac_t""no" 1>&6
16847 done
16849 else
16851 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16852 echo "configure:16853: checking for _sqrtf declaration" >&5
16853 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16854 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16855 echo $ac_n "(cached) $ac_c" 1>&6
16856 else
16859 ac_ext=C
16860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16861 ac_cpp='$CXXCPP $CPPFLAGS'
16862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16864 cross_compiling=$ac_cv_prog_cxx_cross
16866 cat > conftest.$ac_ext <<EOF
16867 #line 16868 "configure"
16868 #include "confdefs.h"
16869 #include <math.h>
16870 #ifdef HAVE_IEEEFP_H
16871 #include <ieeefp.h>
16872 #endif
16874 int main() {
16875 _sqrtf(0);
16876 ; return 0; }
16878 if { (eval echo configure:16879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16879 rm -rf conftest*
16880 glibcpp_cv_func__sqrtf_use=yes
16881 else
16882 echo "configure: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16884 rm -rf conftest*
16885 glibcpp_cv_func__sqrtf_use=no
16887 rm -f conftest*
16888 ac_ext=c
16889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16890 ac_cpp='$CPP $CPPFLAGS'
16891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16893 cross_compiling=$ac_cv_prog_cc_cross
16899 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16901 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16902 for ac_func in _sqrtf
16904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16905 echo "configure:16906: checking for $ac_func" >&5
16906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16907 echo $ac_n "(cached) $ac_c" 1>&6
16908 else
16909 cat > conftest.$ac_ext <<EOF
16910 #line 16911 "configure"
16911 #include "confdefs.h"
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func(); below. */
16914 #include <assert.h>
16915 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char $ac_func();
16920 int main() {
16922 /* The GNU C library defines this for functions which it implements
16923 to always fail with ENOSYS. Some functions are actually named
16924 something starting with __ and the normal name is an alias. */
16925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16926 choke me
16927 #else
16928 $ac_func();
16929 #endif
16931 ; return 0; }
16933 if { (eval echo configure:16934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16934 rm -rf conftest*
16935 eval "ac_cv_func_$ac_func=yes"
16936 else
16937 echo "configure: failed program was:" >&5
16938 cat conftest.$ac_ext >&5
16939 rm -rf conftest*
16940 eval "ac_cv_func_$ac_func=no"
16942 rm -f conftest*
16945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16946 echo "$ac_t""yes" 1>&6
16947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16948 cat >> confdefs.h <<EOF
16949 #define $ac_tr_func 1
16952 else
16953 echo "$ac_t""no" 1>&6
16955 done
16962 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16963 echo "configure:16964: checking for sincosf declaration" >&5
16964 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16965 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16966 echo $ac_n "(cached) $ac_c" 1>&6
16967 else
16970 ac_ext=C
16971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16972 ac_cpp='$CXXCPP $CPPFLAGS'
16973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16975 cross_compiling=$ac_cv_prog_cxx_cross
16977 cat > conftest.$ac_ext <<EOF
16978 #line 16979 "configure"
16979 #include "confdefs.h"
16980 #include <math.h>
16981 int main() {
16982 sincosf(0, 0, 0);
16983 ; return 0; }
16985 if { (eval echo configure:16986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16986 rm -rf conftest*
16987 glibcpp_cv_func_sincosf_use=yes
16988 else
16989 echo "configure: failed program was:" >&5
16990 cat conftest.$ac_ext >&5
16991 rm -rf conftest*
16992 glibcpp_cv_func_sincosf_use=no
16994 rm -f conftest*
16995 ac_ext=c
16996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16997 ac_cpp='$CPP $CPPFLAGS'
16998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17000 cross_compiling=$ac_cv_prog_cc_cross
17006 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17008 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17009 for ac_func in sincosf
17011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17012 echo "configure:17013: checking for $ac_func" >&5
17013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17014 echo $ac_n "(cached) $ac_c" 1>&6
17015 else
17016 cat > conftest.$ac_ext <<EOF
17017 #line 17018 "configure"
17018 #include "confdefs.h"
17019 /* System header to define __stub macros and hopefully few prototypes,
17020 which can conflict with char $ac_func(); below. */
17021 #include <assert.h>
17022 /* Override any gcc2 internal prototype to avoid an error. */
17023 /* We use char because int might match the return type of a gcc2
17024 builtin and then its argument prototype would still apply. */
17025 char $ac_func();
17027 int main() {
17029 /* The GNU C library defines this for functions which it implements
17030 to always fail with ENOSYS. Some functions are actually named
17031 something starting with __ and the normal name is an alias. */
17032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17033 choke me
17034 #else
17035 $ac_func();
17036 #endif
17038 ; return 0; }
17040 if { (eval echo configure:17041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17041 rm -rf conftest*
17042 eval "ac_cv_func_$ac_func=yes"
17043 else
17044 echo "configure: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 rm -rf conftest*
17047 eval "ac_cv_func_$ac_func=no"
17049 rm -f conftest*
17052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17053 echo "$ac_t""yes" 1>&6
17054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17055 cat >> confdefs.h <<EOF
17056 #define $ac_tr_func 1
17059 else
17060 echo "$ac_t""no" 1>&6
17062 done
17064 else
17066 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17067 echo "configure:17068: checking for _sincosf declaration" >&5
17068 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17069 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17070 echo $ac_n "(cached) $ac_c" 1>&6
17071 else
17074 ac_ext=C
17075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17076 ac_cpp='$CXXCPP $CPPFLAGS'
17077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17079 cross_compiling=$ac_cv_prog_cxx_cross
17081 cat > conftest.$ac_ext <<EOF
17082 #line 17083 "configure"
17083 #include "confdefs.h"
17084 #include <math.h>
17085 int main() {
17086 _sincosf(0, 0, 0);
17087 ; return 0; }
17089 if { (eval echo configure:17090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17090 rm -rf conftest*
17091 glibcpp_cv_func__sincosf_use=yes
17092 else
17093 echo "configure: failed program was:" >&5
17094 cat conftest.$ac_ext >&5
17095 rm -rf conftest*
17096 glibcpp_cv_func__sincosf_use=no
17098 rm -f conftest*
17099 ac_ext=c
17100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17101 ac_cpp='$CPP $CPPFLAGS'
17102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17104 cross_compiling=$ac_cv_prog_cc_cross
17110 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17112 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17113 for ac_func in _sincosf
17115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17116 echo "configure:17117: checking for $ac_func" >&5
17117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17118 echo $ac_n "(cached) $ac_c" 1>&6
17119 else
17120 cat > conftest.$ac_ext <<EOF
17121 #line 17122 "configure"
17122 #include "confdefs.h"
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func(); below. */
17125 #include <assert.h>
17126 /* Override any gcc2 internal prototype to avoid an error. */
17127 /* We use char because int might match the return type of a gcc2
17128 builtin and then its argument prototype would still apply. */
17129 char $ac_func();
17131 int main() {
17133 /* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
17136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17137 choke me
17138 #else
17139 $ac_func();
17140 #endif
17142 ; return 0; }
17144 if { (eval echo configure:17145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17145 rm -rf conftest*
17146 eval "ac_cv_func_$ac_func=yes"
17147 else
17148 echo "configure: failed program was:" >&5
17149 cat conftest.$ac_ext >&5
17150 rm -rf conftest*
17151 eval "ac_cv_func_$ac_func=no"
17153 rm -f conftest*
17156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17157 echo "$ac_t""yes" 1>&6
17158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17159 cat >> confdefs.h <<EOF
17160 #define $ac_tr_func 1
17163 else
17164 echo "$ac_t""no" 1>&6
17166 done
17173 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17174 echo "configure:17175: checking for finitef declaration" >&5
17175 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17176 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17177 echo $ac_n "(cached) $ac_c" 1>&6
17178 else
17181 ac_ext=C
17182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17183 ac_cpp='$CXXCPP $CPPFLAGS'
17184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17186 cross_compiling=$ac_cv_prog_cxx_cross
17188 cat > conftest.$ac_ext <<EOF
17189 #line 17190 "configure"
17190 #include "confdefs.h"
17191 #include <math.h>
17192 #ifdef HAVE_IEEEFP_H
17193 #include <ieeefp.h>
17194 #endif
17196 int main() {
17197 finitef(0);
17198 ; return 0; }
17200 if { (eval echo configure:17201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17201 rm -rf conftest*
17202 glibcpp_cv_func_finitef_use=yes
17203 else
17204 echo "configure: failed program was:" >&5
17205 cat conftest.$ac_ext >&5
17206 rm -rf conftest*
17207 glibcpp_cv_func_finitef_use=no
17209 rm -f conftest*
17210 ac_ext=c
17211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17212 ac_cpp='$CPP $CPPFLAGS'
17213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17215 cross_compiling=$ac_cv_prog_cc_cross
17221 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17223 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17224 for ac_func in finitef
17226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17227 echo "configure:17228: checking for $ac_func" >&5
17228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17229 echo $ac_n "(cached) $ac_c" 1>&6
17230 else
17231 cat > conftest.$ac_ext <<EOF
17232 #line 17233 "configure"
17233 #include "confdefs.h"
17234 /* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func(); below. */
17236 #include <assert.h>
17237 /* Override any gcc2 internal prototype to avoid an error. */
17238 /* We use char because int might match the return type of a gcc2
17239 builtin and then its argument prototype would still apply. */
17240 char $ac_func();
17242 int main() {
17244 /* The GNU C library defines this for functions which it implements
17245 to always fail with ENOSYS. Some functions are actually named
17246 something starting with __ and the normal name is an alias. */
17247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17248 choke me
17249 #else
17250 $ac_func();
17251 #endif
17253 ; return 0; }
17255 if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17256 rm -rf conftest*
17257 eval "ac_cv_func_$ac_func=yes"
17258 else
17259 echo "configure: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 rm -rf conftest*
17262 eval "ac_cv_func_$ac_func=no"
17264 rm -f conftest*
17267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17268 echo "$ac_t""yes" 1>&6
17269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17270 cat >> confdefs.h <<EOF
17271 #define $ac_tr_func 1
17274 else
17275 echo "$ac_t""no" 1>&6
17277 done
17279 else
17281 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17282 echo "configure:17283: checking for _finitef declaration" >&5
17283 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17284 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17285 echo $ac_n "(cached) $ac_c" 1>&6
17286 else
17289 ac_ext=C
17290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17291 ac_cpp='$CXXCPP $CPPFLAGS'
17292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17294 cross_compiling=$ac_cv_prog_cxx_cross
17296 cat > conftest.$ac_ext <<EOF
17297 #line 17298 "configure"
17298 #include "confdefs.h"
17299 #include <math.h>
17300 #ifdef HAVE_IEEEFP_H
17301 #include <ieeefp.h>
17302 #endif
17304 int main() {
17305 _finitef(0);
17306 ; return 0; }
17308 if { (eval echo configure:17309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17309 rm -rf conftest*
17310 glibcpp_cv_func__finitef_use=yes
17311 else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 rm -rf conftest*
17315 glibcpp_cv_func__finitef_use=no
17317 rm -f conftest*
17318 ac_ext=c
17319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17320 ac_cpp='$CPP $CPPFLAGS'
17321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17323 cross_compiling=$ac_cv_prog_cc_cross
17329 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17331 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17332 for ac_func in _finitef
17334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17335 echo "configure:17336: checking for $ac_func" >&5
17336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17337 echo $ac_n "(cached) $ac_c" 1>&6
17338 else
17339 cat > conftest.$ac_ext <<EOF
17340 #line 17341 "configure"
17341 #include "confdefs.h"
17342 /* System header to define __stub macros and hopefully few prototypes,
17343 which can conflict with char $ac_func(); below. */
17344 #include <assert.h>
17345 /* Override any gcc2 internal prototype to avoid an error. */
17346 /* We use char because int might match the return type of a gcc2
17347 builtin and then its argument prototype would still apply. */
17348 char $ac_func();
17350 int main() {
17352 /* The GNU C library defines this for functions which it implements
17353 to always fail with ENOSYS. Some functions are actually named
17354 something starting with __ and the normal name is an alias. */
17355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17356 choke me
17357 #else
17358 $ac_func();
17359 #endif
17361 ; return 0; }
17363 if { (eval echo configure:17364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17364 rm -rf conftest*
17365 eval "ac_cv_func_$ac_func=yes"
17366 else
17367 echo "configure: failed program was:" >&5
17368 cat conftest.$ac_ext >&5
17369 rm -rf conftest*
17370 eval "ac_cv_func_$ac_func=no"
17372 rm -f conftest*
17375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17376 echo "$ac_t""yes" 1>&6
17377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17378 cat >> confdefs.h <<EOF
17379 #define $ac_tr_func 1
17382 else
17383 echo "$ac_t""no" 1>&6
17385 done
17392 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17393 echo "configure:17394: checking for long double trig functions" >&5
17394 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17395 echo $ac_n "(cached) $ac_c" 1>&6
17396 else
17399 ac_ext=C
17400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17401 ac_cpp='$CXXCPP $CPPFLAGS'
17402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17404 cross_compiling=$ac_cv_prog_cxx_cross
17406 cat > conftest.$ac_ext <<EOF
17407 #line 17408 "configure"
17408 #include "confdefs.h"
17409 #include <math.h>
17410 int main() {
17411 `for x in acosl asinl atanl \
17412 cosl sinl tanl \
17413 coshl sinhl tanhl; do echo "$x (0);"; done`
17414 ; return 0; }
17416 if { (eval echo configure:17417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17417 rm -rf conftest*
17418 glibcpp_cv_func_long_double_trig_use=yes
17419 else
17420 echo "configure: failed program was:" >&5
17421 cat conftest.$ac_ext >&5
17422 rm -rf conftest*
17423 glibcpp_cv_func_long_double_trig_use=no
17425 rm -f conftest*
17426 ac_ext=c
17427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17428 ac_cpp='$CPP $CPPFLAGS'
17429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17431 cross_compiling=$ac_cv_prog_cc_cross
17435 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17436 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17437 for ac_func in acosl asinl atanl \
17438 cosl sinl tanl \
17439 coshl sinhl tanhl
17441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17442 echo "configure:17443: checking for $ac_func" >&5
17443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17444 echo $ac_n "(cached) $ac_c" 1>&6
17445 else
17446 cat > conftest.$ac_ext <<EOF
17447 #line 17448 "configure"
17448 #include "confdefs.h"
17449 /* System header to define __stub macros and hopefully few prototypes,
17450 which can conflict with char $ac_func(); below. */
17451 #include <assert.h>
17452 /* Override any gcc2 internal prototype to avoid an error. */
17453 /* We use char because int might match the return type of a gcc2
17454 builtin and then its argument prototype would still apply. */
17455 char $ac_func();
17457 int main() {
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17463 choke me
17464 #else
17465 $ac_func();
17466 #endif
17468 ; return 0; }
17470 if { (eval echo configure:17471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17471 rm -rf conftest*
17472 eval "ac_cv_func_$ac_func=yes"
17473 else
17474 echo "configure: failed program was:" >&5
17475 cat conftest.$ac_ext >&5
17476 rm -rf conftest*
17477 eval "ac_cv_func_$ac_func=no"
17479 rm -f conftest*
17482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17483 echo "$ac_t""yes" 1>&6
17484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17485 cat >> confdefs.h <<EOF
17486 #define $ac_tr_func 1
17489 else
17490 echo "$ac_t""no" 1>&6
17492 done
17497 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17498 echo "configure:17499: checking for long double round functions" >&5
17499 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17500 echo $ac_n "(cached) $ac_c" 1>&6
17501 else
17504 ac_ext=C
17505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17506 ac_cpp='$CXXCPP $CPPFLAGS'
17507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17509 cross_compiling=$ac_cv_prog_cxx_cross
17511 cat > conftest.$ac_ext <<EOF
17512 #line 17513 "configure"
17513 #include "confdefs.h"
17514 #include <math.h>
17515 int main() {
17516 `for x in ceill floorl; do echo "$x (0);"; done`
17517 ; return 0; }
17519 if { (eval echo configure:17520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17520 rm -rf conftest*
17521 glibcpp_cv_func_long_double_round_use=yes
17522 else
17523 echo "configure: failed program was:" >&5
17524 cat conftest.$ac_ext >&5
17525 rm -rf conftest*
17526 glibcpp_cv_func_long_double_round_use=no
17528 rm -f conftest*
17529 ac_ext=c
17530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17531 ac_cpp='$CPP $CPPFLAGS'
17532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17534 cross_compiling=$ac_cv_prog_cc_cross
17538 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17539 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17540 for ac_func in ceill floorl
17542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17543 echo "configure:17544: checking for $ac_func" >&5
17544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17545 echo $ac_n "(cached) $ac_c" 1>&6
17546 else
17547 cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char $ac_func(); below. */
17552 #include <assert.h>
17553 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17556 char $ac_func();
17558 int main() {
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 choke me
17565 #else
17566 $ac_func();
17567 #endif
17569 ; return 0; }
17571 if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572 rm -rf conftest*
17573 eval "ac_cv_func_$ac_func=yes"
17574 else
17575 echo "configure: failed program was:" >&5
17576 cat conftest.$ac_ext >&5
17577 rm -rf conftest*
17578 eval "ac_cv_func_$ac_func=no"
17580 rm -f conftest*
17583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17584 echo "$ac_t""yes" 1>&6
17585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17586 cat >> confdefs.h <<EOF
17587 #define $ac_tr_func 1
17590 else
17591 echo "$ac_t""no" 1>&6
17593 done
17599 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17600 echo "configure:17601: checking for isnanl declaration" >&5
17601 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17602 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17603 echo $ac_n "(cached) $ac_c" 1>&6
17604 else
17607 ac_ext=C
17608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17609 ac_cpp='$CXXCPP $CPPFLAGS'
17610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17612 cross_compiling=$ac_cv_prog_cxx_cross
17614 cat > conftest.$ac_ext <<EOF
17615 #line 17616 "configure"
17616 #include "confdefs.h"
17617 #include <math.h>
17618 #ifdef HAVE_IEEEFP_H
17619 #include <ieeefp.h>
17620 #endif
17622 int main() {
17623 isnanl(0);
17624 ; return 0; }
17626 if { (eval echo configure:17627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17627 rm -rf conftest*
17628 glibcpp_cv_func_isnanl_use=yes
17629 else
17630 echo "configure: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17632 rm -rf conftest*
17633 glibcpp_cv_func_isnanl_use=no
17635 rm -f conftest*
17636 ac_ext=c
17637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17641 cross_compiling=$ac_cv_prog_cc_cross
17647 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17649 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17650 for ac_func in isnanl
17652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17653 echo "configure:17654: checking for $ac_func" >&5
17654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17655 echo $ac_n "(cached) $ac_c" 1>&6
17656 else
17657 cat > conftest.$ac_ext <<EOF
17658 #line 17659 "configure"
17659 #include "confdefs.h"
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char $ac_func(); below. */
17662 #include <assert.h>
17663 /* Override any gcc2 internal prototype to avoid an error. */
17664 /* We use char because int might match the return type of a gcc2
17665 builtin and then its argument prototype would still apply. */
17666 char $ac_func();
17668 int main() {
17670 /* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17674 choke me
17675 #else
17676 $ac_func();
17677 #endif
17679 ; return 0; }
17681 if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17682 rm -rf conftest*
17683 eval "ac_cv_func_$ac_func=yes"
17684 else
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
17688 eval "ac_cv_func_$ac_func=no"
17690 rm -f conftest*
17693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17694 echo "$ac_t""yes" 1>&6
17695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17696 cat >> confdefs.h <<EOF
17697 #define $ac_tr_func 1
17700 else
17701 echo "$ac_t""no" 1>&6
17703 done
17705 else
17707 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17708 echo "configure:17709: checking for _isnanl declaration" >&5
17709 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17710 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17711 echo $ac_n "(cached) $ac_c" 1>&6
17712 else
17715 ac_ext=C
17716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17720 cross_compiling=$ac_cv_prog_cxx_cross
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17725 #include <math.h>
17726 #ifdef HAVE_IEEEFP_H
17727 #include <ieeefp.h>
17728 #endif
17730 int main() {
17731 _isnanl(0);
17732 ; return 0; }
17734 if { (eval echo configure:17735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17735 rm -rf conftest*
17736 glibcpp_cv_func__isnanl_use=yes
17737 else
17738 echo "configure: failed program was:" >&5
17739 cat conftest.$ac_ext >&5
17740 rm -rf conftest*
17741 glibcpp_cv_func__isnanl_use=no
17743 rm -f conftest*
17744 ac_ext=c
17745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17746 ac_cpp='$CPP $CPPFLAGS'
17747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17749 cross_compiling=$ac_cv_prog_cc_cross
17755 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17757 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17758 for ac_func in _isnanl
17760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17761 echo "configure:17762: checking for $ac_func" >&5
17762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17763 echo $ac_n "(cached) $ac_c" 1>&6
17764 else
17765 cat > conftest.$ac_ext <<EOF
17766 #line 17767 "configure"
17767 #include "confdefs.h"
17768 /* System header to define __stub macros and hopefully few prototypes,
17769 which can conflict with char $ac_func(); below. */
17770 #include <assert.h>
17771 /* Override any gcc2 internal prototype to avoid an error. */
17772 /* We use char because int might match the return type of a gcc2
17773 builtin and then its argument prototype would still apply. */
17774 char $ac_func();
17776 int main() {
17778 /* The GNU C library defines this for functions which it implements
17779 to always fail with ENOSYS. Some functions are actually named
17780 something starting with __ and the normal name is an alias. */
17781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17782 choke me
17783 #else
17784 $ac_func();
17785 #endif
17787 ; return 0; }
17789 if { (eval echo configure:17790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17790 rm -rf conftest*
17791 eval "ac_cv_func_$ac_func=yes"
17792 else
17793 echo "configure: failed program was:" >&5
17794 cat conftest.$ac_ext >&5
17795 rm -rf conftest*
17796 eval "ac_cv_func_$ac_func=no"
17798 rm -f conftest*
17801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17802 echo "$ac_t""yes" 1>&6
17803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17804 cat >> confdefs.h <<EOF
17805 #define $ac_tr_func 1
17808 else
17809 echo "$ac_t""no" 1>&6
17811 done
17818 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17819 echo "configure:17820: checking for isinfl declaration" >&5
17820 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17821 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17822 echo $ac_n "(cached) $ac_c" 1>&6
17823 else
17826 ac_ext=C
17827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17828 ac_cpp='$CXXCPP $CPPFLAGS'
17829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17831 cross_compiling=$ac_cv_prog_cxx_cross
17833 cat > conftest.$ac_ext <<EOF
17834 #line 17835 "configure"
17835 #include "confdefs.h"
17836 #include <math.h>
17837 #ifdef HAVE_IEEEFP_H
17838 #include <ieeefp.h>
17839 #endif
17841 int main() {
17842 isinfl(0);
17843 ; return 0; }
17845 if { (eval echo configure:17846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17846 rm -rf conftest*
17847 glibcpp_cv_func_isinfl_use=yes
17848 else
17849 echo "configure: failed program was:" >&5
17850 cat conftest.$ac_ext >&5
17851 rm -rf conftest*
17852 glibcpp_cv_func_isinfl_use=no
17854 rm -f conftest*
17855 ac_ext=c
17856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17857 ac_cpp='$CPP $CPPFLAGS'
17858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17860 cross_compiling=$ac_cv_prog_cc_cross
17866 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17868 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17869 for ac_func in isinfl
17871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17872 echo "configure:17873: checking for $ac_func" >&5
17873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
17875 else
17876 cat > conftest.$ac_ext <<EOF
17877 #line 17878 "configure"
17878 #include "confdefs.h"
17879 /* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char $ac_func(); below. */
17881 #include <assert.h>
17882 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885 char $ac_func();
17887 int main() {
17889 /* The GNU C library defines this for functions which it implements
17890 to always fail with ENOSYS. Some functions are actually named
17891 something starting with __ and the normal name is an alias. */
17892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17893 choke me
17894 #else
17895 $ac_func();
17896 #endif
17898 ; return 0; }
17900 if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901 rm -rf conftest*
17902 eval "ac_cv_func_$ac_func=yes"
17903 else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_func_$ac_func=no"
17909 rm -f conftest*
17912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17913 echo "$ac_t""yes" 1>&6
17914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17915 cat >> confdefs.h <<EOF
17916 #define $ac_tr_func 1
17919 else
17920 echo "$ac_t""no" 1>&6
17922 done
17924 else
17926 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17927 echo "configure:17928: checking for _isinfl declaration" >&5
17928 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17929 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17930 echo $ac_n "(cached) $ac_c" 1>&6
17931 else
17934 ac_ext=C
17935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17936 ac_cpp='$CXXCPP $CPPFLAGS'
17937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17939 cross_compiling=$ac_cv_prog_cxx_cross
17941 cat > conftest.$ac_ext <<EOF
17942 #line 17943 "configure"
17943 #include "confdefs.h"
17944 #include <math.h>
17945 #ifdef HAVE_IEEEFP_H
17946 #include <ieeefp.h>
17947 #endif
17949 int main() {
17950 _isinfl(0);
17951 ; return 0; }
17953 if { (eval echo configure:17954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17954 rm -rf conftest*
17955 glibcpp_cv_func__isinfl_use=yes
17956 else
17957 echo "configure: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17959 rm -rf conftest*
17960 glibcpp_cv_func__isinfl_use=no
17962 rm -f conftest*
17963 ac_ext=c
17964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17965 ac_cpp='$CPP $CPPFLAGS'
17966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17968 cross_compiling=$ac_cv_prog_cc_cross
17974 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17976 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17977 for ac_func in _isinfl
17979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17980 echo "configure:17981: checking for $ac_func" >&5
17981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17982 echo $ac_n "(cached) $ac_c" 1>&6
17983 else
17984 cat > conftest.$ac_ext <<EOF
17985 #line 17986 "configure"
17986 #include "confdefs.h"
17987 /* System header to define __stub macros and hopefully few prototypes,
17988 which can conflict with char $ac_func(); below. */
17989 #include <assert.h>
17990 /* Override any gcc2 internal prototype to avoid an error. */
17991 /* We use char because int might match the return type of a gcc2
17992 builtin and then its argument prototype would still apply. */
17993 char $ac_func();
17995 int main() {
17997 /* The GNU C library defines this for functions which it implements
17998 to always fail with ENOSYS. Some functions are actually named
17999 something starting with __ and the normal name is an alias. */
18000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18001 choke me
18002 #else
18003 $ac_func();
18004 #endif
18006 ; return 0; }
18008 if { (eval echo configure:18009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18009 rm -rf conftest*
18010 eval "ac_cv_func_$ac_func=yes"
18011 else
18012 echo "configure: failed program was:" >&5
18013 cat conftest.$ac_ext >&5
18014 rm -rf conftest*
18015 eval "ac_cv_func_$ac_func=no"
18017 rm -f conftest*
18020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18021 echo "$ac_t""yes" 1>&6
18022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18023 cat >> confdefs.h <<EOF
18024 #define $ac_tr_func 1
18027 else
18028 echo "$ac_t""no" 1>&6
18030 done
18037 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18038 echo "configure:18039: checking for copysignl declaration" >&5
18039 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18040 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18041 echo $ac_n "(cached) $ac_c" 1>&6
18042 else
18045 ac_ext=C
18046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18047 ac_cpp='$CXXCPP $CPPFLAGS'
18048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18050 cross_compiling=$ac_cv_prog_cxx_cross
18052 cat > conftest.$ac_ext <<EOF
18053 #line 18054 "configure"
18054 #include "confdefs.h"
18055 #include <math.h>
18056 int main() {
18057 copysignl(0, 0);
18058 ; return 0; }
18060 if { (eval echo configure:18061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18061 rm -rf conftest*
18062 glibcpp_cv_func_copysignl_use=yes
18063 else
18064 echo "configure: failed program was:" >&5
18065 cat conftest.$ac_ext >&5
18066 rm -rf conftest*
18067 glibcpp_cv_func_copysignl_use=no
18069 rm -f conftest*
18070 ac_ext=c
18071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18072 ac_cpp='$CPP $CPPFLAGS'
18073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18075 cross_compiling=$ac_cv_prog_cc_cross
18081 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18083 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18084 for ac_func in copysignl
18086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18087 echo "configure:18088: checking for $ac_func" >&5
18088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18089 echo $ac_n "(cached) $ac_c" 1>&6
18090 else
18091 cat > conftest.$ac_ext <<EOF
18092 #line 18093 "configure"
18093 #include "confdefs.h"
18094 /* System header to define __stub macros and hopefully few prototypes,
18095 which can conflict with char $ac_func(); below. */
18096 #include <assert.h>
18097 /* Override any gcc2 internal prototype to avoid an error. */
18098 /* We use char because int might match the return type of a gcc2
18099 builtin and then its argument prototype would still apply. */
18100 char $ac_func();
18102 int main() {
18104 /* The GNU C library defines this for functions which it implements
18105 to always fail with ENOSYS. Some functions are actually named
18106 something starting with __ and the normal name is an alias. */
18107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18108 choke me
18109 #else
18110 $ac_func();
18111 #endif
18113 ; return 0; }
18115 if { (eval echo configure:18116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18116 rm -rf conftest*
18117 eval "ac_cv_func_$ac_func=yes"
18118 else
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18121 rm -rf conftest*
18122 eval "ac_cv_func_$ac_func=no"
18124 rm -f conftest*
18127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18128 echo "$ac_t""yes" 1>&6
18129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18130 cat >> confdefs.h <<EOF
18131 #define $ac_tr_func 1
18134 else
18135 echo "$ac_t""no" 1>&6
18137 done
18139 else
18141 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18142 echo "configure:18143: checking for _copysignl declaration" >&5
18143 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18144 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18145 echo $ac_n "(cached) $ac_c" 1>&6
18146 else
18149 ac_ext=C
18150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18151 ac_cpp='$CXXCPP $CPPFLAGS'
18152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18154 cross_compiling=$ac_cv_prog_cxx_cross
18156 cat > conftest.$ac_ext <<EOF
18157 #line 18158 "configure"
18158 #include "confdefs.h"
18159 #include <math.h>
18160 int main() {
18161 _copysignl(0, 0);
18162 ; return 0; }
18164 if { (eval echo configure:18165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18165 rm -rf conftest*
18166 glibcpp_cv_func__copysignl_use=yes
18167 else
18168 echo "configure: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18170 rm -rf conftest*
18171 glibcpp_cv_func__copysignl_use=no
18173 rm -f conftest*
18174 ac_ext=c
18175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18176 ac_cpp='$CPP $CPPFLAGS'
18177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18179 cross_compiling=$ac_cv_prog_cc_cross
18185 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18187 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18188 for ac_func in _copysignl
18190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18191 echo "configure:18192: checking for $ac_func" >&5
18192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18193 echo $ac_n "(cached) $ac_c" 1>&6
18194 else
18195 cat > conftest.$ac_ext <<EOF
18196 #line 18197 "configure"
18197 #include "confdefs.h"
18198 /* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func(); below. */
18200 #include <assert.h>
18201 /* Override any gcc2 internal prototype to avoid an error. */
18202 /* We use char because int might match the return type of a gcc2
18203 builtin and then its argument prototype would still apply. */
18204 char $ac_func();
18206 int main() {
18208 /* The GNU C library defines this for functions which it implements
18209 to always fail with ENOSYS. Some functions are actually named
18210 something starting with __ and the normal name is an alias. */
18211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18212 choke me
18213 #else
18214 $ac_func();
18215 #endif
18217 ; return 0; }
18219 if { (eval echo configure:18220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18220 rm -rf conftest*
18221 eval "ac_cv_func_$ac_func=yes"
18222 else
18223 echo "configure: failed program was:" >&5
18224 cat conftest.$ac_ext >&5
18225 rm -rf conftest*
18226 eval "ac_cv_func_$ac_func=no"
18228 rm -f conftest*
18231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18232 echo "$ac_t""yes" 1>&6
18233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18234 cat >> confdefs.h <<EOF
18235 #define $ac_tr_func 1
18238 else
18239 echo "$ac_t""no" 1>&6
18241 done
18248 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18249 echo "configure:18250: checking for atan2l declaration" >&5
18250 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18251 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18252 echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18256 ac_ext=C
18257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18261 cross_compiling=$ac_cv_prog_cxx_cross
18263 cat > conftest.$ac_ext <<EOF
18264 #line 18265 "configure"
18265 #include "confdefs.h"
18266 #include <math.h>
18267 int main() {
18268 atan2l(0, 0);
18269 ; return 0; }
18271 if { (eval echo configure:18272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18272 rm -rf conftest*
18273 glibcpp_cv_func_atan2l_use=yes
18274 else
18275 echo "configure: failed program was:" >&5
18276 cat conftest.$ac_ext >&5
18277 rm -rf conftest*
18278 glibcpp_cv_func_atan2l_use=no
18280 rm -f conftest*
18281 ac_ext=c
18282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18283 ac_cpp='$CPP $CPPFLAGS'
18284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18286 cross_compiling=$ac_cv_prog_cc_cross
18292 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18294 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18295 for ac_func in atan2l
18297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18298 echo "configure:18299: checking for $ac_func" >&5
18299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
18301 else
18302 cat > conftest.$ac_ext <<EOF
18303 #line 18304 "configure"
18304 #include "confdefs.h"
18305 /* System header to define __stub macros and hopefully few prototypes,
18306 which can conflict with char $ac_func(); below. */
18307 #include <assert.h>
18308 /* Override any gcc2 internal prototype to avoid an error. */
18309 /* We use char because int might match the return type of a gcc2
18310 builtin and then its argument prototype would still apply. */
18311 char $ac_func();
18313 int main() {
18315 /* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18319 choke me
18320 #else
18321 $ac_func();
18322 #endif
18324 ; return 0; }
18326 if { (eval echo configure:18327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18327 rm -rf conftest*
18328 eval "ac_cv_func_$ac_func=yes"
18329 else
18330 echo "configure: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18332 rm -rf conftest*
18333 eval "ac_cv_func_$ac_func=no"
18335 rm -f conftest*
18338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18339 echo "$ac_t""yes" 1>&6
18340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18341 cat >> confdefs.h <<EOF
18342 #define $ac_tr_func 1
18345 else
18346 echo "$ac_t""no" 1>&6
18348 done
18350 else
18352 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18353 echo "configure:18354: checking for _atan2l declaration" >&5
18354 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18355 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18356 echo $ac_n "(cached) $ac_c" 1>&6
18357 else
18360 ac_ext=C
18361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18362 ac_cpp='$CXXCPP $CPPFLAGS'
18363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18365 cross_compiling=$ac_cv_prog_cxx_cross
18367 cat > conftest.$ac_ext <<EOF
18368 #line 18369 "configure"
18369 #include "confdefs.h"
18370 #include <math.h>
18371 int main() {
18372 _atan2l(0, 0);
18373 ; return 0; }
18375 if { (eval echo configure:18376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18376 rm -rf conftest*
18377 glibcpp_cv_func__atan2l_use=yes
18378 else
18379 echo "configure: failed program was:" >&5
18380 cat conftest.$ac_ext >&5
18381 rm -rf conftest*
18382 glibcpp_cv_func__atan2l_use=no
18384 rm -f conftest*
18385 ac_ext=c
18386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18390 cross_compiling=$ac_cv_prog_cc_cross
18396 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18398 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18399 for ac_func in _atan2l
18401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18402 echo "configure:18403: checking for $ac_func" >&5
18403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18404 echo $ac_n "(cached) $ac_c" 1>&6
18405 else
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18409 /* System header to define __stub macros and hopefully few prototypes,
18410 which can conflict with char $ac_func(); below. */
18411 #include <assert.h>
18412 /* Override any gcc2 internal prototype to avoid an error. */
18413 /* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18415 char $ac_func();
18417 int main() {
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18423 choke me
18424 #else
18425 $ac_func();
18426 #endif
18428 ; return 0; }
18430 if { (eval echo configure:18431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18431 rm -rf conftest*
18432 eval "ac_cv_func_$ac_func=yes"
18433 else
18434 echo "configure: failed program was:" >&5
18435 cat conftest.$ac_ext >&5
18436 rm -rf conftest*
18437 eval "ac_cv_func_$ac_func=no"
18439 rm -f conftest*
18442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18443 echo "$ac_t""yes" 1>&6
18444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18445 cat >> confdefs.h <<EOF
18446 #define $ac_tr_func 1
18449 else
18450 echo "$ac_t""no" 1>&6
18452 done
18459 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18460 echo "configure:18461: checking for expl declaration" >&5
18461 if test x${glibcpp_cv_func_expl_use+set} != xset; then
18462 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18464 else
18467 ac_ext=C
18468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18472 cross_compiling=$ac_cv_prog_cxx_cross
18474 cat > conftest.$ac_ext <<EOF
18475 #line 18476 "configure"
18476 #include "confdefs.h"
18477 #include <math.h>
18478 #ifdef HAVE_IEEEFP_H
18479 #include <ieeefp.h>
18480 #endif
18482 int main() {
18483 expl(0);
18484 ; return 0; }
18486 if { (eval echo configure:18487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18487 rm -rf conftest*
18488 glibcpp_cv_func_expl_use=yes
18489 else
18490 echo "configure: failed program was:" >&5
18491 cat conftest.$ac_ext >&5
18492 rm -rf conftest*
18493 glibcpp_cv_func_expl_use=no
18495 rm -f conftest*
18496 ac_ext=c
18497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18501 cross_compiling=$ac_cv_prog_cc_cross
18507 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18509 if test x$glibcpp_cv_func_expl_use = x"yes"; then
18510 for ac_func in expl
18512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18513 echo "configure:18514: checking for $ac_func" >&5
18514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18515 echo $ac_n "(cached) $ac_c" 1>&6
18516 else
18517 cat > conftest.$ac_ext <<EOF
18518 #line 18519 "configure"
18519 #include "confdefs.h"
18520 /* System header to define __stub macros and hopefully few prototypes,
18521 which can conflict with char $ac_func(); below. */
18522 #include <assert.h>
18523 /* Override any gcc2 internal prototype to avoid an error. */
18524 /* We use char because int might match the return type of a gcc2
18525 builtin and then its argument prototype would still apply. */
18526 char $ac_func();
18528 int main() {
18530 /* The GNU C library defines this for functions which it implements
18531 to always fail with ENOSYS. Some functions are actually named
18532 something starting with __ and the normal name is an alias. */
18533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18534 choke me
18535 #else
18536 $ac_func();
18537 #endif
18539 ; return 0; }
18541 if { (eval echo configure:18542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18542 rm -rf conftest*
18543 eval "ac_cv_func_$ac_func=yes"
18544 else
18545 echo "configure: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18547 rm -rf conftest*
18548 eval "ac_cv_func_$ac_func=no"
18550 rm -f conftest*
18553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18554 echo "$ac_t""yes" 1>&6
18555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18556 cat >> confdefs.h <<EOF
18557 #define $ac_tr_func 1
18560 else
18561 echo "$ac_t""no" 1>&6
18563 done
18565 else
18567 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18568 echo "configure:18569: checking for _expl declaration" >&5
18569 if test x${glibcpp_cv_func__expl_use+set} != xset; then
18570 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18571 echo $ac_n "(cached) $ac_c" 1>&6
18572 else
18575 ac_ext=C
18576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18580 cross_compiling=$ac_cv_prog_cxx_cross
18582 cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18585 #include <math.h>
18586 #ifdef HAVE_IEEEFP_H
18587 #include <ieeefp.h>
18588 #endif
18590 int main() {
18591 _expl(0);
18592 ; return 0; }
18594 if { (eval echo configure:18595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18595 rm -rf conftest*
18596 glibcpp_cv_func__expl_use=yes
18597 else
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18600 rm -rf conftest*
18601 glibcpp_cv_func__expl_use=no
18603 rm -f conftest*
18604 ac_ext=c
18605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18609 cross_compiling=$ac_cv_prog_cc_cross
18615 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18617 if test x$glibcpp_cv_func__expl_use = x"yes"; then
18618 for ac_func in _expl
18620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18621 echo "configure:18622: checking for $ac_func" >&5
18622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18623 echo $ac_n "(cached) $ac_c" 1>&6
18624 else
18625 cat > conftest.$ac_ext <<EOF
18626 #line 18627 "configure"
18627 #include "confdefs.h"
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func(); below. */
18630 #include <assert.h>
18631 /* Override any gcc2 internal prototype to avoid an error. */
18632 /* We use char because int might match the return type of a gcc2
18633 builtin and then its argument prototype would still apply. */
18634 char $ac_func();
18636 int main() {
18638 /* The GNU C library defines this for functions which it implements
18639 to always fail with ENOSYS. Some functions are actually named
18640 something starting with __ and the normal name is an alias. */
18641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18642 choke me
18643 #else
18644 $ac_func();
18645 #endif
18647 ; return 0; }
18649 if { (eval echo configure:18650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18650 rm -rf conftest*
18651 eval "ac_cv_func_$ac_func=yes"
18652 else
18653 echo "configure: failed program was:" >&5
18654 cat conftest.$ac_ext >&5
18655 rm -rf conftest*
18656 eval "ac_cv_func_$ac_func=no"
18658 rm -f conftest*
18661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18662 echo "$ac_t""yes" 1>&6
18663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18664 cat >> confdefs.h <<EOF
18665 #define $ac_tr_func 1
18668 else
18669 echo "$ac_t""no" 1>&6
18671 done
18678 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18679 echo "configure:18680: checking for fabsl declaration" >&5
18680 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18681 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18682 echo $ac_n "(cached) $ac_c" 1>&6
18683 else
18686 ac_ext=C
18687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18688 ac_cpp='$CXXCPP $CPPFLAGS'
18689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18691 cross_compiling=$ac_cv_prog_cxx_cross
18693 cat > conftest.$ac_ext <<EOF
18694 #line 18695 "configure"
18695 #include "confdefs.h"
18696 #include <math.h>
18697 #ifdef HAVE_IEEEFP_H
18698 #include <ieeefp.h>
18699 #endif
18701 int main() {
18702 fabsl(0);
18703 ; return 0; }
18705 if { (eval echo configure:18706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18706 rm -rf conftest*
18707 glibcpp_cv_func_fabsl_use=yes
18708 else
18709 echo "configure: failed program was:" >&5
18710 cat conftest.$ac_ext >&5
18711 rm -rf conftest*
18712 glibcpp_cv_func_fabsl_use=no
18714 rm -f conftest*
18715 ac_ext=c
18716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18720 cross_compiling=$ac_cv_prog_cc_cross
18726 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18728 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18729 for ac_func in fabsl
18731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18732 echo "configure:18733: checking for $ac_func" >&5
18733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
18735 else
18736 cat > conftest.$ac_ext <<EOF
18737 #line 18738 "configure"
18738 #include "confdefs.h"
18739 /* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func(); below. */
18741 #include <assert.h>
18742 /* Override any gcc2 internal prototype to avoid an error. */
18743 /* We use char because int might match the return type of a gcc2
18744 builtin and then its argument prototype would still apply. */
18745 char $ac_func();
18747 int main() {
18749 /* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18753 choke me
18754 #else
18755 $ac_func();
18756 #endif
18758 ; return 0; }
18760 if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18761 rm -rf conftest*
18762 eval "ac_cv_func_$ac_func=yes"
18763 else
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18766 rm -rf conftest*
18767 eval "ac_cv_func_$ac_func=no"
18769 rm -f conftest*
18772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18773 echo "$ac_t""yes" 1>&6
18774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18775 cat >> confdefs.h <<EOF
18776 #define $ac_tr_func 1
18779 else
18780 echo "$ac_t""no" 1>&6
18782 done
18784 else
18786 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18787 echo "configure:18788: checking for _fabsl declaration" >&5
18788 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18789 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18790 echo $ac_n "(cached) $ac_c" 1>&6
18791 else
18794 ac_ext=C
18795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18796 ac_cpp='$CXXCPP $CPPFLAGS'
18797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18799 cross_compiling=$ac_cv_prog_cxx_cross
18801 cat > conftest.$ac_ext <<EOF
18802 #line 18803 "configure"
18803 #include "confdefs.h"
18804 #include <math.h>
18805 #ifdef HAVE_IEEEFP_H
18806 #include <ieeefp.h>
18807 #endif
18809 int main() {
18810 _fabsl(0);
18811 ; return 0; }
18813 if { (eval echo configure:18814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18814 rm -rf conftest*
18815 glibcpp_cv_func__fabsl_use=yes
18816 else
18817 echo "configure: failed program was:" >&5
18818 cat conftest.$ac_ext >&5
18819 rm -rf conftest*
18820 glibcpp_cv_func__fabsl_use=no
18822 rm -f conftest*
18823 ac_ext=c
18824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18825 ac_cpp='$CPP $CPPFLAGS'
18826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18828 cross_compiling=$ac_cv_prog_cc_cross
18834 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18836 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18837 for ac_func in _fabsl
18839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18840 echo "configure:18841: checking for $ac_func" >&5
18841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18842 echo $ac_n "(cached) $ac_c" 1>&6
18843 else
18844 cat > conftest.$ac_ext <<EOF
18845 #line 18846 "configure"
18846 #include "confdefs.h"
18847 /* System header to define __stub macros and hopefully few prototypes,
18848 which can conflict with char $ac_func(); below. */
18849 #include <assert.h>
18850 /* Override any gcc2 internal prototype to avoid an error. */
18851 /* We use char because int might match the return type of a gcc2
18852 builtin and then its argument prototype would still apply. */
18853 char $ac_func();
18855 int main() {
18857 /* The GNU C library defines this for functions which it implements
18858 to always fail with ENOSYS. Some functions are actually named
18859 something starting with __ and the normal name is an alias. */
18860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18861 choke me
18862 #else
18863 $ac_func();
18864 #endif
18866 ; return 0; }
18868 if { (eval echo configure:18869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18869 rm -rf conftest*
18870 eval "ac_cv_func_$ac_func=yes"
18871 else
18872 echo "configure: failed program was:" >&5
18873 cat conftest.$ac_ext >&5
18874 rm -rf conftest*
18875 eval "ac_cv_func_$ac_func=no"
18877 rm -f conftest*
18880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18881 echo "$ac_t""yes" 1>&6
18882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18883 cat >> confdefs.h <<EOF
18884 #define $ac_tr_func 1
18887 else
18888 echo "$ac_t""no" 1>&6
18890 done
18897 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18898 echo "configure:18899: checking for fmodl declaration" >&5
18899 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18900 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18902 else
18905 ac_ext=C
18906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18907 ac_cpp='$CXXCPP $CPPFLAGS'
18908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18910 cross_compiling=$ac_cv_prog_cxx_cross
18912 cat > conftest.$ac_ext <<EOF
18913 #line 18914 "configure"
18914 #include "confdefs.h"
18915 #include <math.h>
18916 int main() {
18917 fmodl(0, 0);
18918 ; return 0; }
18920 if { (eval echo configure:18921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18921 rm -rf conftest*
18922 glibcpp_cv_func_fmodl_use=yes
18923 else
18924 echo "configure: failed program was:" >&5
18925 cat conftest.$ac_ext >&5
18926 rm -rf conftest*
18927 glibcpp_cv_func_fmodl_use=no
18929 rm -f conftest*
18930 ac_ext=c
18931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18935 cross_compiling=$ac_cv_prog_cc_cross
18941 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18943 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18944 for ac_func in fmodl
18946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18947 echo "configure:18948: checking for $ac_func" >&5
18948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18949 echo $ac_n "(cached) $ac_c" 1>&6
18950 else
18951 cat > conftest.$ac_ext <<EOF
18952 #line 18953 "configure"
18953 #include "confdefs.h"
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char $ac_func(); below. */
18956 #include <assert.h>
18957 /* Override any gcc2 internal prototype to avoid an error. */
18958 /* We use char because int might match the return type of a gcc2
18959 builtin and then its argument prototype would still apply. */
18960 char $ac_func();
18962 int main() {
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18968 choke me
18969 #else
18970 $ac_func();
18971 #endif
18973 ; return 0; }
18975 if { (eval echo configure:18976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18976 rm -rf conftest*
18977 eval "ac_cv_func_$ac_func=yes"
18978 else
18979 echo "configure: failed program was:" >&5
18980 cat conftest.$ac_ext >&5
18981 rm -rf conftest*
18982 eval "ac_cv_func_$ac_func=no"
18984 rm -f conftest*
18987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18988 echo "$ac_t""yes" 1>&6
18989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18990 cat >> confdefs.h <<EOF
18991 #define $ac_tr_func 1
18994 else
18995 echo "$ac_t""no" 1>&6
18997 done
18999 else
19001 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19002 echo "configure:19003: checking for _fmodl declaration" >&5
19003 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19004 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19005 echo $ac_n "(cached) $ac_c" 1>&6
19006 else
19009 ac_ext=C
19010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19011 ac_cpp='$CXXCPP $CPPFLAGS'
19012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19014 cross_compiling=$ac_cv_prog_cxx_cross
19016 cat > conftest.$ac_ext <<EOF
19017 #line 19018 "configure"
19018 #include "confdefs.h"
19019 #include <math.h>
19020 int main() {
19021 _fmodl(0, 0);
19022 ; return 0; }
19024 if { (eval echo configure:19025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19025 rm -rf conftest*
19026 glibcpp_cv_func__fmodl_use=yes
19027 else
19028 echo "configure: failed program was:" >&5
19029 cat conftest.$ac_ext >&5
19030 rm -rf conftest*
19031 glibcpp_cv_func__fmodl_use=no
19033 rm -f conftest*
19034 ac_ext=c
19035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19036 ac_cpp='$CPP $CPPFLAGS'
19037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19039 cross_compiling=$ac_cv_prog_cc_cross
19045 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19047 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19048 for ac_func in _fmodl
19050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19051 echo "configure:19052: checking for $ac_func" >&5
19052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19053 echo $ac_n "(cached) $ac_c" 1>&6
19054 else
19055 cat > conftest.$ac_ext <<EOF
19056 #line 19057 "configure"
19057 #include "confdefs.h"
19058 /* System header to define __stub macros and hopefully few prototypes,
19059 which can conflict with char $ac_func(); below. */
19060 #include <assert.h>
19061 /* Override any gcc2 internal prototype to avoid an error. */
19062 /* We use char because int might match the return type of a gcc2
19063 builtin and then its argument prototype would still apply. */
19064 char $ac_func();
19066 int main() {
19068 /* The GNU C library defines this for functions which it implements
19069 to always fail with ENOSYS. Some functions are actually named
19070 something starting with __ and the normal name is an alias. */
19071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19072 choke me
19073 #else
19074 $ac_func();
19075 #endif
19077 ; return 0; }
19079 if { (eval echo configure:19080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19080 rm -rf conftest*
19081 eval "ac_cv_func_$ac_func=yes"
19082 else
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 rm -rf conftest*
19086 eval "ac_cv_func_$ac_func=no"
19088 rm -f conftest*
19091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19092 echo "$ac_t""yes" 1>&6
19093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19094 cat >> confdefs.h <<EOF
19095 #define $ac_tr_func 1
19098 else
19099 echo "$ac_t""no" 1>&6
19101 done
19108 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19109 echo "configure:19110: checking for frexpl declaration" >&5
19110 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19111 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19112 echo $ac_n "(cached) $ac_c" 1>&6
19113 else
19116 ac_ext=C
19117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19118 ac_cpp='$CXXCPP $CPPFLAGS'
19119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19121 cross_compiling=$ac_cv_prog_cxx_cross
19123 cat > conftest.$ac_ext <<EOF
19124 #line 19125 "configure"
19125 #include "confdefs.h"
19126 #include <math.h>
19127 int main() {
19128 frexpl(0, 0);
19129 ; return 0; }
19131 if { (eval echo configure:19132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19132 rm -rf conftest*
19133 glibcpp_cv_func_frexpl_use=yes
19134 else
19135 echo "configure: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19137 rm -rf conftest*
19138 glibcpp_cv_func_frexpl_use=no
19140 rm -f conftest*
19141 ac_ext=c
19142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19143 ac_cpp='$CPP $CPPFLAGS'
19144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19146 cross_compiling=$ac_cv_prog_cc_cross
19152 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19154 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19155 for ac_func in frexpl
19157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19158 echo "configure:19159: checking for $ac_func" >&5
19159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19160 echo $ac_n "(cached) $ac_c" 1>&6
19161 else
19162 cat > conftest.$ac_ext <<EOF
19163 #line 19164 "configure"
19164 #include "confdefs.h"
19165 /* System header to define __stub macros and hopefully few prototypes,
19166 which can conflict with char $ac_func(); below. */
19167 #include <assert.h>
19168 /* Override any gcc2 internal prototype to avoid an error. */
19169 /* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19171 char $ac_func();
19173 int main() {
19175 /* The GNU C library defines this for functions which it implements
19176 to always fail with ENOSYS. Some functions are actually named
19177 something starting with __ and the normal name is an alias. */
19178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19179 choke me
19180 #else
19181 $ac_func();
19182 #endif
19184 ; return 0; }
19186 if { (eval echo configure:19187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19187 rm -rf conftest*
19188 eval "ac_cv_func_$ac_func=yes"
19189 else
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19192 rm -rf conftest*
19193 eval "ac_cv_func_$ac_func=no"
19195 rm -f conftest*
19198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19199 echo "$ac_t""yes" 1>&6
19200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19201 cat >> confdefs.h <<EOF
19202 #define $ac_tr_func 1
19205 else
19206 echo "$ac_t""no" 1>&6
19208 done
19210 else
19212 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19213 echo "configure:19214: checking for _frexpl declaration" >&5
19214 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19215 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19216 echo $ac_n "(cached) $ac_c" 1>&6
19217 else
19220 ac_ext=C
19221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19222 ac_cpp='$CXXCPP $CPPFLAGS'
19223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19225 cross_compiling=$ac_cv_prog_cxx_cross
19227 cat > conftest.$ac_ext <<EOF
19228 #line 19229 "configure"
19229 #include "confdefs.h"
19230 #include <math.h>
19231 int main() {
19232 _frexpl(0, 0);
19233 ; return 0; }
19235 if { (eval echo configure:19236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19236 rm -rf conftest*
19237 glibcpp_cv_func__frexpl_use=yes
19238 else
19239 echo "configure: failed program was:" >&5
19240 cat conftest.$ac_ext >&5
19241 rm -rf conftest*
19242 glibcpp_cv_func__frexpl_use=no
19244 rm -f conftest*
19245 ac_ext=c
19246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19247 ac_cpp='$CPP $CPPFLAGS'
19248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19250 cross_compiling=$ac_cv_prog_cc_cross
19256 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19258 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19259 for ac_func in _frexpl
19261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19262 echo "configure:19263: checking for $ac_func" >&5
19263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19264 echo $ac_n "(cached) $ac_c" 1>&6
19265 else
19266 cat > conftest.$ac_ext <<EOF
19267 #line 19268 "configure"
19268 #include "confdefs.h"
19269 /* System header to define __stub macros and hopefully few prototypes,
19270 which can conflict with char $ac_func(); below. */
19271 #include <assert.h>
19272 /* Override any gcc2 internal prototype to avoid an error. */
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char $ac_func();
19277 int main() {
19279 /* The GNU C library defines this for functions which it implements
19280 to always fail with ENOSYS. Some functions are actually named
19281 something starting with __ and the normal name is an alias. */
19282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19283 choke me
19284 #else
19285 $ac_func();
19286 #endif
19288 ; return 0; }
19290 if { (eval echo configure:19291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19291 rm -rf conftest*
19292 eval "ac_cv_func_$ac_func=yes"
19293 else
19294 echo "configure: failed program was:" >&5
19295 cat conftest.$ac_ext >&5
19296 rm -rf conftest*
19297 eval "ac_cv_func_$ac_func=no"
19299 rm -f conftest*
19302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19303 echo "$ac_t""yes" 1>&6
19304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19305 cat >> confdefs.h <<EOF
19306 #define $ac_tr_func 1
19309 else
19310 echo "$ac_t""no" 1>&6
19312 done
19319 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19320 echo "configure:19321: checking for hypotl declaration" >&5
19321 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19322 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19323 echo $ac_n "(cached) $ac_c" 1>&6
19324 else
19327 ac_ext=C
19328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19329 ac_cpp='$CXXCPP $CPPFLAGS'
19330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19332 cross_compiling=$ac_cv_prog_cxx_cross
19334 cat > conftest.$ac_ext <<EOF
19335 #line 19336 "configure"
19336 #include "confdefs.h"
19337 #include <math.h>
19338 int main() {
19339 hypotl(0, 0);
19340 ; return 0; }
19342 if { (eval echo configure:19343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19343 rm -rf conftest*
19344 glibcpp_cv_func_hypotl_use=yes
19345 else
19346 echo "configure: failed program was:" >&5
19347 cat conftest.$ac_ext >&5
19348 rm -rf conftest*
19349 glibcpp_cv_func_hypotl_use=no
19351 rm -f conftest*
19352 ac_ext=c
19353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19357 cross_compiling=$ac_cv_prog_cc_cross
19363 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19365 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19366 for ac_func in hypotl
19368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19369 echo "configure:19370: checking for $ac_func" >&5
19370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19371 echo $ac_n "(cached) $ac_c" 1>&6
19372 else
19373 cat > conftest.$ac_ext <<EOF
19374 #line 19375 "configure"
19375 #include "confdefs.h"
19376 /* System header to define __stub macros and hopefully few prototypes,
19377 which can conflict with char $ac_func(); below. */
19378 #include <assert.h>
19379 /* Override any gcc2 internal prototype to avoid an error. */
19380 /* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19382 char $ac_func();
19384 int main() {
19386 /* The GNU C library defines this for functions which it implements
19387 to always fail with ENOSYS. Some functions are actually named
19388 something starting with __ and the normal name is an alias. */
19389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19390 choke me
19391 #else
19392 $ac_func();
19393 #endif
19395 ; return 0; }
19397 if { (eval echo configure:19398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19398 rm -rf conftest*
19399 eval "ac_cv_func_$ac_func=yes"
19400 else
19401 echo "configure: failed program was:" >&5
19402 cat conftest.$ac_ext >&5
19403 rm -rf conftest*
19404 eval "ac_cv_func_$ac_func=no"
19406 rm -f conftest*
19409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19412 cat >> confdefs.h <<EOF
19413 #define $ac_tr_func 1
19416 else
19417 echo "$ac_t""no" 1>&6
19419 done
19421 else
19423 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19424 echo "configure:19425: checking for _hypotl declaration" >&5
19425 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19426 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19427 echo $ac_n "(cached) $ac_c" 1>&6
19428 else
19431 ac_ext=C
19432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19433 ac_cpp='$CXXCPP $CPPFLAGS'
19434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19436 cross_compiling=$ac_cv_prog_cxx_cross
19438 cat > conftest.$ac_ext <<EOF
19439 #line 19440 "configure"
19440 #include "confdefs.h"
19441 #include <math.h>
19442 int main() {
19443 _hypotl(0, 0);
19444 ; return 0; }
19446 if { (eval echo configure:19447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19447 rm -rf conftest*
19448 glibcpp_cv_func__hypotl_use=yes
19449 else
19450 echo "configure: failed program was:" >&5
19451 cat conftest.$ac_ext >&5
19452 rm -rf conftest*
19453 glibcpp_cv_func__hypotl_use=no
19455 rm -f conftest*
19456 ac_ext=c
19457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19461 cross_compiling=$ac_cv_prog_cc_cross
19467 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19469 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19470 for ac_func in _hypotl
19472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19473 echo "configure:19474: checking for $ac_func" >&5
19474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19475 echo $ac_n "(cached) $ac_c" 1>&6
19476 else
19477 cat > conftest.$ac_ext <<EOF
19478 #line 19479 "configure"
19479 #include "confdefs.h"
19480 /* System header to define __stub macros and hopefully few prototypes,
19481 which can conflict with char $ac_func(); below. */
19482 #include <assert.h>
19483 /* Override any gcc2 internal prototype to avoid an error. */
19484 /* We use char because int might match the return type of a gcc2
19485 builtin and then its argument prototype would still apply. */
19486 char $ac_func();
19488 int main() {
19490 /* The GNU C library defines this for functions which it implements
19491 to always fail with ENOSYS. Some functions are actually named
19492 something starting with __ and the normal name is an alias. */
19493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19494 choke me
19495 #else
19496 $ac_func();
19497 #endif
19499 ; return 0; }
19501 if { (eval echo configure:19502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19502 rm -rf conftest*
19503 eval "ac_cv_func_$ac_func=yes"
19504 else
19505 echo "configure: failed program was:" >&5
19506 cat conftest.$ac_ext >&5
19507 rm -rf conftest*
19508 eval "ac_cv_func_$ac_func=no"
19510 rm -f conftest*
19513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19514 echo "$ac_t""yes" 1>&6
19515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19516 cat >> confdefs.h <<EOF
19517 #define $ac_tr_func 1
19520 else
19521 echo "$ac_t""no" 1>&6
19523 done
19530 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19531 echo "configure:19532: checking for ldexpl declaration" >&5
19532 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19533 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19534 echo $ac_n "(cached) $ac_c" 1>&6
19535 else
19538 ac_ext=C
19539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19540 ac_cpp='$CXXCPP $CPPFLAGS'
19541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19543 cross_compiling=$ac_cv_prog_cxx_cross
19545 cat > conftest.$ac_ext <<EOF
19546 #line 19547 "configure"
19547 #include "confdefs.h"
19548 #include <math.h>
19549 int main() {
19550 ldexpl(0, 0);
19551 ; return 0; }
19553 if { (eval echo configure:19554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19554 rm -rf conftest*
19555 glibcpp_cv_func_ldexpl_use=yes
19556 else
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19559 rm -rf conftest*
19560 glibcpp_cv_func_ldexpl_use=no
19562 rm -f conftest*
19563 ac_ext=c
19564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19565 ac_cpp='$CPP $CPPFLAGS'
19566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19568 cross_compiling=$ac_cv_prog_cc_cross
19574 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19576 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19577 for ac_func in ldexpl
19579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19580 echo "configure:19581: checking for $ac_func" >&5
19581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19582 echo $ac_n "(cached) $ac_c" 1>&6
19583 else
19584 cat > conftest.$ac_ext <<EOF
19585 #line 19586 "configure"
19586 #include "confdefs.h"
19587 /* System header to define __stub macros and hopefully few prototypes,
19588 which can conflict with char $ac_func(); below. */
19589 #include <assert.h>
19590 /* Override any gcc2 internal prototype to avoid an error. */
19591 /* We use char because int might match the return type of a gcc2
19592 builtin and then its argument prototype would still apply. */
19593 char $ac_func();
19595 int main() {
19597 /* The GNU C library defines this for functions which it implements
19598 to always fail with ENOSYS. Some functions are actually named
19599 something starting with __ and the normal name is an alias. */
19600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19601 choke me
19602 #else
19603 $ac_func();
19604 #endif
19606 ; return 0; }
19608 if { (eval echo configure:19609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19609 rm -rf conftest*
19610 eval "ac_cv_func_$ac_func=yes"
19611 else
19612 echo "configure: failed program was:" >&5
19613 cat conftest.$ac_ext >&5
19614 rm -rf conftest*
19615 eval "ac_cv_func_$ac_func=no"
19617 rm -f conftest*
19620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19621 echo "$ac_t""yes" 1>&6
19622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19623 cat >> confdefs.h <<EOF
19624 #define $ac_tr_func 1
19627 else
19628 echo "$ac_t""no" 1>&6
19630 done
19632 else
19634 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19635 echo "configure:19636: checking for _ldexpl declaration" >&5
19636 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19637 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19638 echo $ac_n "(cached) $ac_c" 1>&6
19639 else
19642 ac_ext=C
19643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19644 ac_cpp='$CXXCPP $CPPFLAGS'
19645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19647 cross_compiling=$ac_cv_prog_cxx_cross
19649 cat > conftest.$ac_ext <<EOF
19650 #line 19651 "configure"
19651 #include "confdefs.h"
19652 #include <math.h>
19653 int main() {
19654 _ldexpl(0, 0);
19655 ; return 0; }
19657 if { (eval echo configure:19658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19658 rm -rf conftest*
19659 glibcpp_cv_func__ldexpl_use=yes
19660 else
19661 echo "configure: failed program was:" >&5
19662 cat conftest.$ac_ext >&5
19663 rm -rf conftest*
19664 glibcpp_cv_func__ldexpl_use=no
19666 rm -f conftest*
19667 ac_ext=c
19668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19669 ac_cpp='$CPP $CPPFLAGS'
19670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19672 cross_compiling=$ac_cv_prog_cc_cross
19678 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19680 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19681 for ac_func in _ldexpl
19683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19684 echo "configure:19685: checking for $ac_func" >&5
19685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19686 echo $ac_n "(cached) $ac_c" 1>&6
19687 else
19688 cat > conftest.$ac_ext <<EOF
19689 #line 19690 "configure"
19690 #include "confdefs.h"
19691 /* System header to define __stub macros and hopefully few prototypes,
19692 which can conflict with char $ac_func(); below. */
19693 #include <assert.h>
19694 /* Override any gcc2 internal prototype to avoid an error. */
19695 /* We use char because int might match the return type of a gcc2
19696 builtin and then its argument prototype would still apply. */
19697 char $ac_func();
19699 int main() {
19701 /* The GNU C library defines this for functions which it implements
19702 to always fail with ENOSYS. Some functions are actually named
19703 something starting with __ and the normal name is an alias. */
19704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19705 choke me
19706 #else
19707 $ac_func();
19708 #endif
19710 ; return 0; }
19712 if { (eval echo configure:19713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19713 rm -rf conftest*
19714 eval "ac_cv_func_$ac_func=yes"
19715 else
19716 echo "configure: failed program was:" >&5
19717 cat conftest.$ac_ext >&5
19718 rm -rf conftest*
19719 eval "ac_cv_func_$ac_func=no"
19721 rm -f conftest*
19724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19725 echo "$ac_t""yes" 1>&6
19726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19727 cat >> confdefs.h <<EOF
19728 #define $ac_tr_func 1
19731 else
19732 echo "$ac_t""no" 1>&6
19734 done
19741 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19742 echo "configure:19743: checking for logl declaration" >&5
19743 if test x${glibcpp_cv_func_logl_use+set} != xset; then
19744 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19745 echo $ac_n "(cached) $ac_c" 1>&6
19746 else
19749 ac_ext=C
19750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19751 ac_cpp='$CXXCPP $CPPFLAGS'
19752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19754 cross_compiling=$ac_cv_prog_cxx_cross
19756 cat > conftest.$ac_ext <<EOF
19757 #line 19758 "configure"
19758 #include "confdefs.h"
19759 #include <math.h>
19760 #ifdef HAVE_IEEEFP_H
19761 #include <ieeefp.h>
19762 #endif
19764 int main() {
19765 logl(0);
19766 ; return 0; }
19768 if { (eval echo configure:19769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19769 rm -rf conftest*
19770 glibcpp_cv_func_logl_use=yes
19771 else
19772 echo "configure: failed program was:" >&5
19773 cat conftest.$ac_ext >&5
19774 rm -rf conftest*
19775 glibcpp_cv_func_logl_use=no
19777 rm -f conftest*
19778 ac_ext=c
19779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19780 ac_cpp='$CPP $CPPFLAGS'
19781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19783 cross_compiling=$ac_cv_prog_cc_cross
19789 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19791 if test x$glibcpp_cv_func_logl_use = x"yes"; then
19792 for ac_func in logl
19794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19795 echo "configure:19796: checking for $ac_func" >&5
19796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19797 echo $ac_n "(cached) $ac_c" 1>&6
19798 else
19799 cat > conftest.$ac_ext <<EOF
19800 #line 19801 "configure"
19801 #include "confdefs.h"
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char $ac_func(); below. */
19804 #include <assert.h>
19805 /* Override any gcc2 internal prototype to avoid an error. */
19806 /* We use char because int might match the return type of a gcc2
19807 builtin and then its argument prototype would still apply. */
19808 char $ac_func();
19810 int main() {
19812 /* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19816 choke me
19817 #else
19818 $ac_func();
19819 #endif
19821 ; return 0; }
19823 if { (eval echo configure:19824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19824 rm -rf conftest*
19825 eval "ac_cv_func_$ac_func=yes"
19826 else
19827 echo "configure: failed program was:" >&5
19828 cat conftest.$ac_ext >&5
19829 rm -rf conftest*
19830 eval "ac_cv_func_$ac_func=no"
19832 rm -f conftest*
19835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19836 echo "$ac_t""yes" 1>&6
19837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19838 cat >> confdefs.h <<EOF
19839 #define $ac_tr_func 1
19842 else
19843 echo "$ac_t""no" 1>&6
19845 done
19847 else
19849 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19850 echo "configure:19851: checking for _logl declaration" >&5
19851 if test x${glibcpp_cv_func__logl_use+set} != xset; then
19852 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19853 echo $ac_n "(cached) $ac_c" 1>&6
19854 else
19857 ac_ext=C
19858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19859 ac_cpp='$CXXCPP $CPPFLAGS'
19860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19862 cross_compiling=$ac_cv_prog_cxx_cross
19864 cat > conftest.$ac_ext <<EOF
19865 #line 19866 "configure"
19866 #include "confdefs.h"
19867 #include <math.h>
19868 #ifdef HAVE_IEEEFP_H
19869 #include <ieeefp.h>
19870 #endif
19872 int main() {
19873 _logl(0);
19874 ; return 0; }
19876 if { (eval echo configure:19877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19877 rm -rf conftest*
19878 glibcpp_cv_func__logl_use=yes
19879 else
19880 echo "configure: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19882 rm -rf conftest*
19883 glibcpp_cv_func__logl_use=no
19885 rm -f conftest*
19886 ac_ext=c
19887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19888 ac_cpp='$CPP $CPPFLAGS'
19889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19891 cross_compiling=$ac_cv_prog_cc_cross
19897 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19899 if test x$glibcpp_cv_func__logl_use = x"yes"; then
19900 for ac_func in _logl
19902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19903 echo "configure:19904: checking for $ac_func" >&5
19904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19905 echo $ac_n "(cached) $ac_c" 1>&6
19906 else
19907 cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19910 /* System header to define __stub macros and hopefully few prototypes,
19911 which can conflict with char $ac_func(); below. */
19912 #include <assert.h>
19913 /* Override any gcc2 internal prototype to avoid an error. */
19914 /* We use char because int might match the return type of a gcc2
19915 builtin and then its argument prototype would still apply. */
19916 char $ac_func();
19918 int main() {
19920 /* The GNU C library defines this for functions which it implements
19921 to always fail with ENOSYS. Some functions are actually named
19922 something starting with __ and the normal name is an alias. */
19923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19924 choke me
19925 #else
19926 $ac_func();
19927 #endif
19929 ; return 0; }
19931 if { (eval echo configure:19932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19932 rm -rf conftest*
19933 eval "ac_cv_func_$ac_func=yes"
19934 else
19935 echo "configure: failed program was:" >&5
19936 cat conftest.$ac_ext >&5
19937 rm -rf conftest*
19938 eval "ac_cv_func_$ac_func=no"
19940 rm -f conftest*
19943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19944 echo "$ac_t""yes" 1>&6
19945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19946 cat >> confdefs.h <<EOF
19947 #define $ac_tr_func 1
19950 else
19951 echo "$ac_t""no" 1>&6
19953 done
19960 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19961 echo "configure:19962: checking for log10l declaration" >&5
19962 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19963 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19964 echo $ac_n "(cached) $ac_c" 1>&6
19965 else
19968 ac_ext=C
19969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19970 ac_cpp='$CXXCPP $CPPFLAGS'
19971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19973 cross_compiling=$ac_cv_prog_cxx_cross
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19978 #include <math.h>
19979 #ifdef HAVE_IEEEFP_H
19980 #include <ieeefp.h>
19981 #endif
19983 int main() {
19984 log10l(0);
19985 ; return 0; }
19987 if { (eval echo configure:19988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19988 rm -rf conftest*
19989 glibcpp_cv_func_log10l_use=yes
19990 else
19991 echo "configure: failed program was:" >&5
19992 cat conftest.$ac_ext >&5
19993 rm -rf conftest*
19994 glibcpp_cv_func_log10l_use=no
19996 rm -f conftest*
19997 ac_ext=c
19998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19999 ac_cpp='$CPP $CPPFLAGS'
20000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20002 cross_compiling=$ac_cv_prog_cc_cross
20008 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20010 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20011 for ac_func in log10l
20013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20014 echo "configure:20015: checking for $ac_func" >&5
20015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20016 echo $ac_n "(cached) $ac_c" 1>&6
20017 else
20018 cat > conftest.$ac_ext <<EOF
20019 #line 20020 "configure"
20020 #include "confdefs.h"
20021 /* System header to define __stub macros and hopefully few prototypes,
20022 which can conflict with char $ac_func(); below. */
20023 #include <assert.h>
20024 /* Override any gcc2 internal prototype to avoid an error. */
20025 /* We use char because int might match the return type of a gcc2
20026 builtin and then its argument prototype would still apply. */
20027 char $ac_func();
20029 int main() {
20031 /* The GNU C library defines this for functions which it implements
20032 to always fail with ENOSYS. Some functions are actually named
20033 something starting with __ and the normal name is an alias. */
20034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20035 choke me
20036 #else
20037 $ac_func();
20038 #endif
20040 ; return 0; }
20042 if { (eval echo configure:20043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20043 rm -rf conftest*
20044 eval "ac_cv_func_$ac_func=yes"
20045 else
20046 echo "configure: failed program was:" >&5
20047 cat conftest.$ac_ext >&5
20048 rm -rf conftest*
20049 eval "ac_cv_func_$ac_func=no"
20051 rm -f conftest*
20054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20055 echo "$ac_t""yes" 1>&6
20056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20057 cat >> confdefs.h <<EOF
20058 #define $ac_tr_func 1
20061 else
20062 echo "$ac_t""no" 1>&6
20064 done
20066 else
20068 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20069 echo "configure:20070: checking for _log10l declaration" >&5
20070 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20071 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20072 echo $ac_n "(cached) $ac_c" 1>&6
20073 else
20076 ac_ext=C
20077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20078 ac_cpp='$CXXCPP $CPPFLAGS'
20079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20081 cross_compiling=$ac_cv_prog_cxx_cross
20083 cat > conftest.$ac_ext <<EOF
20084 #line 20085 "configure"
20085 #include "confdefs.h"
20086 #include <math.h>
20087 #ifdef HAVE_IEEEFP_H
20088 #include <ieeefp.h>
20089 #endif
20091 int main() {
20092 _log10l(0);
20093 ; return 0; }
20095 if { (eval echo configure:20096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20096 rm -rf conftest*
20097 glibcpp_cv_func__log10l_use=yes
20098 else
20099 echo "configure: failed program was:" >&5
20100 cat conftest.$ac_ext >&5
20101 rm -rf conftest*
20102 glibcpp_cv_func__log10l_use=no
20104 rm -f conftest*
20105 ac_ext=c
20106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20107 ac_cpp='$CPP $CPPFLAGS'
20108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20110 cross_compiling=$ac_cv_prog_cc_cross
20116 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20118 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20119 for ac_func in _log10l
20121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20122 echo "configure:20123: checking for $ac_func" >&5
20123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20124 echo $ac_n "(cached) $ac_c" 1>&6
20125 else
20126 cat > conftest.$ac_ext <<EOF
20127 #line 20128 "configure"
20128 #include "confdefs.h"
20129 /* System header to define __stub macros and hopefully few prototypes,
20130 which can conflict with char $ac_func(); below. */
20131 #include <assert.h>
20132 /* Override any gcc2 internal prototype to avoid an error. */
20133 /* We use char because int might match the return type of a gcc2
20134 builtin and then its argument prototype would still apply. */
20135 char $ac_func();
20137 int main() {
20139 /* The GNU C library defines this for functions which it implements
20140 to always fail with ENOSYS. Some functions are actually named
20141 something starting with __ and the normal name is an alias. */
20142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20143 choke me
20144 #else
20145 $ac_func();
20146 #endif
20148 ; return 0; }
20150 if { (eval echo configure:20151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20151 rm -rf conftest*
20152 eval "ac_cv_func_$ac_func=yes"
20153 else
20154 echo "configure: failed program was:" >&5
20155 cat conftest.$ac_ext >&5
20156 rm -rf conftest*
20157 eval "ac_cv_func_$ac_func=no"
20159 rm -f conftest*
20162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20163 echo "$ac_t""yes" 1>&6
20164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20165 cat >> confdefs.h <<EOF
20166 #define $ac_tr_func 1
20169 else
20170 echo "$ac_t""no" 1>&6
20172 done
20179 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20180 echo "configure:20181: checking for modfl declaration" >&5
20181 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20182 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20183 echo $ac_n "(cached) $ac_c" 1>&6
20184 else
20187 ac_ext=C
20188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20189 ac_cpp='$CXXCPP $CPPFLAGS'
20190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20192 cross_compiling=$ac_cv_prog_cxx_cross
20194 cat > conftest.$ac_ext <<EOF
20195 #line 20196 "configure"
20196 #include "confdefs.h"
20197 #include <math.h>
20198 int main() {
20199 modfl(0, 0);
20200 ; return 0; }
20202 if { (eval echo configure:20203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20203 rm -rf conftest*
20204 glibcpp_cv_func_modfl_use=yes
20205 else
20206 echo "configure: failed program was:" >&5
20207 cat conftest.$ac_ext >&5
20208 rm -rf conftest*
20209 glibcpp_cv_func_modfl_use=no
20211 rm -f conftest*
20212 ac_ext=c
20213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20214 ac_cpp='$CPP $CPPFLAGS'
20215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20217 cross_compiling=$ac_cv_prog_cc_cross
20223 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20225 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20226 for ac_func in modfl
20228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20229 echo "configure:20230: checking for $ac_func" >&5
20230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20231 echo $ac_n "(cached) $ac_c" 1>&6
20232 else
20233 cat > conftest.$ac_ext <<EOF
20234 #line 20235 "configure"
20235 #include "confdefs.h"
20236 /* System header to define __stub macros and hopefully few prototypes,
20237 which can conflict with char $ac_func(); below. */
20238 #include <assert.h>
20239 /* Override any gcc2 internal prototype to avoid an error. */
20240 /* We use char because int might match the return type of a gcc2
20241 builtin and then its argument prototype would still apply. */
20242 char $ac_func();
20244 int main() {
20246 /* The GNU C library defines this for functions which it implements
20247 to always fail with ENOSYS. Some functions are actually named
20248 something starting with __ and the normal name is an alias. */
20249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20250 choke me
20251 #else
20252 $ac_func();
20253 #endif
20255 ; return 0; }
20257 if { (eval echo configure:20258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20258 rm -rf conftest*
20259 eval "ac_cv_func_$ac_func=yes"
20260 else
20261 echo "configure: failed program was:" >&5
20262 cat conftest.$ac_ext >&5
20263 rm -rf conftest*
20264 eval "ac_cv_func_$ac_func=no"
20266 rm -f conftest*
20269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20270 echo "$ac_t""yes" 1>&6
20271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20272 cat >> confdefs.h <<EOF
20273 #define $ac_tr_func 1
20276 else
20277 echo "$ac_t""no" 1>&6
20279 done
20281 else
20283 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20284 echo "configure:20285: checking for _modfl declaration" >&5
20285 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20286 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20287 echo $ac_n "(cached) $ac_c" 1>&6
20288 else
20291 ac_ext=C
20292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20293 ac_cpp='$CXXCPP $CPPFLAGS'
20294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20296 cross_compiling=$ac_cv_prog_cxx_cross
20298 cat > conftest.$ac_ext <<EOF
20299 #line 20300 "configure"
20300 #include "confdefs.h"
20301 #include <math.h>
20302 int main() {
20303 _modfl(0, 0);
20304 ; return 0; }
20306 if { (eval echo configure:20307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20307 rm -rf conftest*
20308 glibcpp_cv_func__modfl_use=yes
20309 else
20310 echo "configure: failed program was:" >&5
20311 cat conftest.$ac_ext >&5
20312 rm -rf conftest*
20313 glibcpp_cv_func__modfl_use=no
20315 rm -f conftest*
20316 ac_ext=c
20317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20318 ac_cpp='$CPP $CPPFLAGS'
20319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20321 cross_compiling=$ac_cv_prog_cc_cross
20327 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20329 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20330 for ac_func in _modfl
20332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20333 echo "configure:20334: checking for $ac_func" >&5
20334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20335 echo $ac_n "(cached) $ac_c" 1>&6
20336 else
20337 cat > conftest.$ac_ext <<EOF
20338 #line 20339 "configure"
20339 #include "confdefs.h"
20340 /* System header to define __stub macros and hopefully few prototypes,
20341 which can conflict with char $ac_func(); below. */
20342 #include <assert.h>
20343 /* Override any gcc2 internal prototype to avoid an error. */
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20346 char $ac_func();
20348 int main() {
20350 /* The GNU C library defines this for functions which it implements
20351 to always fail with ENOSYS. Some functions are actually named
20352 something starting with __ and the normal name is an alias. */
20353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20354 choke me
20355 #else
20356 $ac_func();
20357 #endif
20359 ; return 0; }
20361 if { (eval echo configure:20362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20362 rm -rf conftest*
20363 eval "ac_cv_func_$ac_func=yes"
20364 else
20365 echo "configure: failed program was:" >&5
20366 cat conftest.$ac_ext >&5
20367 rm -rf conftest*
20368 eval "ac_cv_func_$ac_func=no"
20370 rm -f conftest*
20373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20374 echo "$ac_t""yes" 1>&6
20375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20376 cat >> confdefs.h <<EOF
20377 #define $ac_tr_func 1
20380 else
20381 echo "$ac_t""no" 1>&6
20383 done
20390 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20391 echo "configure:20392: checking for powl declaration" >&5
20392 if test x${glibcpp_cv_func_powl_use+set} != xset; then
20393 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20394 echo $ac_n "(cached) $ac_c" 1>&6
20395 else
20398 ac_ext=C
20399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20400 ac_cpp='$CXXCPP $CPPFLAGS'
20401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20403 cross_compiling=$ac_cv_prog_cxx_cross
20405 cat > conftest.$ac_ext <<EOF
20406 #line 20407 "configure"
20407 #include "confdefs.h"
20408 #include <math.h>
20409 int main() {
20410 powl(0, 0);
20411 ; return 0; }
20413 if { (eval echo configure:20414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20414 rm -rf conftest*
20415 glibcpp_cv_func_powl_use=yes
20416 else
20417 echo "configure: failed program was:" >&5
20418 cat conftest.$ac_ext >&5
20419 rm -rf conftest*
20420 glibcpp_cv_func_powl_use=no
20422 rm -f conftest*
20423 ac_ext=c
20424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20425 ac_cpp='$CPP $CPPFLAGS'
20426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20428 cross_compiling=$ac_cv_prog_cc_cross
20434 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20436 if test x$glibcpp_cv_func_powl_use = x"yes"; then
20437 for ac_func in powl
20439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20440 echo "configure:20441: checking for $ac_func" >&5
20441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20442 echo $ac_n "(cached) $ac_c" 1>&6
20443 else
20444 cat > conftest.$ac_ext <<EOF
20445 #line 20446 "configure"
20446 #include "confdefs.h"
20447 /* System header to define __stub macros and hopefully few prototypes,
20448 which can conflict with char $ac_func(); below. */
20449 #include <assert.h>
20450 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char $ac_func();
20455 int main() {
20457 /* The GNU C library defines this for functions which it implements
20458 to always fail with ENOSYS. Some functions are actually named
20459 something starting with __ and the normal name is an alias. */
20460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20461 choke me
20462 #else
20463 $ac_func();
20464 #endif
20466 ; return 0; }
20468 if { (eval echo configure:20469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20469 rm -rf conftest*
20470 eval "ac_cv_func_$ac_func=yes"
20471 else
20472 echo "configure: failed program was:" >&5
20473 cat conftest.$ac_ext >&5
20474 rm -rf conftest*
20475 eval "ac_cv_func_$ac_func=no"
20477 rm -f conftest*
20480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20481 echo "$ac_t""yes" 1>&6
20482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20483 cat >> confdefs.h <<EOF
20484 #define $ac_tr_func 1
20487 else
20488 echo "$ac_t""no" 1>&6
20490 done
20492 else
20494 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20495 echo "configure:20496: checking for _powl declaration" >&5
20496 if test x${glibcpp_cv_func__powl_use+set} != xset; then
20497 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20498 echo $ac_n "(cached) $ac_c" 1>&6
20499 else
20502 ac_ext=C
20503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20504 ac_cpp='$CXXCPP $CPPFLAGS'
20505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20507 cross_compiling=$ac_cv_prog_cxx_cross
20509 cat > conftest.$ac_ext <<EOF
20510 #line 20511 "configure"
20511 #include "confdefs.h"
20512 #include <math.h>
20513 int main() {
20514 _powl(0, 0);
20515 ; return 0; }
20517 if { (eval echo configure:20518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20518 rm -rf conftest*
20519 glibcpp_cv_func__powl_use=yes
20520 else
20521 echo "configure: failed program was:" >&5
20522 cat conftest.$ac_ext >&5
20523 rm -rf conftest*
20524 glibcpp_cv_func__powl_use=no
20526 rm -f conftest*
20527 ac_ext=c
20528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20529 ac_cpp='$CPP $CPPFLAGS'
20530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20532 cross_compiling=$ac_cv_prog_cc_cross
20538 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20540 if test x$glibcpp_cv_func__powl_use = x"yes"; then
20541 for ac_func in _powl
20543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20544 echo "configure:20545: checking for $ac_func" >&5
20545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20546 echo $ac_n "(cached) $ac_c" 1>&6
20547 else
20548 cat > conftest.$ac_ext <<EOF
20549 #line 20550 "configure"
20550 #include "confdefs.h"
20551 /* System header to define __stub macros and hopefully few prototypes,
20552 which can conflict with char $ac_func(); below. */
20553 #include <assert.h>
20554 /* Override any gcc2 internal prototype to avoid an error. */
20555 /* We use char because int might match the return type of a gcc2
20556 builtin and then its argument prototype would still apply. */
20557 char $ac_func();
20559 int main() {
20561 /* The GNU C library defines this for functions which it implements
20562 to always fail with ENOSYS. Some functions are actually named
20563 something starting with __ and the normal name is an alias. */
20564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20565 choke me
20566 #else
20567 $ac_func();
20568 #endif
20570 ; return 0; }
20572 if { (eval echo configure:20573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20573 rm -rf conftest*
20574 eval "ac_cv_func_$ac_func=yes"
20575 else
20576 echo "configure: failed program was:" >&5
20577 cat conftest.$ac_ext >&5
20578 rm -rf conftest*
20579 eval "ac_cv_func_$ac_func=no"
20581 rm -f conftest*
20584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20585 echo "$ac_t""yes" 1>&6
20586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20587 cat >> confdefs.h <<EOF
20588 #define $ac_tr_func 1
20591 else
20592 echo "$ac_t""no" 1>&6
20594 done
20601 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20602 echo "configure:20603: checking for sqrtl declaration" >&5
20603 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20604 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20605 echo $ac_n "(cached) $ac_c" 1>&6
20606 else
20609 ac_ext=C
20610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20611 ac_cpp='$CXXCPP $CPPFLAGS'
20612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20614 cross_compiling=$ac_cv_prog_cxx_cross
20616 cat > conftest.$ac_ext <<EOF
20617 #line 20618 "configure"
20618 #include "confdefs.h"
20619 #include <math.h>
20620 #ifdef HAVE_IEEEFP_H
20621 #include <ieeefp.h>
20622 #endif
20624 int main() {
20625 sqrtl(0);
20626 ; return 0; }
20628 if { (eval echo configure:20629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20629 rm -rf conftest*
20630 glibcpp_cv_func_sqrtl_use=yes
20631 else
20632 echo "configure: failed program was:" >&5
20633 cat conftest.$ac_ext >&5
20634 rm -rf conftest*
20635 glibcpp_cv_func_sqrtl_use=no
20637 rm -f conftest*
20638 ac_ext=c
20639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20640 ac_cpp='$CPP $CPPFLAGS'
20641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20643 cross_compiling=$ac_cv_prog_cc_cross
20649 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20651 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20652 for ac_func in sqrtl
20654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20655 echo "configure:20656: checking for $ac_func" >&5
20656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20657 echo $ac_n "(cached) $ac_c" 1>&6
20658 else
20659 cat > conftest.$ac_ext <<EOF
20660 #line 20661 "configure"
20661 #include "confdefs.h"
20662 /* System header to define __stub macros and hopefully few prototypes,
20663 which can conflict with char $ac_func(); below. */
20664 #include <assert.h>
20665 /* Override any gcc2 internal prototype to avoid an error. */
20666 /* We use char because int might match the return type of a gcc2
20667 builtin and then its argument prototype would still apply. */
20668 char $ac_func();
20670 int main() {
20672 /* The GNU C library defines this for functions which it implements
20673 to always fail with ENOSYS. Some functions are actually named
20674 something starting with __ and the normal name is an alias. */
20675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20676 choke me
20677 #else
20678 $ac_func();
20679 #endif
20681 ; return 0; }
20683 if { (eval echo configure:20684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20684 rm -rf conftest*
20685 eval "ac_cv_func_$ac_func=yes"
20686 else
20687 echo "configure: failed program was:" >&5
20688 cat conftest.$ac_ext >&5
20689 rm -rf conftest*
20690 eval "ac_cv_func_$ac_func=no"
20692 rm -f conftest*
20695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20696 echo "$ac_t""yes" 1>&6
20697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20698 cat >> confdefs.h <<EOF
20699 #define $ac_tr_func 1
20702 else
20703 echo "$ac_t""no" 1>&6
20705 done
20707 else
20709 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20710 echo "configure:20711: checking for _sqrtl declaration" >&5
20711 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20712 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20713 echo $ac_n "(cached) $ac_c" 1>&6
20714 else
20717 ac_ext=C
20718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20719 ac_cpp='$CXXCPP $CPPFLAGS'
20720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20722 cross_compiling=$ac_cv_prog_cxx_cross
20724 cat > conftest.$ac_ext <<EOF
20725 #line 20726 "configure"
20726 #include "confdefs.h"
20727 #include <math.h>
20728 #ifdef HAVE_IEEEFP_H
20729 #include <ieeefp.h>
20730 #endif
20732 int main() {
20733 _sqrtl(0);
20734 ; return 0; }
20736 if { (eval echo configure:20737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20737 rm -rf conftest*
20738 glibcpp_cv_func__sqrtl_use=yes
20739 else
20740 echo "configure: failed program was:" >&5
20741 cat conftest.$ac_ext >&5
20742 rm -rf conftest*
20743 glibcpp_cv_func__sqrtl_use=no
20745 rm -f conftest*
20746 ac_ext=c
20747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20751 cross_compiling=$ac_cv_prog_cc_cross
20757 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20759 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20760 for ac_func in _sqrtl
20762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20763 echo "configure:20764: checking for $ac_func" >&5
20764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20765 echo $ac_n "(cached) $ac_c" 1>&6
20766 else
20767 cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20770 /* System header to define __stub macros and hopefully few prototypes,
20771 which can conflict with char $ac_func(); below. */
20772 #include <assert.h>
20773 /* Override any gcc2 internal prototype to avoid an error. */
20774 /* We use char because int might match the return type of a gcc2
20775 builtin and then its argument prototype would still apply. */
20776 char $ac_func();
20778 int main() {
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20784 choke me
20785 #else
20786 $ac_func();
20787 #endif
20789 ; return 0; }
20791 if { (eval echo configure:20792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20792 rm -rf conftest*
20793 eval "ac_cv_func_$ac_func=yes"
20794 else
20795 echo "configure: failed program was:" >&5
20796 cat conftest.$ac_ext >&5
20797 rm -rf conftest*
20798 eval "ac_cv_func_$ac_func=no"
20800 rm -f conftest*
20803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20804 echo "$ac_t""yes" 1>&6
20805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20806 cat >> confdefs.h <<EOF
20807 #define $ac_tr_func 1
20810 else
20811 echo "$ac_t""no" 1>&6
20813 done
20820 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20821 echo "configure:20822: checking for sincosl declaration" >&5
20822 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20823 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20824 echo $ac_n "(cached) $ac_c" 1>&6
20825 else
20828 ac_ext=C
20829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20830 ac_cpp='$CXXCPP $CPPFLAGS'
20831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20833 cross_compiling=$ac_cv_prog_cxx_cross
20835 cat > conftest.$ac_ext <<EOF
20836 #line 20837 "configure"
20837 #include "confdefs.h"
20838 #include <math.h>
20839 int main() {
20840 sincosl(0, 0, 0);
20841 ; return 0; }
20843 if { (eval echo configure:20844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20844 rm -rf conftest*
20845 glibcpp_cv_func_sincosl_use=yes
20846 else
20847 echo "configure: failed program was:" >&5
20848 cat conftest.$ac_ext >&5
20849 rm -rf conftest*
20850 glibcpp_cv_func_sincosl_use=no
20852 rm -f conftest*
20853 ac_ext=c
20854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20855 ac_cpp='$CPP $CPPFLAGS'
20856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20858 cross_compiling=$ac_cv_prog_cc_cross
20864 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20866 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20867 for ac_func in sincosl
20869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20870 echo "configure:20871: checking for $ac_func" >&5
20871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20872 echo $ac_n "(cached) $ac_c" 1>&6
20873 else
20874 cat > conftest.$ac_ext <<EOF
20875 #line 20876 "configure"
20876 #include "confdefs.h"
20877 /* System header to define __stub macros and hopefully few prototypes,
20878 which can conflict with char $ac_func(); below. */
20879 #include <assert.h>
20880 /* Override any gcc2 internal prototype to avoid an error. */
20881 /* We use char because int might match the return type of a gcc2
20882 builtin and then its argument prototype would still apply. */
20883 char $ac_func();
20885 int main() {
20887 /* The GNU C library defines this for functions which it implements
20888 to always fail with ENOSYS. Some functions are actually named
20889 something starting with __ and the normal name is an alias. */
20890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20891 choke me
20892 #else
20893 $ac_func();
20894 #endif
20896 ; return 0; }
20898 if { (eval echo configure:20899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20899 rm -rf conftest*
20900 eval "ac_cv_func_$ac_func=yes"
20901 else
20902 echo "configure: failed program was:" >&5
20903 cat conftest.$ac_ext >&5
20904 rm -rf conftest*
20905 eval "ac_cv_func_$ac_func=no"
20907 rm -f conftest*
20910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20911 echo "$ac_t""yes" 1>&6
20912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20913 cat >> confdefs.h <<EOF
20914 #define $ac_tr_func 1
20917 else
20918 echo "$ac_t""no" 1>&6
20920 done
20922 else
20924 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20925 echo "configure:20926: checking for _sincosl declaration" >&5
20926 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20927 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20928 echo $ac_n "(cached) $ac_c" 1>&6
20929 else
20932 ac_ext=C
20933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20934 ac_cpp='$CXXCPP $CPPFLAGS'
20935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20937 cross_compiling=$ac_cv_prog_cxx_cross
20939 cat > conftest.$ac_ext <<EOF
20940 #line 20941 "configure"
20941 #include "confdefs.h"
20942 #include <math.h>
20943 int main() {
20944 _sincosl(0, 0, 0);
20945 ; return 0; }
20947 if { (eval echo configure:20948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20948 rm -rf conftest*
20949 glibcpp_cv_func__sincosl_use=yes
20950 else
20951 echo "configure: failed program was:" >&5
20952 cat conftest.$ac_ext >&5
20953 rm -rf conftest*
20954 glibcpp_cv_func__sincosl_use=no
20956 rm -f conftest*
20957 ac_ext=c
20958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20962 cross_compiling=$ac_cv_prog_cc_cross
20968 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20970 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20971 for ac_func in _sincosl
20973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20974 echo "configure:20975: checking for $ac_func" >&5
20975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20976 echo $ac_n "(cached) $ac_c" 1>&6
20977 else
20978 cat > conftest.$ac_ext <<EOF
20979 #line 20980 "configure"
20980 #include "confdefs.h"
20981 /* System header to define __stub macros and hopefully few prototypes,
20982 which can conflict with char $ac_func(); below. */
20983 #include <assert.h>
20984 /* Override any gcc2 internal prototype to avoid an error. */
20985 /* We use char because int might match the return type of a gcc2
20986 builtin and then its argument prototype would still apply. */
20987 char $ac_func();
20989 int main() {
20991 /* The GNU C library defines this for functions which it implements
20992 to always fail with ENOSYS. Some functions are actually named
20993 something starting with __ and the normal name is an alias. */
20994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20995 choke me
20996 #else
20997 $ac_func();
20998 #endif
21000 ; return 0; }
21002 if { (eval echo configure:21003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21003 rm -rf conftest*
21004 eval "ac_cv_func_$ac_func=yes"
21005 else
21006 echo "configure: failed program was:" >&5
21007 cat conftest.$ac_ext >&5
21008 rm -rf conftest*
21009 eval "ac_cv_func_$ac_func=no"
21011 rm -f conftest*
21014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21015 echo "$ac_t""yes" 1>&6
21016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21017 cat >> confdefs.h <<EOF
21018 #define $ac_tr_func 1
21021 else
21022 echo "$ac_t""no" 1>&6
21024 done
21031 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21032 echo "configure:21033: checking for finitel declaration" >&5
21033 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21034 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21035 echo $ac_n "(cached) $ac_c" 1>&6
21036 else
21039 ac_ext=C
21040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21044 cross_compiling=$ac_cv_prog_cxx_cross
21046 cat > conftest.$ac_ext <<EOF
21047 #line 21048 "configure"
21048 #include "confdefs.h"
21049 #include <math.h>
21050 #ifdef HAVE_IEEEFP_H
21051 #include <ieeefp.h>
21052 #endif
21054 int main() {
21055 finitel(0);
21056 ; return 0; }
21058 if { (eval echo configure:21059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21059 rm -rf conftest*
21060 glibcpp_cv_func_finitel_use=yes
21061 else
21062 echo "configure: failed program was:" >&5
21063 cat conftest.$ac_ext >&5
21064 rm -rf conftest*
21065 glibcpp_cv_func_finitel_use=no
21067 rm -f conftest*
21068 ac_ext=c
21069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21073 cross_compiling=$ac_cv_prog_cc_cross
21079 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21081 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21082 for ac_func in finitel
21084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21085 echo "configure:21086: checking for $ac_func" >&5
21086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21087 echo $ac_n "(cached) $ac_c" 1>&6
21088 else
21089 cat > conftest.$ac_ext <<EOF
21090 #line 21091 "configure"
21091 #include "confdefs.h"
21092 /* System header to define __stub macros and hopefully few prototypes,
21093 which can conflict with char $ac_func(); below. */
21094 #include <assert.h>
21095 /* Override any gcc2 internal prototype to avoid an error. */
21096 /* We use char because int might match the return type of a gcc2
21097 builtin and then its argument prototype would still apply. */
21098 char $ac_func();
21100 int main() {
21102 /* The GNU C library defines this for functions which it implements
21103 to always fail with ENOSYS. Some functions are actually named
21104 something starting with __ and the normal name is an alias. */
21105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21106 choke me
21107 #else
21108 $ac_func();
21109 #endif
21111 ; return 0; }
21113 if { (eval echo configure:21114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21114 rm -rf conftest*
21115 eval "ac_cv_func_$ac_func=yes"
21116 else
21117 echo "configure: failed program was:" >&5
21118 cat conftest.$ac_ext >&5
21119 rm -rf conftest*
21120 eval "ac_cv_func_$ac_func=no"
21122 rm -f conftest*
21125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21126 echo "$ac_t""yes" 1>&6
21127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21128 cat >> confdefs.h <<EOF
21129 #define $ac_tr_func 1
21132 else
21133 echo "$ac_t""no" 1>&6
21135 done
21137 else
21139 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21140 echo "configure:21141: checking for _finitel declaration" >&5
21141 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21142 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21143 echo $ac_n "(cached) $ac_c" 1>&6
21144 else
21147 ac_ext=C
21148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21149 ac_cpp='$CXXCPP $CPPFLAGS'
21150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21152 cross_compiling=$ac_cv_prog_cxx_cross
21154 cat > conftest.$ac_ext <<EOF
21155 #line 21156 "configure"
21156 #include "confdefs.h"
21157 #include <math.h>
21158 #ifdef HAVE_IEEEFP_H
21159 #include <ieeefp.h>
21160 #endif
21162 int main() {
21163 _finitel(0);
21164 ; return 0; }
21166 if { (eval echo configure:21167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21167 rm -rf conftest*
21168 glibcpp_cv_func__finitel_use=yes
21169 else
21170 echo "configure: failed program was:" >&5
21171 cat conftest.$ac_ext >&5
21172 rm -rf conftest*
21173 glibcpp_cv_func__finitel_use=no
21175 rm -f conftest*
21176 ac_ext=c
21177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21178 ac_cpp='$CPP $CPPFLAGS'
21179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21181 cross_compiling=$ac_cv_prog_cc_cross
21187 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21189 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21190 for ac_func in _finitel
21192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21193 echo "configure:21194: checking for $ac_func" >&5
21194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21195 echo $ac_n "(cached) $ac_c" 1>&6
21196 else
21197 cat > conftest.$ac_ext <<EOF
21198 #line 21199 "configure"
21199 #include "confdefs.h"
21200 /* System header to define __stub macros and hopefully few prototypes,
21201 which can conflict with char $ac_func(); below. */
21202 #include <assert.h>
21203 /* Override any gcc2 internal prototype to avoid an error. */
21204 /* We use char because int might match the return type of a gcc2
21205 builtin and then its argument prototype would still apply. */
21206 char $ac_func();
21208 int main() {
21210 /* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
21213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21214 choke me
21215 #else
21216 $ac_func();
21217 #endif
21219 ; return 0; }
21221 if { (eval echo configure:21222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21222 rm -rf conftest*
21223 eval "ac_cv_func_$ac_func=yes"
21224 else
21225 echo "configure: failed program was:" >&5
21226 cat conftest.$ac_ext >&5
21227 rm -rf conftest*
21228 eval "ac_cv_func_$ac_func=no"
21230 rm -f conftest*
21233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21234 echo "$ac_t""yes" 1>&6
21235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21236 cat >> confdefs.h <<EOF
21237 #define $ac_tr_func 1
21240 else
21241 echo "$ac_t""no" 1>&6
21243 done
21251 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21252 echo "configure:21253: checking for _float trig functions" >&5
21253 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21254 echo $ac_n "(cached) $ac_c" 1>&6
21255 else
21258 ac_ext=C
21259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21260 ac_cpp='$CXXCPP $CPPFLAGS'
21261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21263 cross_compiling=$ac_cv_prog_cxx_cross
21265 cat > conftest.$ac_ext <<EOF
21266 #line 21267 "configure"
21267 #include "confdefs.h"
21268 #include <math.h>
21269 int main() {
21270 `for x in _acosf _asinf _atanf \
21271 _cosf _sinf _tanf \
21272 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21273 ; return 0; }
21275 if { (eval echo configure:21276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21276 rm -rf conftest*
21277 glibcpp_cv_func__float_trig_use=yes
21278 else
21279 echo "configure: failed program was:" >&5
21280 cat conftest.$ac_ext >&5
21281 rm -rf conftest*
21282 glibcpp_cv_func__float_trig_use=no
21284 rm -f conftest*
21285 ac_ext=c
21286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21287 ac_cpp='$CPP $CPPFLAGS'
21288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21290 cross_compiling=$ac_cv_prog_cc_cross
21294 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21295 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21296 for ac_func in _acosf _asinf _atanf \
21297 _cosf _sinf _tanf \
21298 _coshf _sinhf _tanhf
21300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21301 echo "configure:21302: checking for $ac_func" >&5
21302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21303 echo $ac_n "(cached) $ac_c" 1>&6
21304 else
21305 cat > conftest.$ac_ext <<EOF
21306 #line 21307 "configure"
21307 #include "confdefs.h"
21308 /* System header to define __stub macros and hopefully few prototypes,
21309 which can conflict with char $ac_func(); below. */
21310 #include <assert.h>
21311 /* Override any gcc2 internal prototype to avoid an error. */
21312 /* We use char because int might match the return type of a gcc2
21313 builtin and then its argument prototype would still apply. */
21314 char $ac_func();
21316 int main() {
21318 /* The GNU C library defines this for functions which it implements
21319 to always fail with ENOSYS. Some functions are actually named
21320 something starting with __ and the normal name is an alias. */
21321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21322 choke me
21323 #else
21324 $ac_func();
21325 #endif
21327 ; return 0; }
21329 if { (eval echo configure:21330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21330 rm -rf conftest*
21331 eval "ac_cv_func_$ac_func=yes"
21332 else
21333 echo "configure: failed program was:" >&5
21334 cat conftest.$ac_ext >&5
21335 rm -rf conftest*
21336 eval "ac_cv_func_$ac_func=no"
21338 rm -f conftest*
21341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21342 echo "$ac_t""yes" 1>&6
21343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21344 cat >> confdefs.h <<EOF
21345 #define $ac_tr_func 1
21348 else
21349 echo "$ac_t""no" 1>&6
21351 done
21356 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21357 echo "configure:21358: checking for _float round functions" >&5
21358 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21359 echo $ac_n "(cached) $ac_c" 1>&6
21360 else
21363 ac_ext=C
21364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21365 ac_cpp='$CXXCPP $CPPFLAGS'
21366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21368 cross_compiling=$ac_cv_prog_cxx_cross
21370 cat > conftest.$ac_ext <<EOF
21371 #line 21372 "configure"
21372 #include "confdefs.h"
21373 #include <math.h>
21374 int main() {
21375 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21376 ; return 0; }
21378 if { (eval echo configure:21379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21379 rm -rf conftest*
21380 glibcpp_cv_func__float_round_use=yes
21381 else
21382 echo "configure: failed program was:" >&5
21383 cat conftest.$ac_ext >&5
21384 rm -rf conftest*
21385 glibcpp_cv_func__float_round_use=no
21387 rm -f conftest*
21388 ac_ext=c
21389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21390 ac_cpp='$CPP $CPPFLAGS'
21391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21393 cross_compiling=$ac_cv_prog_cc_cross
21397 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21398 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21399 for ac_func in _ceilf _floorf
21401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21402 echo "configure:21403: checking for $ac_func" >&5
21403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21404 echo $ac_n "(cached) $ac_c" 1>&6
21405 else
21406 cat > conftest.$ac_ext <<EOF
21407 #line 21408 "configure"
21408 #include "confdefs.h"
21409 /* System header to define __stub macros and hopefully few prototypes,
21410 which can conflict with char $ac_func(); below. */
21411 #include <assert.h>
21412 /* Override any gcc2 internal prototype to avoid an error. */
21413 /* We use char because int might match the return type of a gcc2
21414 builtin and then its argument prototype would still apply. */
21415 char $ac_func();
21417 int main() {
21419 /* The GNU C library defines this for functions which it implements
21420 to always fail with ENOSYS. Some functions are actually named
21421 something starting with __ and the normal name is an alias. */
21422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21423 choke me
21424 #else
21425 $ac_func();
21426 #endif
21428 ; return 0; }
21430 if { (eval echo configure:21431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21431 rm -rf conftest*
21432 eval "ac_cv_func_$ac_func=yes"
21433 else
21434 echo "configure: failed program was:" >&5
21435 cat conftest.$ac_ext >&5
21436 rm -rf conftest*
21437 eval "ac_cv_func_$ac_func=no"
21439 rm -f conftest*
21442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21443 echo "$ac_t""yes" 1>&6
21444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21445 cat >> confdefs.h <<EOF
21446 #define $ac_tr_func 1
21449 else
21450 echo "$ac_t""no" 1>&6
21452 done
21458 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21459 echo "configure:21460: checking for _long double trig functions" >&5
21460 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21461 echo $ac_n "(cached) $ac_c" 1>&6
21462 else
21465 ac_ext=C
21466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21467 ac_cpp='$CXXCPP $CPPFLAGS'
21468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21470 cross_compiling=$ac_cv_prog_cxx_cross
21472 cat > conftest.$ac_ext <<EOF
21473 #line 21474 "configure"
21474 #include "confdefs.h"
21475 #include <math.h>
21476 int main() {
21477 `for x in _acosl _asinl _atanl \
21478 _cosl _sinl _tanl \
21479 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21480 ; return 0; }
21482 if { (eval echo configure:21483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21483 rm -rf conftest*
21484 glibcpp_cv_func__long_double_trig_use=yes
21485 else
21486 echo "configure: failed program was:" >&5
21487 cat conftest.$ac_ext >&5
21488 rm -rf conftest*
21489 glibcpp_cv_func__long_double_trig_use=no
21491 rm -f conftest*
21492 ac_ext=c
21493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21494 ac_cpp='$CPP $CPPFLAGS'
21495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21497 cross_compiling=$ac_cv_prog_cc_cross
21501 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21502 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21503 for ac_func in _acosl _asinl _atanl \
21504 _cosl _sinl _tanl \
21505 _coshl _sinhl _tanhl
21507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21508 echo "configure:21509: checking for $ac_func" >&5
21509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21510 echo $ac_n "(cached) $ac_c" 1>&6
21511 else
21512 cat > conftest.$ac_ext <<EOF
21513 #line 21514 "configure"
21514 #include "confdefs.h"
21515 /* System header to define __stub macros and hopefully few prototypes,
21516 which can conflict with char $ac_func(); below. */
21517 #include <assert.h>
21518 /* Override any gcc2 internal prototype to avoid an error. */
21519 /* We use char because int might match the return type of a gcc2
21520 builtin and then its argument prototype would still apply. */
21521 char $ac_func();
21523 int main() {
21525 /* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21529 choke me
21530 #else
21531 $ac_func();
21532 #endif
21534 ; return 0; }
21536 if { (eval echo configure:21537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21537 rm -rf conftest*
21538 eval "ac_cv_func_$ac_func=yes"
21539 else
21540 echo "configure: failed program was:" >&5
21541 cat conftest.$ac_ext >&5
21542 rm -rf conftest*
21543 eval "ac_cv_func_$ac_func=no"
21545 rm -f conftest*
21548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21549 echo "$ac_t""yes" 1>&6
21550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21551 cat >> confdefs.h <<EOF
21552 #define $ac_tr_func 1
21555 else
21556 echo "$ac_t""no" 1>&6
21558 done
21563 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21564 echo "configure:21565: checking for _long double round functions" >&5
21565 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21566 echo $ac_n "(cached) $ac_c" 1>&6
21567 else
21570 ac_ext=C
21571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21572 ac_cpp='$CXXCPP $CPPFLAGS'
21573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21575 cross_compiling=$ac_cv_prog_cxx_cross
21577 cat > conftest.$ac_ext <<EOF
21578 #line 21579 "configure"
21579 #include "confdefs.h"
21580 #include <math.h>
21581 int main() {
21582 `for x in _ceill _floorl; do echo "$x (0);"; done`
21583 ; return 0; }
21585 if { (eval echo configure:21586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21586 rm -rf conftest*
21587 glibcpp_cv_func__long_double_round_use=yes
21588 else
21589 echo "configure: failed program was:" >&5
21590 cat conftest.$ac_ext >&5
21591 rm -rf conftest*
21592 glibcpp_cv_func__long_double_round_use=no
21594 rm -f conftest*
21595 ac_ext=c
21596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21597 ac_cpp='$CPP $CPPFLAGS'
21598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21600 cross_compiling=$ac_cv_prog_cc_cross
21604 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21605 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21606 for ac_func in _ceill _floorl
21608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21609 echo "configure:21610: checking for $ac_func" >&5
21610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21611 echo $ac_n "(cached) $ac_c" 1>&6
21612 else
21613 cat > conftest.$ac_ext <<EOF
21614 #line 21615 "configure"
21615 #include "confdefs.h"
21616 /* System header to define __stub macros and hopefully few prototypes,
21617 which can conflict with char $ac_func(); below. */
21618 #include <assert.h>
21619 /* Override any gcc2 internal prototype to avoid an error. */
21620 /* We use char because int might match the return type of a gcc2
21621 builtin and then its argument prototype would still apply. */
21622 char $ac_func();
21624 int main() {
21626 /* The GNU C library defines this for functions which it implements
21627 to always fail with ENOSYS. Some functions are actually named
21628 something starting with __ and the normal name is an alias. */
21629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21630 choke me
21631 #else
21632 $ac_func();
21633 #endif
21635 ; return 0; }
21637 if { (eval echo configure:21638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21638 rm -rf conftest*
21639 eval "ac_cv_func_$ac_func=yes"
21640 else
21641 echo "configure: failed program was:" >&5
21642 cat conftest.$ac_ext >&5
21643 rm -rf conftest*
21644 eval "ac_cv_func_$ac_func=no"
21646 rm -f conftest*
21649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21650 echo "$ac_t""yes" 1>&6
21651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21652 cat >> confdefs.h <<EOF
21653 #define $ac_tr_func 1
21656 else
21657 echo "$ac_t""no" 1>&6
21659 done
21664 LIBS="$ac_save_LIBS"
21665 CXXFLAGS="$ac_save_CXXFLAGS"
21668 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21669 echo "configure:21670: checking for main in -lm" >&5
21670 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21672 echo $ac_n "(cached) $ac_c" 1>&6
21673 else
21674 ac_save_LIBS="$LIBS"
21675 LIBS="-lm $LIBS"
21676 cat > conftest.$ac_ext <<EOF
21677 #line 21678 "configure"
21678 #include "confdefs.h"
21680 int main() {
21681 main()
21682 ; return 0; }
21684 if { (eval echo configure:21685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21685 rm -rf conftest*
21686 eval "ac_cv_lib_$ac_lib_var=yes"
21687 else
21688 echo "configure: failed program was:" >&5
21689 cat conftest.$ac_ext >&5
21690 rm -rf conftest*
21691 eval "ac_cv_lib_$ac_lib_var=no"
21693 rm -f conftest*
21694 LIBS="$ac_save_LIBS"
21697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21698 echo "$ac_t""yes" 1>&6
21699 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21701 cat >> confdefs.h <<EOF
21702 #define $ac_tr_lib 1
21705 LIBS="-lm $LIBS"
21707 else
21708 echo "$ac_t""no" 1>&6
21711 for ac_func in nan copysignf
21713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21714 echo "configure:21715: checking for $ac_func" >&5
21715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21717 else
21718 cat > conftest.$ac_ext <<EOF
21719 #line 21720 "configure"
21720 #include "confdefs.h"
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char $ac_func(); below. */
21723 #include <assert.h>
21724 /* Override any gcc2 internal prototype to avoid an error. */
21725 /* We use char because int might match the return type of a gcc2
21726 builtin and then its argument prototype would still apply. */
21727 char $ac_func();
21729 int main() {
21731 /* The GNU C library defines this for functions which it implements
21732 to always fail with ENOSYS. Some functions are actually named
21733 something starting with __ and the normal name is an alias. */
21734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21735 choke me
21736 #else
21737 $ac_func();
21738 #endif
21740 ; return 0; }
21742 if { (eval echo configure:21743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21743 rm -rf conftest*
21744 eval "ac_cv_func_$ac_func=yes"
21745 else
21746 echo "configure: failed program was:" >&5
21747 cat conftest.$ac_ext >&5
21748 rm -rf conftest*
21749 eval "ac_cv_func_$ac_func=no"
21751 rm -f conftest*
21754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21755 echo "$ac_t""yes" 1>&6
21756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21757 cat >> confdefs.h <<EOF
21758 #define $ac_tr_func 1
21761 else
21762 echo "$ac_t""no" 1>&6
21763 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21765 done
21768 for ac_func in __signbit
21770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21771 echo "configure:21772: checking for $ac_func" >&5
21772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21773 echo $ac_n "(cached) $ac_c" 1>&6
21774 else
21775 cat > conftest.$ac_ext <<EOF
21776 #line 21777 "configure"
21777 #include "confdefs.h"
21778 /* System header to define __stub macros and hopefully few prototypes,
21779 which can conflict with char $ac_func(); below. */
21780 #include <assert.h>
21781 /* Override any gcc2 internal prototype to avoid an error. */
21782 /* We use char because int might match the return type of a gcc2
21783 builtin and then its argument prototype would still apply. */
21784 char $ac_func();
21786 int main() {
21788 /* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21792 choke me
21793 #else
21794 $ac_func();
21795 #endif
21797 ; return 0; }
21799 if { (eval echo configure:21800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21800 rm -rf conftest*
21801 eval "ac_cv_func_$ac_func=yes"
21802 else
21803 echo "configure: failed program was:" >&5
21804 cat conftest.$ac_ext >&5
21805 rm -rf conftest*
21806 eval "ac_cv_func_$ac_func=no"
21808 rm -f conftest*
21811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21812 echo "$ac_t""yes" 1>&6
21813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21814 cat >> confdefs.h <<EOF
21815 #define $ac_tr_func 1
21818 else
21819 echo "$ac_t""no" 1>&6
21820 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21822 done
21824 for ac_func in __signbitf
21826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21827 echo "configure:21828: checking for $ac_func" >&5
21828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21829 echo $ac_n "(cached) $ac_c" 1>&6
21830 else
21831 cat > conftest.$ac_ext <<EOF
21832 #line 21833 "configure"
21833 #include "confdefs.h"
21834 /* System header to define __stub macros and hopefully few prototypes,
21835 which can conflict with char $ac_func(); below. */
21836 #include <assert.h>
21837 /* Override any gcc2 internal prototype to avoid an error. */
21838 /* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
21840 char $ac_func();
21842 int main() {
21844 /* The GNU C library defines this for functions which it implements
21845 to always fail with ENOSYS. Some functions are actually named
21846 something starting with __ and the normal name is an alias. */
21847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21848 choke me
21849 #else
21850 $ac_func();
21851 #endif
21853 ; return 0; }
21855 if { (eval echo configure:21856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21856 rm -rf conftest*
21857 eval "ac_cv_func_$ac_func=yes"
21858 else
21859 echo "configure: failed program was:" >&5
21860 cat conftest.$ac_ext >&5
21861 rm -rf conftest*
21862 eval "ac_cv_func_$ac_func=no"
21864 rm -f conftest*
21867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21868 echo "$ac_t""yes" 1>&6
21869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21870 cat >> confdefs.h <<EOF
21871 #define $ac_tr_func 1
21874 else
21875 echo "$ac_t""no" 1>&6
21876 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21878 done
21881 if test x$ac_cv_func_copysignl = x"yes"; then
21882 for ac_func in __signbitl
21884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21885 echo "configure:21886: checking for $ac_func" >&5
21886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21887 echo $ac_n "(cached) $ac_c" 1>&6
21888 else
21889 cat > conftest.$ac_ext <<EOF
21890 #line 21891 "configure"
21891 #include "confdefs.h"
21892 /* System header to define __stub macros and hopefully few prototypes,
21893 which can conflict with char $ac_func(); below. */
21894 #include <assert.h>
21895 /* Override any gcc2 internal prototype to avoid an error. */
21896 /* We use char because int might match the return type of a gcc2
21897 builtin and then its argument prototype would still apply. */
21898 char $ac_func();
21900 int main() {
21902 /* The GNU C library defines this for functions which it implements
21903 to always fail with ENOSYS. Some functions are actually named
21904 something starting with __ and the normal name is an alias. */
21905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21906 choke me
21907 #else
21908 $ac_func();
21909 #endif
21911 ; return 0; }
21913 if { (eval echo configure:21914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21914 rm -rf conftest*
21915 eval "ac_cv_func_$ac_func=yes"
21916 else
21917 echo "configure: failed program was:" >&5
21918 cat conftest.$ac_ext >&5
21919 rm -rf conftest*
21920 eval "ac_cv_func_$ac_func=no"
21922 rm -f conftest*
21925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21926 echo "$ac_t""yes" 1>&6
21927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21928 cat >> confdefs.h <<EOF
21929 #define $ac_tr_func 1
21932 else
21933 echo "$ac_t""no" 1>&6
21934 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21936 done
21940 if test -n "$LIBMATHOBJS"; then
21941 need_libmath=yes
21946 if test "$need_libmath" = yes; then
21947 GLIBCPP_BUILD_LIBMATH_TRUE=
21948 GLIBCPP_BUILD_LIBMATH_FALSE='#'
21949 else
21950 GLIBCPP_BUILD_LIBMATH_TRUE='#'
21951 GLIBCPP_BUILD_LIBMATH_FALSE=
21955 enable_wchar_t=no
21957 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21958 echo "configure:21959: checking for mbstate_t" >&5
21959 cat > conftest.$ac_ext <<EOF
21960 #line 21961 "configure"
21961 #include "confdefs.h"
21962 #include <wchar.h>
21963 int main() {
21964 mbstate_t teststate;
21965 ; return 0; }
21967 if { (eval echo configure:21968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21968 rm -rf conftest*
21969 have_mbstate_t=yes
21970 else
21971 echo "configure: failed program was:" >&5
21972 cat conftest.$ac_ext >&5
21973 rm -rf conftest*
21974 have_mbstate_t=no
21976 rm -f conftest*
21977 echo "$ac_t""$have_mbstate_t" 1>&6
21978 if test x"$have_mbstate_t" = xyes; then
21979 cat >> confdefs.h <<\EOF
21980 #define HAVE_MBSTATE_T 1
21985 for ac_hdr in wchar.h
21987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21989 echo "configure:21990: checking for $ac_hdr" >&5
21990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21991 echo $ac_n "(cached) $ac_c" 1>&6
21992 else
21993 cat > conftest.$ac_ext <<EOF
21994 #line 21995 "configure"
21995 #include "confdefs.h"
21996 #include <$ac_hdr>
21998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21999 { (eval echo configure:22000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22001 if test -z "$ac_err"; then
22002 rm -rf conftest*
22003 eval "ac_cv_header_$ac_safe=yes"
22004 else
22005 echo "$ac_err" >&5
22006 echo "configure: failed program was:" >&5
22007 cat conftest.$ac_ext >&5
22008 rm -rf conftest*
22009 eval "ac_cv_header_$ac_safe=no"
22011 rm -f conftest*
22013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22014 echo "$ac_t""yes" 1>&6
22015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22016 cat >> confdefs.h <<EOF
22017 #define $ac_tr_hdr 1
22019 ac_has_wchar_h=yes
22020 else
22021 echo "$ac_t""no" 1>&6
22022 ac_has_wchar_h=no
22024 done
22026 for ac_hdr in wctype.h
22028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22030 echo "configure:22031: checking for $ac_hdr" >&5
22031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22032 echo $ac_n "(cached) $ac_c" 1>&6
22033 else
22034 cat > conftest.$ac_ext <<EOF
22035 #line 22036 "configure"
22036 #include "confdefs.h"
22037 #include <$ac_hdr>
22039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22040 { (eval echo configure:22041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22042 if test -z "$ac_err"; then
22043 rm -rf conftest*
22044 eval "ac_cv_header_$ac_safe=yes"
22045 else
22046 echo "$ac_err" >&5
22047 echo "configure: failed program was:" >&5
22048 cat conftest.$ac_ext >&5
22049 rm -rf conftest*
22050 eval "ac_cv_header_$ac_safe=no"
22052 rm -f conftest*
22054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22055 echo "$ac_t""yes" 1>&6
22056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22057 cat >> confdefs.h <<EOF
22058 #define $ac_tr_hdr 1
22060 ac_has_wctype_h=yes
22061 else
22062 echo "$ac_t""no" 1>&6
22063 ac_has_wctype_h=no
22065 done
22068 if test x"$ac_has_wchar_h" = xyes &&
22069 test x"$ac_has_wctype_h" = xyes &&
22070 test x"$enable_c_mbchar" != xno; then
22072 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22073 echo "configure:22074: checking for WCHAR_MIN and WCHAR_MAX" >&5
22074 cat > conftest.$ac_ext <<EOF
22075 #line 22076 "configure"
22076 #include "confdefs.h"
22077 #include <wchar.h>
22078 int main() {
22079 int i = WCHAR_MIN; int j = WCHAR_MAX;
22080 ; return 0; }
22082 if { (eval echo configure:22083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22083 rm -rf conftest*
22084 has_wchar_minmax=yes
22085 else
22086 echo "configure: failed program was:" >&5
22087 cat conftest.$ac_ext >&5
22088 rm -rf conftest*
22089 has_wchar_minmax=no
22091 rm -f conftest*
22092 echo "$ac_t""$has_wchar_minmax" 1>&6
22094 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22095 echo "configure:22096: checking for WEOF" >&5
22096 cat > conftest.$ac_ext <<EOF
22097 #line 22098 "configure"
22098 #include "confdefs.h"
22100 #include <wchar.h>
22101 #include <stddef.h>
22102 int main() {
22103 wint_t i = WEOF;
22104 ; return 0; }
22106 if { (eval echo configure:22107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22107 rm -rf conftest*
22108 has_weof=yes
22109 else
22110 echo "configure: failed program was:" >&5
22111 cat conftest.$ac_ext >&5
22112 rm -rf conftest*
22113 has_weof=no
22115 rm -f conftest*
22116 echo "$ac_t""$has_weof" 1>&6
22118 ac_wfuncs=yes
22119 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22122 echo "configure:22123: checking for $ac_func" >&5
22123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22124 echo $ac_n "(cached) $ac_c" 1>&6
22125 else
22126 cat > conftest.$ac_ext <<EOF
22127 #line 22128 "configure"
22128 #include "confdefs.h"
22129 /* System header to define __stub macros and hopefully few prototypes,
22130 which can conflict with char $ac_func(); below. */
22131 #include <assert.h>
22132 /* Override any gcc2 internal prototype to avoid an error. */
22133 /* We use char because int might match the return type of a gcc2
22134 builtin and then its argument prototype would still apply. */
22135 char $ac_func();
22137 int main() {
22139 /* The GNU C library defines this for functions which it implements
22140 to always fail with ENOSYS. Some functions are actually named
22141 something starting with __ and the normal name is an alias. */
22142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22143 choke me
22144 #else
22145 $ac_func();
22146 #endif
22148 ; return 0; }
22150 if { (eval echo configure:22151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22151 rm -rf conftest*
22152 eval "ac_cv_func_$ac_func=yes"
22153 else
22154 echo "configure: failed program was:" >&5
22155 cat conftest.$ac_ext >&5
22156 rm -rf conftest*
22157 eval "ac_cv_func_$ac_func=no"
22159 rm -f conftest*
22162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22163 echo "$ac_t""yes" 1>&6
22164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22165 cat >> confdefs.h <<EOF
22166 #define $ac_tr_func 1
22169 else
22170 echo "$ac_t""no" 1>&6
22172 ac_wfuncs=no
22174 done
22177 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22178 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22179 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22180 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22181 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22182 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22185 echo "configure:22186: checking for $ac_func" >&5
22186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22187 echo $ac_n "(cached) $ac_c" 1>&6
22188 else
22189 cat > conftest.$ac_ext <<EOF
22190 #line 22191 "configure"
22191 #include "confdefs.h"
22192 /* System header to define __stub macros and hopefully few prototypes,
22193 which can conflict with char $ac_func(); below. */
22194 #include <assert.h>
22195 /* Override any gcc2 internal prototype to avoid an error. */
22196 /* We use char because int might match the return type of a gcc2
22197 builtin and then its argument prototype would still apply. */
22198 char $ac_func();
22200 int main() {
22202 /* The GNU C library defines this for functions which it implements
22203 to always fail with ENOSYS. Some functions are actually named
22204 something starting with __ and the normal name is an alias. */
22205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22206 choke me
22207 #else
22208 $ac_func();
22209 #endif
22211 ; return 0; }
22213 if { (eval echo configure:22214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22214 rm -rf conftest*
22215 eval "ac_cv_func_$ac_func=yes"
22216 else
22217 echo "configure: failed program was:" >&5
22218 cat conftest.$ac_ext >&5
22219 rm -rf conftest*
22220 eval "ac_cv_func_$ac_func=no"
22222 rm -f conftest*
22225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22226 echo "$ac_t""yes" 1>&6
22227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22228 cat >> confdefs.h <<EOF
22229 #define $ac_tr_func 1
22232 else
22233 echo "$ac_t""no" 1>&6
22235 ac_wfuncs=no
22237 done
22240 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22241 echo "configure:22242: checking for ISO C99 wchar_t support" >&5
22242 if test x"$has_weof" = xyes &&
22243 test x"$has_wchar_minmax" = xyes &&
22244 test x"$ac_wfuncs" = xyes; then
22245 ac_isoC99_wchar_t=yes
22246 else
22247 ac_isoC99_wchar_t=no
22249 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22251 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22252 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22253 echo "configure:22254: checking for iconv.h" >&5
22254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22255 echo $ac_n "(cached) $ac_c" 1>&6
22256 else
22257 cat > conftest.$ac_ext <<EOF
22258 #line 22259 "configure"
22259 #include "confdefs.h"
22260 #include <iconv.h>
22262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22263 { (eval echo configure:22264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22265 if test -z "$ac_err"; then
22266 rm -rf conftest*
22267 eval "ac_cv_header_$ac_safe=yes"
22268 else
22269 echo "$ac_err" >&5
22270 echo "configure: failed program was:" >&5
22271 cat conftest.$ac_ext >&5
22272 rm -rf conftest*
22273 eval "ac_cv_header_$ac_safe=no"
22275 rm -f conftest*
22277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22278 echo "$ac_t""yes" 1>&6
22279 ac_has_iconv_h=yes
22280 else
22281 echo "$ac_t""no" 1>&6
22282 ac_has_iconv_h=no
22285 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22286 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22287 echo "configure:22288: checking for langinfo.h" >&5
22288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22289 echo $ac_n "(cached) $ac_c" 1>&6
22290 else
22291 cat > conftest.$ac_ext <<EOF
22292 #line 22293 "configure"
22293 #include "confdefs.h"
22294 #include <langinfo.h>
22296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22297 { (eval echo configure:22298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22299 if test -z "$ac_err"; then
22300 rm -rf conftest*
22301 eval "ac_cv_header_$ac_safe=yes"
22302 else
22303 echo "$ac_err" >&5
22304 echo "configure: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22306 rm -rf conftest*
22307 eval "ac_cv_header_$ac_safe=no"
22309 rm -f conftest*
22311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22312 echo "$ac_t""yes" 1>&6
22313 ac_has_langinfo_h=yes
22314 else
22315 echo "$ac_t""no" 1>&6
22316 ac_has_langinfo_h=no
22320 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22321 echo "configure:22322: checking for iconv in -liconv" >&5
22322 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22324 echo $ac_n "(cached) $ac_c" 1>&6
22325 else
22326 ac_save_LIBS="$LIBS"
22327 LIBS="-liconv $LIBS"
22328 cat > conftest.$ac_ext <<EOF
22329 #line 22330 "configure"
22330 #include "confdefs.h"
22331 /* Override any gcc2 internal prototype to avoid an error. */
22332 /* We use char because int might match the return type of a gcc2
22333 builtin and then its argument prototype would still apply. */
22334 char iconv();
22336 int main() {
22337 iconv()
22338 ; return 0; }
22340 if { (eval echo configure:22341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22341 rm -rf conftest*
22342 eval "ac_cv_lib_$ac_lib_var=yes"
22343 else
22344 echo "configure: failed program was:" >&5
22345 cat conftest.$ac_ext >&5
22346 rm -rf conftest*
22347 eval "ac_cv_lib_$ac_lib_var=no"
22349 rm -f conftest*
22350 LIBS="$ac_save_LIBS"
22353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22354 echo "$ac_t""yes" 1>&6
22355 libiconv="-liconv"
22356 else
22357 echo "$ac_t""no" 1>&6
22360 ac_save_LIBS="$LIBS"
22361 LIBS="$LIBS $libiconv"
22363 for ac_func in iconv_open iconv_close iconv nl_langinfo
22365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22366 echo "configure:22367: checking for $ac_func" >&5
22367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22368 echo $ac_n "(cached) $ac_c" 1>&6
22369 else
22370 cat > conftest.$ac_ext <<EOF
22371 #line 22372 "configure"
22372 #include "confdefs.h"
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char $ac_func(); below. */
22375 #include <assert.h>
22376 /* Override any gcc2 internal prototype to avoid an error. */
22377 /* We use char because int might match the return type of a gcc2
22378 builtin and then its argument prototype would still apply. */
22379 char $ac_func();
22381 int main() {
22383 /* The GNU C library defines this for functions which it implements
22384 to always fail with ENOSYS. Some functions are actually named
22385 something starting with __ and the normal name is an alias. */
22386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22387 choke me
22388 #else
22389 $ac_func();
22390 #endif
22392 ; return 0; }
22394 if { (eval echo configure:22395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22395 rm -rf conftest*
22396 eval "ac_cv_func_$ac_func=yes"
22397 else
22398 echo "configure: failed program was:" >&5
22399 cat conftest.$ac_ext >&5
22400 rm -rf conftest*
22401 eval "ac_cv_func_$ac_func=no"
22403 rm -f conftest*
22406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22407 echo "$ac_t""yes" 1>&6
22408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22409 cat >> confdefs.h <<EOF
22410 #define $ac_tr_func 1
22413 ac_XPG2funcs=yes
22414 else
22415 echo "$ac_t""no" 1>&6
22416 ac_XPG2funcs=no
22418 done
22421 LIBS="$ac_save_LIBS"
22423 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22424 echo "configure:22425: checking for XPG2 wchar_t support" >&5
22425 if test x"$ac_has_iconv_h" = xyes &&
22426 test x"$ac_has_langinfo_h" = xyes &&
22427 test x"$ac_XPG2funcs" = xyes; then
22428 ac_XPG2_wchar_t=yes
22429 else
22430 ac_XPG2_wchar_t=no
22432 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22434 if test x"$ac_isoC99_wchar_t" = xyes &&
22435 test x"$ac_XPG2_wchar_t" = xyes; then
22436 cat >> confdefs.h <<\EOF
22437 #define _GLIBCPP_USE_WCHAR_T 1
22440 enable_wchar_t=yes
22443 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22444 echo "configure:22445: checking for enabled wchar_t specializations" >&5
22445 echo "$ac_t""$enable_wchar_t" 1>&6
22448 if test "$enable_wchar_t" = yes; then
22449 GLIBCPP_TEST_WCHAR_T_TRUE=
22450 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22451 else
22452 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22453 GLIBCPP_TEST_WCHAR_T_FALSE=
22457 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22458 ac_save_CXXFLAGS="$CXXFLAGS"
22459 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22462 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22463 echo "configure:22464: checking for strtold declaration" >&5
22464 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22465 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22466 echo $ac_n "(cached) $ac_c" 1>&6
22467 else
22470 ac_ext=C
22471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22472 ac_cpp='$CXXCPP $CPPFLAGS'
22473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22475 cross_compiling=$ac_cv_prog_cxx_cross
22477 cat > conftest.$ac_ext <<EOF
22478 #line 22479 "configure"
22479 #include "confdefs.h"
22480 #include <stdlib.h>
22481 int main() {
22482 strtold(0, 0);
22483 ; return 0; }
22485 if { (eval echo configure:22486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22486 rm -rf conftest*
22487 glibcpp_cv_func_strtold_use=yes
22488 else
22489 echo "configure: failed program was:" >&5
22490 cat conftest.$ac_ext >&5
22491 rm -rf conftest*
22492 glibcpp_cv_func_strtold_use=no
22494 rm -f conftest*
22495 ac_ext=c
22496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22497 ac_cpp='$CPP $CPPFLAGS'
22498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22500 cross_compiling=$ac_cv_prog_cc_cross
22506 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22507 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22508 for ac_func in strtold
22510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22511 echo "configure:22512: checking for $ac_func" >&5
22512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22513 echo $ac_n "(cached) $ac_c" 1>&6
22514 else
22515 cat > conftest.$ac_ext <<EOF
22516 #line 22517 "configure"
22517 #include "confdefs.h"
22518 /* System header to define __stub macros and hopefully few prototypes,
22519 which can conflict with char $ac_func(); below. */
22520 #include <assert.h>
22521 /* Override any gcc2 internal prototype to avoid an error. */
22522 /* We use char because int might match the return type of a gcc2
22523 builtin and then its argument prototype would still apply. */
22524 char $ac_func();
22526 int main() {
22528 /* The GNU C library defines this for functions which it implements
22529 to always fail with ENOSYS. Some functions are actually named
22530 something starting with __ and the normal name is an alias. */
22531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22532 choke me
22533 #else
22534 $ac_func();
22535 #endif
22537 ; return 0; }
22539 if { (eval echo configure:22540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22540 rm -rf conftest*
22541 eval "ac_cv_func_$ac_func=yes"
22542 else
22543 echo "configure: failed program was:" >&5
22544 cat conftest.$ac_ext >&5
22545 rm -rf conftest*
22546 eval "ac_cv_func_$ac_func=no"
22548 rm -f conftest*
22551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22552 echo "$ac_t""yes" 1>&6
22553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22554 cat >> confdefs.h <<EOF
22555 #define $ac_tr_func 1
22558 else
22559 echo "$ac_t""no" 1>&6
22561 done
22566 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22567 echo "configure:22568: checking for strtof declaration" >&5
22568 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22569 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22570 echo $ac_n "(cached) $ac_c" 1>&6
22571 else
22574 ac_ext=C
22575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22576 ac_cpp='$CXXCPP $CPPFLAGS'
22577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22579 cross_compiling=$ac_cv_prog_cxx_cross
22581 cat > conftest.$ac_ext <<EOF
22582 #line 22583 "configure"
22583 #include "confdefs.h"
22584 #include <stdlib.h>
22585 int main() {
22586 strtof(0, 0);
22587 ; return 0; }
22589 if { (eval echo configure:22590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22590 rm -rf conftest*
22591 glibcpp_cv_func_strtof_use=yes
22592 else
22593 echo "configure: failed program was:" >&5
22594 cat conftest.$ac_ext >&5
22595 rm -rf conftest*
22596 glibcpp_cv_func_strtof_use=no
22598 rm -f conftest*
22599 ac_ext=c
22600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22601 ac_cpp='$CPP $CPPFLAGS'
22602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22604 cross_compiling=$ac_cv_prog_cc_cross
22610 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22611 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22612 for ac_func in strtof
22614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22615 echo "configure:22616: checking for $ac_func" >&5
22616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22617 echo $ac_n "(cached) $ac_c" 1>&6
22618 else
22619 cat > conftest.$ac_ext <<EOF
22620 #line 22621 "configure"
22621 #include "confdefs.h"
22622 /* System header to define __stub macros and hopefully few prototypes,
22623 which can conflict with char $ac_func(); below. */
22624 #include <assert.h>
22625 /* Override any gcc2 internal prototype to avoid an error. */
22626 /* We use char because int might match the return type of a gcc2
22627 builtin and then its argument prototype would still apply. */
22628 char $ac_func();
22630 int main() {
22632 /* The GNU C library defines this for functions which it implements
22633 to always fail with ENOSYS. Some functions are actually named
22634 something starting with __ and the normal name is an alias. */
22635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22636 choke me
22637 #else
22638 $ac_func();
22639 #endif
22641 ; return 0; }
22643 if { (eval echo configure:22644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22644 rm -rf conftest*
22645 eval "ac_cv_func_$ac_func=yes"
22646 else
22647 echo "configure: failed program was:" >&5
22648 cat conftest.$ac_ext >&5
22649 rm -rf conftest*
22650 eval "ac_cv_func_$ac_func=no"
22652 rm -f conftest*
22655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22656 echo "$ac_t""yes" 1>&6
22657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22658 cat >> confdefs.h <<EOF
22659 #define $ac_tr_func 1
22662 else
22663 echo "$ac_t""no" 1>&6
22665 done
22669 for ac_func in drand48
22671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22672 echo "configure:22673: checking for $ac_func" >&5
22673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22674 echo $ac_n "(cached) $ac_c" 1>&6
22675 else
22676 cat > conftest.$ac_ext <<EOF
22677 #line 22678 "configure"
22678 #include "confdefs.h"
22679 /* System header to define __stub macros and hopefully few prototypes,
22680 which can conflict with char $ac_func(); below. */
22681 #include <assert.h>
22682 /* Override any gcc2 internal prototype to avoid an error. */
22683 /* We use char because int might match the return type of a gcc2
22684 builtin and then its argument prototype would still apply. */
22685 char $ac_func();
22687 int main() {
22689 /* The GNU C library defines this for functions which it implements
22690 to always fail with ENOSYS. Some functions are actually named
22691 something starting with __ and the normal name is an alias. */
22692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22693 choke me
22694 #else
22695 $ac_func();
22696 #endif
22698 ; return 0; }
22700 if { (eval echo configure:22701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22701 rm -rf conftest*
22702 eval "ac_cv_func_$ac_func=yes"
22703 else
22704 echo "configure: failed program was:" >&5
22705 cat conftest.$ac_ext >&5
22706 rm -rf conftest*
22707 eval "ac_cv_func_$ac_func=no"
22709 rm -f conftest*
22712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22713 echo "$ac_t""yes" 1>&6
22714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22715 cat >> confdefs.h <<EOF
22716 #define $ac_tr_func 1
22719 else
22720 echo "$ac_t""no" 1>&6
22722 done
22725 CXXFLAGS="$ac_save_CXXFLAGS"
22728 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22729 ac_save_CXXFLAGS="$CXXFLAGS"
22730 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22733 echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22734 echo "configure:22735: checking for isatty declaration" >&5
22735 if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22736 if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22737 echo $ac_n "(cached) $ac_c" 1>&6
22738 else
22741 ac_ext=C
22742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22743 ac_cpp='$CXXCPP $CPPFLAGS'
22744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22746 cross_compiling=$ac_cv_prog_cxx_cross
22748 cat > conftest.$ac_ext <<EOF
22749 #line 22750 "configure"
22750 #include "confdefs.h"
22751 #include <unistd.h>
22752 int main() {
22753 isatty(0);
22754 ; return 0; }
22756 if { (eval echo configure:22757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22757 rm -rf conftest*
22758 glibcpp_cv_func_isatty_use=yes
22759 else
22760 echo "configure: failed program was:" >&5
22761 cat conftest.$ac_ext >&5
22762 rm -rf conftest*
22763 glibcpp_cv_func_isatty_use=no
22765 rm -f conftest*
22766 ac_ext=c
22767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22768 ac_cpp='$CPP $CPPFLAGS'
22769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22771 cross_compiling=$ac_cv_prog_cc_cross
22777 echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22778 if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22779 for ac_func in isatty
22781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22782 echo "configure:22783: checking for $ac_func" >&5
22783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22784 echo $ac_n "(cached) $ac_c" 1>&6
22785 else
22786 cat > conftest.$ac_ext <<EOF
22787 #line 22788 "configure"
22788 #include "confdefs.h"
22789 /* System header to define __stub macros and hopefully few prototypes,
22790 which can conflict with char $ac_func(); below. */
22791 #include <assert.h>
22792 /* Override any gcc2 internal prototype to avoid an error. */
22793 /* We use char because int might match the return type of a gcc2
22794 builtin and then its argument prototype would still apply. */
22795 char $ac_func();
22797 int main() {
22799 /* The GNU C library defines this for functions which it implements
22800 to always fail with ENOSYS. Some functions are actually named
22801 something starting with __ and the normal name is an alias. */
22802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22803 choke me
22804 #else
22805 $ac_func();
22806 #endif
22808 ; return 0; }
22810 if { (eval echo configure:22811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22811 rm -rf conftest*
22812 eval "ac_cv_func_$ac_func=yes"
22813 else
22814 echo "configure: failed program was:" >&5
22815 cat conftest.$ac_ext >&5
22816 rm -rf conftest*
22817 eval "ac_cv_func_$ac_func=no"
22819 rm -f conftest*
22822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22823 echo "$ac_t""yes" 1>&6
22824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22825 cat >> confdefs.h <<EOF
22826 #define $ac_tr_func 1
22829 else
22830 echo "$ac_t""no" 1>&6
22832 done
22837 CXXFLAGS="$ac_save_CXXFLAGS"
22840 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22841 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22842 echo "configure:22843: checking for locale.h" >&5
22843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22844 echo $ac_n "(cached) $ac_c" 1>&6
22845 else
22846 cat > conftest.$ac_ext <<EOF
22847 #line 22848 "configure"
22848 #include "confdefs.h"
22849 #include <locale.h>
22851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22852 { (eval echo configure:22853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22854 if test -z "$ac_err"; then
22855 rm -rf conftest*
22856 eval "ac_cv_header_$ac_safe=yes"
22857 else
22858 echo "$ac_err" >&5
22859 echo "configure: failed program was:" >&5
22860 cat conftest.$ac_ext >&5
22861 rm -rf conftest*
22862 eval "ac_cv_header_$ac_safe=no"
22864 rm -f conftest*
22866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22867 echo "$ac_t""yes" 1>&6
22869 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22870 echo "configure:22871: checking for LC_MESSAGES" >&5
22871 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22872 echo $ac_n "(cached) $ac_c" 1>&6
22873 else
22874 cat > conftest.$ac_ext <<EOF
22875 #line 22876 "configure"
22876 #include "confdefs.h"
22877 #include <locale.h>
22878 int main() {
22879 return LC_MESSAGES
22880 ; return 0; }
22882 if { (eval echo configure:22883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22883 rm -rf conftest*
22884 ac_cv_val_LC_MESSAGES=yes
22885 else
22886 echo "configure: failed program was:" >&5
22887 cat conftest.$ac_ext >&5
22888 rm -rf conftest*
22889 ac_cv_val_LC_MESSAGES=no
22891 rm -f conftest*
22894 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22895 if test $ac_cv_val_LC_MESSAGES = yes; then
22896 cat >> confdefs.h <<\EOF
22897 #define HAVE_LC_MESSAGES 1
22902 else
22903 echo "$ac_t""no" 1>&6
22908 cat > conftest.$ac_ext <<EOF
22909 #line 22910 "configure"
22910 #include "confdefs.h"
22912 #include <setjmp.h>
22914 int main() {
22915 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22916 ; return 0; }
22918 if { (eval echo configure:22919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22919 rm -rf conftest*
22920 cat >> confdefs.h <<\EOF
22921 #define HAVE_SIGSETJMP 1
22925 else
22926 echo "configure: failed program was:" >&5
22927 cat conftest.$ac_ext >&5
22929 rm -f conftest*
22931 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22935 echo "configure:22936: checking for $ac_hdr" >&5
22936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22937 echo $ac_n "(cached) $ac_c" 1>&6
22938 else
22939 cat > conftest.$ac_ext <<EOF
22940 #line 22941 "configure"
22941 #include "confdefs.h"
22942 #include <$ac_hdr>
22944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22945 { (eval echo configure:22946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22947 if test -z "$ac_err"; then
22948 rm -rf conftest*
22949 eval "ac_cv_header_$ac_safe=yes"
22950 else
22951 echo "$ac_err" >&5
22952 echo "configure: failed program was:" >&5
22953 cat conftest.$ac_ext >&5
22954 rm -rf conftest*
22955 eval "ac_cv_header_$ac_safe=no"
22957 rm -f conftest*
22959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22960 echo "$ac_t""yes" 1>&6
22961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22962 cat >> confdefs.h <<EOF
22963 #define $ac_tr_hdr 1
22966 else
22967 echo "$ac_t""no" 1>&6
22969 done
22971 for ac_func in getpagesize
22973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22974 echo "configure:22975: checking for $ac_func" >&5
22975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22976 echo $ac_n "(cached) $ac_c" 1>&6
22977 else
22978 cat > conftest.$ac_ext <<EOF
22979 #line 22980 "configure"
22980 #include "confdefs.h"
22981 /* System header to define __stub macros and hopefully few prototypes,
22982 which can conflict with char $ac_func(); below. */
22983 #include <assert.h>
22984 /* Override any gcc2 internal prototype to avoid an error. */
22985 /* We use char because int might match the return type of a gcc2
22986 builtin and then its argument prototype would still apply. */
22987 char $ac_func();
22989 int main() {
22991 /* The GNU C library defines this for functions which it implements
22992 to always fail with ENOSYS. Some functions are actually named
22993 something starting with __ and the normal name is an alias. */
22994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22995 choke me
22996 #else
22997 $ac_func();
22998 #endif
23000 ; return 0; }
23002 if { (eval echo configure:23003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23003 rm -rf conftest*
23004 eval "ac_cv_func_$ac_func=yes"
23005 else
23006 echo "configure: failed program was:" >&5
23007 cat conftest.$ac_ext >&5
23008 rm -rf conftest*
23009 eval "ac_cv_func_$ac_func=no"
23011 rm -f conftest*
23014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23015 echo "$ac_t""yes" 1>&6
23016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23017 cat >> confdefs.h <<EOF
23018 #define $ac_tr_func 1
23021 else
23022 echo "$ac_t""no" 1>&6
23024 done
23026 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23027 echo "configure:23028: checking for working mmap" >&5
23028 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23029 echo $ac_n "(cached) $ac_c" 1>&6
23030 else
23031 if test "$cross_compiling" = yes; then
23032 ac_cv_func_mmap_fixed_mapped=no
23033 else
23034 cat > conftest.$ac_ext <<EOF
23035 #line 23036 "configure"
23036 #include "confdefs.h"
23038 /* Thanks to Mike Haertel and Jim Avera for this test.
23039 Here is a matrix of mmap possibilities:
23040 mmap private not fixed
23041 mmap private fixed at somewhere currently unmapped
23042 mmap private fixed at somewhere already mapped
23043 mmap shared not fixed
23044 mmap shared fixed at somewhere currently unmapped
23045 mmap shared fixed at somewhere already mapped
23046 For private mappings, we should verify that changes cannot be read()
23047 back from the file, nor mmap's back from the file at a different
23048 address. (There have been systems where private was not correctly
23049 implemented like the infamous i386 svr4.0, and systems where the
23050 VM page cache was not coherent with the filesystem buffer cache
23051 like early versions of FreeBSD and possibly contemporary NetBSD.)
23052 For shared mappings, we should conversely verify that changes get
23053 propogated back to all the places they're supposed to be.
23055 Grep wants private fixed already mapped.
23056 The main things grep needs to know about mmap are:
23057 * does it exist and is it safe to write into the mmap'd area
23058 * how to use it (BSD variants) */
23059 #include <sys/types.h>
23060 #include <fcntl.h>
23061 #include <sys/mman.h>
23063 #if HAVE_SYS_TYPES_H
23064 # include <sys/types.h>
23065 #endif
23067 #if HAVE_STDLIB_H
23068 # include <stdlib.h>
23069 #endif
23071 #if HAVE_SYS_STAT_H
23072 # include <sys/stat.h>
23073 #endif
23075 #if HAVE_UNISTD_H
23076 # include <unistd.h>
23077 #endif
23079 /* This mess was copied from the GNU getpagesize.h. */
23080 #ifndef HAVE_GETPAGESIZE
23082 /* Assume that all systems that can run configure have sys/param.h. */
23083 # ifndef HAVE_SYS_PARAM_H
23084 # define HAVE_SYS_PARAM_H 1
23085 # endif
23087 # ifdef _SC_PAGESIZE
23088 # define getpagesize() sysconf(_SC_PAGESIZE)
23089 # else /* no _SC_PAGESIZE */
23090 # ifdef HAVE_SYS_PARAM_H
23091 # include <sys/param.h>
23092 # ifdef EXEC_PAGESIZE
23093 # define getpagesize() EXEC_PAGESIZE
23094 # else /* no EXEC_PAGESIZE */
23095 # ifdef NBPG
23096 # define getpagesize() NBPG * CLSIZE
23097 # ifndef CLSIZE
23098 # define CLSIZE 1
23099 # endif /* no CLSIZE */
23100 # else /* no NBPG */
23101 # ifdef NBPC
23102 # define getpagesize() NBPC
23103 # else /* no NBPC */
23104 # ifdef PAGESIZE
23105 # define getpagesize() PAGESIZE
23106 # endif /* PAGESIZE */
23107 # endif /* no NBPC */
23108 # endif /* no NBPG */
23109 # endif /* no EXEC_PAGESIZE */
23110 # else /* no HAVE_SYS_PARAM_H */
23111 # define getpagesize() 8192 /* punt totally */
23112 # endif /* no HAVE_SYS_PARAM_H */
23113 # endif /* no _SC_PAGESIZE */
23115 #endif /* no HAVE_GETPAGESIZE */
23117 #ifdef __cplusplus
23118 extern "C" { void *malloc(unsigned); }
23119 #else
23120 char *malloc();
23121 #endif
23124 main()
23126 char *data, *data2, *data3;
23127 int i, pagesize;
23128 int fd;
23130 pagesize = getpagesize();
23133 * First, make a file with some known garbage in it.
23135 data = malloc(pagesize);
23136 if (!data)
23137 exit(1);
23138 for (i = 0; i < pagesize; ++i)
23139 *(data + i) = rand();
23140 umask(0);
23141 fd = creat("conftestmmap", 0600);
23142 if (fd < 0)
23143 exit(1);
23144 if (write(fd, data, pagesize) != pagesize)
23145 exit(1);
23146 close(fd);
23149 * Next, try to mmap the file at a fixed address which
23150 * already has something else allocated at it. If we can,
23151 * also make sure that we see the same garbage.
23153 fd = open("conftestmmap", O_RDWR);
23154 if (fd < 0)
23155 exit(1);
23156 data2 = malloc(2 * pagesize);
23157 if (!data2)
23158 exit(1);
23159 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23160 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23162 exit(1);
23163 for (i = 0; i < pagesize; ++i)
23164 if (*(data + i) != *(data2 + i))
23165 exit(1);
23168 * Finally, make sure that changes to the mapped area
23169 * do not percolate back to the file as seen by read().
23170 * (This is a bug on some variants of i386 svr4.0.)
23172 for (i = 0; i < pagesize; ++i)
23173 *(data2 + i) = *(data2 + i) + 1;
23174 data3 = malloc(pagesize);
23175 if (!data3)
23176 exit(1);
23177 if (read(fd, data3, pagesize) != pagesize)
23178 exit(1);
23179 for (i = 0; i < pagesize; ++i)
23180 if (*(data + i) != *(data3 + i))
23181 exit(1);
23182 close(fd);
23183 unlink("conftestmmap");
23184 exit(0);
23188 if { (eval echo configure:23189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23189 then
23190 ac_cv_func_mmap_fixed_mapped=yes
23191 else
23192 echo "configure: failed program was:" >&5
23193 cat conftest.$ac_ext >&5
23194 rm -fr conftest*
23195 ac_cv_func_mmap_fixed_mapped=no
23197 rm -fr conftest*
23202 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23203 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23204 cat >> confdefs.h <<\EOF
23205 #define HAVE_MMAP 1
23211 # Establish limits on memory usage during 'make check'
23214 setrlimit_have_headers=yes
23215 for ac_hdr in unistd.h sys/time.h sys/resource.h
23217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23219 echo "configure:23220: checking for $ac_hdr" >&5
23220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23221 echo $ac_n "(cached) $ac_c" 1>&6
23222 else
23223 cat > conftest.$ac_ext <<EOF
23224 #line 23225 "configure"
23225 #include "confdefs.h"
23226 #include <$ac_hdr>
23228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23229 { (eval echo configure:23230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23231 if test -z "$ac_err"; then
23232 rm -rf conftest*
23233 eval "ac_cv_header_$ac_safe=yes"
23234 else
23235 echo "$ac_err" >&5
23236 echo "configure: failed program was:" >&5
23237 cat conftest.$ac_ext >&5
23238 rm -rf conftest*
23239 eval "ac_cv_header_$ac_safe=no"
23241 rm -f conftest*
23243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23244 echo "$ac_t""yes" 1>&6
23245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23246 cat >> confdefs.h <<EOF
23247 #define $ac_tr_hdr 1
23250 else
23251 echo "$ac_t""no" 1>&6
23252 setrlimit_have_headers=no
23254 done
23256 # If don't have the headers, then we can't run the tests now, and we
23257 # won't be seeing any of these during testsuite compilation.
23258 if test $setrlimit_have_headers = yes; then
23259 # Can't do these in a loop, else the resulting syntax is wrong.
23261 cat > conftest.$ac_ext <<EOF
23262 #line 23263 "configure"
23263 #include "confdefs.h"
23264 #include <unistd.h>
23265 #include <sys/time.h>
23266 #include <sys/resource.h>
23268 int main() {
23269 int f = RLIMIT_DATA ;
23270 ; return 0; }
23272 if { (eval echo configure:23273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23273 rm -rf conftest*
23274 glibcpp_mresult=1
23275 else
23276 echo "configure: failed program was:" >&5
23277 cat conftest.$ac_ext >&5
23278 rm -rf conftest*
23279 glibcpp_mresult=0
23281 rm -f conftest*
23282 cat >> confdefs.h <<EOF
23283 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23288 cat > conftest.$ac_ext <<EOF
23289 #line 23290 "configure"
23290 #include "confdefs.h"
23291 #include <unistd.h>
23292 #include <sys/time.h>
23293 #include <sys/resource.h>
23295 int main() {
23296 int f = RLIMIT_RSS ;
23297 ; return 0; }
23299 if { (eval echo configure:23300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23300 rm -rf conftest*
23301 glibcpp_mresult=1
23302 else
23303 echo "configure: failed program was:" >&5
23304 cat conftest.$ac_ext >&5
23305 rm -rf conftest*
23306 glibcpp_mresult=0
23308 rm -f conftest*
23309 cat >> confdefs.h <<EOF
23310 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23315 cat > conftest.$ac_ext <<EOF
23316 #line 23317 "configure"
23317 #include "confdefs.h"
23318 #include <unistd.h>
23319 #include <sys/time.h>
23320 #include <sys/resource.h>
23322 int main() {
23323 int f = RLIMIT_VMEM ;
23324 ; return 0; }
23326 if { (eval echo configure:23327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23327 rm -rf conftest*
23328 glibcpp_mresult=1
23329 else
23330 echo "configure: failed program was:" >&5
23331 cat conftest.$ac_ext >&5
23332 rm -rf conftest*
23333 glibcpp_mresult=0
23335 rm -f conftest*
23336 cat >> confdefs.h <<EOF
23337 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23342 cat > conftest.$ac_ext <<EOF
23343 #line 23344 "configure"
23344 #include "confdefs.h"
23345 #include <unistd.h>
23346 #include <sys/time.h>
23347 #include <sys/resource.h>
23349 int main() {
23350 int f = RLIMIT_AS ;
23351 ; return 0; }
23353 if { (eval echo configure:23354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23354 rm -rf conftest*
23355 glibcpp_mresult=1
23356 else
23357 echo "configure: failed program was:" >&5
23358 cat conftest.$ac_ext >&5
23359 rm -rf conftest*
23360 glibcpp_mresult=0
23362 rm -f conftest*
23363 cat >> confdefs.h <<EOF
23364 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23369 # Check for rlimit, setrlimit.
23370 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23371 echo $ac_n "(cached) $ac_c" 1>&6
23372 else
23374 cat > conftest.$ac_ext <<EOF
23375 #line 23376 "configure"
23376 #include "confdefs.h"
23377 #include <unistd.h>
23378 #include <sys/time.h>
23379 #include <sys/resource.h>
23381 int main() {
23382 struct rlimit r; setrlimit(0, &r);
23383 ; return 0; }
23385 if { (eval echo configure:23386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23386 rm -rf conftest*
23387 ac_setrlimit=yes
23388 else
23389 echo "configure: failed program was:" >&5
23390 cat conftest.$ac_ext >&5
23391 rm -rf conftest*
23392 ac_setrlimit=no
23394 rm -f conftest*
23400 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23401 echo "configure:23402: checking for testsuite memory limit support" >&5
23402 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23403 ac_mem_limits=yes
23404 cat >> confdefs.h <<\EOF
23405 #define _GLIBCPP_MEM_LIMITS 1
23408 else
23409 ac_mem_limits=no
23411 echo "$ac_t""$ac_mem_limits" 1>&6
23414 # Look for setenv, so that extended locale tests can be performed.
23416 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23417 echo "configure:23418: checking for setenv declaration" >&5
23418 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23419 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23420 echo $ac_n "(cached) $ac_c" 1>&6
23421 else
23424 ac_ext=C
23425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23426 ac_cpp='$CXXCPP $CPPFLAGS'
23427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23429 cross_compiling=$ac_cv_prog_cxx_cross
23431 cat > conftest.$ac_ext <<EOF
23432 #line 23433 "configure"
23433 #include "confdefs.h"
23434 #include <stdlib.h>
23435 int main() {
23436 setenv(0, 0, 0);
23437 ; return 0; }
23439 if { (eval echo configure:23440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23440 rm -rf conftest*
23441 glibcpp_cv_func_setenv_use=yes
23442 else
23443 echo "configure: failed program was:" >&5
23444 cat conftest.$ac_ext >&5
23445 rm -rf conftest*
23446 glibcpp_cv_func_setenv_use=no
23448 rm -f conftest*
23449 ac_ext=c
23450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23451 ac_cpp='$CPP $CPPFLAGS'
23452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23454 cross_compiling=$ac_cv_prog_cc_cross
23460 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23461 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23462 for ac_func in setenv
23464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23465 echo "configure:23466: checking for $ac_func" >&5
23466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23467 echo $ac_n "(cached) $ac_c" 1>&6
23468 else
23469 cat > conftest.$ac_ext <<EOF
23470 #line 23471 "configure"
23471 #include "confdefs.h"
23472 /* System header to define __stub macros and hopefully few prototypes,
23473 which can conflict with char $ac_func(); below. */
23474 #include <assert.h>
23475 /* Override any gcc2 internal prototype to avoid an error. */
23476 /* We use char because int might match the return type of a gcc2
23477 builtin and then its argument prototype would still apply. */
23478 char $ac_func();
23480 int main() {
23482 /* The GNU C library defines this for functions which it implements
23483 to always fail with ENOSYS. Some functions are actually named
23484 something starting with __ and the normal name is an alias. */
23485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23486 choke me
23487 #else
23488 $ac_func();
23489 #endif
23491 ; return 0; }
23493 if { (eval echo configure:23494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23494 rm -rf conftest*
23495 eval "ac_cv_func_$ac_func=yes"
23496 else
23497 echo "configure: failed program was:" >&5
23498 cat conftest.$ac_ext >&5
23499 rm -rf conftest*
23500 eval "ac_cv_func_$ac_func=no"
23502 rm -f conftest*
23505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23506 echo "$ac_t""yes" 1>&6
23507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23508 cat >> confdefs.h <<EOF
23509 #define $ac_tr_func 1
23512 else
23513 echo "$ac_t""no" 1>&6
23515 done
23520 # Export file names for ABI checking.
23521 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23524 # Don't do ABI checking unless native.
23527 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23528 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23529 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23530 else
23531 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23532 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23537 # This depends on the possibly-skipped linker test above.
23538 # Check whether --enable-symvers or --disable-symvers was given.
23539 if test "${enable_symvers+set}" = set; then
23540 enableval="$enable_symvers"
23541 case "$enableval" in
23542 yes) enable_symvers=yes ;;
23543 no) enable_symvers=no ;;
23544 # other names here, just as sanity checks
23545 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23546 gnu) enable_symvers=$enableval ;;
23547 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23548 esac
23549 else
23550 enable_symvers=yes
23553 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23554 # don't know enough about $LD to do tricks...
23555 if test x$enable_shared = xno ||
23556 test "x$LD" = x ||
23557 test x$glibcpp_gnu_ld_version = x; then
23558 enable_symvers=no
23561 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23562 if test $enable_symvers != no; then
23563 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23564 echo "configure:23565: checking for shared libgcc" >&5
23565 ac_save_CFLAGS="$CFLAGS"
23566 CFLAGS=' -lgcc_s'
23567 cat > conftest.$ac_ext <<EOF
23568 #line 23569 "configure"
23569 #include "confdefs.h"
23571 int main() {
23572 return 0
23573 ; return 0; }
23575 if { (eval echo configure:23576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23576 rm -rf conftest*
23577 glibcpp_shared_libgcc=yes
23578 else
23579 echo "configure: failed program was:" >&5
23580 cat conftest.$ac_ext >&5
23581 rm -rf conftest*
23582 glibcpp_shared_libgcc=no
23584 rm -f conftest*
23585 CFLAGS="$ac_save_CFLAGS"
23586 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23589 # For GNU ld, we need at least this version. It's 2.12 in the same format
23590 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23591 glibcpp_min_gnu_ld_version=21200
23593 # Check to see if unspecified "yes" value can win, given results
23594 # above.
23595 if test $enable_symvers = yes ; then
23596 if test $with_gnu_ld = yes &&
23597 test $glibcpp_shared_libgcc = yes ;
23598 then
23599 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23600 enable_symvers=gnu
23601 else
23602 ac_test_CFLAGS="${CFLAGS+set}"
23603 ac_save_CFLAGS="$CFLAGS"
23604 CFLAGS='-shared -Wl,--version-script,conftest.map'
23605 enable_symvers=no
23607 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23609 cat > conftest.$ac_ext <<EOF
23610 #line 23611 "configure"
23611 #include "confdefs.h"
23612 int foo;
23613 int main() {
23615 ; return 0; }
23617 if { (eval echo configure:23618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23618 rm -rf conftest*
23619 enable_symvers=gnu
23620 else
23621 echo "configure: failed program was:" >&5
23622 cat conftest.$ac_ext >&5
23624 rm -f conftest*
23625 if test "$ac_test_CFLAGS" = set; then
23626 CFLAGS="$ac_save_CFLAGS"
23627 else
23628 # this is the suspicious part
23629 CFLAGS=''
23631 rm -f conftest.map
23633 else
23634 # just fail for now
23635 enable_symvers=no
23639 case $enable_symvers in
23641 SYMVER_MAP=config/linker-map.dummy
23643 gnu)
23644 SYMVER_MAP=config/linker-map.gnu
23645 cat >> confdefs.h <<\EOF
23646 #define _GLIBCPP_SYMVER 1
23650 esac
23655 if test $enable_symvers != no; then
23656 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23657 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23658 else
23659 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23660 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23662 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23663 echo "configure:23664: checking versioning on shared library symbols" >&5
23664 echo "$ac_t""$enable_symvers" 1>&6
23667 # Propagate the target-specific source directories through the build chain.
23668 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23669 # uses it, and it only gets used in this file.)
23670 OS_INC_SRCDIR=config/${os_include_dir}
23671 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23675 # Set up cross-compile flags
23678 if test "$CANADIAN" = yes; then
23679 CANADIAN_TRUE=
23680 CANADIAN_FALSE='#'
23681 else
23682 CANADIAN_TRUE='#'
23683 CANADIAN_FALSE=
23686 cat > confcache <<\EOF
23687 # This file is a shell script that caches the results of configure
23688 # tests run on this system so they can be shared between configure
23689 # scripts and configure runs. It is not useful on other systems.
23690 # If it contains results you don't want to keep, you may remove or edit it.
23692 # By default, configure uses ./config.cache as the cache file,
23693 # creating it if it does not exist already. You can give configure
23694 # the --cache-file=FILE option to use a different cache file; that is
23695 # what configure does when it calls configure scripts in
23696 # subdirectories, so they share the cache.
23697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23698 # config.status only pays attention to the cache file if you give it the
23699 # --recheck option to rerun configure.
23702 # The following way of writing the cache mishandles newlines in values,
23703 # but we know of no workaround that is simple, portable, and efficient.
23704 # So, don't put newlines in cache variables' values.
23705 # Ultrix sh set writes to stderr and can't be redirected directly,
23706 # and sets the high bit in the cache file unless we assign to the vars.
23707 (set) 2>&1 |
23708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23709 *ac_space=\ *)
23710 # `set' does not quote correctly, so add quotes (double-quote substitution
23711 # turns \\\\ into \\, and sed turns \\ into \).
23712 sed -n \
23713 -e "s/'/'\\\\''/g" \
23714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23717 # `set' quotes correctly as required by POSIX, so do not add quotes.
23718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23720 esac >> confcache
23721 if cmp -s $cache_file confcache; then
23723 else
23724 if test -w $cache_file; then
23725 echo "updating cache $cache_file"
23726 cat confcache > $cache_file
23727 else
23728 echo "not updating unwritable cache $cache_file"
23731 rm -f confcache
23734 if test "${multilib}" = "yes"; then
23735 multilib_arg="--enable-multilib"
23736 else
23737 multilib_arg=
23740 # Export all the install information
23742 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23743 # exported correctly in GLIBCPP_CONFIGURE.
23744 glibcpp_toolexecdir=no
23745 glibcpp_toolexeclibdir=no
23746 glibcpp_prefixdir=${prefix}
23748 # Process the option --with-gxx-include-dir=<path to include-files directory>
23749 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23750 echo "configure:23751: checking for --with-gxx-include-dir" >&5
23751 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23752 if test "${with_gxx_include_dir+set}" = set; then
23753 withval="$with_gxx_include_dir"
23754 case "${withval}" in
23755 yes)
23756 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23757 gxx_include_dir=no
23760 gxx_include_dir=no
23763 gxx_include_dir=${withval}
23765 esac
23766 else
23767 gxx_include_dir=no
23770 echo "$ac_t""$gxx_include_dir" 1>&6
23772 # Process the option "--enable-version-specific-runtime-libs"
23773 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23774 echo "configure:23775: checking for --enable-version-specific-runtime-libs" >&5
23775 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23776 if test "${enable_version_specific_runtime_libs+set}" = set; then
23777 enableval="$enable_version_specific_runtime_libs"
23778 case "$enableval" in
23779 yes) version_specific_libs=yes ;;
23780 no) version_specific_libs=no ;;
23781 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23782 esac
23783 else
23784 version_specific_libs=no
23786 # Option set, now we can test it.
23787 echo "$ac_t""$version_specific_libs" 1>&6
23789 # Default case for install directory for include files.
23790 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23791 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23794 # Version-specific runtime libs processing.
23795 if test $version_specific_libs = yes; then
23796 # Need the gcc compiler version to know where to install libraries
23797 # and header files if --enable-version-specific-runtime-libs option
23798 # is selected.
23799 if test x"$gxx_include_dir" = x"no"; then
23800 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23802 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23803 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23806 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23807 # Install a library built with a cross compiler in tooldir, not libdir.
23808 if test x"$glibcpp_toolexecdir" = x"no"; then
23809 if test -n "$with_cross_host" &&
23810 test x"$with_cross_host" != x"no"; then
23811 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23812 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23813 else
23814 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23815 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23819 echo $ac_n "checking for install location""... $ac_c" 1>&6
23820 echo "configure:23821: checking for install location" >&5
23821 echo "$ac_t""$gxx_include_dir" 1>&6
23829 # Export all the include and flag information to Makefiles.
23831 # Root level of the build directory include sources.
23832 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23834 # Passed down for canadian crosses.
23835 if test x"$CANADIAN" = xyes; then
23836 TOPLEVEL_INCLUDES='-I$(includedir)'
23839 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23841 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23843 if test x"$need_libio" = xyes; then
23844 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23848 # Now, export this to all the little Makefiles....
23855 # Optimization flags that are probably a good idea for thrill-seekers. Just
23856 # uncomment the lines below and make, everything else is ready to go...
23857 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23858 OPTIMIZE_CXXFLAGS=
23861 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23865 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23866 grep "enable shared" > /dev/null; then
23867 LIBSUPCXX_PICFLAGS=-prefer-pic
23868 else
23869 LIBSUPCXX_PICFLAGS=
23873 # Generate the various Makefiles, include files, and scripts.
23874 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23875 # and libsupc++/Makefile.am so that multilib installs will end up
23876 # installed in the correct place. To work around this not being passed
23877 # down from config-ml.in -> top_srcdir/Makefile.am ->
23878 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23879 trap '' 1 2 15
23880 cat > confcache <<\EOF
23881 # This file is a shell script that caches the results of configure
23882 # tests run on this system so they can be shared between configure
23883 # scripts and configure runs. It is not useful on other systems.
23884 # If it contains results you don't want to keep, you may remove or edit it.
23886 # By default, configure uses ./config.cache as the cache file,
23887 # creating it if it does not exist already. You can give configure
23888 # the --cache-file=FILE option to use a different cache file; that is
23889 # what configure does when it calls configure scripts in
23890 # subdirectories, so they share the cache.
23891 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23892 # config.status only pays attention to the cache file if you give it the
23893 # --recheck option to rerun configure.
23896 # The following way of writing the cache mishandles newlines in values,
23897 # but we know of no workaround that is simple, portable, and efficient.
23898 # So, don't put newlines in cache variables' values.
23899 # Ultrix sh set writes to stderr and can't be redirected directly,
23900 # and sets the high bit in the cache file unless we assign to the vars.
23901 (set) 2>&1 |
23902 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23903 *ac_space=\ *)
23904 # `set' does not quote correctly, so add quotes (double-quote substitution
23905 # turns \\\\ into \\, and sed turns \\ into \).
23906 sed -n \
23907 -e "s/'/'\\\\''/g" \
23908 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23911 # `set' quotes correctly as required by POSIX, so do not add quotes.
23912 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23914 esac >> confcache
23915 if cmp -s $cache_file confcache; then
23917 else
23918 if test -w $cache_file; then
23919 echo "updating cache $cache_file"
23920 cat confcache > $cache_file
23921 else
23922 echo "not updating unwritable cache $cache_file"
23925 rm -f confcache
23927 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23930 # Let make expand exec_prefix.
23931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23933 # Any assignment to VPATH causes Sun make to only execute
23934 # the first set of double-colon rules, so remove it if not needed.
23935 # If there is a colon in the path, we need to keep it.
23936 if test "x$srcdir" = x.; then
23937 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23940 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23942 DEFS=-DHAVE_CONFIG_H
23944 # Without the "./", some shells look in PATH for config.status.
23945 : ${CONFIG_STATUS=./config.status}
23947 echo creating $CONFIG_STATUS
23948 rm -f $CONFIG_STATUS
23949 cat > $CONFIG_STATUS <<EOF
23950 #! /bin/sh
23951 # Generated automatically by configure.
23952 # Run this file to recreate the current configuration.
23953 # This directory was configured as follows,
23954 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23956 # $0 $ac_configure_args
23958 # Compiler output produced by configure, useful for debugging
23959 # configure, is in ./config.log if it exists.
23961 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23962 for ac_option
23964 case "\$ac_option" in
23965 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23966 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23967 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23968 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23969 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23970 exit 0 ;;
23971 -help | --help | --hel | --he | --h)
23972 echo "\$ac_cs_usage"; exit 0 ;;
23973 *) echo "\$ac_cs_usage"; exit 1 ;;
23974 esac
23975 done
23977 ac_given_srcdir=$srcdir
23978 ac_given_INSTALL="$INSTALL"
23980 trap 'rm -fr `echo "Makefile \
23981 include/Makefile src/Makefile \
23982 libmath/Makefile libio/Makefile libsupc++/Makefile \
23983 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23985 cat >> $CONFIG_STATUS <<EOF
23987 # Protect against being on the right side of a sed subst in config.status.
23988 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23989 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23990 $ac_vpsub
23991 $extrasub
23992 s%@SHELL@%$SHELL%g
23993 s%@CFLAGS@%$CFLAGS%g
23994 s%@CPPFLAGS@%$CPPFLAGS%g
23995 s%@CXXFLAGS@%$CXXFLAGS%g
23996 s%@FFLAGS@%$FFLAGS%g
23997 s%@DEFS@%$DEFS%g
23998 s%@LDFLAGS@%$LDFLAGS%g
23999 s%@LIBS@%$LIBS%g
24000 s%@exec_prefix@%$exec_prefix%g
24001 s%@prefix@%$prefix%g
24002 s%@program_transform_name@%$program_transform_name%g
24003 s%@bindir@%$bindir%g
24004 s%@sbindir@%$sbindir%g
24005 s%@libexecdir@%$libexecdir%g
24006 s%@datadir@%$datadir%g
24007 s%@sysconfdir@%$sysconfdir%g
24008 s%@sharedstatedir@%$sharedstatedir%g
24009 s%@localstatedir@%$localstatedir%g
24010 s%@libdir@%$libdir%g
24011 s%@includedir@%$includedir%g
24012 s%@oldincludedir@%$oldincludedir%g
24013 s%@infodir@%$infodir%g
24014 s%@mandir@%$mandir%g
24015 s%@PACKAGE@%$PACKAGE%g
24016 s%@libtool_VERSION@%$libtool_VERSION%g
24017 s%@toplevel_srcdir@%$toplevel_srcdir%g
24018 s%@host@%$host%g
24019 s%@host_alias@%$host_alias%g
24020 s%@host_cpu@%$host_cpu%g
24021 s%@host_vendor@%$host_vendor%g
24022 s%@host_os@%$host_os%g
24023 s%@target@%$target%g
24024 s%@target_alias@%$target_alias%g
24025 s%@target_cpu@%$target_cpu%g
24026 s%@target_vendor@%$target_vendor%g
24027 s%@target_os@%$target_os%g
24028 s%@build@%$build%g
24029 s%@build_alias@%$build_alias%g
24030 s%@build_cpu@%$build_cpu%g
24031 s%@build_vendor@%$build_vendor%g
24032 s%@build_os@%$build_os%g
24033 s%@glibcpp_builddir@%$glibcpp_builddir%g
24034 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24035 s%@AWK@%$AWK%g
24036 s%@LN_S@%$LN_S%g
24037 s%@glibcpp_basedir@%$glibcpp_basedir%g
24038 s%@CC@%$CC%g
24039 s%@glibcpp_CXX@%$glibcpp_CXX%g
24040 s%@AS@%$AS%g
24041 s%@AR@%$AR%g
24042 s%@RANLIB@%$RANLIB%g
24043 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24044 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24045 s%@INSTALL_DATA@%$INSTALL_DATA%g
24046 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24047 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24048 s%@MAINT@%$MAINT%g
24049 s%@EXEEXT@%$EXEEXT%g
24050 s%@VERSION@%$VERSION%g
24051 s%@ACLOCAL@%$ACLOCAL%g
24052 s%@AUTOCONF@%$AUTOCONF%g
24053 s%@AUTOMAKE@%$AUTOMAKE%g
24054 s%@AUTOHEADER@%$AUTOHEADER%g
24055 s%@MAKEINFO@%$MAKEINFO%g
24056 s%@SET_MAKE@%$SET_MAKE%g
24057 s%@OBJEXT@%$OBJEXT%g
24058 s%@STRIP@%$STRIP%g
24059 s%@LIBTOOL@%$LIBTOOL%g
24060 s%@CXXCPP@%$CXXCPP%g
24061 s%@enable_shared@%$enable_shared%g
24062 s%@enable_static@%$enable_static%g
24063 s%@ifGNUmake@%$ifGNUmake%g
24064 s%@CPP@%$CPP%g
24065 s%@CSTDIO_H@%$CSTDIO_H%g
24066 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24067 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24068 s%@CCODECVT_C@%$CCODECVT_C%g
24069 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24070 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24071 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24072 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24073 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24074 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24075 s%@libio_la@%$libio_la%g
24076 s%@check_msgfmt@%$check_msgfmt%g
24077 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24078 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24079 s%@glibcpp_localedir@%$glibcpp_localedir%g
24080 s%@USE_NLS@%$USE_NLS%g
24081 s%@CLOCALE_H@%$CLOCALE_H%g
24082 s%@CCODECVT_H@%$CCODECVT_H%g
24083 s%@CMESSAGES_H@%$CMESSAGES_H%g
24084 s%@CCODECVT_CC@%$CCODECVT_CC%g
24085 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24086 s%@CCTYPE_CC@%$CCTYPE_CC%g
24087 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24088 s%@CMONEY_CC@%$CMONEY_CC%g
24089 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24090 s%@CTIME_H@%$CTIME_H%g
24091 s%@CTIME_CC@%$CTIME_CC%g
24092 s%@CLOCALE_CC@%$CLOCALE_CC%g
24093 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24094 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24095 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24096 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24097 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24098 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24099 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24100 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24101 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24102 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24103 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24104 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24105 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24106 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24107 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24108 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24109 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24110 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24111 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24112 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24113 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24114 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24115 s%@WERROR@%$WERROR%g
24116 s%@baseline_file@%$baseline_file%g
24117 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24118 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24119 s%@SYMVER_MAP@%$SYMVER_MAP%g
24120 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24121 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24122 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24123 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24124 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24125 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24126 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24127 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24128 s%@gxx_include_dir@%$gxx_include_dir%g
24129 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24130 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24131 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24132 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24133 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24134 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24135 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24136 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24137 s%@WARN_FLAGS@%$WARN_FLAGS%g
24138 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24140 CEOF
24143 cat >> $CONFIG_STATUS <<\EOF
24145 # Split the substitutions into bite-sized pieces for seds with
24146 # small command number limits, like on Digital OSF/1 and HP-UX.
24147 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24148 ac_file=1 # Number of current file.
24149 ac_beg=1 # First line for current file.
24150 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24151 ac_more_lines=:
24152 ac_sed_cmds=""
24153 while $ac_more_lines; do
24154 if test $ac_beg -gt 1; then
24155 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24156 else
24157 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24159 if test ! -s conftest.s$ac_file; then
24160 ac_more_lines=false
24161 rm -f conftest.s$ac_file
24162 else
24163 if test -z "$ac_sed_cmds"; then
24164 ac_sed_cmds="sed -f conftest.s$ac_file"
24165 else
24166 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24168 ac_file=`expr $ac_file + 1`
24169 ac_beg=$ac_end
24170 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24172 done
24173 if test -z "$ac_sed_cmds"; then
24174 ac_sed_cmds=cat
24178 cat >> $CONFIG_STATUS <<EOF
24180 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24181 include/Makefile src/Makefile \
24182 libmath/Makefile libio/Makefile libsupc++/Makefile \
24183 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24185 cat >> $CONFIG_STATUS <<\EOF
24186 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24188 case "$ac_file" in
24189 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24190 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24191 *) ac_file_in="${ac_file}.in" ;;
24192 esac
24194 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24196 # Remove last slash and all that follows it. Not all systems have dirname.
24197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24199 # The file is in a subdirectory.
24200 test ! -d "$ac_dir" && mkdir "$ac_dir"
24201 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24202 # A "../" for each directory in $ac_dir_suffix.
24203 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24204 else
24205 ac_dir_suffix= ac_dots=
24208 case "$ac_given_srcdir" in
24209 .) srcdir=.
24210 if test -z "$ac_dots"; then top_srcdir=.
24211 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24212 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24213 *) # Relative path.
24214 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24215 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24216 esac
24218 case "$ac_given_INSTALL" in
24219 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24220 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24221 esac
24223 echo creating "$ac_file"
24224 rm -f "$ac_file"
24225 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24226 case "$ac_file" in
24227 *Makefile*) ac_comsub="1i\\
24228 # $configure_input" ;;
24229 *) ac_comsub= ;;
24230 esac
24232 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24233 sed -e "$ac_comsub
24234 s%@configure_input@%$configure_input%g
24235 s%@srcdir@%$srcdir%g
24236 s%@top_srcdir@%$top_srcdir%g
24237 s%@INSTALL@%$INSTALL%g
24238 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24239 fi; done
24240 rm -f conftest.s*
24242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24243 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24245 # ac_d sets the value in "#define NAME VALUE" lines.
24246 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24247 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24248 ac_dC='\3'
24249 ac_dD='%g'
24250 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24251 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24252 ac_uB='\([ ]\)%\1#\2define\3'
24253 ac_uC=' '
24254 ac_uD='\4%g'
24255 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24256 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24257 ac_eB='$%\1#\2define\3'
24258 ac_eC=' '
24259 ac_eD='%g'
24261 if test "${CONFIG_HEADERS+set}" != set; then
24263 cat >> $CONFIG_STATUS <<EOF
24264 CONFIG_HEADERS="config.h"
24266 cat >> $CONFIG_STATUS <<\EOF
24268 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24270 case "$ac_file" in
24271 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24272 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24273 *) ac_file_in="${ac_file}.in" ;;
24274 esac
24276 echo creating $ac_file
24278 rm -f conftest.frag conftest.in conftest.out
24279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24280 cat $ac_file_inputs > conftest.in
24284 # Transform confdefs.h into a sed script conftest.vals that substitutes
24285 # the proper values into config.h.in to produce config.h. And first:
24286 # Protect against being on the right side of a sed subst in config.status.
24287 # Protect against being in an unquoted here document in config.status.
24288 rm -f conftest.vals
24289 cat > conftest.hdr <<\EOF
24290 s/[\\&%]/\\&/g
24291 s%[\\$`]%\\&%g
24292 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24293 s%ac_d%ac_u%gp
24294 s%ac_u%ac_e%gp
24296 sed -n -f conftest.hdr confdefs.h > conftest.vals
24297 rm -f conftest.hdr
24299 # This sed command replaces #undef with comments. This is necessary, for
24300 # example, in the case of _POSIX_SOURCE, which is predefined and required
24301 # on some systems where configure will not decide to define it.
24302 cat >> conftest.vals <<\EOF
24303 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24306 # Break up conftest.vals because some shells have a limit on
24307 # the size of here documents, and old seds have small limits too.
24309 rm -f conftest.tail
24310 while :
24312 ac_lines=`grep -c . conftest.vals`
24313 # grep -c gives empty output for an empty file on some AIX systems.
24314 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24315 # Write a limited-size here document to conftest.frag.
24316 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24317 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24318 echo 'CEOF
24319 sed -f conftest.frag conftest.in > conftest.out
24320 rm -f conftest.in
24321 mv conftest.out conftest.in
24322 ' >> $CONFIG_STATUS
24323 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24324 rm -f conftest.vals
24325 mv conftest.tail conftest.vals
24326 done
24327 rm -f conftest.vals
24329 cat >> $CONFIG_STATUS <<\EOF
24330 rm -f conftest.frag conftest.h
24331 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24332 cat conftest.in >> conftest.h
24333 rm -f conftest.in
24334 if cmp -s $ac_file conftest.h 2>/dev/null; then
24335 echo "$ac_file is unchanged"
24336 rm -f conftest.h
24337 else
24338 # Remove last slash and all that follows it. Not all systems have dirname.
24339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24341 # The file is in a subdirectory.
24342 test ! -d "$ac_dir" && mkdir "$ac_dir"
24344 rm -f $ac_file
24345 mv conftest.h $ac_file
24347 fi; done
24350 cat >> $CONFIG_STATUS <<EOF
24352 srcdir=${srcdir}
24353 host=${host}
24354 target=${target}
24355 with_target_subdir=${with_target_subdir}
24356 with_build_subdir=${with_build_subdir}
24357 with_multisubdir=${with_multisubdir}
24358 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24359 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24360 glibcpp_basedir=${glibcpp_basedir}
24361 CC="${CC}"
24362 CXX="${CXX}"
24365 cat >> $CONFIG_STATUS <<\EOF
24366 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24367 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24368 if test -n "$CONFIG_FILES"; then
24369 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24370 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24371 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24372 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24373 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24376 chmod +x mkcheck
24377 chmod +x testsuite_flags
24378 exit 0
24380 chmod +x $CONFIG_STATUS
24381 rm -fr confdefs* $ac_clean_files
24382 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24386 # Sanity checking & User-visible messages.
24387 # Checks down here, otherwise they get scrolled off before
24388 # the user will notice.
24390 # Trying to get more people to read documentation. Possibly remove
24391 # check and warn all the time. There is no "informational" AC_MSG_
24392 # macro, so these are going to be printed even when --quiet/--silent
24393 # is given.
24394 if test ! -f stamp-sanity-warned; then
24395 touch stamp-sanity-warned
24396 echo ""
24397 echo "Please make certain that you read the installation information here:"
24398 echo " faster => ${srcdir}/docs/html/install.html"
24399 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24400 echo ""
24401 echo "and the configuration information here:"
24402 echo " faster => ${srcdir}/docs/html/configopts.html"
24403 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24404 echo ""
24405 echo "before proceeding with ${_cv_gnu_make_command}."
24406 echo ""