FSF GCC merge 02/23/03
[official-gcc.git] / libstdc++-v3 / configure
blob20e545b17b25e57fffe74732b8438c6b84c61852
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
591 PACKAGE=libstdc++
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
598 # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600 enableval="$enable_multilib"
601 case "${enableval}" in
602 yes) multilib=yes ;;
603 no) multilib=no ;;
604 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605 esac
606 else
607 multilib=yes
610 # When building with srcdir == objdir, links to the source files will
611 # be created in directories within the target_subdir. We have to
612 # adjust toplevel_srcdir accordingly, so that configure finds
613 # install-sh and other auxiliary files that live in the top-level
614 # source directory.
615 if test "${srcdir}" = "."; then
616 if test -z "${with_target_subdir}"; then
617 toprel=".."
618 else
619 if test "${with_target_subdir}" != "."; then
620 toprel="${with_multisrctop}../.."
621 else
622 toprel="${with_multisrctop}.."
625 else
626 toprel=".."
628 ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630 if test -f $ac_dir/install-sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install-sh -c"
633 break
634 elif test -f $ac_dir/install.sh; then
635 ac_aux_dir=$ac_dir
636 ac_install_sh="$ac_aux_dir/install.sh -c"
637 break
639 done
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647 toplevel_srcdir=\${top_srcdir}/$toprel
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
653 # You will slowly go insane if you do not grok the following fact: when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/. `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf. Therefore, 'target' and
657 # 'host' will always be the same. This makes sense both for native and
658 # cross compilers, just think about it for a little while. :-)
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure. In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 # as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699 case $nonopt in
700 NONE)
701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 fi ;;
704 *) host_alias=$nonopt ;;
705 esac ;;
706 esac
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720 case $nonopt in
721 NONE) target_alias=$host_alias ;;
722 *) target_alias=$nonopt ;;
723 esac ;;
724 esac
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738 case $nonopt in
739 NONE) build_alias=$host_alias ;;
740 *) build_alias=$nonopt ;;
741 esac ;;
742 esac
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
750 test "$host_alias" != "$target_alias" &&
751 test "$program_prefix$program_suffix$program_transform_name" = \
752 NONENONEs,x,x, &&
753 program_prefix=${target_alias}-
755 target_alias=${target_alias-$target}
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 int main() {
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
792 rm -f conftest*
793 rm -f conftest*
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
821 rm -f conftest*
822 rm -f conftest*
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in gawk mawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 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 if test "$lt_cv_prog_gnu_ld" = yes; then
2399 case `/usr/bin/file conftest.$ac_objext` in
2400 *32-bit*)
2401 LD="${LD-ld} -melf32bsmip"
2403 *N32*)
2404 LD="${LD-ld} -melf32bmipn32"
2406 *64-bit*)
2407 LD="${LD-ld} -melf64bmip"
2409 esac
2410 else
2411 case `/usr/bin/file conftest.$ac_objext` in
2412 *32-bit*)
2413 LD="${LD-ld} -32"
2415 *N32*)
2416 LD="${LD-ld} -n32"
2418 *64-bit*)
2419 LD="${LD-ld} -64"
2421 esac
2424 rm -rf conftest*
2427 ia64-*-hpux*)
2428 # Find out which ABI we are using.
2429 echo 'int i;' > conftest.$ac_ext
2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 case "`/usr/bin/file conftest.o`" in
2432 *ELF-32*)
2433 HPUX_IA64_MODE="32"
2435 *ELF-64*)
2436 HPUX_IA64_MODE="64"
2438 esac
2440 rm -rf conftest*
2443 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2444 # Find out which ABI we are using.
2445 echo 'int i;' > conftest.$ac_ext
2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447 case "`/usr/bin/file conftest.o`" in
2448 *32-bit*)
2449 case $host in
2450 x86_64-*linux*)
2451 LD="${LD-ld} -m elf_i386"
2453 ppc64-*linux*)
2454 LD="${LD-ld} -m elf32ppclinux"
2456 s390x-*linux*)
2457 LD="${LD-ld} -m elf_s390"
2459 sparc64-*linux*)
2460 LD="${LD-ld} -m elf32_sparc"
2462 esac
2464 *64-bit*)
2465 case $host in
2466 x86_64-*linux*)
2467 LD="${LD-ld} -m elf_x86_64"
2469 ppc*-*linux*|powerpc*-*linux*)
2470 LD="${LD-ld} -m elf64ppc"
2472 s390*-*linux*)
2473 LD="${LD-ld} -m elf64_s390"
2475 sparc*-*linux*)
2476 LD="${LD-ld} -m elf64_sparc"
2478 esac
2480 esac
2482 rm -rf conftest*
2485 *-*-sco3.2v5*)
2486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2487 SAVE_CFLAGS="$CFLAGS"
2488 CFLAGS="$CFLAGS -belf"
2489 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2490 echo "configure:2491: checking whether the C compiler needs -belf" >&5
2491 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2495 ac_ext=c
2496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cc_cross
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2506 int main() {
2508 ; return 0; }
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 lt_cv_cc_needs_belf=yes
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 lt_cv_cc_needs_belf=no
2519 rm -f conftest*
2520 ac_ext=c
2521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling=$ac_cv_prog_cc_cross
2529 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2532 CFLAGS="$SAVE_CFLAGS"
2537 esac
2539 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2540 echo "configure:2541: checking how to run the C++ preprocessor" >&5
2541 if test -z "$CXXCPP"; then
2542 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 ac_ext=C
2546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CXXCPP $CPPFLAGS'
2548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cxx_cross
2551 CXXCPP="${CXX-g++} -E"
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <stdlib.h>
2557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2558 { (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560 if test -z "$ac_err"; then
2562 else
2563 echo "$ac_err" >&5
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 rm -rf conftest*
2567 CXXCPP=/lib/cpp
2569 rm -f conftest*
2570 ac_cv_prog_CXXCPP="$CXXCPP"
2571 ac_ext=c
2572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576 cross_compiling=$ac_cv_prog_cc_cross
2579 CXXCPP="$ac_cv_prog_CXXCPP"
2580 echo "$ac_t""$CXXCPP" 1>&6
2583 # Save cache, so that ltconfig can load it
2584 cat > confcache <<\EOF
2585 # This file is a shell script that caches the results of configure
2586 # tests run on this system so they can be shared between configure
2587 # scripts and configure runs. It is not useful on other systems.
2588 # If it contains results you don't want to keep, you may remove or edit it.
2590 # By default, configure uses ./config.cache as the cache file,
2591 # creating it if it does not exist already. You can give configure
2592 # the --cache-file=FILE option to use a different cache file; that is
2593 # what configure does when it calls configure scripts in
2594 # subdirectories, so they share the cache.
2595 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2596 # config.status only pays attention to the cache file if you give it the
2597 # --recheck option to rerun configure.
2600 # The following way of writing the cache mishandles newlines in values,
2601 # but we know of no workaround that is simple, portable, and efficient.
2602 # So, don't put newlines in cache variables' values.
2603 # Ultrix sh set writes to stderr and can't be redirected directly,
2604 # and sets the high bit in the cache file unless we assign to the vars.
2605 (set) 2>&1 |
2606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2607 *ac_space=\ *)
2608 # `set' does not quote correctly, so add quotes (double-quote substitution
2609 # turns \\\\ into \\, and sed turns \\ into \).
2610 sed -n \
2611 -e "s/'/'\\\\''/g" \
2612 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2615 # `set' quotes correctly as required by POSIX, so do not add quotes.
2616 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2618 esac >> confcache
2619 if cmp -s $cache_file confcache; then
2621 else
2622 if test -w $cache_file; then
2623 echo "updating cache $cache_file"
2624 cat confcache > $cache_file
2625 else
2626 echo "not updating unwritable cache $cache_file"
2629 rm -f confcache
2632 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2633 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2634 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2635 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2636 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2637 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2638 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2639 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2640 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2641 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2643 # Reload cache, that may have been modified by ltconfig
2644 if test -r "$cache_file"; then
2645 echo "loading cache $cache_file"
2646 . $cache_file
2647 else
2648 echo "creating cache $cache_file"
2649 > $cache_file
2653 # This can be used to rebuild libtool when needed
2654 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2656 # Always use our own libtool.
2657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2659 # Redirect the config.log output again, so that the ltconfig log is not
2660 # clobbered by the next message.
2661 exec 5>>./config.log
2665 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2666 lt_save_CC="$CC"
2667 lt_save_CFLAGS="$CFLAGS"
2668 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2669 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2670 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2671 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2672 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2673 deplibs_check_method="$deplibs_check_method" \
2674 file_magic_cmd="$file_magic_cmd" \
2675 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2676 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2677 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2678 CC="$lt_save_CC"
2679 CFLAGS="$lt_save_CFLAGS"
2681 # Redirect the config.log output again, so that the ltconfig log is not
2682 # clobbered by the next message.
2683 exec 5>>./config.log
2693 # Check for c++ or library specific bits that don't require linking.
2694 #GLIBCPP_CHECK_COMPILER_VERSION
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 _cv_gnu_make_command='' ;
2701 for a in "${MAKE-make}" make gmake gnumake ; do
2702 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703 then
2704 _cv_gnu_make_command=$a ;
2705 break;
2707 done ;
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712 if test "x$_cv_gnu_make_command" != "x" ; then
2713 ifGNUmake='' ;
2714 else
2715 ifGNUmake='#' ;
2720 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2722 echo "configure:2723: checking how to run the C preprocessor" >&5
2723 # On Suns, sometimes $CPP names a directory.
2724 if test -n "$CPP" && test -d "$CPP"; then
2725 CPP=
2727 if test -z "$CPP"; then
2728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 # This must be in double quotes, not single quotes, because CPP may get
2732 # substituted into the Makefile and "${CC-cc}" will confuse make.
2733 CPP="${CC-cc} -E"
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp.
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP="${CC-cc} -E -traditional-cpp"
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757 Syntax Error
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 else
2765 echo "$ac_err" >&5
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 CPP="${CC-cc} -nologo -E"
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <assert.h>
2774 Syntax Error
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 else
2782 echo "$ac_err" >&5
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 CPP=/lib/cpp
2788 rm -f conftest*
2790 rm -f conftest*
2792 rm -f conftest*
2793 ac_cv_prog_CPP="$CPP"
2795 CPP="$ac_cv_prog_CPP"
2796 else
2797 ac_cv_prog_CPP="$CPP"
2799 echo "$ac_t""$CPP" 1>&6
2802 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2803 echo "configure:2804: checking for cstdio to use" >&5
2804 # Check whether --enable-cstdio or --disable-cstdio was given.
2805 if test "${enable_cstdio+set}" = set; then
2806 enableval="$enable_cstdio"
2807 if test x$enable_cstdio = xno; then
2808 enable_cstdio=stdio
2810 else
2811 enable_cstdio=stdio
2815 enable_cstdio_flag=$enable_cstdio
2817 case x${enable_cstdio_flag} in
2818 xlibio)
2819 CSTDIO_H=config/io/c_io_libio.h
2820 BASIC_FILE_H=config/io/basic_file_libio.h
2821 BASIC_FILE_CC=config/io/basic_file_libio.cc
2822 echo "$ac_t""libio" 1>&6
2824 # see if we are on a system with libio native (ie, linux)
2825 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for libio.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <libio.h>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 has_libio=yes
2854 else
2855 echo "$ac_t""no" 1>&6
2856 has_libio=no
2860 # Need to check and see what version of glibc is being used. If
2861 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2862 # compile most of libio for linux systems.
2863 if test x$has_libio = x"yes"; then
2864 case "$target" in
2865 *-*-linux*)
2866 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2867 echo "configure:2868: checking for glibc version >= 2.2" >&5
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2872 #include <features.h>
2873 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2875 #endif
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "ok" >/dev/null 2>&1; then
2880 rm -rf conftest*
2881 glibc_satisfactory=yes
2882 else
2883 rm -rf conftest*
2884 glibc_satisfactory=no
2886 rm -f conftest*
2888 echo "$ac_t""$glibc_satisfactory" 1>&6
2890 esac
2892 # XXX at the moment, admit defeat and force the recompilation
2893 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2894 glibc_satisfactory=no
2896 if test x$glibc_satisfactory = x"yes"; then
2897 need_libio=no
2898 need_wlibio=no
2899 else
2900 need_libio=yes
2901 # bkoz XXX need to add checks to enable this
2902 # pme XXX here's a first pass at such a check
2903 if test x$enable_c_mbchar != xno; then
2904 need_wlibio=yes
2905 else
2906 need_wlibio=no
2910 else
2911 # Using libio, but <libio.h> doesn't exist on the target system. . .
2912 need_libio=yes
2913 # bkoz XXX need to add checks to enable this
2914 # pme XXX here's a first pass at such a check
2915 if test x$enable_c_mbchar != xno; then
2916 need_wlibio=yes
2917 else
2918 need_wlibio=no
2922 xstdio | x | xno | xnone | xyes)
2923 # default
2924 CSTDIO_H=config/io/c_io_stdio.h
2925 BASIC_FILE_H=config/io/basic_file_stdio.h
2926 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2927 echo "$ac_t""stdio" 1>&6
2929 # We're not using stdio.
2930 need_libio=no
2931 need_wlibio=no
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2937 esac
2942 # 2000-08-04 bkoz hack
2943 CCODECVT_C=config/io/c_io_libio_codecvt.c
2945 # 2000-08-04 bkoz hack
2949 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2950 GLIBCPP_BUILD_LIBIO_TRUE=
2951 GLIBCPP_BUILD_LIBIO_FALSE='#'
2952 else
2953 GLIBCPP_BUILD_LIBIO_TRUE='#'
2954 GLIBCPP_BUILD_LIBIO_FALSE=
2958 if test "$need_libio" = yes; then
2959 GLIBCPP_NEED_LIBIO_TRUE=
2960 GLIBCPP_NEED_LIBIO_FALSE='#'
2961 else
2962 GLIBCPP_NEED_LIBIO_TRUE='#'
2963 GLIBCPP_NEED_LIBIO_FALSE=
2967 if test "$need_wlibio" = yes; then
2968 GLIBCPP_NEED_WLIBIO_TRUE=
2969 GLIBCPP_NEED_WLIBIO_FALSE='#'
2970 else
2971 GLIBCPP_NEED_WLIBIO_TRUE='#'
2972 GLIBCPP_NEED_WLIBIO_FALSE=
2974 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2975 libio_la=../libio/libio.la
2976 else
2977 libio_la=
2982 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for clocale to use" >&5
2984 # Check whether --enable-clocale or --disable-clocale was given.
2985 if test "${enable_clocale+set}" = set; then
2986 enableval="$enable_clocale"
2987 if test x$enable_clocale = xno; then
2988 enable_clocale=no
2990 else
2991 enable_clocale=no
2995 enable_clocale_flag=$enable_clocale
2997 if test x$enable_clocale_flag = xno; then
2998 case x${target_os} in
2999 xlinux* | xgnu*)
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3004 #include <features.h>
3005 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3006 _GLIBCPP_ok
3007 #endif
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3012 rm -rf conftest*
3013 enable_clocale_flag=gnu
3014 else
3015 rm -rf conftest*
3016 enable_clocale_flag=generic
3018 rm -f conftest*
3021 # Test for bugs early in glibc-2.2.x series
3022 if test x$enable_clocale_flag = xgnu; then
3023 if test "$cross_compiling" = yes; then
3024 enable_clocale_flag=generic
3025 else
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3030 #define _GNU_SOURCE 1
3031 #include <locale.h>
3032 #include <string.h>
3033 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3034 extern __typeof(newlocale) __newlocale;
3035 extern __typeof(duplocale) __duplocale;
3036 extern __typeof(strcoll_l) __strcoll_l;
3037 #endif
3038 int main()
3040 const char __one[] = "Äuglein Augmen";
3041 const char __two[] = "Äuglein";
3042 int i;
3043 int j;
3044 __locale_t loc;
3045 __locale_t loc_dup;
3046 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3047 loc_dup = __duplocale(loc);
3048 i = __strcoll_l(__one, __two, loc);
3049 j = __strcoll_l(__one, __two, loc_dup);
3050 return 0;
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3055 then
3056 enable_clocale_flag=gnu
3057 else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 rm -fr conftest*
3061 enable_clocale_flag=generic
3063 rm -fr conftest*
3068 # ... at some point put __strxfrm_l tests in as well.
3071 enable_clocale_flag=generic
3073 esac
3076 # Check whether --enable-nls or --disable-nls was given.
3077 if test "${enable_nls+set}" = set; then
3078 enableval="$enable_nls"
3080 else
3081 enable_nls=yes
3084 USE_NLS=no
3086 case x${enable_clocale_flag} in
3087 xgeneric)
3088 echo "$ac_t""generic" 1>&6
3090 CLOCALE_H=config/locale/generic/c_locale.h
3091 CLOCALE_CC=config/locale/generic/c_locale.cc
3092 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3093 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3094 CCOLLATE_CC=config/locale/generic/collate_members.cc
3095 CCTYPE_CC=config/locale/generic/ctype_members.cc
3096 CMESSAGES_H=config/locale/generic/messages_members.h
3097 CMESSAGES_CC=config/locale/generic/messages_members.cc
3098 CMONEY_CC=config/locale/generic/monetary_members.cc
3099 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3100 CTIME_H=config/locale/generic/time_members.h
3101 CTIME_CC=config/locale/generic/time_members.cc
3102 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3104 xgnu)
3105 echo "$ac_t""gnu" 1>&6
3107 # Declare intention to use gettext, and add support for specific
3108 # languages.
3109 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3110 ALL_LINGUAS="de fr"
3112 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3113 # Extract the first word of "msgfmt", so it can be a program name with args.
3114 set dummy msgfmt; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3119 else
3120 if test -n "$check_msgfmt"; then
3121 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3122 else
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 ac_dummy="$PATH"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_check_msgfmt="yes"
3129 break
3131 done
3132 IFS="$ac_save_ifs"
3133 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3136 check_msgfmt="$ac_cv_prog_check_msgfmt"
3137 if test -n "$check_msgfmt"; then
3138 echo "$ac_t""$check_msgfmt" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3143 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3144 USE_NLS=yes
3146 # Export the build objects.
3147 for ling in $ALL_LINGUAS; do \
3148 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3149 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3150 done
3154 CLOCALE_H=config/locale/gnu/c_locale.h
3155 CLOCALE_CC=config/locale/gnu/c_locale.cc
3156 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3159 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3160 CMESSAGES_H=config/locale/gnu/messages_members.h
3161 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3162 CMONEY_CC=config/locale/gnu/monetary_members.cc
3163 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3164 CTIME_H=config/locale/gnu/time_members.h
3165 CTIME_CC=config/locale/gnu/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3168 xieee_1003.1-2001)
3169 echo "$ac_t""generic" 1>&6
3171 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3172 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3173 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3174 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3175 CCOLLATE_CC=config/locale/generic/collate_members.cc
3176 CCTYPE_CC=config/locale/generic/ctype_members.cc
3177 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3178 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3179 CMONEY_CC=config/locale/generic/monetary_members.cc
3180 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3181 CTIME_H=config/locale/generic/time_members.h
3182 CTIME_CC=config/locale/generic/time_members.cc
3183 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3186 echo "$enable_clocale is an unknown locale package" 1>&2
3187 exit 1
3189 esac
3191 # This is where the testsuite looks for locale catalogs, using the
3192 # -DLOCALEDIR define during testsuite compilation.
3193 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3211 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3212 echo "configure:3213: checking for c header strategy to use" >&5
3213 # Check whether --enable-cheaders or --disable-cheaders was given.
3214 if test "${enable_cheaders+set}" = set; then
3215 enableval="$enable_cheaders"
3217 case "$enableval" in
3219 enable_cheaders=c
3221 c_std)
3222 enable_cheaders=c_std
3224 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3226 esac
3227 else
3228 enable_cheaders=c_std
3231 echo "$ac_t""$enable_cheaders" 1>&6
3233 case "$enable_cheaders" in
3234 c_std)
3235 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3238 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3240 esac
3245 if test "$enable_cheaders" = c; then
3246 GLIBCPP_C_HEADERS_C_TRUE=
3247 GLIBCPP_C_HEADERS_C_FALSE='#'
3248 else
3249 GLIBCPP_C_HEADERS_C_TRUE='#'
3250 GLIBCPP_C_HEADERS_C_FALSE=
3254 if test "$enable_cheaders" = c_std; then
3255 GLIBCPP_C_HEADERS_C_STD_TRUE=
3256 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3257 else
3258 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3259 GLIBCPP_C_HEADERS_C_STD_FALSE=
3263 if test "$c_compatibility" = yes; then
3264 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3265 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3266 else
3267 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3268 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3271 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3272 if test "${enable_c_mbchar+set}" = set; then
3273 enableval="$enable_c_mbchar"
3274 case "$enableval" in
3275 yes) enable_c_mbchar=yes ;;
3276 no) enable_c_mbchar=no ;;
3277 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3278 esac
3279 else
3280 enable_c_mbchar=yes
3284 # Check whether --enable-c99 or --disable-c99 was given.
3285 if test "${enable_c99+set}" = set; then
3286 enableval="$enable_c99"
3287 case "$enableval" in
3288 yes) enable_c99=yes ;;
3289 no) enable_c99=no ;;
3290 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3291 esac
3292 else
3293 enable_c99=yes
3297 ac_ext=C
3298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3299 ac_cpp='$CXXCPP $CPPFLAGS'
3300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3302 cross_compiling=$ac_cv_prog_cxx_cross
3305 # Check for the existence of <math.h> functions used if C99 is enabled.
3306 ac_c99_math=yes;
3307 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3308 echo "configure:3309: checking for ISO C99 support in <math.h>" >&5
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 #include <math.h>
3313 int main() {
3314 fpclassify(0.0);
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_c99_math=no
3325 rm -f conftest*
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 #include <math.h>
3330 int main() {
3331 isfinite(0.0);
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 ac_c99_math=no
3342 rm -f conftest*
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <math.h>
3347 int main() {
3348 isinf(0.0);
3349 ; return 0; }
3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 else
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 ac_c99_math=no
3359 rm -f conftest*
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <math.h>
3364 int main() {
3365 isnan(0.0);
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 else
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 rm -rf conftest*
3374 ac_c99_math=no
3376 rm -f conftest*
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <math.h>
3381 int main() {
3382 isnormal(0.0);
3383 ; return 0; }
3385 if { (eval echo configure:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 else
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3390 rm -rf conftest*
3391 ac_c99_math=no
3393 rm -f conftest*
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #include <math.h>
3398 int main() {
3399 signbit(0.0);
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 else
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 rm -rf conftest*
3408 ac_c99_math=no
3410 rm -f conftest*
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 #include <math.h>
3415 int main() {
3416 isgreater(0.0,0.0);
3417 ; return 0; }
3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 else
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 rm -rf conftest*
3425 ac_c99_math=no
3427 rm -f conftest*
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <math.h>
3432 int main() {
3433 isgreaterequal(0.0,0.0);
3434 ; return 0; }
3436 if { (eval echo configure:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438 else
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 rm -rf conftest*
3442 ac_c99_math=no
3444 rm -f conftest*
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <math.h>
3449 int main() {
3450 isless(0.0,0.0);
3451 ; return 0; }
3453 if { (eval echo configure:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 ac_c99_math=no
3461 rm -f conftest*
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <math.h>
3466 int main() {
3467 islessequal(0.0,0.0);
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 ac_c99_math=no
3478 rm -f conftest*
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <math.h>
3483 int main() {
3484 islessgreater(0.0,0.0);
3485 ; return 0; }
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 ac_c99_math=no
3495 rm -f conftest*
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <math.h>
3500 int main() {
3501 isunordered(0.0,0.0);
3502 ; return 0; }
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 ac_c99_math=no
3512 rm -f conftest*
3513 echo "$ac_t""$ac_c99_math" 1>&6
3515 # Check for the existence in <stdio.h> of vscanf, et. al.
3516 ac_c99_stdio=yes;
3517 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3518 echo "configure:3519: checking for ISO C99 support in <stdio.h>" >&5
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdio.h>
3523 int main() {
3524 snprintf("12", 0, "%i");
3525 ; return 0; }
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 else
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 ac_c99_stdio=no
3535 rm -f conftest*
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <stdio.h>
3540 #include <stdarg.h>
3541 void foo(char* fmt, ...)
3542 {va_list args; va_start(args, fmt);
3543 vfscanf(stderr, "%i", args);}
3544 int main() {
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 else
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -rf conftest*
3554 ac_c99_stdio=no
3556 rm -f conftest*
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <stdio.h>
3561 #include <stdarg.h>
3562 void foo(char* fmt, ...)
3563 {va_list args; va_start(args, fmt);
3564 vscanf("%i", args);}
3565 int main() {
3567 ; return 0; }
3569 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3571 else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 rm -rf conftest*
3575 ac_c99_stdio=no
3577 rm -f conftest*
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <stdio.h>
3582 #include <stdarg.h>
3583 void foo(char* fmt, ...)
3584 {va_list args; va_start(args, fmt);
3585 vsnprintf(fmt, 0, "%i", args);}
3586 int main() {
3588 ; return 0; }
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 ac_c99_stdio=no
3598 rm -f conftest*
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <stdio.h>
3603 #include <stdarg.h>
3604 void foo(char* fmt, ...)
3605 {va_list args; va_start(args, fmt);
3606 vsscanf(fmt, "%i", args);}
3607 int main() {
3609 ; return 0; }
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 ac_c99_stdio=no
3619 rm -f conftest*
3620 echo "$ac_t""$ac_c99_stdio" 1>&6
3622 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3623 ac_c99_stdlib=yes;
3624 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3625 echo "configure:3626: checking for lldiv_t declaration" >&5
3626 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <stdlib.h>
3634 int main() {
3635 lldiv_t mydivt;
3636 ; return 0; }
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639 rm -rf conftest*
3640 ac_c99_lldiv_t=yes
3641 else
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3644 rm -rf conftest*
3645 ac_c99_lldiv_t=no
3647 rm -f conftest*
3651 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3653 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3654 echo "configure:3655: checking for ISO C99 support in <stdlib.h>" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <stdlib.h>
3659 int main() {
3660 char* tmp; strtof("gnu", &tmp);
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 else
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 ac_c99_stdlib=no
3671 rm -f conftest*
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <stdlib.h>
3676 int main() {
3677 char* tmp; strtold("gnu", &tmp);
3678 ; return 0; }
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 else
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 rm -rf conftest*
3686 ac_c99_stdlib=no
3688 rm -f conftest*
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <stdlib.h>
3693 int main() {
3694 llabs(10);
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -rf conftest*
3703 ac_c99_stdlib=no
3705 rm -f conftest*
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <stdlib.h>
3710 int main() {
3711 lldiv(10,1);
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 ac_c99_stdlib=no
3722 rm -f conftest*
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <stdlib.h>
3727 int main() {
3728 atoll("10");
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_c99_stdlib=no
3739 rm -f conftest*
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <stdlib.h>
3744 int main() {
3745 _Exit(0);
3746 ; return 0; }
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 ac_c99_stdlib=no
3756 rm -f conftest*
3757 if test x"$ac_c99_lldiv_t" = x"no"; then
3758 ac_c99_stdlib=no;
3760 echo "$ac_t""$ac_c99_stdlib" 1>&6
3762 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3763 # XXX the wchar.h checks should be rolled into the general C99 bits.
3764 ac_c99_wchar=yes;
3765 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3766 echo "configure:3767: checking for additional ISO C99 support in <wchar.h>" >&5
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 #include <wchar.h>
3771 int main() {
3772 wcstold(L"10.0", NULL);
3773 ; return 0; }
3775 if { (eval echo configure:3776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3777 else
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 rm -rf conftest*
3781 ac_c99_wchar=no
3783 rm -f conftest*
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <wchar.h>
3788 int main() {
3789 wcstoll(L"10", NULL, 10);
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 ac_c99_wchar=no
3800 rm -f conftest*
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <wchar.h>
3805 int main() {
3806 wcstoull(L"10", NULL, 10);
3807 ; return 0; }
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 ac_c99_wchar=no
3817 rm -f conftest*
3818 echo "$ac_t""$ac_c99_wchar" 1>&6
3820 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3821 echo "configure:3822: checking for enabled ISO C99 support" >&5
3822 if test x"$ac_c99_math" = x"no" ||
3823 test x"$ac_c99_stdio" = x"no" ||
3824 test x"$ac_c99_stdlib" = x"no" ||
3825 test x"$ac_c99_wchar" = x"no"; then
3826 enable_c99=no;
3828 echo "$ac_t""$enable_c99" 1>&6
3830 # Option parsed, now set things appropriately
3831 if test x"$enable_c99" = x"yes"; then
3832 cat >> confdefs.h <<\EOF
3833 #define _GLIBCPP_USE_C99 1
3838 ac_ext=c
3839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3843 cross_compiling=$ac_cv_prog_cc_cross
3847 # Check whether --enable-long-long or --disable-long-long was given.
3848 if test "${enable_long_long+set}" = set; then
3849 enableval="$enable_long_long"
3850 case "$enableval" in
3851 yes) enable_long_long=yes ;;
3852 no) enable_long_long=no ;;
3853 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3854 esac
3855 else
3856 enable_long_long=yes
3860 ac_ext=C
3861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3862 ac_cpp='$CXXCPP $CPPFLAGS'
3863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3865 cross_compiling=$ac_cv_prog_cxx_cross
3868 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3869 echo "configure:3870: checking for enabled long long I/O support" >&5
3870 # iostreams require strtoll, strtoull to compile
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <stdlib.h>
3875 int main() {
3876 char* tmp; strtoll("gnu", &tmp, 10);
3877 ; return 0; }
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 else
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 enable_long_long=no
3887 rm -f conftest*
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <stdlib.h>
3892 int main() {
3893 char* tmp; strtoull("gnu", &tmp, 10);
3894 ; return 0; }
3896 if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 else
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 rm -rf conftest*
3902 enable_long_long=no
3904 rm -f conftest*
3906 # Option parsed, now set things appropriately
3907 if test x"$enable_long_long" = xyes; then
3908 cat >> confdefs.h <<\EOF
3909 #define _GLIBCPP_USE_LONG_LONG 1
3913 echo "$ac_t""$enable_long_long" 1>&6
3915 ac_ext=c
3916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3920 cross_compiling=$ac_cv_prog_cc_cross
3924 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3925 echo "configure:3926: checking for thread model used by GCC" >&5
3926 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3927 echo "$ac_t""$target_thread_file" 1>&6
3929 if test $target_thread_file != single; then
3930 cat >> confdefs.h <<\EOF
3931 #define HAVE_GTHR_DEFAULT 1
3934 cat >> confdefs.h <<\EOF
3935 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3940 glibcpp_thread_h=gthr-$target_thread_file.h
3944 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3945 echo "configure:3946: checking for exception model to use" >&5
3947 ac_ext=C
3948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3949 ac_cpp='$CXXCPP $CPPFLAGS'
3950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3952 cross_compiling=$ac_cv_prog_cxx_cross
3954 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3955 if test "${enable_sjlj_exceptions+set}" = set; then
3956 enableval="$enable_sjlj_exceptions"
3958 else
3959 cat > conftest.$ac_ext << EOF
3960 #line 3961 "configure"
3961 struct S { ~S(); };
3962 void bar();
3963 void foo()
3965 S s;
3966 bar();
3969 old_CXXFLAGS="$CXXFLAGS"
3970 CXXFLAGS=-S
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3972 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3973 enable_sjlj_exceptions=yes
3974 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3975 enable_sjlj_exceptions=no
3978 CXXFLAGS="$old_CXXFLAGS"
3979 rm -f conftest*
3982 if test x$enable_sjlj_exceptions = xyes; then
3983 cat >> confdefs.h <<\EOF
3984 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3987 ac_exception_model_name=sjlj
3988 elif test x$enable_sjlj_exceptions = xno; then
3989 ac_exception_model_name="call frame"
3990 else
3991 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3993 ac_ext=c
3994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3998 cross_compiling=$ac_cv_prog_cc_cross
4000 echo "$ac_t""$ac_exception_model_name" 1>&6
4003 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4004 echo "configure:4005: checking for use of libunwind" >&5
4005 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4006 if test "${enable_libunwind_exceptions+set}" = set; then
4007 enableval="$enable_libunwind_exceptions"
4008 use_libunwind_exceptions=$enableval
4009 else
4010 use_libunwind_exceptions=no
4013 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4014 if test x"$use_libunwind_exceptions" = xyes; then
4015 LIBUNWIND_FLAG="-lunwind"
4016 else
4017 LIBUNWIND_FLAG=""
4021 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4022 if test "${enable_concept_checks+set}" = set; then
4023 enableval="$enable_concept_checks"
4024 case "$enableval" in
4025 yes) enable_concept_checks=yes ;;
4026 no) enable_concept_checks=no ;;
4027 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4028 esac
4029 else
4030 enable_concept_checks=no
4032 if test x"$enable_concept_checks" = xyes; then
4033 cat >> confdefs.h <<\EOF
4034 #define _GLIBCPP_CONCEPT_CHECKS 1
4039 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4040 echo "configure:4041: checking for extra compiler flags for building" >&5
4041 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4042 if test "${enable_cxx_flags+set}" = set; then
4043 enableval="$enable_cxx_flags"
4044 case "x$enable_cxx_flags" in
4045 xyes)
4046 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4047 xno | xnone | x)
4048 enable_cxx_flags='' ;;
4050 enable_cxx_flags="$enableval" ;;
4051 esac
4052 else
4053 enable_cxx_flags=
4057 if test -n "$enable_cxx_flags"; then
4058 for f in $enable_cxx_flags; do
4059 case "$f" in
4060 -fhonor-std) ;;
4061 -*) ;;
4062 *) # and we're trying to pass /what/ exactly?
4063 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4064 esac
4065 done
4067 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4068 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4071 # Check whether --enable-debug or --disable-debug was given.
4072 if test "${enable_debug+set}" = set; then
4073 enableval="$enable_debug"
4074 case "${enableval}" in
4075 yes) enable_debug=yes ;;
4076 no) enable_debug=no ;;
4077 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4078 esac
4079 else
4080 enable_debug=no
4082 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4083 echo "configure:4084: checking for additional debug build" >&5
4084 echo "$ac_t""$enable_debug" 1>&6
4087 if test "$enable_debug" = yes; then
4088 GLIBCPP_BUILD_DEBUG_TRUE=
4089 GLIBCPP_BUILD_DEBUG_FALSE='#'
4090 else
4091 GLIBCPP_BUILD_DEBUG_TRUE='#'
4092 GLIBCPP_BUILD_DEBUG_FALSE=
4095 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4096 if test "${enable_debug_flags+set}" = set; then
4097 enableval="$enable_debug_flags"
4098 case "${enableval}" in
4099 none) ;;
4100 -*) enable_debug_flags="${enableval}" ;;
4101 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4102 esac
4103 else
4104 enable_debug_flags=none
4107 case x"$enable_debug" in
4108 xyes)
4109 case "$enable_debug_flags" in
4110 none)
4111 DEBUG_FLAGS="-g3 -O0";;
4112 -*) #valid input
4113 DEBUG_FLAGS="${enableval}"
4114 esac
4116 xno)
4117 DEBUG_FLAGS=""
4119 esac
4122 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4123 echo "configure:4124: checking for debug build flags" >&5
4124 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4127 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4128 for ac_hdr in string.h stdlib.h
4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_hdr" >&5
4133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135 else
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <$ac_hdr>
4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4144 if test -z "$ac_err"; then
4145 rm -rf conftest*
4146 eval "ac_cv_header_$ac_safe=yes"
4147 else
4148 echo "$ac_err" >&5
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4151 rm -rf conftest*
4152 eval "ac_cv_header_$ac_safe=no"
4154 rm -f conftest*
4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_hdr 1
4163 else
4164 echo "$ac_t""no" 1>&6
4166 done
4169 # No surprises, no surprises...
4170 if test $ATOMICITYH = cpu/generic ; then
4171 echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4172 if test $target_thread_file = single; then
4173 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4174 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4175 else
4176 echo "configure: warning: They will be faked using a mutex." 1>&2
4177 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4182 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4184 # We are being configured with some form of cross compiler.
4185 GLIBCPP_IS_CROSS_COMPILING=1
4187 # This lets us hard-code the functionality we know we'll have in the cross
4188 # target environment. "Let" is a sugar-coated word placed on an especially
4189 # dull and tedious hack, actually.
4191 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4192 # that involve linking, can't be used:
4193 # "cannot open sim-crt0.o"
4194 # "cannot open crt0.o"
4195 # etc. All this is because there currently exists no unified, consistent
4196 # way for top level CC information to be passed down to target directories:
4197 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4198 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4199 # crosses can be removed.
4201 # If Canadian cross, then don't pick up tools from the build directory.
4202 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4203 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4204 CANADIAN=yes
4205 else
4206 CANADIAN=no
4209 # Construct crosses by hand, eliminating bits that need ld...
4210 # GLIBCPP_CHECK_COMPILER_FEATURES
4211 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4212 # GLIBCPP_CHECK_MATH_SUPPORT
4214 case "$target" in
4215 *-linux*)
4216 os_include_dir="os/gnu-linux"
4217 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4218 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4219 fp.h locale.h float.h inttypes.h
4221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_hdr" >&5
4224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 #include <$ac_hdr>
4232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4233 { (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4235 if test -z "$ac_err"; then
4236 rm -rf conftest*
4237 eval "ac_cv_header_$ac_safe=yes"
4238 else
4239 echo "$ac_err" >&5
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 rm -rf conftest*
4243 eval "ac_cv_header_$ac_safe=no"
4245 rm -f conftest*
4247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4250 cat >> confdefs.h <<EOF
4251 #define $ac_tr_hdr 1
4254 else
4255 echo "$ac_t""no" 1>&6
4257 done
4259 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4262 # If we're not using GNU ld, then there's no point in even trying these
4263 # tests. Check for that first. We should have already tested for gld
4264 # by now (in libtool), but require it now just to be safe...
4265 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4266 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4269 # The name set by libtool depends on the version of libtool. Shame on us
4270 # for depending on an impl detail, but c'est la vie. Older versions used
4271 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4272 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4273 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4274 # set (hence we're using an older libtool), then set it.
4275 if test x${with_gnu_ld+set} != xset; then
4276 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4277 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4278 with_gnu_ld=no
4279 else
4280 with_gnu_ld=$ac_cv_prog_gnu_ld
4284 # Start by getting the version number. I think the libtool test already
4285 # does some of this, but throws away the result.
4287 ldver=`$LD --version 2>/dev/null | head -1 | \
4288 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4290 glibcpp_gnu_ld_version=`echo $ldver | \
4291 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4293 # Set --gc-sections.
4294 if test "$with_gnu_ld" = "notbroken"; then
4295 # GNU ld it is! Joy and bunny rabbits!
4297 # All these tests are for C++; save the language and the compiler flags.
4298 # Need to do this so that g++ won't try to link in libstdc++
4299 ac_test_CFLAGS="${CFLAGS+set}"
4300 ac_save_CFLAGS="$CFLAGS"
4301 CFLAGS='-x c++ -Wl,--gc-sections'
4303 # Check for -Wl,--gc-sections
4304 # XXX This test is broken at the moment, as symbols required for
4305 # linking are now in libsupc++ (not built yet.....). In addition,
4306 # this test has cored on solaris in the past. In addition,
4307 # --gc-sections doesn't really work at the moment (keeps on discarding
4308 # used sections, first .eh_frame and now some of the glibc sections for
4309 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4310 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4311 echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5
4312 if test "$cross_compiling" = yes; then
4313 ac_sectionLDflags=yes
4314 else
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4319 int main(void)
4321 try { throw 1; }
4322 catch (...) { };
4323 return 0;
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4328 then
4329 ac_sectionLDflags=yes
4330 else
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 rm -fr conftest*
4334 ac_sectionLDflags=no
4336 rm -fr conftest*
4339 if test "$ac_test_CFLAGS" = set; then
4340 CFLAGS="$ac_save_CFLAGS"
4341 else
4342 # this is the suspicious part
4343 CFLAGS=''
4345 if test "$ac_sectionLDflags" = "yes"; then
4346 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4348 echo "$ac_t""$ac_sectionLDflags" 1>&6
4351 # Set linker optimization flags.
4352 if test x"$with_gnu_ld" = x"yes"; then
4353 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4360 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4361 echo "configure:4362: checking for main in -lm" >&5
4362 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4365 else
4366 ac_save_LIBS="$LIBS"
4367 LIBS="-lm $LIBS"
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4372 int main() {
4373 main()
4374 ; return 0; }
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4377 rm -rf conftest*
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4379 else
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4382 rm -rf conftest*
4383 eval "ac_cv_lib_$ac_lib_var=no"
4385 rm -f conftest*
4386 LIBS="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_lib 1
4397 LIBS="-lm $LIBS"
4399 else
4400 echo "$ac_t""no" 1>&6
4403 for ac_func in nan copysignf
4405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4406 echo "configure:4407: checking for $ac_func" >&5
4407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409 else
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* System header to define __stub macros and hopefully few prototypes,
4414 which can conflict with char $ac_func(); below. */
4415 #include <assert.h>
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4419 char $ac_func();
4421 int main() {
4423 /* The GNU C library defines this for functions which it implements
4424 to always fail with ENOSYS. Some functions are actually named
4425 something starting with __ and the normal name is an alias. */
4426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4427 choke me
4428 #else
4429 $ac_func();
4430 #endif
4432 ; return 0; }
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 rm -rf conftest*
4436 eval "ac_cv_func_$ac_func=yes"
4437 else
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 rm -rf conftest*
4441 eval "ac_cv_func_$ac_func=no"
4443 rm -f conftest*
4446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_func 1
4453 else
4454 echo "$ac_t""no" 1>&6
4455 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4457 done
4460 for ac_func in __signbit
4462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4463 echo "configure:4464: checking for $ac_func" >&5
4464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4466 else
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char $ac_func(); below. */
4472 #include <assert.h>
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char $ac_func();
4478 int main() {
4480 /* The GNU C library defines this for functions which it implements
4481 to always fail with ENOSYS. Some functions are actually named
4482 something starting with __ and the normal name is an alias. */
4483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4484 choke me
4485 #else
4486 $ac_func();
4487 #endif
4489 ; return 0; }
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4492 rm -rf conftest*
4493 eval "ac_cv_func_$ac_func=yes"
4494 else
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4497 rm -rf conftest*
4498 eval "ac_cv_func_$ac_func=no"
4500 rm -f conftest*
4503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4506 cat >> confdefs.h <<EOF
4507 #define $ac_tr_func 1
4510 else
4511 echo "$ac_t""no" 1>&6
4512 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4514 done
4516 for ac_func in __signbitf
4518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_func" >&5
4520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4522 else
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* System header to define __stub macros and hopefully few prototypes,
4527 which can conflict with char $ac_func(); below. */
4528 #include <assert.h>
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4532 char $ac_func();
4534 int main() {
4536 /* The GNU C library defines this for functions which it implements
4537 to always fail with ENOSYS. Some functions are actually named
4538 something starting with __ and the normal name is an alias. */
4539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4540 choke me
4541 #else
4542 $ac_func();
4543 #endif
4545 ; return 0; }
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 rm -rf conftest*
4549 eval "ac_cv_func_$ac_func=yes"
4550 else
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4553 rm -rf conftest*
4554 eval "ac_cv_func_$ac_func=no"
4556 rm -f conftest*
4559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4562 cat >> confdefs.h <<EOF
4563 #define $ac_tr_func 1
4566 else
4567 echo "$ac_t""no" 1>&6
4568 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4570 done
4573 if test x$ac_cv_func_copysignl = x"yes"; then
4574 for ac_func in __signbitl
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4580 else
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4586 #include <assert.h>
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590 char $ac_func();
4592 int main() {
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4598 choke me
4599 #else
4600 $ac_func();
4601 #endif
4603 ; return 0; }
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 rm -rf conftest*
4607 eval "ac_cv_func_$ac_func=yes"
4608 else
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -rf conftest*
4612 eval "ac_cv_func_$ac_func=no"
4614 rm -f conftest*
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_func 1
4624 else
4625 echo "$ac_t""no" 1>&6
4626 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4628 done
4632 if test -n "$LIBMATHOBJS"; then
4633 need_libmath=yes
4638 if test "$need_libmath" = yes; then
4639 GLIBCPP_BUILD_LIBMATH_TRUE=
4640 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4641 else
4642 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4643 GLIBCPP_BUILD_LIBMATH_FALSE=
4647 enable_wchar_t=no
4649 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4650 echo "configure:4651: checking for mbstate_t" >&5
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 #include <wchar.h>
4655 int main() {
4656 mbstate_t teststate;
4657 ; return 0; }
4659 if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4660 rm -rf conftest*
4661 have_mbstate_t=yes
4662 else
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 rm -rf conftest*
4666 have_mbstate_t=no
4668 rm -f conftest*
4669 echo "$ac_t""$have_mbstate_t" 1>&6
4670 if test x"$have_mbstate_t" = xyes; then
4671 cat >> confdefs.h <<\EOF
4672 #define HAVE_MBSTATE_T 1
4677 for ac_hdr in wchar.h
4679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4681 echo "configure:4682: checking for $ac_hdr" >&5
4682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4684 else
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 #include <$ac_hdr>
4690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4691 { (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4693 if test -z "$ac_err"; then
4694 rm -rf conftest*
4695 eval "ac_cv_header_$ac_safe=yes"
4696 else
4697 echo "$ac_err" >&5
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4700 rm -rf conftest*
4701 eval "ac_cv_header_$ac_safe=no"
4703 rm -f conftest*
4705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4708 cat >> confdefs.h <<EOF
4709 #define $ac_tr_hdr 1
4711 ac_has_wchar_h=yes
4712 else
4713 echo "$ac_t""no" 1>&6
4714 ac_has_wchar_h=no
4716 done
4718 for ac_hdr in wctype.h
4720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_hdr" >&5
4723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725 else
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <$ac_hdr>
4731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4732 { (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4734 if test -z "$ac_err"; then
4735 rm -rf conftest*
4736 eval "ac_cv_header_$ac_safe=yes"
4737 else
4738 echo "$ac_err" >&5
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 rm -rf conftest*
4742 eval "ac_cv_header_$ac_safe=no"
4744 rm -f conftest*
4746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4747 echo "$ac_t""yes" 1>&6
4748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4749 cat >> confdefs.h <<EOF
4750 #define $ac_tr_hdr 1
4752 ac_has_wctype_h=yes
4753 else
4754 echo "$ac_t""no" 1>&6
4755 ac_has_wctype_h=no
4757 done
4760 if test x"$ac_has_wchar_h" = xyes &&
4761 test x"$ac_has_wctype_h" = xyes &&
4762 test x"$enable_c_mbchar" != xno; then
4764 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4765 echo "configure:4766: checking for WCHAR_MIN and WCHAR_MAX" >&5
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 #include <wchar.h>
4770 int main() {
4771 int i = WCHAR_MIN; int j = WCHAR_MAX;
4772 ; return 0; }
4774 if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4775 rm -rf conftest*
4776 has_wchar_minmax=yes
4777 else
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 rm -rf conftest*
4781 has_wchar_minmax=no
4783 rm -f conftest*
4784 echo "$ac_t""$has_wchar_minmax" 1>&6
4786 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4787 echo "configure:4788: checking for WEOF" >&5
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4792 #include <wchar.h>
4793 #include <stddef.h>
4794 int main() {
4795 wint_t i = WEOF;
4796 ; return 0; }
4798 if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4799 rm -rf conftest*
4800 has_weof=yes
4801 else
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 rm -rf conftest*
4805 has_weof=no
4807 rm -f conftest*
4808 echo "$ac_t""$has_weof" 1>&6
4810 ac_wfuncs=yes
4811 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4814 echo "configure:4815: checking for $ac_func" >&5
4815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4817 else
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* System header to define __stub macros and hopefully few prototypes,
4822 which can conflict with char $ac_func(); below. */
4823 #include <assert.h>
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4827 char $ac_func();
4829 int main() {
4831 /* The GNU C library defines this for functions which it implements
4832 to always fail with ENOSYS. Some functions are actually named
4833 something starting with __ and the normal name is an alias. */
4834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4835 choke me
4836 #else
4837 $ac_func();
4838 #endif
4840 ; return 0; }
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4843 rm -rf conftest*
4844 eval "ac_cv_func_$ac_func=yes"
4845 else
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 rm -rf conftest*
4849 eval "ac_cv_func_$ac_func=no"
4851 rm -f conftest*
4854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4857 cat >> confdefs.h <<EOF
4858 #define $ac_tr_func 1
4861 else
4862 echo "$ac_t""no" 1>&6
4864 ac_wfuncs=no
4866 done
4869 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4870 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4871 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4872 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4873 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4874 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4877 echo "configure:4878: checking for $ac_func" >&5
4878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4880 else
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4884 /* System header to define __stub macros and hopefully few prototypes,
4885 which can conflict with char $ac_func(); below. */
4886 #include <assert.h>
4887 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4890 char $ac_func();
4892 int main() {
4894 /* The GNU C library defines this for functions which it implements
4895 to always fail with ENOSYS. Some functions are actually named
4896 something starting with __ and the normal name is an alias. */
4897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4898 choke me
4899 #else
4900 $ac_func();
4901 #endif
4903 ; return 0; }
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 rm -rf conftest*
4907 eval "ac_cv_func_$ac_func=yes"
4908 else
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 rm -rf conftest*
4912 eval "ac_cv_func_$ac_func=no"
4914 rm -f conftest*
4917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4920 cat >> confdefs.h <<EOF
4921 #define $ac_tr_func 1
4924 else
4925 echo "$ac_t""no" 1>&6
4927 ac_wfuncs=no
4929 done
4932 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4933 echo "configure:4934: checking for ISO C99 wchar_t support" >&5
4934 if test x"$has_weof" = xyes &&
4935 test x"$has_wchar_minmax" = xyes &&
4936 test x"$ac_wfuncs" = xyes; then
4937 ac_isoC99_wchar_t=yes
4938 else
4939 ac_isoC99_wchar_t=no
4941 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4943 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4944 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4945 echo "configure:4946: checking for iconv.h" >&5
4946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 #include <iconv.h>
4954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4955 { (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4957 if test -z "$ac_err"; then
4958 rm -rf conftest*
4959 eval "ac_cv_header_$ac_safe=yes"
4960 else
4961 echo "$ac_err" >&5
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4964 rm -rf conftest*
4965 eval "ac_cv_header_$ac_safe=no"
4967 rm -f conftest*
4969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_has_iconv_h=yes
4972 else
4973 echo "$ac_t""no" 1>&6
4974 ac_has_iconv_h=no
4977 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4979 echo "configure:4980: checking for langinfo.h" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4982 else
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986 #include <langinfo.h>
4988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4991 if test -z "$ac_err"; then
4992 rm -rf conftest*
4993 eval "ac_cv_header_$ac_safe=yes"
4994 else
4995 echo "$ac_err" >&5
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 rm -rf conftest*
4999 eval "ac_cv_header_$ac_safe=no"
5001 rm -f conftest*
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_has_langinfo_h=yes
5006 else
5007 echo "$ac_t""no" 1>&6
5008 ac_has_langinfo_h=no
5012 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5013 echo "configure:5014: checking for iconv in -liconv" >&5
5014 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5018 ac_save_LIBS="$LIBS"
5019 LIBS="-liconv $LIBS"
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5026 char iconv();
5028 int main() {
5029 iconv()
5030 ; return 0; }
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 rm -rf conftest*
5034 eval "ac_cv_lib_$ac_lib_var=yes"
5035 else
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5038 rm -rf conftest*
5039 eval "ac_cv_lib_$ac_lib_var=no"
5041 rm -f conftest*
5042 LIBS="$ac_save_LIBS"
5045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 libiconv="-liconv"
5048 else
5049 echo "$ac_t""no" 1>&6
5052 ac_save_LIBS="$LIBS"
5053 LIBS="$LIBS $libiconv"
5055 for ac_func in iconv_open iconv_close iconv nl_langinfo
5057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5058 echo "configure:5059: checking for $ac_func" >&5
5059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5061 else
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 /* System header to define __stub macros and hopefully few prototypes,
5066 which can conflict with char $ac_func(); below. */
5067 #include <assert.h>
5068 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5071 char $ac_func();
5073 int main() {
5075 /* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 choke me
5080 #else
5081 $ac_func();
5082 #endif
5084 ; return 0; }
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 rm -rf conftest*
5088 eval "ac_cv_func_$ac_func=yes"
5089 else
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5092 rm -rf conftest*
5093 eval "ac_cv_func_$ac_func=no"
5095 rm -f conftest*
5098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5101 cat >> confdefs.h <<EOF
5102 #define $ac_tr_func 1
5105 ac_XPG2funcs=yes
5106 else
5107 echo "$ac_t""no" 1>&6
5108 ac_XPG2funcs=no
5110 done
5113 LIBS="$ac_save_LIBS"
5115 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5116 echo "configure:5117: checking for XPG2 wchar_t support" >&5
5117 if test x"$ac_has_iconv_h" = xyes &&
5118 test x"$ac_has_langinfo_h" = xyes &&
5119 test x"$ac_XPG2funcs" = xyes; then
5120 ac_XPG2_wchar_t=yes
5121 else
5122 ac_XPG2_wchar_t=no
5124 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5126 if test x"$ac_isoC99_wchar_t" = xyes &&
5127 test x"$ac_XPG2_wchar_t" = xyes; then
5128 cat >> confdefs.h <<\EOF
5129 #define _GLIBCPP_USE_WCHAR_T 1
5132 enable_wchar_t=yes
5135 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5136 echo "configure:5137: checking for enabled wchar_t specializations" >&5
5137 echo "$ac_t""$enable_wchar_t" 1>&6
5140 if test "$enable_wchar_t" = yes; then
5141 GLIBCPP_TEST_WCHAR_T_TRUE=
5142 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5143 else
5144 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5145 GLIBCPP_TEST_WCHAR_T_FALSE=
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_COPYSIGN 1
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_COPYSIGNF 1
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_FINITE 1
5160 cat >> confdefs.h <<\EOF
5161 #define HAVE_FINITEF 1
5164 cat >> confdefs.h <<\EOF
5165 #define HAVE_FREXPF 1
5168 cat >> confdefs.h <<\EOF
5169 #define HAVE_HYPOTF 1
5172 cat >> confdefs.h <<\EOF
5173 #define HAVE_ISINF 1
5176 cat >> confdefs.h <<\EOF
5177 #define HAVE_ISINFF 1
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_ISNAN 1
5184 cat >> confdefs.h <<\EOF
5185 #define HAVE_ISNANF 1
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_SINCOS 1
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_SINCOSF 1
5196 if test x"long_double_math_on_this_cpu" = x"yes"; then
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_FINITEL 1
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_HYPOTL 1
5205 cat >> confdefs.h <<\EOF
5206 #define HAVE_ISINFL 1
5209 cat >> confdefs.h <<\EOF
5210 #define HAVE_ISNANL 1
5215 *-hpux*)
5216 # Check for available headers.
5217 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5218 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5219 fp.h locale.h float.h inttypes.h
5221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_hdr" >&5
5224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 #include <$ac_hdr>
5232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5233 { (eval echo configure:5234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5235 if test -z "$ac_err"; then
5236 rm -rf conftest*
5237 eval "ac_cv_header_$ac_safe=yes"
5238 else
5239 echo "$ac_err" >&5
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 rm -rf conftest*
5243 eval "ac_cv_header_$ac_safe=no"
5245 rm -f conftest*
5247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_hdr 1
5254 else
5255 echo "$ac_t""no" 1>&6
5257 done
5259 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5262 # If we're not using GNU ld, then there's no point in even trying these
5263 # tests. Check for that first. We should have already tested for gld
5264 # by now (in libtool), but require it now just to be safe...
5265 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5266 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5269 # The name set by libtool depends on the version of libtool. Shame on us
5270 # for depending on an impl detail, but c'est la vie. Older versions used
5271 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5272 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5273 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5274 # set (hence we're using an older libtool), then set it.
5275 if test x${with_gnu_ld+set} != xset; then
5276 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5277 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5278 with_gnu_ld=no
5279 else
5280 with_gnu_ld=$ac_cv_prog_gnu_ld
5284 # Start by getting the version number. I think the libtool test already
5285 # does some of this, but throws away the result.
5287 ldver=`$LD --version 2>/dev/null | head -1 | \
5288 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5290 glibcpp_gnu_ld_version=`echo $ldver | \
5291 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5293 # Set --gc-sections.
5294 if test "$with_gnu_ld" = "notbroken"; then
5295 # GNU ld it is! Joy and bunny rabbits!
5297 # All these tests are for C++; save the language and the compiler flags.
5298 # Need to do this so that g++ won't try to link in libstdc++
5299 ac_test_CFLAGS="${CFLAGS+set}"
5300 ac_save_CFLAGS="$CFLAGS"
5301 CFLAGS='-x c++ -Wl,--gc-sections'
5303 # Check for -Wl,--gc-sections
5304 # XXX This test is broken at the moment, as symbols required for
5305 # linking are now in libsupc++ (not built yet.....). In addition,
5306 # this test has cored on solaris in the past. In addition,
5307 # --gc-sections doesn't really work at the moment (keeps on discarding
5308 # used sections, first .eh_frame and now some of the glibc sections for
5309 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5310 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5311 echo "configure:5312: checking for ld that supports -Wl,--gc-sections" >&5
5312 if test "$cross_compiling" = yes; then
5313 ac_sectionLDflags=yes
5314 else
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5319 int main(void)
5321 try { throw 1; }
5322 catch (...) { };
5323 return 0;
5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5328 then
5329 ac_sectionLDflags=yes
5330 else
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5333 rm -fr conftest*
5334 ac_sectionLDflags=no
5336 rm -fr conftest*
5339 if test "$ac_test_CFLAGS" = set; then
5340 CFLAGS="$ac_save_CFLAGS"
5341 else
5342 # this is the suspicious part
5343 CFLAGS=''
5345 if test "$ac_sectionLDflags" = "yes"; then
5346 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5348 echo "$ac_t""$ac_sectionLDflags" 1>&6
5351 # Set linker optimization flags.
5352 if test x"$with_gnu_ld" = x"yes"; then
5353 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5360 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5361 echo "configure:5362: checking for main in -lm" >&5
5362 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365 else
5366 ac_save_LIBS="$LIBS"
5367 LIBS="-lm $LIBS"
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5372 int main() {
5373 main()
5374 ; return 0; }
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5377 rm -rf conftest*
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5379 else
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 rm -rf conftest*
5383 eval "ac_cv_lib_$ac_lib_var=no"
5385 rm -f conftest*
5386 LIBS="$ac_save_LIBS"
5389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5393 cat >> confdefs.h <<EOF
5394 #define $ac_tr_lib 1
5397 LIBS="-lm $LIBS"
5399 else
5400 echo "$ac_t""no" 1>&6
5403 for ac_func in nan copysignf
5405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_func" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5409 else
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char $ac_func(); below. */
5415 #include <assert.h>
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char $ac_func();
5421 int main() {
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5427 choke me
5428 #else
5429 $ac_func();
5430 #endif
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest*
5436 eval "ac_cv_func_$ac_func=yes"
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 eval "ac_cv_func_$ac_func=no"
5443 rm -f conftest*
5446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_func 1
5453 else
5454 echo "$ac_t""no" 1>&6
5455 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5457 done
5460 for ac_func in __signbit
5462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5463 echo "configure:5464: checking for $ac_func" >&5
5464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466 else
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* System header to define __stub macros and hopefully few prototypes,
5471 which can conflict with char $ac_func(); below. */
5472 #include <assert.h>
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5476 char $ac_func();
5478 int main() {
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5484 choke me
5485 #else
5486 $ac_func();
5487 #endif
5489 ; return 0; }
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5492 rm -rf conftest*
5493 eval "ac_cv_func_$ac_func=yes"
5494 else
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 rm -rf conftest*
5498 eval "ac_cv_func_$ac_func=no"
5500 rm -f conftest*
5503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_func 1
5510 else
5511 echo "$ac_t""no" 1>&6
5512 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5514 done
5516 for ac_func in __signbitf
5518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5519 echo "configure:5520: checking for $ac_func" >&5
5520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5522 else
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char $ac_func(); below. */
5528 #include <assert.h>
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5532 char $ac_func();
5534 int main() {
5536 /* The GNU C library defines this for functions which it implements
5537 to always fail with ENOSYS. Some functions are actually named
5538 something starting with __ and the normal name is an alias. */
5539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5540 choke me
5541 #else
5542 $ac_func();
5543 #endif
5545 ; return 0; }
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5548 rm -rf conftest*
5549 eval "ac_cv_func_$ac_func=yes"
5550 else
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5553 rm -rf conftest*
5554 eval "ac_cv_func_$ac_func=no"
5556 rm -f conftest*
5559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5562 cat >> confdefs.h <<EOF
5563 #define $ac_tr_func 1
5566 else
5567 echo "$ac_t""no" 1>&6
5568 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5570 done
5573 if test x$ac_cv_func_copysignl = x"yes"; then
5574 for ac_func in __signbitl
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5586 #include <assert.h>
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5590 char $ac_func();
5592 int main() {
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5598 choke me
5599 #else
5600 $ac_func();
5601 #endif
5603 ; return 0; }
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 rm -rf conftest*
5607 eval "ac_cv_func_$ac_func=yes"
5608 else
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=no"
5614 rm -f conftest*
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h <<EOF
5621 #define $ac_tr_func 1
5624 else
5625 echo "$ac_t""no" 1>&6
5626 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5628 done
5632 if test -n "$LIBMATHOBJS"; then
5633 need_libmath=yes
5638 if test "$need_libmath" = yes; then
5639 GLIBCPP_BUILD_LIBMATH_TRUE=
5640 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5641 else
5642 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5643 GLIBCPP_BUILD_LIBMATH_FALSE=
5647 enable_wchar_t=no
5649 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5650 echo "configure:5651: checking for mbstate_t" >&5
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 #include <wchar.h>
5655 int main() {
5656 mbstate_t teststate;
5657 ; return 0; }
5659 if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5660 rm -rf conftest*
5661 have_mbstate_t=yes
5662 else
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 have_mbstate_t=no
5668 rm -f conftest*
5669 echo "$ac_t""$have_mbstate_t" 1>&6
5670 if test x"$have_mbstate_t" = xyes; then
5671 cat >> confdefs.h <<\EOF
5672 #define HAVE_MBSTATE_T 1
5677 for ac_hdr in wchar.h
5679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_hdr" >&5
5682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5684 else
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 #include <$ac_hdr>
5690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5693 if test -z "$ac_err"; then
5694 rm -rf conftest*
5695 eval "ac_cv_header_$ac_safe=yes"
5696 else
5697 echo "$ac_err" >&5
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 rm -rf conftest*
5701 eval "ac_cv_header_$ac_safe=no"
5703 rm -f conftest*
5705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5708 cat >> confdefs.h <<EOF
5709 #define $ac_tr_hdr 1
5711 ac_has_wchar_h=yes
5712 else
5713 echo "$ac_t""no" 1>&6
5714 ac_has_wchar_h=no
5716 done
5718 for ac_hdr in wctype.h
5720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5722 echo "configure:5723: checking for $ac_hdr" >&5
5723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5725 else
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 #include <$ac_hdr>
5731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5732 { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5734 if test -z "$ac_err"; then
5735 rm -rf conftest*
5736 eval "ac_cv_header_$ac_safe=yes"
5737 else
5738 echo "$ac_err" >&5
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_header_$ac_safe=no"
5744 rm -f conftest*
5746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5749 cat >> confdefs.h <<EOF
5750 #define $ac_tr_hdr 1
5752 ac_has_wctype_h=yes
5753 else
5754 echo "$ac_t""no" 1>&6
5755 ac_has_wctype_h=no
5757 done
5760 if test x"$ac_has_wchar_h" = xyes &&
5761 test x"$ac_has_wctype_h" = xyes &&
5762 test x"$enable_c_mbchar" != xno; then
5764 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5765 echo "configure:5766: checking for WCHAR_MIN and WCHAR_MAX" >&5
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 #include <wchar.h>
5770 int main() {
5771 int i = WCHAR_MIN; int j = WCHAR_MAX;
5772 ; return 0; }
5774 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5775 rm -rf conftest*
5776 has_wchar_minmax=yes
5777 else
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 rm -rf conftest*
5781 has_wchar_minmax=no
5783 rm -f conftest*
5784 echo "$ac_t""$has_wchar_minmax" 1>&6
5786 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5787 echo "configure:5788: checking for WEOF" >&5
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5792 #include <wchar.h>
5793 #include <stddef.h>
5794 int main() {
5795 wint_t i = WEOF;
5796 ; return 0; }
5798 if { (eval echo configure:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 rm -rf conftest*
5800 has_weof=yes
5801 else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 has_weof=no
5807 rm -f conftest*
5808 echo "$ac_t""$has_weof" 1>&6
5810 ac_wfuncs=yes
5811 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_func" >&5
5815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5817 else
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func(); below. */
5823 #include <assert.h>
5824 /* Override any gcc2 internal prototype to avoid an error. */
5825 /* We use char because int might match the return type of a gcc2
5826 builtin and then its argument prototype would still apply. */
5827 char $ac_func();
5829 int main() {
5831 /* The GNU C library defines this for functions which it implements
5832 to always fail with ENOSYS. Some functions are actually named
5833 something starting with __ and the normal name is an alias. */
5834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5835 choke me
5836 #else
5837 $ac_func();
5838 #endif
5840 ; return 0; }
5842 if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5843 rm -rf conftest*
5844 eval "ac_cv_func_$ac_func=yes"
5845 else
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5848 rm -rf conftest*
5849 eval "ac_cv_func_$ac_func=no"
5851 rm -f conftest*
5854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5855 echo "$ac_t""yes" 1>&6
5856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5857 cat >> confdefs.h <<EOF
5858 #define $ac_tr_func 1
5861 else
5862 echo "$ac_t""no" 1>&6
5864 ac_wfuncs=no
5866 done
5869 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5870 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5871 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5872 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5873 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5874 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_func" >&5
5878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 /* System header to define __stub macros and hopefully few prototypes,
5885 which can conflict with char $ac_func(); below. */
5886 #include <assert.h>
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5890 char $ac_func();
5892 int main() {
5894 /* The GNU C library defines this for functions which it implements
5895 to always fail with ENOSYS. Some functions are actually named
5896 something starting with __ and the normal name is an alias. */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 $ac_func();
5901 #endif
5903 ; return 0; }
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906 rm -rf conftest*
5907 eval "ac_cv_func_$ac_func=yes"
5908 else
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 rm -rf conftest*
5912 eval "ac_cv_func_$ac_func=no"
5914 rm -f conftest*
5917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5920 cat >> confdefs.h <<EOF
5921 #define $ac_tr_func 1
5924 else
5925 echo "$ac_t""no" 1>&6
5927 ac_wfuncs=no
5929 done
5932 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5933 echo "configure:5934: checking for ISO C99 wchar_t support" >&5
5934 if test x"$has_weof" = xyes &&
5935 test x"$has_wchar_minmax" = xyes &&
5936 test x"$ac_wfuncs" = xyes; then
5937 ac_isoC99_wchar_t=yes
5938 else
5939 ac_isoC99_wchar_t=no
5941 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5943 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5944 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5945 echo "configure:5946: checking for iconv.h" >&5
5946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5948 else
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <iconv.h>
5954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5955 { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5957 if test -z "$ac_err"; then
5958 rm -rf conftest*
5959 eval "ac_cv_header_$ac_safe=yes"
5960 else
5961 echo "$ac_err" >&5
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 rm -rf conftest*
5965 eval "ac_cv_header_$ac_safe=no"
5967 rm -f conftest*
5969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_has_iconv_h=yes
5972 else
5973 echo "$ac_t""no" 1>&6
5974 ac_has_iconv_h=no
5977 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5978 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5979 echo "configure:5980: checking for langinfo.h" >&5
5980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5982 else
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 #include <langinfo.h>
5988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5989 { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5991 if test -z "$ac_err"; then
5992 rm -rf conftest*
5993 eval "ac_cv_header_$ac_safe=yes"
5994 else
5995 echo "$ac_err" >&5
5996 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5998 rm -rf conftest*
5999 eval "ac_cv_header_$ac_safe=no"
6001 rm -f conftest*
6003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6005 ac_has_langinfo_h=yes
6006 else
6007 echo "$ac_t""no" 1>&6
6008 ac_has_langinfo_h=no
6012 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6013 echo "configure:6014: checking for iconv in -liconv" >&5
6014 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6017 else
6018 ac_save_LIBS="$LIBS"
6019 LIBS="-liconv $LIBS"
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6026 char iconv();
6028 int main() {
6029 iconv()
6030 ; return 0; }
6032 if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6033 rm -rf conftest*
6034 eval "ac_cv_lib_$ac_lib_var=yes"
6035 else
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6038 rm -rf conftest*
6039 eval "ac_cv_lib_$ac_lib_var=no"
6041 rm -f conftest*
6042 LIBS="$ac_save_LIBS"
6045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6046 echo "$ac_t""yes" 1>&6
6047 libiconv="-liconv"
6048 else
6049 echo "$ac_t""no" 1>&6
6052 ac_save_LIBS="$LIBS"
6053 LIBS="$LIBS $libiconv"
6055 for ac_func in iconv_open iconv_close iconv nl_langinfo
6057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061 else
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6067 #include <assert.h>
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char $ac_func();
6073 int main() {
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 choke me
6080 #else
6081 $ac_func();
6082 #endif
6084 ; return 0; }
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 rm -rf conftest*
6088 eval "ac_cv_func_$ac_func=yes"
6089 else
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 rm -rf conftest*
6093 eval "ac_cv_func_$ac_func=no"
6095 rm -f conftest*
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_func 1
6105 ac_XPG2funcs=yes
6106 else
6107 echo "$ac_t""no" 1>&6
6108 ac_XPG2funcs=no
6110 done
6113 LIBS="$ac_save_LIBS"
6115 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6116 echo "configure:6117: checking for XPG2 wchar_t support" >&5
6117 if test x"$ac_has_iconv_h" = xyes &&
6118 test x"$ac_has_langinfo_h" = xyes &&
6119 test x"$ac_XPG2funcs" = xyes; then
6120 ac_XPG2_wchar_t=yes
6121 else
6122 ac_XPG2_wchar_t=no
6124 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6126 if test x"$ac_isoC99_wchar_t" = xyes &&
6127 test x"$ac_XPG2_wchar_t" = xyes; then
6128 cat >> confdefs.h <<\EOF
6129 #define _GLIBCPP_USE_WCHAR_T 1
6132 enable_wchar_t=yes
6135 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6136 echo "configure:6137: checking for enabled wchar_t specializations" >&5
6137 echo "$ac_t""$enable_wchar_t" 1>&6
6140 if test "$enable_wchar_t" = yes; then
6141 GLIBCPP_TEST_WCHAR_T_TRUE=
6142 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6143 else
6144 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6145 GLIBCPP_TEST_WCHAR_T_FALSE=
6148 os_include_dir="os/hpux"
6149 cat >> confdefs.h <<\EOF
6150 #define HAVE_COPYSIGN 1
6153 cat >> confdefs.h <<\EOF
6154 #define HAVE_COPYSIGNF 1
6157 cat >> confdefs.h <<\EOF
6158 #define HAVE_FREXPF 1
6161 cat >> confdefs.h <<\EOF
6162 #define HAVE_HYPOT 1
6165 case "$target" in
6166 *-hpux10*)
6167 cat >> confdefs.h <<\EOF
6168 #define HAVE_FINITE 1
6171 cat >> confdefs.h <<\EOF
6172 #define HAVE_FINITEF 1
6175 cat >> confdefs.h <<\EOF
6176 #define HAVE_ISINF 1
6179 cat >> confdefs.h <<\EOF
6180 #define HAVE_ISINFF 1
6183 cat >> confdefs.h <<\EOF
6184 #define HAVE_ISNAN 1
6187 cat >> confdefs.h <<\EOF
6188 #define HAVE_ISNANF 1
6192 esac
6195 *-netbsd*)
6196 # Check for available headers.
6197 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6198 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6199 fp.h locale.h float.h inttypes.h
6201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_hdr" >&5
6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206 else
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 #include <$ac_hdr>
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6215 if test -z "$ac_err"; then
6216 rm -rf conftest*
6217 eval "ac_cv_header_$ac_safe=yes"
6218 else
6219 echo "$ac_err" >&5
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 rm -rf conftest*
6223 eval "ac_cv_header_$ac_safe=no"
6225 rm -f conftest*
6227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6230 cat >> confdefs.h <<EOF
6231 #define $ac_tr_hdr 1
6234 else
6235 echo "$ac_t""no" 1>&6
6237 done
6239 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6242 # If we're not using GNU ld, then there's no point in even trying these
6243 # tests. Check for that first. We should have already tested for gld
6244 # by now (in libtool), but require it now just to be safe...
6245 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6246 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6249 # The name set by libtool depends on the version of libtool. Shame on us
6250 # for depending on an impl detail, but c'est la vie. Older versions used
6251 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6252 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6253 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6254 # set (hence we're using an older libtool), then set it.
6255 if test x${with_gnu_ld+set} != xset; then
6256 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6257 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6258 with_gnu_ld=no
6259 else
6260 with_gnu_ld=$ac_cv_prog_gnu_ld
6264 # Start by getting the version number. I think the libtool test already
6265 # does some of this, but throws away the result.
6267 ldver=`$LD --version 2>/dev/null | head -1 | \
6268 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6270 glibcpp_gnu_ld_version=`echo $ldver | \
6271 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6273 # Set --gc-sections.
6274 if test "$with_gnu_ld" = "notbroken"; then
6275 # GNU ld it is! Joy and bunny rabbits!
6277 # All these tests are for C++; save the language and the compiler flags.
6278 # Need to do this so that g++ won't try to link in libstdc++
6279 ac_test_CFLAGS="${CFLAGS+set}"
6280 ac_save_CFLAGS="$CFLAGS"
6281 CFLAGS='-x c++ -Wl,--gc-sections'
6283 # Check for -Wl,--gc-sections
6284 # XXX This test is broken at the moment, as symbols required for
6285 # linking are now in libsupc++ (not built yet.....). In addition,
6286 # this test has cored on solaris in the past. In addition,
6287 # --gc-sections doesn't really work at the moment (keeps on discarding
6288 # used sections, first .eh_frame and now some of the glibc sections for
6289 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6290 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6291 echo "configure:6292: checking for ld that supports -Wl,--gc-sections" >&5
6292 if test "$cross_compiling" = yes; then
6293 ac_sectionLDflags=yes
6294 else
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6299 int main(void)
6301 try { throw 1; }
6302 catch (...) { };
6303 return 0;
6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6308 then
6309 ac_sectionLDflags=yes
6310 else
6311 echo "configure: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6313 rm -fr conftest*
6314 ac_sectionLDflags=no
6316 rm -fr conftest*
6319 if test "$ac_test_CFLAGS" = set; then
6320 CFLAGS="$ac_save_CFLAGS"
6321 else
6322 # this is the suspicious part
6323 CFLAGS=''
6325 if test "$ac_sectionLDflags" = "yes"; then
6326 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6328 echo "$ac_t""$ac_sectionLDflags" 1>&6
6331 # Set linker optimization flags.
6332 if test x"$with_gnu_ld" = x"yes"; then
6333 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6340 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6341 echo "configure:6342: checking for main in -lm" >&5
6342 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6345 else
6346 ac_save_LIBS="$LIBS"
6347 LIBS="-lm $LIBS"
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6352 int main() {
6353 main()
6354 ; return 0; }
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest*
6358 eval "ac_cv_lib_$ac_lib_var=yes"
6359 else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -rf conftest*
6363 eval "ac_cv_lib_$ac_lib_var=no"
6365 rm -f conftest*
6366 LIBS="$ac_save_LIBS"
6369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_lib 1
6377 LIBS="-lm $LIBS"
6379 else
6380 echo "$ac_t""no" 1>&6
6383 for ac_func in nan copysignf
6385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6386 echo "configure:6387: checking for $ac_func" >&5
6387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6389 else
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func(); below. */
6395 #include <assert.h>
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399 char $ac_func();
6401 int main() {
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 choke me
6408 #else
6409 $ac_func();
6410 #endif
6412 ; return 0; }
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 rm -rf conftest*
6416 eval "ac_cv_func_$ac_func=yes"
6417 else
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6420 rm -rf conftest*
6421 eval "ac_cv_func_$ac_func=no"
6423 rm -f conftest*
6426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_func 1
6433 else
6434 echo "$ac_t""no" 1>&6
6435 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6437 done
6440 for ac_func in __signbit
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446 else
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func(); below. */
6452 #include <assert.h>
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456 char $ac_func();
6458 int main() {
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 choke me
6465 #else
6466 $ac_func();
6467 #endif
6469 ; return 0; }
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 rm -rf conftest*
6473 eval "ac_cv_func_$ac_func=yes"
6474 else
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6477 rm -rf conftest*
6478 eval "ac_cv_func_$ac_func=no"
6480 rm -f conftest*
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6486 cat >> confdefs.h <<EOF
6487 #define $ac_tr_func 1
6490 else
6491 echo "$ac_t""no" 1>&6
6492 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6494 done
6496 for ac_func in __signbitf
6498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6499 echo "configure:6500: checking for $ac_func" >&5
6500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6502 else
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6506 /* System header to define __stub macros and hopefully few prototypes,
6507 which can conflict with char $ac_func(); below. */
6508 #include <assert.h>
6509 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6512 char $ac_func();
6514 int main() {
6516 /* The GNU C library defines this for functions which it implements
6517 to always fail with ENOSYS. Some functions are actually named
6518 something starting with __ and the normal name is an alias. */
6519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6520 choke me
6521 #else
6522 $ac_func();
6523 #endif
6525 ; return 0; }
6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6528 rm -rf conftest*
6529 eval "ac_cv_func_$ac_func=yes"
6530 else
6531 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 rm -rf conftest*
6534 eval "ac_cv_func_$ac_func=no"
6536 rm -f conftest*
6539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6540 echo "$ac_t""yes" 1>&6
6541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6542 cat >> confdefs.h <<EOF
6543 #define $ac_tr_func 1
6546 else
6547 echo "$ac_t""no" 1>&6
6548 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6550 done
6553 if test x$ac_cv_func_copysignl = x"yes"; then
6554 for ac_func in __signbitl
6556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6557 echo "configure:6558: checking for $ac_func" >&5
6558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6560 else
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char $ac_func(); below. */
6566 #include <assert.h>
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char $ac_func();
6572 int main() {
6574 /* The GNU C library defines this for functions which it implements
6575 to always fail with ENOSYS. Some functions are actually named
6576 something starting with __ and the normal name is an alias. */
6577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 choke me
6579 #else
6580 $ac_func();
6581 #endif
6583 ; return 0; }
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 rm -rf conftest*
6587 eval "ac_cv_func_$ac_func=yes"
6588 else
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 rm -rf conftest*
6592 eval "ac_cv_func_$ac_func=no"
6594 rm -f conftest*
6597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6600 cat >> confdefs.h <<EOF
6601 #define $ac_tr_func 1
6604 else
6605 echo "$ac_t""no" 1>&6
6606 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6608 done
6612 if test -n "$LIBMATHOBJS"; then
6613 need_libmath=yes
6618 if test "$need_libmath" = yes; then
6619 GLIBCPP_BUILD_LIBMATH_TRUE=
6620 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6621 else
6622 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6623 GLIBCPP_BUILD_LIBMATH_FALSE=
6627 enable_wchar_t=no
6629 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6630 echo "configure:6631: checking for mbstate_t" >&5
6631 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6634 #include <wchar.h>
6635 int main() {
6636 mbstate_t teststate;
6637 ; return 0; }
6639 if { (eval echo configure:6640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6640 rm -rf conftest*
6641 have_mbstate_t=yes
6642 else
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 rm -rf conftest*
6646 have_mbstate_t=no
6648 rm -f conftest*
6649 echo "$ac_t""$have_mbstate_t" 1>&6
6650 if test x"$have_mbstate_t" = xyes; then
6651 cat >> confdefs.h <<\EOF
6652 #define HAVE_MBSTATE_T 1
6657 for ac_hdr in wchar.h
6659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6661 echo "configure:6662: checking for $ac_hdr" >&5
6662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6664 else
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 #include <$ac_hdr>
6670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6671 { (eval echo configure:6672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6673 if test -z "$ac_err"; then
6674 rm -rf conftest*
6675 eval "ac_cv_header_$ac_safe=yes"
6676 else
6677 echo "$ac_err" >&5
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 rm -rf conftest*
6681 eval "ac_cv_header_$ac_safe=no"
6683 rm -f conftest*
6685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6688 cat >> confdefs.h <<EOF
6689 #define $ac_tr_hdr 1
6691 ac_has_wchar_h=yes
6692 else
6693 echo "$ac_t""no" 1>&6
6694 ac_has_wchar_h=no
6696 done
6698 for ac_hdr in wctype.h
6700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_hdr" >&5
6703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 #include <$ac_hdr>
6711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6712 { (eval echo configure:6713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6714 if test -z "$ac_err"; then
6715 rm -rf conftest*
6716 eval "ac_cv_header_$ac_safe=yes"
6717 else
6718 echo "$ac_err" >&5
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -rf conftest*
6722 eval "ac_cv_header_$ac_safe=no"
6724 rm -f conftest*
6726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_hdr 1
6732 ac_has_wctype_h=yes
6733 else
6734 echo "$ac_t""no" 1>&6
6735 ac_has_wctype_h=no
6737 done
6740 if test x"$ac_has_wchar_h" = xyes &&
6741 test x"$ac_has_wctype_h" = xyes &&
6742 test x"$enable_c_mbchar" != xno; then
6744 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6745 echo "configure:6746: checking for WCHAR_MIN and WCHAR_MAX" >&5
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6749 #include <wchar.h>
6750 int main() {
6751 int i = WCHAR_MIN; int j = WCHAR_MAX;
6752 ; return 0; }
6754 if { (eval echo configure:6755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6755 rm -rf conftest*
6756 has_wchar_minmax=yes
6757 else
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 rm -rf conftest*
6761 has_wchar_minmax=no
6763 rm -f conftest*
6764 echo "$ac_t""$has_wchar_minmax" 1>&6
6766 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6767 echo "configure:6768: checking for WEOF" >&5
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6772 #include <wchar.h>
6773 #include <stddef.h>
6774 int main() {
6775 wint_t i = WEOF;
6776 ; return 0; }
6778 if { (eval echo configure:6779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779 rm -rf conftest*
6780 has_weof=yes
6781 else
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 rm -rf conftest*
6785 has_weof=no
6787 rm -f conftest*
6788 echo "$ac_t""$has_weof" 1>&6
6790 ac_wfuncs=yes
6791 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_func" >&5
6795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6797 else
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* System header to define __stub macros and hopefully few prototypes,
6802 which can conflict with char $ac_func(); below. */
6803 #include <assert.h>
6804 /* Override any gcc2 internal prototype to avoid an error. */
6805 /* We use char because int might match the return type of a gcc2
6806 builtin and then its argument prototype would still apply. */
6807 char $ac_func();
6809 int main() {
6811 /* The GNU C library defines this for functions which it implements
6812 to always fail with ENOSYS. Some functions are actually named
6813 something starting with __ and the normal name is an alias. */
6814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6815 choke me
6816 #else
6817 $ac_func();
6818 #endif
6820 ; return 0; }
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6823 rm -rf conftest*
6824 eval "ac_cv_func_$ac_func=yes"
6825 else
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6828 rm -rf conftest*
6829 eval "ac_cv_func_$ac_func=no"
6831 rm -f conftest*
6834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6837 cat >> confdefs.h <<EOF
6838 #define $ac_tr_func 1
6841 else
6842 echo "$ac_t""no" 1>&6
6844 ac_wfuncs=no
6846 done
6849 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6850 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6851 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6852 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6853 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6854 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */
6866 #include <assert.h>
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6870 char $ac_func();
6872 int main() {
6874 /* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6878 choke me
6879 #else
6880 $ac_func();
6881 #endif
6883 ; return 0; }
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 rm -rf conftest*
6887 eval "ac_cv_func_$ac_func=yes"
6888 else
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 rm -rf conftest*
6892 eval "ac_cv_func_$ac_func=no"
6894 rm -f conftest*
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900 cat >> confdefs.h <<EOF
6901 #define $ac_tr_func 1
6904 else
6905 echo "$ac_t""no" 1>&6
6907 ac_wfuncs=no
6909 done
6912 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6913 echo "configure:6914: checking for ISO C99 wchar_t support" >&5
6914 if test x"$has_weof" = xyes &&
6915 test x"$has_wchar_minmax" = xyes &&
6916 test x"$ac_wfuncs" = xyes; then
6917 ac_isoC99_wchar_t=yes
6918 else
6919 ac_isoC99_wchar_t=no
6921 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6923 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6924 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6925 echo "configure:6926: checking for iconv.h" >&5
6926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6928 else
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6932 #include <iconv.h>
6934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6935 { (eval echo configure:6936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6937 if test -z "$ac_err"; then
6938 rm -rf conftest*
6939 eval "ac_cv_header_$ac_safe=yes"
6940 else
6941 echo "$ac_err" >&5
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 rm -rf conftest*
6945 eval "ac_cv_header_$ac_safe=no"
6947 rm -f conftest*
6949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_has_iconv_h=yes
6952 else
6953 echo "$ac_t""no" 1>&6
6954 ac_has_iconv_h=no
6957 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6958 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6959 echo "configure:6960: checking for langinfo.h" >&5
6960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 #include <langinfo.h>
6968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6969 { (eval echo configure:6970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6971 if test -z "$ac_err"; then
6972 rm -rf conftest*
6973 eval "ac_cv_header_$ac_safe=yes"
6974 else
6975 echo "$ac_err" >&5
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 rm -rf conftest*
6979 eval "ac_cv_header_$ac_safe=no"
6981 rm -f conftest*
6983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 ac_has_langinfo_h=yes
6986 else
6987 echo "$ac_t""no" 1>&6
6988 ac_has_langinfo_h=no
6992 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6993 echo "configure:6994: checking for iconv in -liconv" >&5
6994 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6997 else
6998 ac_save_LIBS="$LIBS"
6999 LIBS="-liconv $LIBS"
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char iconv();
7008 int main() {
7009 iconv()
7010 ; return 0; }
7012 if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7013 rm -rf conftest*
7014 eval "ac_cv_lib_$ac_lib_var=yes"
7015 else
7016 echo "configure: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7018 rm -rf conftest*
7019 eval "ac_cv_lib_$ac_lib_var=no"
7021 rm -f conftest*
7022 LIBS="$ac_save_LIBS"
7025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7027 libiconv="-liconv"
7028 else
7029 echo "$ac_t""no" 1>&6
7032 ac_save_LIBS="$LIBS"
7033 LIBS="$LIBS $libiconv"
7035 for ac_func in iconv_open iconv_close iconv nl_langinfo
7037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7038 echo "configure:7039: checking for $ac_func" >&5
7039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7041 else
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7045 /* System header to define __stub macros and hopefully few prototypes,
7046 which can conflict with char $ac_func(); below. */
7047 #include <assert.h>
7048 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7051 char $ac_func();
7053 int main() {
7055 /* The GNU C library defines this for functions which it implements
7056 to always fail with ENOSYS. Some functions are actually named
7057 something starting with __ and the normal name is an alias. */
7058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7059 choke me
7060 #else
7061 $ac_func();
7062 #endif
7064 ; return 0; }
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7067 rm -rf conftest*
7068 eval "ac_cv_func_$ac_func=yes"
7069 else
7070 echo "configure: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7072 rm -rf conftest*
7073 eval "ac_cv_func_$ac_func=no"
7075 rm -f conftest*
7078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7079 echo "$ac_t""yes" 1>&6
7080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7081 cat >> confdefs.h <<EOF
7082 #define $ac_tr_func 1
7085 ac_XPG2funcs=yes
7086 else
7087 echo "$ac_t""no" 1>&6
7088 ac_XPG2funcs=no
7090 done
7093 LIBS="$ac_save_LIBS"
7095 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7096 echo "configure:7097: checking for XPG2 wchar_t support" >&5
7097 if test x"$ac_has_iconv_h" = xyes &&
7098 test x"$ac_has_langinfo_h" = xyes &&
7099 test x"$ac_XPG2funcs" = xyes; then
7100 ac_XPG2_wchar_t=yes
7101 else
7102 ac_XPG2_wchar_t=no
7104 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7106 if test x"$ac_isoC99_wchar_t" = xyes &&
7107 test x"$ac_XPG2_wchar_t" = xyes; then
7108 cat >> confdefs.h <<\EOF
7109 #define _GLIBCPP_USE_WCHAR_T 1
7112 enable_wchar_t=yes
7115 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7116 echo "configure:7117: checking for enabled wchar_t specializations" >&5
7117 echo "$ac_t""$enable_wchar_t" 1>&6
7120 if test "$enable_wchar_t" = yes; then
7121 GLIBCPP_TEST_WCHAR_T_TRUE=
7122 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7123 else
7124 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7125 GLIBCPP_TEST_WCHAR_T_FALSE=
7128 os_include_dir="os/bsd/netbsd"
7129 cat >> confdefs.h <<\EOF
7130 #define HAVE_COPYSIGN 1
7133 cat >> confdefs.h <<\EOF
7134 #define HAVE_COPYSIGNF 1
7137 cat >> confdefs.h <<\EOF
7138 #define HAVE_FINITEF 1
7141 cat >> confdefs.h <<\EOF
7142 #define HAVE_FINITE 1
7145 cat >> confdefs.h <<\EOF
7146 #define HAVE_FREXPF 1
7149 cat >> confdefs.h <<\EOF
7150 #define HAVE_HYPOTF 1
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_ISINF 1
7157 cat >> confdefs.h <<\EOF
7158 #define HAVE_ISINFF 1
7161 cat >> confdefs.h <<\EOF
7162 #define HAVE_ISNAN 1
7165 cat >> confdefs.h <<\EOF
7166 #define HAVE_ISNANF 1
7169 if test x"long_double_math_on_this_cpu" = x"yes"; then
7170 cat >> confdefs.h <<\EOF
7171 #define HAVE_FINITEL 1
7174 cat >> confdefs.h <<\EOF
7175 #define HAVE_ISINFL 1
7178 cat >> confdefs.h <<\EOF
7179 #define HAVE_ISNANL 1
7184 *-freebsd*)
7185 # Check for available headers.
7186 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7187 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7188 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7189 sys/time.h unistd.h
7191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7193 echo "configure:7194: checking for $ac_hdr" >&5
7194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7196 else
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 #include <$ac_hdr>
7202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7203 { (eval echo configure:7204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7205 if test -z "$ac_err"; then
7206 rm -rf conftest*
7207 eval "ac_cv_header_$ac_safe=yes"
7208 else
7209 echo "$ac_err" >&5
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 rm -rf conftest*
7213 eval "ac_cv_header_$ac_safe=no"
7215 rm -f conftest*
7217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_hdr 1
7224 else
7225 echo "$ac_t""no" 1>&6
7227 done
7229 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7232 # If we're not using GNU ld, then there's no point in even trying these
7233 # tests. Check for that first. We should have already tested for gld
7234 # by now (in libtool), but require it now just to be safe...
7235 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7236 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7239 # The name set by libtool depends on the version of libtool. Shame on us
7240 # for depending on an impl detail, but c'est la vie. Older versions used
7241 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7242 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7243 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7244 # set (hence we're using an older libtool), then set it.
7245 if test x${with_gnu_ld+set} != xset; then
7246 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7247 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7248 with_gnu_ld=no
7249 else
7250 with_gnu_ld=$ac_cv_prog_gnu_ld
7254 # Start by getting the version number. I think the libtool test already
7255 # does some of this, but throws away the result.
7257 ldver=`$LD --version 2>/dev/null | head -1 | \
7258 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7260 glibcpp_gnu_ld_version=`echo $ldver | \
7261 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7263 # Set --gc-sections.
7264 if test "$with_gnu_ld" = "notbroken"; then
7265 # GNU ld it is! Joy and bunny rabbits!
7267 # All these tests are for C++; save the language and the compiler flags.
7268 # Need to do this so that g++ won't try to link in libstdc++
7269 ac_test_CFLAGS="${CFLAGS+set}"
7270 ac_save_CFLAGS="$CFLAGS"
7271 CFLAGS='-x c++ -Wl,--gc-sections'
7273 # Check for -Wl,--gc-sections
7274 # XXX This test is broken at the moment, as symbols required for
7275 # linking are now in libsupc++ (not built yet.....). In addition,
7276 # this test has cored on solaris in the past. In addition,
7277 # --gc-sections doesn't really work at the moment (keeps on discarding
7278 # used sections, first .eh_frame and now some of the glibc sections for
7279 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7280 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7281 echo "configure:7282: checking for ld that supports -Wl,--gc-sections" >&5
7282 if test "$cross_compiling" = yes; then
7283 ac_sectionLDflags=yes
7284 else
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7289 int main(void)
7291 try { throw 1; }
7292 catch (...) { };
7293 return 0;
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7298 then
7299 ac_sectionLDflags=yes
7300 else
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 rm -fr conftest*
7304 ac_sectionLDflags=no
7306 rm -fr conftest*
7309 if test "$ac_test_CFLAGS" = set; then
7310 CFLAGS="$ac_save_CFLAGS"
7311 else
7312 # this is the suspicious part
7313 CFLAGS=''
7315 if test "$ac_sectionLDflags" = "yes"; then
7316 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7318 echo "$ac_t""$ac_sectionLDflags" 1>&6
7321 # Set linker optimization flags.
7322 if test x"$with_gnu_ld" = x"yes"; then
7323 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7330 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7331 echo "configure:7332: checking for main in -lm" >&5
7332 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7335 else
7336 ac_save_LIBS="$LIBS"
7337 LIBS="-lm $LIBS"
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7342 int main() {
7343 main()
7344 ; return 0; }
7346 if { (eval echo configure:7347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7347 rm -rf conftest*
7348 eval "ac_cv_lib_$ac_lib_var=yes"
7349 else
7350 echo "configure: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 rm -rf conftest*
7353 eval "ac_cv_lib_$ac_lib_var=no"
7355 rm -f conftest*
7356 LIBS="$ac_save_LIBS"
7359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7360 echo "$ac_t""yes" 1>&6
7361 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7363 cat >> confdefs.h <<EOF
7364 #define $ac_tr_lib 1
7367 LIBS="-lm $LIBS"
7369 else
7370 echo "$ac_t""no" 1>&6
7373 for ac_func in nan copysignf
7375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7376 echo "configure:7377: checking for $ac_func" >&5
7377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7378 echo $ac_n "(cached) $ac_c" 1>&6
7379 else
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 /* System header to define __stub macros and hopefully few prototypes,
7384 which can conflict with char $ac_func(); below. */
7385 #include <assert.h>
7386 /* Override any gcc2 internal prototype to avoid an error. */
7387 /* We use char because int might match the return type of a gcc2
7388 builtin and then its argument prototype would still apply. */
7389 char $ac_func();
7391 int main() {
7393 /* The GNU C library defines this for functions which it implements
7394 to always fail with ENOSYS. Some functions are actually named
7395 something starting with __ and the normal name is an alias. */
7396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7397 choke me
7398 #else
7399 $ac_func();
7400 #endif
7402 ; return 0; }
7404 if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7405 rm -rf conftest*
7406 eval "ac_cv_func_$ac_func=yes"
7407 else
7408 echo "configure: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 rm -rf conftest*
7411 eval "ac_cv_func_$ac_func=no"
7413 rm -f conftest*
7416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7417 echo "$ac_t""yes" 1>&6
7418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7419 cat >> confdefs.h <<EOF
7420 #define $ac_tr_func 1
7423 else
7424 echo "$ac_t""no" 1>&6
7425 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7427 done
7430 for ac_func in __signbit
7432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7433 echo "configure:7434: checking for $ac_func" >&5
7434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7436 else
7437 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func(); below. */
7442 #include <assert.h>
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7446 char $ac_func();
7448 int main() {
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7454 choke me
7455 #else
7456 $ac_func();
7457 #endif
7459 ; return 0; }
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7462 rm -rf conftest*
7463 eval "ac_cv_func_$ac_func=yes"
7464 else
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 rm -rf conftest*
7468 eval "ac_cv_func_$ac_func=no"
7470 rm -f conftest*
7473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7476 cat >> confdefs.h <<EOF
7477 #define $ac_tr_func 1
7480 else
7481 echo "$ac_t""no" 1>&6
7482 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7484 done
7486 for ac_func in __signbitf
7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_func" >&5
7490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7492 else
7493 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char $ac_func(); below. */
7498 #include <assert.h>
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7502 char $ac_func();
7504 int main() {
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7510 choke me
7511 #else
7512 $ac_func();
7513 #endif
7515 ; return 0; }
7517 if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518 rm -rf conftest*
7519 eval "ac_cv_func_$ac_func=yes"
7520 else
7521 echo "configure: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7523 rm -rf conftest*
7524 eval "ac_cv_func_$ac_func=no"
7526 rm -f conftest*
7529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7532 cat >> confdefs.h <<EOF
7533 #define $ac_tr_func 1
7536 else
7537 echo "$ac_t""no" 1>&6
7538 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7540 done
7543 if test x$ac_cv_func_copysignl = x"yes"; then
7544 for ac_func in __signbitl
7546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_func" >&5
7548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550 else
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char $ac_func(); below. */
7556 #include <assert.h>
7557 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7560 char $ac_func();
7562 int main() {
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7568 choke me
7569 #else
7570 $ac_func();
7571 #endif
7573 ; return 0; }
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7576 rm -rf conftest*
7577 eval "ac_cv_func_$ac_func=yes"
7578 else
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 rm -rf conftest*
7582 eval "ac_cv_func_$ac_func=no"
7584 rm -f conftest*
7587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7590 cat >> confdefs.h <<EOF
7591 #define $ac_tr_func 1
7594 else
7595 echo "$ac_t""no" 1>&6
7596 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7598 done
7602 if test -n "$LIBMATHOBJS"; then
7603 need_libmath=yes
7608 if test "$need_libmath" = yes; then
7609 GLIBCPP_BUILD_LIBMATH_TRUE=
7610 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7611 else
7612 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7613 GLIBCPP_BUILD_LIBMATH_FALSE=
7617 enable_wchar_t=no
7619 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7620 echo "configure:7621: checking for mbstate_t" >&5
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 #include <wchar.h>
7625 int main() {
7626 mbstate_t teststate;
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7630 rm -rf conftest*
7631 have_mbstate_t=yes
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 have_mbstate_t=no
7638 rm -f conftest*
7639 echo "$ac_t""$have_mbstate_t" 1>&6
7640 if test x"$have_mbstate_t" = xyes; then
7641 cat >> confdefs.h <<\EOF
7642 #define HAVE_MBSTATE_T 1
7647 for ac_hdr in wchar.h
7649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7651 echo "configure:7652: checking for $ac_hdr" >&5
7652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7654 else
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 #include <$ac_hdr>
7660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7661 { (eval echo configure:7662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7663 if test -z "$ac_err"; then
7664 rm -rf conftest*
7665 eval "ac_cv_header_$ac_safe=yes"
7666 else
7667 echo "$ac_err" >&5
7668 echo "configure: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7670 rm -rf conftest*
7671 eval "ac_cv_header_$ac_safe=no"
7673 rm -f conftest*
7675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7676 echo "$ac_t""yes" 1>&6
7677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7678 cat >> confdefs.h <<EOF
7679 #define $ac_tr_hdr 1
7681 ac_has_wchar_h=yes
7682 else
7683 echo "$ac_t""no" 1>&6
7684 ac_has_wchar_h=no
7686 done
7688 for ac_hdr in wctype.h
7690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7692 echo "configure:7693: checking for $ac_hdr" >&5
7693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7695 else
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 #include <$ac_hdr>
7701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7702 { (eval echo configure:7703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7704 if test -z "$ac_err"; then
7705 rm -rf conftest*
7706 eval "ac_cv_header_$ac_safe=yes"
7707 else
7708 echo "$ac_err" >&5
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7711 rm -rf conftest*
7712 eval "ac_cv_header_$ac_safe=no"
7714 rm -f conftest*
7716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7719 cat >> confdefs.h <<EOF
7720 #define $ac_tr_hdr 1
7722 ac_has_wctype_h=yes
7723 else
7724 echo "$ac_t""no" 1>&6
7725 ac_has_wctype_h=no
7727 done
7730 if test x"$ac_has_wchar_h" = xyes &&
7731 test x"$ac_has_wctype_h" = xyes &&
7732 test x"$enable_c_mbchar" != xno; then
7734 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7735 echo "configure:7736: checking for WCHAR_MIN and WCHAR_MAX" >&5
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 #include <wchar.h>
7740 int main() {
7741 int i = WCHAR_MIN; int j = WCHAR_MAX;
7742 ; return 0; }
7744 if { (eval echo configure:7745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7745 rm -rf conftest*
7746 has_wchar_minmax=yes
7747 else
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 rm -rf conftest*
7751 has_wchar_minmax=no
7753 rm -f conftest*
7754 echo "$ac_t""$has_wchar_minmax" 1>&6
7756 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7757 echo "configure:7758: checking for WEOF" >&5
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7762 #include <wchar.h>
7763 #include <stddef.h>
7764 int main() {
7765 wint_t i = WEOF;
7766 ; return 0; }
7768 if { (eval echo configure:7769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7769 rm -rf conftest*
7770 has_weof=yes
7771 else
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 rm -rf conftest*
7775 has_weof=no
7777 rm -f conftest*
7778 echo "$ac_t""$has_weof" 1>&6
7780 ac_wfuncs=yes
7781 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7784 echo "configure:7785: checking for $ac_func" >&5
7785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7787 else
7788 cat > conftest.$ac_ext <<EOF
7789 #line 7790 "configure"
7790 #include "confdefs.h"
7791 /* System header to define __stub macros and hopefully few prototypes,
7792 which can conflict with char $ac_func(); below. */
7793 #include <assert.h>
7794 /* Override any gcc2 internal prototype to avoid an error. */
7795 /* We use char because int might match the return type of a gcc2
7796 builtin and then its argument prototype would still apply. */
7797 char $ac_func();
7799 int main() {
7801 /* The GNU C library defines this for functions which it implements
7802 to always fail with ENOSYS. Some functions are actually named
7803 something starting with __ and the normal name is an alias. */
7804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7805 choke me
7806 #else
7807 $ac_func();
7808 #endif
7810 ; return 0; }
7812 if { (eval echo configure:7813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 rm -rf conftest*
7814 eval "ac_cv_func_$ac_func=yes"
7815 else
7816 echo "configure: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7818 rm -rf conftest*
7819 eval "ac_cv_func_$ac_func=no"
7821 rm -f conftest*
7824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7827 cat >> confdefs.h <<EOF
7828 #define $ac_tr_func 1
7831 else
7832 echo "$ac_t""no" 1>&6
7834 ac_wfuncs=no
7836 done
7839 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7840 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7841 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7842 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7843 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7844 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7847 echo "configure:7848: checking for $ac_func" >&5
7848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7850 else
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* System header to define __stub macros and hopefully few prototypes,
7855 which can conflict with char $ac_func(); below. */
7856 #include <assert.h>
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7860 char $ac_func();
7862 int main() {
7864 /* The GNU C library defines this for functions which it implements
7865 to always fail with ENOSYS. Some functions are actually named
7866 something starting with __ and the normal name is an alias. */
7867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7868 choke me
7869 #else
7870 $ac_func();
7871 #endif
7873 ; return 0; }
7875 if { (eval echo configure:7876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7876 rm -rf conftest*
7877 eval "ac_cv_func_$ac_func=yes"
7878 else
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7881 rm -rf conftest*
7882 eval "ac_cv_func_$ac_func=no"
7884 rm -f conftest*
7887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7888 echo "$ac_t""yes" 1>&6
7889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7890 cat >> confdefs.h <<EOF
7891 #define $ac_tr_func 1
7894 else
7895 echo "$ac_t""no" 1>&6
7897 ac_wfuncs=no
7899 done
7902 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7903 echo "configure:7904: checking for ISO C99 wchar_t support" >&5
7904 if test x"$has_weof" = xyes &&
7905 test x"$has_wchar_minmax" = xyes &&
7906 test x"$ac_wfuncs" = xyes; then
7907 ac_isoC99_wchar_t=yes
7908 else
7909 ac_isoC99_wchar_t=no
7911 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7913 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7914 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7915 echo "configure:7916: checking for iconv.h" >&5
7916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7918 else
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 #include <iconv.h>
7924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7925 { (eval echo configure:7926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7927 if test -z "$ac_err"; then
7928 rm -rf conftest*
7929 eval "ac_cv_header_$ac_safe=yes"
7930 else
7931 echo "$ac_err" >&5
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7934 rm -rf conftest*
7935 eval "ac_cv_header_$ac_safe=no"
7937 rm -f conftest*
7939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_has_iconv_h=yes
7942 else
7943 echo "$ac_t""no" 1>&6
7944 ac_has_iconv_h=no
7947 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7948 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7949 echo "configure:7950: checking for langinfo.h" >&5
7950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7952 else
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 #include <langinfo.h>
7958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7959 { (eval echo configure:7960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7961 if test -z "$ac_err"; then
7962 rm -rf conftest*
7963 eval "ac_cv_header_$ac_safe=yes"
7964 else
7965 echo "$ac_err" >&5
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 rm -rf conftest*
7969 eval "ac_cv_header_$ac_safe=no"
7971 rm -f conftest*
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_has_langinfo_h=yes
7976 else
7977 echo "$ac_t""no" 1>&6
7978 ac_has_langinfo_h=no
7982 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7983 echo "configure:7984: checking for iconv in -liconv" >&5
7984 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6
7987 else
7988 ac_save_LIBS="$LIBS"
7989 LIBS="-liconv $LIBS"
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996 char iconv();
7998 int main() {
7999 iconv()
8000 ; return 0; }
8002 if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8003 rm -rf conftest*
8004 eval "ac_cv_lib_$ac_lib_var=yes"
8005 else
8006 echo "configure: failed program was:" >&5
8007 cat conftest.$ac_ext >&5
8008 rm -rf conftest*
8009 eval "ac_cv_lib_$ac_lib_var=no"
8011 rm -f conftest*
8012 LIBS="$ac_save_LIBS"
8015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8016 echo "$ac_t""yes" 1>&6
8017 libiconv="-liconv"
8018 else
8019 echo "$ac_t""no" 1>&6
8022 ac_save_LIBS="$LIBS"
8023 LIBS="$LIBS $libiconv"
8025 for ac_func in iconv_open iconv_close iconv nl_langinfo
8027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_func" >&5
8029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8031 else
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 /* System header to define __stub macros and hopefully few prototypes,
8036 which can conflict with char $ac_func(); below. */
8037 #include <assert.h>
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8041 char $ac_func();
8043 int main() {
8045 /* The GNU C library defines this for functions which it implements
8046 to always fail with ENOSYS. Some functions are actually named
8047 something starting with __ and the normal name is an alias. */
8048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8049 choke me
8050 #else
8051 $ac_func();
8052 #endif
8054 ; return 0; }
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8057 rm -rf conftest*
8058 eval "ac_cv_func_$ac_func=yes"
8059 else
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 rm -rf conftest*
8063 eval "ac_cv_func_$ac_func=no"
8065 rm -f conftest*
8068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8071 cat >> confdefs.h <<EOF
8072 #define $ac_tr_func 1
8075 ac_XPG2funcs=yes
8076 else
8077 echo "$ac_t""no" 1>&6
8078 ac_XPG2funcs=no
8080 done
8083 LIBS="$ac_save_LIBS"
8085 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8086 echo "configure:8087: checking for XPG2 wchar_t support" >&5
8087 if test x"$ac_has_iconv_h" = xyes &&
8088 test x"$ac_has_langinfo_h" = xyes &&
8089 test x"$ac_XPG2funcs" = xyes; then
8090 ac_XPG2_wchar_t=yes
8091 else
8092 ac_XPG2_wchar_t=no
8094 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8096 if test x"$ac_isoC99_wchar_t" = xyes &&
8097 test x"$ac_XPG2_wchar_t" = xyes; then
8098 cat >> confdefs.h <<\EOF
8099 #define _GLIBCPP_USE_WCHAR_T 1
8102 enable_wchar_t=yes
8105 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8106 echo "configure:8107: checking for enabled wchar_t specializations" >&5
8107 echo "$ac_t""$enable_wchar_t" 1>&6
8110 if test "$enable_wchar_t" = yes; then
8111 GLIBCPP_TEST_WCHAR_T_TRUE=
8112 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8113 else
8114 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8115 GLIBCPP_TEST_WCHAR_T_FALSE=
8118 os_include_dir="os/bsd/freebsd"
8119 cat >> confdefs.h <<\EOF
8120 #define HAVE_LC_MESSAGES 1
8123 cat >> confdefs.h <<\EOF
8124 #define HAVE_DRAND48 1
8127 cat >> confdefs.h <<\EOF
8128 #define HAVE_GETPAGESIZE 1
8131 cat >> confdefs.h <<\EOF
8132 #define HAVE_SETENV 1
8135 cat >> confdefs.h <<\EOF
8136 #define HAVE_SIGSETJMP 1
8139 cat >> confdefs.h <<\EOF
8140 #define HAVE_COPYSIGN 1
8143 cat >> confdefs.h <<\EOF
8144 #define HAVE_COPYSIGNF 1
8147 cat >> confdefs.h <<\EOF
8148 #define HAVE_FINITEF 1
8151 cat >> confdefs.h <<\EOF
8152 #define HAVE_FINITE 1
8155 cat >> confdefs.h <<\EOF
8156 #define HAVE_FREXPF 1
8159 cat >> confdefs.h <<\EOF
8160 #define HAVE_HYPOT 1
8163 cat >> confdefs.h <<\EOF
8164 #define HAVE_HYPOTF 1
8167 cat >> confdefs.h <<\EOF
8168 #define HAVE_ISINF 1
8171 cat >> confdefs.h <<\EOF
8172 #define HAVE_ISNAN 1
8175 cat >> confdefs.h <<\EOF
8176 #define HAVE_ISNANF 1
8179 if test x"long_double_math_on_this_cpu" = x"yes"; then
8180 cat >> confdefs.h <<\EOF
8181 #define HAVE_FINITEL 1
8184 cat >> confdefs.h <<\EOF
8185 #define HAVE_ISINFL 1
8188 cat >> confdefs.h <<\EOF
8189 #define HAVE_ISNANL 1
8194 *-mingw32*)
8195 for ac_hdr in sys/types.h locale.h float.h
8197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8199 echo "configure:8200: checking for $ac_hdr" >&5
8200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8201 echo $ac_n "(cached) $ac_c" 1>&6
8202 else
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <$ac_hdr>
8208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8209 { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8211 if test -z "$ac_err"; then
8212 rm -rf conftest*
8213 eval "ac_cv_header_$ac_safe=yes"
8214 else
8215 echo "$ac_err" >&5
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 rm -rf conftest*
8219 eval "ac_cv_header_$ac_safe=no"
8221 rm -f conftest*
8223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6
8225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8226 cat >> confdefs.h <<EOF
8227 #define $ac_tr_hdr 1
8230 else
8231 echo "$ac_t""no" 1>&6
8233 done
8236 # If we're not using GNU ld, then there's no point in even trying these
8237 # tests. Check for that first. We should have already tested for gld
8238 # by now (in libtool), but require it now just to be safe...
8239 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8240 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8243 # The name set by libtool depends on the version of libtool. Shame on us
8244 # for depending on an impl detail, but c'est la vie. Older versions used
8245 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8246 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8247 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8248 # set (hence we're using an older libtool), then set it.
8249 if test x${with_gnu_ld+set} != xset; then
8250 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8251 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8252 with_gnu_ld=no
8253 else
8254 with_gnu_ld=$ac_cv_prog_gnu_ld
8258 # Start by getting the version number. I think the libtool test already
8259 # does some of this, but throws away the result.
8261 ldver=`$LD --version 2>/dev/null | head -1 | \
8262 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8264 glibcpp_gnu_ld_version=`echo $ldver | \
8265 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8267 # Set --gc-sections.
8268 if test "$with_gnu_ld" = "notbroken"; then
8269 # GNU ld it is! Joy and bunny rabbits!
8271 # All these tests are for C++; save the language and the compiler flags.
8272 # Need to do this so that g++ won't try to link in libstdc++
8273 ac_test_CFLAGS="${CFLAGS+set}"
8274 ac_save_CFLAGS="$CFLAGS"
8275 CFLAGS='-x c++ -Wl,--gc-sections'
8277 # Check for -Wl,--gc-sections
8278 # XXX This test is broken at the moment, as symbols required for
8279 # linking are now in libsupc++ (not built yet.....). In addition,
8280 # this test has cored on solaris in the past. In addition,
8281 # --gc-sections doesn't really work at the moment (keeps on discarding
8282 # used sections, first .eh_frame and now some of the glibc sections for
8283 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8284 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8285 echo "configure:8286: checking for ld that supports -Wl,--gc-sections" >&5
8286 if test "$cross_compiling" = yes; then
8287 ac_sectionLDflags=yes
8288 else
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8293 int main(void)
8295 try { throw 1; }
8296 catch (...) { };
8297 return 0;
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8302 then
8303 ac_sectionLDflags=yes
8304 else
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8307 rm -fr conftest*
8308 ac_sectionLDflags=no
8310 rm -fr conftest*
8313 if test "$ac_test_CFLAGS" = set; then
8314 CFLAGS="$ac_save_CFLAGS"
8315 else
8316 # this is the suspicious part
8317 CFLAGS=''
8319 if test "$ac_sectionLDflags" = "yes"; then
8320 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8322 echo "$ac_t""$ac_sectionLDflags" 1>&6
8325 # Set linker optimization flags.
8326 if test x"$with_gnu_ld" = x"yes"; then
8327 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8334 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8335 echo "configure:8336: checking for main in -lm" >&5
8336 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8339 else
8340 ac_save_LIBS="$LIBS"
8341 LIBS="-lm $LIBS"
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8346 int main() {
8347 main()
8348 ; return 0; }
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8351 rm -rf conftest*
8352 eval "ac_cv_lib_$ac_lib_var=yes"
8353 else
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 rm -rf conftest*
8357 eval "ac_cv_lib_$ac_lib_var=no"
8359 rm -f conftest*
8360 LIBS="$ac_save_LIBS"
8363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8364 echo "$ac_t""yes" 1>&6
8365 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8367 cat >> confdefs.h <<EOF
8368 #define $ac_tr_lib 1
8371 LIBS="-lm $LIBS"
8373 else
8374 echo "$ac_t""no" 1>&6
8377 for ac_func in nan copysignf
8379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8380 echo "configure:8381: checking for $ac_func" >&5
8381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8383 else
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8387 /* System header to define __stub macros and hopefully few prototypes,
8388 which can conflict with char $ac_func(); below. */
8389 #include <assert.h>
8390 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393 char $ac_func();
8395 int main() {
8397 /* The GNU C library defines this for functions which it implements
8398 to always fail with ENOSYS. Some functions are actually named
8399 something starting with __ and the normal name is an alias. */
8400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8401 choke me
8402 #else
8403 $ac_func();
8404 #endif
8406 ; return 0; }
8408 if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8409 rm -rf conftest*
8410 eval "ac_cv_func_$ac_func=yes"
8411 else
8412 echo "configure: failed program was:" >&5
8413 cat conftest.$ac_ext >&5
8414 rm -rf conftest*
8415 eval "ac_cv_func_$ac_func=no"
8417 rm -f conftest*
8420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8423 cat >> confdefs.h <<EOF
8424 #define $ac_tr_func 1
8427 else
8428 echo "$ac_t""no" 1>&6
8429 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8431 done
8434 for ac_func in __signbit
8436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8437 echo "configure:8438: checking for $ac_func" >&5
8438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8440 else
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func(); below. */
8446 #include <assert.h>
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450 char $ac_func();
8452 int main() {
8454 /* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8458 choke me
8459 #else
8460 $ac_func();
8461 #endif
8463 ; return 0; }
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8466 rm -rf conftest*
8467 eval "ac_cv_func_$ac_func=yes"
8468 else
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 rm -rf conftest*
8472 eval "ac_cv_func_$ac_func=no"
8474 rm -f conftest*
8477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8480 cat >> confdefs.h <<EOF
8481 #define $ac_tr_func 1
8484 else
8485 echo "$ac_t""no" 1>&6
8486 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8488 done
8490 for ac_func in __signbitf
8492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8493 echo "configure:8494: checking for $ac_func" >&5
8494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8496 else
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* System header to define __stub macros and hopefully few prototypes,
8501 which can conflict with char $ac_func(); below. */
8502 #include <assert.h>
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8506 char $ac_func();
8508 int main() {
8510 /* The GNU C library defines this for functions which it implements
8511 to always fail with ENOSYS. Some functions are actually named
8512 something starting with __ and the normal name is an alias. */
8513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8514 choke me
8515 #else
8516 $ac_func();
8517 #endif
8519 ; return 0; }
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8522 rm -rf conftest*
8523 eval "ac_cv_func_$ac_func=yes"
8524 else
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 rm -rf conftest*
8528 eval "ac_cv_func_$ac_func=no"
8530 rm -f conftest*
8533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8536 cat >> confdefs.h <<EOF
8537 #define $ac_tr_func 1
8540 else
8541 echo "$ac_t""no" 1>&6
8542 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8544 done
8547 if test x$ac_cv_func_copysignl = x"yes"; then
8548 for ac_func in __signbitl
8550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_func" >&5
8552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8554 else
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char $ac_func(); below. */
8560 #include <assert.h>
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8564 char $ac_func();
8566 int main() {
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8572 choke me
8573 #else
8574 $ac_func();
8575 #endif
8577 ; return 0; }
8579 if { (eval echo configure:8580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8580 rm -rf conftest*
8581 eval "ac_cv_func_$ac_func=yes"
8582 else
8583 echo "configure: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8585 rm -rf conftest*
8586 eval "ac_cv_func_$ac_func=no"
8588 rm -f conftest*
8591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8592 echo "$ac_t""yes" 1>&6
8593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8594 cat >> confdefs.h <<EOF
8595 #define $ac_tr_func 1
8598 else
8599 echo "$ac_t""no" 1>&6
8600 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8602 done
8606 if test -n "$LIBMATHOBJS"; then
8607 need_libmath=yes
8612 if test "$need_libmath" = yes; then
8613 GLIBCPP_BUILD_LIBMATH_TRUE=
8614 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8615 else
8616 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8617 GLIBCPP_BUILD_LIBMATH_FALSE=
8621 enable_wchar_t=no
8623 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8624 echo "configure:8625: checking for mbstate_t" >&5
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 #include <wchar.h>
8629 int main() {
8630 mbstate_t teststate;
8631 ; return 0; }
8633 if { (eval echo configure:8634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8634 rm -rf conftest*
8635 have_mbstate_t=yes
8636 else
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 rm -rf conftest*
8640 have_mbstate_t=no
8642 rm -f conftest*
8643 echo "$ac_t""$have_mbstate_t" 1>&6
8644 if test x"$have_mbstate_t" = xyes; then
8645 cat >> confdefs.h <<\EOF
8646 #define HAVE_MBSTATE_T 1
8651 for ac_hdr in wchar.h
8653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8655 echo "configure:8656: checking for $ac_hdr" >&5
8656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8658 else
8659 cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure"
8661 #include "confdefs.h"
8662 #include <$ac_hdr>
8664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8665 { (eval echo configure:8666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8667 if test -z "$ac_err"; then
8668 rm -rf conftest*
8669 eval "ac_cv_header_$ac_safe=yes"
8670 else
8671 echo "$ac_err" >&5
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8674 rm -rf conftest*
8675 eval "ac_cv_header_$ac_safe=no"
8677 rm -f conftest*
8679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8682 cat >> confdefs.h <<EOF
8683 #define $ac_tr_hdr 1
8685 ac_has_wchar_h=yes
8686 else
8687 echo "$ac_t""no" 1>&6
8688 ac_has_wchar_h=no
8690 done
8692 for ac_hdr in wctype.h
8694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_hdr" >&5
8697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 #include <$ac_hdr>
8705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8706 { (eval echo configure:8707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8708 if test -z "$ac_err"; then
8709 rm -rf conftest*
8710 eval "ac_cv_header_$ac_safe=yes"
8711 else
8712 echo "$ac_err" >&5
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 eval "ac_cv_header_$ac_safe=no"
8718 rm -f conftest*
8720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8721 echo "$ac_t""yes" 1>&6
8722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8723 cat >> confdefs.h <<EOF
8724 #define $ac_tr_hdr 1
8726 ac_has_wctype_h=yes
8727 else
8728 echo "$ac_t""no" 1>&6
8729 ac_has_wctype_h=no
8731 done
8734 if test x"$ac_has_wchar_h" = xyes &&
8735 test x"$ac_has_wctype_h" = xyes &&
8736 test x"$enable_c_mbchar" != xno; then
8738 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8739 echo "configure:8740: checking for WCHAR_MIN and WCHAR_MAX" >&5
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <wchar.h>
8744 int main() {
8745 int i = WCHAR_MIN; int j = WCHAR_MAX;
8746 ; return 0; }
8748 if { (eval echo configure:8749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8749 rm -rf conftest*
8750 has_wchar_minmax=yes
8751 else
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8754 rm -rf conftest*
8755 has_wchar_minmax=no
8757 rm -f conftest*
8758 echo "$ac_t""$has_wchar_minmax" 1>&6
8760 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8761 echo "configure:8762: checking for WEOF" >&5
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8766 #include <wchar.h>
8767 #include <stddef.h>
8768 int main() {
8769 wint_t i = WEOF;
8770 ; return 0; }
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8773 rm -rf conftest*
8774 has_weof=yes
8775 else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -rf conftest*
8779 has_weof=no
8781 rm -f conftest*
8782 echo "$ac_t""$has_weof" 1>&6
8784 ac_wfuncs=yes
8785 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8788 echo "configure:8789: checking for $ac_func" >&5
8789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8791 else
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 /* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char $ac_func(); below. */
8797 #include <assert.h>
8798 /* Override any gcc2 internal prototype to avoid an error. */
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char $ac_func();
8803 int main() {
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809 choke me
8810 #else
8811 $ac_func();
8812 #endif
8814 ; return 0; }
8816 if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8817 rm -rf conftest*
8818 eval "ac_cv_func_$ac_func=yes"
8819 else
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 rm -rf conftest*
8823 eval "ac_cv_func_$ac_func=no"
8825 rm -f conftest*
8828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8829 echo "$ac_t""yes" 1>&6
8830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8831 cat >> confdefs.h <<EOF
8832 #define $ac_tr_func 1
8835 else
8836 echo "$ac_t""no" 1>&6
8838 ac_wfuncs=no
8840 done
8843 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8844 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8845 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8846 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8847 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8848 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8851 echo "configure:8852: checking for $ac_func" >&5
8852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8854 else
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char $ac_func(); below. */
8860 #include <assert.h>
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char $ac_func();
8866 int main() {
8868 /* The GNU C library defines this for functions which it implements
8869 to always fail with ENOSYS. Some functions are actually named
8870 something starting with __ and the normal name is an alias. */
8871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8872 choke me
8873 #else
8874 $ac_func();
8875 #endif
8877 ; return 0; }
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880 rm -rf conftest*
8881 eval "ac_cv_func_$ac_func=yes"
8882 else
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 eval "ac_cv_func_$ac_func=no"
8888 rm -f conftest*
8891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8894 cat >> confdefs.h <<EOF
8895 #define $ac_tr_func 1
8898 else
8899 echo "$ac_t""no" 1>&6
8901 ac_wfuncs=no
8903 done
8906 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8907 echo "configure:8908: checking for ISO C99 wchar_t support" >&5
8908 if test x"$has_weof" = xyes &&
8909 test x"$has_wchar_minmax" = xyes &&
8910 test x"$ac_wfuncs" = xyes; then
8911 ac_isoC99_wchar_t=yes
8912 else
8913 ac_isoC99_wchar_t=no
8915 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8917 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8918 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8919 echo "configure:8920: checking for iconv.h" >&5
8920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8926 #include <iconv.h>
8928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8929 { (eval echo configure:8930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8931 if test -z "$ac_err"; then
8932 rm -rf conftest*
8933 eval "ac_cv_header_$ac_safe=yes"
8934 else
8935 echo "$ac_err" >&5
8936 echo "configure: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 rm -rf conftest*
8939 eval "ac_cv_header_$ac_safe=no"
8941 rm -f conftest*
8943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8944 echo "$ac_t""yes" 1>&6
8945 ac_has_iconv_h=yes
8946 else
8947 echo "$ac_t""no" 1>&6
8948 ac_has_iconv_h=no
8951 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8952 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8953 echo "configure:8954: checking for langinfo.h" >&5
8954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8957 cat > conftest.$ac_ext <<EOF
8958 #line 8959 "configure"
8959 #include "confdefs.h"
8960 #include <langinfo.h>
8962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8963 { (eval echo configure:8964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8965 if test -z "$ac_err"; then
8966 rm -rf conftest*
8967 eval "ac_cv_header_$ac_safe=yes"
8968 else
8969 echo "$ac_err" >&5
8970 echo "configure: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 rm -rf conftest*
8973 eval "ac_cv_header_$ac_safe=no"
8975 rm -f conftest*
8977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8978 echo "$ac_t""yes" 1>&6
8979 ac_has_langinfo_h=yes
8980 else
8981 echo "$ac_t""no" 1>&6
8982 ac_has_langinfo_h=no
8986 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8987 echo "configure:8988: checking for iconv in -liconv" >&5
8988 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8991 else
8992 ac_save_LIBS="$LIBS"
8993 LIBS="-liconv $LIBS"
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9000 char iconv();
9002 int main() {
9003 iconv()
9004 ; return 0; }
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 rm -rf conftest*
9008 eval "ac_cv_lib_$ac_lib_var=yes"
9009 else
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 rm -rf conftest*
9013 eval "ac_cv_lib_$ac_lib_var=no"
9015 rm -f conftest*
9016 LIBS="$ac_save_LIBS"
9019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 libiconv="-liconv"
9022 else
9023 echo "$ac_t""no" 1>&6
9026 ac_save_LIBS="$LIBS"
9027 LIBS="$LIBS $libiconv"
9029 for ac_func in iconv_open iconv_close iconv nl_langinfo
9031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9032 echo "configure:9033: checking for $ac_func" >&5
9033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9035 else
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char $ac_func(); below. */
9041 #include <assert.h>
9042 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char $ac_func();
9047 int main() {
9049 /* The GNU C library defines this for functions which it implements
9050 to always fail with ENOSYS. Some functions are actually named
9051 something starting with __ and the normal name is an alias. */
9052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9053 choke me
9054 #else
9055 $ac_func();
9056 #endif
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9061 rm -rf conftest*
9062 eval "ac_cv_func_$ac_func=yes"
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 eval "ac_cv_func_$ac_func=no"
9069 rm -f conftest*
9072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9073 echo "$ac_t""yes" 1>&6
9074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9075 cat >> confdefs.h <<EOF
9076 #define $ac_tr_func 1
9079 ac_XPG2funcs=yes
9080 else
9081 echo "$ac_t""no" 1>&6
9082 ac_XPG2funcs=no
9084 done
9087 LIBS="$ac_save_LIBS"
9089 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9090 echo "configure:9091: checking for XPG2 wchar_t support" >&5
9091 if test x"$ac_has_iconv_h" = xyes &&
9092 test x"$ac_has_langinfo_h" = xyes &&
9093 test x"$ac_XPG2funcs" = xyes; then
9094 ac_XPG2_wchar_t=yes
9095 else
9096 ac_XPG2_wchar_t=no
9098 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9100 if test x"$ac_isoC99_wchar_t" = xyes &&
9101 test x"$ac_XPG2_wchar_t" = xyes; then
9102 cat >> confdefs.h <<\EOF
9103 #define _GLIBCPP_USE_WCHAR_T 1
9106 enable_wchar_t=yes
9109 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9110 echo "configure:9111: checking for enabled wchar_t specializations" >&5
9111 echo "$ac_t""$enable_wchar_t" 1>&6
9114 if test "$enable_wchar_t" = yes; then
9115 GLIBCPP_TEST_WCHAR_T_TRUE=
9116 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9117 else
9118 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9119 GLIBCPP_TEST_WCHAR_T_FALSE=
9122 os_include_dir="os/mingw32"
9124 *-windiss*)
9125 os_include_dir="os/windiss"
9127 *-qnx6.[12]*)
9128 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9131 # If we're not using GNU ld, then there's no point in even trying these
9132 # tests. Check for that first. We should have already tested for gld
9133 # by now (in libtool), but require it now just to be safe...
9134 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9135 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9138 # The name set by libtool depends on the version of libtool. Shame on us
9139 # for depending on an impl detail, but c'est la vie. Older versions used
9140 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9141 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9142 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9143 # set (hence we're using an older libtool), then set it.
9144 if test x${with_gnu_ld+set} != xset; then
9145 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9146 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9147 with_gnu_ld=no
9148 else
9149 with_gnu_ld=$ac_cv_prog_gnu_ld
9153 # Start by getting the version number. I think the libtool test already
9154 # does some of this, but throws away the result.
9156 ldver=`$LD --version 2>/dev/null | head -1 | \
9157 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9159 glibcpp_gnu_ld_version=`echo $ldver | \
9160 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9162 # Set --gc-sections.
9163 if test "$with_gnu_ld" = "notbroken"; then
9164 # GNU ld it is! Joy and bunny rabbits!
9166 # All these tests are for C++; save the language and the compiler flags.
9167 # Need to do this so that g++ won't try to link in libstdc++
9168 ac_test_CFLAGS="${CFLAGS+set}"
9169 ac_save_CFLAGS="$CFLAGS"
9170 CFLAGS='-x c++ -Wl,--gc-sections'
9172 # Check for -Wl,--gc-sections
9173 # XXX This test is broken at the moment, as symbols required for
9174 # linking are now in libsupc++ (not built yet.....). In addition,
9175 # this test has cored on solaris in the past. In addition,
9176 # --gc-sections doesn't really work at the moment (keeps on discarding
9177 # used sections, first .eh_frame and now some of the glibc sections for
9178 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9179 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9180 echo "configure:9181: checking for ld that supports -Wl,--gc-sections" >&5
9181 if test "$cross_compiling" = yes; then
9182 ac_sectionLDflags=yes
9183 else
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9188 int main(void)
9190 try { throw 1; }
9191 catch (...) { };
9192 return 0;
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9197 then
9198 ac_sectionLDflags=yes
9199 else
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 rm -fr conftest*
9203 ac_sectionLDflags=no
9205 rm -fr conftest*
9208 if test "$ac_test_CFLAGS" = set; then
9209 CFLAGS="$ac_save_CFLAGS"
9210 else
9211 # this is the suspicious part
9212 CFLAGS=''
9214 if test "$ac_sectionLDflags" = "yes"; then
9215 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9217 echo "$ac_t""$ac_sectionLDflags" 1>&6
9220 # Set linker optimization flags.
9221 if test x"$with_gnu_ld" = x"yes"; then
9222 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9229 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9230 echo "configure:9231: checking for main in -lm" >&5
9231 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9234 else
9235 ac_save_LIBS="$LIBS"
9236 LIBS="-lm $LIBS"
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9241 int main() {
9242 main()
9243 ; return 0; }
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 rm -rf conftest*
9247 eval "ac_cv_lib_$ac_lib_var=yes"
9248 else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -rf conftest*
9252 eval "ac_cv_lib_$ac_lib_var=no"
9254 rm -f conftest*
9255 LIBS="$ac_save_LIBS"
9258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9260 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9262 cat >> confdefs.h <<EOF
9263 #define $ac_tr_lib 1
9266 LIBS="-lm $LIBS"
9268 else
9269 echo "$ac_t""no" 1>&6
9272 for ac_func in nan copysignf
9274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9275 echo "configure:9276: checking for $ac_func" >&5
9276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9278 else
9279 cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9282 /* System header to define __stub macros and hopefully few prototypes,
9283 which can conflict with char $ac_func(); below. */
9284 #include <assert.h>
9285 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9288 char $ac_func();
9290 int main() {
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9296 choke me
9297 #else
9298 $ac_func();
9299 #endif
9301 ; return 0; }
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9304 rm -rf conftest*
9305 eval "ac_cv_func_$ac_func=yes"
9306 else
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 rm -rf conftest*
9310 eval "ac_cv_func_$ac_func=no"
9312 rm -f conftest*
9315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9318 cat >> confdefs.h <<EOF
9319 #define $ac_tr_func 1
9322 else
9323 echo "$ac_t""no" 1>&6
9324 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9326 done
9329 for ac_func in __signbit
9331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9332 echo "configure:9333: checking for $ac_func" >&5
9333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9335 else
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 /* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char $ac_func(); below. */
9341 #include <assert.h>
9342 /* Override any gcc2 internal prototype to avoid an error. */
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9345 char $ac_func();
9347 int main() {
9349 /* The GNU C library defines this for functions which it implements
9350 to always fail with ENOSYS. Some functions are actually named
9351 something starting with __ and the normal name is an alias. */
9352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9353 choke me
9354 #else
9355 $ac_func();
9356 #endif
9358 ; return 0; }
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9361 rm -rf conftest*
9362 eval "ac_cv_func_$ac_func=yes"
9363 else
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 rm -rf conftest*
9367 eval "ac_cv_func_$ac_func=no"
9369 rm -f conftest*
9372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9373 echo "$ac_t""yes" 1>&6
9374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9375 cat >> confdefs.h <<EOF
9376 #define $ac_tr_func 1
9379 else
9380 echo "$ac_t""no" 1>&6
9381 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9383 done
9385 for ac_func in __signbitf
9387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9388 echo "configure:9389: checking for $ac_func" >&5
9389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391 else
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 /* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func(); below. */
9397 #include <assert.h>
9398 /* Override any gcc2 internal prototype to avoid an error. */
9399 /* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401 char $ac_func();
9403 int main() {
9405 /* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409 choke me
9410 #else
9411 $ac_func();
9412 #endif
9414 ; return 0; }
9416 if { (eval echo configure:9417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9417 rm -rf conftest*
9418 eval "ac_cv_func_$ac_func=yes"
9419 else
9420 echo "configure: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9422 rm -rf conftest*
9423 eval "ac_cv_func_$ac_func=no"
9425 rm -f conftest*
9428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9431 cat >> confdefs.h <<EOF
9432 #define $ac_tr_func 1
9435 else
9436 echo "$ac_t""no" 1>&6
9437 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9439 done
9442 if test x$ac_cv_func_copysignl = x"yes"; then
9443 for ac_func in __signbitl
9445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9446 echo "configure:9447: checking for $ac_func" >&5
9447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9450 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char $ac_func(); below. */
9455 #include <assert.h>
9456 /* Override any gcc2 internal prototype to avoid an error. */
9457 /* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9459 char $ac_func();
9461 int main() {
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467 choke me
9468 #else
9469 $ac_func();
9470 #endif
9472 ; return 0; }
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9475 rm -rf conftest*
9476 eval "ac_cv_func_$ac_func=yes"
9477 else
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 rm -rf conftest*
9481 eval "ac_cv_func_$ac_func=no"
9483 rm -f conftest*
9486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9487 echo "$ac_t""yes" 1>&6
9488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9489 cat >> confdefs.h <<EOF
9490 #define $ac_tr_func 1
9493 else
9494 echo "$ac_t""no" 1>&6
9495 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9497 done
9501 if test -n "$LIBMATHOBJS"; then
9502 need_libmath=yes
9507 if test "$need_libmath" = yes; then
9508 GLIBCPP_BUILD_LIBMATH_TRUE=
9509 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9510 else
9511 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9512 GLIBCPP_BUILD_LIBMATH_FALSE=
9516 enable_wchar_t=no
9518 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9519 echo "configure:9520: checking for mbstate_t" >&5
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 #include <wchar.h>
9524 int main() {
9525 mbstate_t teststate;
9526 ; return 0; }
9528 if { (eval echo configure:9529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9529 rm -rf conftest*
9530 have_mbstate_t=yes
9531 else
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 rm -rf conftest*
9535 have_mbstate_t=no
9537 rm -f conftest*
9538 echo "$ac_t""$have_mbstate_t" 1>&6
9539 if test x"$have_mbstate_t" = xyes; then
9540 cat >> confdefs.h <<\EOF
9541 #define HAVE_MBSTATE_T 1
9546 for ac_hdr in wchar.h
9548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9550 echo "configure:9551: checking for $ac_hdr" >&5
9551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9554 cat > conftest.$ac_ext <<EOF
9555 #line 9556 "configure"
9556 #include "confdefs.h"
9557 #include <$ac_hdr>
9559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9560 { (eval echo configure:9561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9562 if test -z "$ac_err"; then
9563 rm -rf conftest*
9564 eval "ac_cv_header_$ac_safe=yes"
9565 else
9566 echo "$ac_err" >&5
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 eval "ac_cv_header_$ac_safe=no"
9572 rm -f conftest*
9574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9575 echo "$ac_t""yes" 1>&6
9576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9577 cat >> confdefs.h <<EOF
9578 #define $ac_tr_hdr 1
9580 ac_has_wchar_h=yes
9581 else
9582 echo "$ac_t""no" 1>&6
9583 ac_has_wchar_h=no
9585 done
9587 for ac_hdr in wctype.h
9589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9591 echo "configure:9592: checking for $ac_hdr" >&5
9592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <$ac_hdr>
9600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9601 { (eval echo configure:9602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9603 if test -z "$ac_err"; then
9604 rm -rf conftest*
9605 eval "ac_cv_header_$ac_safe=yes"
9606 else
9607 echo "$ac_err" >&5
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 eval "ac_cv_header_$ac_safe=no"
9613 rm -f conftest*
9615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9616 echo "$ac_t""yes" 1>&6
9617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9618 cat >> confdefs.h <<EOF
9619 #define $ac_tr_hdr 1
9621 ac_has_wctype_h=yes
9622 else
9623 echo "$ac_t""no" 1>&6
9624 ac_has_wctype_h=no
9626 done
9629 if test x"$ac_has_wchar_h" = xyes &&
9630 test x"$ac_has_wctype_h" = xyes &&
9631 test x"$enable_c_mbchar" != xno; then
9633 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9634 echo "configure:9635: checking for WCHAR_MIN and WCHAR_MAX" >&5
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 #include <wchar.h>
9639 int main() {
9640 int i = WCHAR_MIN; int j = WCHAR_MAX;
9641 ; return 0; }
9643 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9644 rm -rf conftest*
9645 has_wchar_minmax=yes
9646 else
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 rm -rf conftest*
9650 has_wchar_minmax=no
9652 rm -f conftest*
9653 echo "$ac_t""$has_wchar_minmax" 1>&6
9655 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9656 echo "configure:9657: checking for WEOF" >&5
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9661 #include <wchar.h>
9662 #include <stddef.h>
9663 int main() {
9664 wint_t i = WEOF;
9665 ; return 0; }
9667 if { (eval echo configure:9668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668 rm -rf conftest*
9669 has_weof=yes
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 has_weof=no
9676 rm -f conftest*
9677 echo "$ac_t""$has_weof" 1>&6
9679 ac_wfuncs=yes
9680 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9683 echo "configure:9684: checking for $ac_func" >&5
9684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686 else
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char $ac_func(); below. */
9692 #include <assert.h>
9693 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696 char $ac_func();
9698 int main() {
9700 /* The GNU C library defines this for functions which it implements
9701 to always fail with ENOSYS. Some functions are actually named
9702 something starting with __ and the normal name is an alias. */
9703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9704 choke me
9705 #else
9706 $ac_func();
9707 #endif
9709 ; return 0; }
9711 if { (eval echo configure:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 rm -rf conftest*
9713 eval "ac_cv_func_$ac_func=yes"
9714 else
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 rm -rf conftest*
9718 eval "ac_cv_func_$ac_func=no"
9720 rm -f conftest*
9723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9724 echo "$ac_t""yes" 1>&6
9725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9726 cat >> confdefs.h <<EOF
9727 #define $ac_tr_func 1
9730 else
9731 echo "$ac_t""no" 1>&6
9733 ac_wfuncs=no
9735 done
9738 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9739 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9740 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9741 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9742 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9743 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_func" >&5
9747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 /* System header to define __stub macros and hopefully few prototypes,
9754 which can conflict with char $ac_func(); below. */
9755 #include <assert.h>
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759 char $ac_func();
9761 int main() {
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 $ac_func();
9770 #endif
9772 ; return 0; }
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9775 rm -rf conftest*
9776 eval "ac_cv_func_$ac_func=yes"
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781 eval "ac_cv_func_$ac_func=no"
9783 rm -f conftest*
9786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9787 echo "$ac_t""yes" 1>&6
9788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_func 1
9793 else
9794 echo "$ac_t""no" 1>&6
9796 ac_wfuncs=no
9798 done
9801 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9802 echo "configure:9803: checking for ISO C99 wchar_t support" >&5
9803 if test x"$has_weof" = xyes &&
9804 test x"$has_wchar_minmax" = xyes &&
9805 test x"$ac_wfuncs" = xyes; then
9806 ac_isoC99_wchar_t=yes
9807 else
9808 ac_isoC99_wchar_t=no
9810 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9812 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9813 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9814 echo "configure:9815: checking for iconv.h" >&5
9815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817 else
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 #include <iconv.h>
9823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9824 { (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9826 if test -z "$ac_err"; then
9827 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes"
9829 else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 eval "ac_cv_header_$ac_safe=no"
9836 rm -f conftest*
9838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9839 echo "$ac_t""yes" 1>&6
9840 ac_has_iconv_h=yes
9841 else
9842 echo "$ac_t""no" 1>&6
9843 ac_has_iconv_h=no
9846 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9847 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9848 echo "configure:9849: checking for langinfo.h" >&5
9849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9851 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <langinfo.h>
9857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9858 { (eval echo configure:9859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9860 if test -z "$ac_err"; then
9861 rm -rf conftest*
9862 eval "ac_cv_header_$ac_safe=yes"
9863 else
9864 echo "$ac_err" >&5
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 eval "ac_cv_header_$ac_safe=no"
9870 rm -f conftest*
9872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 ac_has_langinfo_h=yes
9875 else
9876 echo "$ac_t""no" 1>&6
9877 ac_has_langinfo_h=no
9881 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9882 echo "configure:9883: checking for iconv in -liconv" >&5
9883 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9886 else
9887 ac_save_LIBS="$LIBS"
9888 LIBS="-liconv $LIBS"
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 /* We use char because int might match the return type of a gcc2
9894 builtin and then its argument prototype would still apply. */
9895 char iconv();
9897 int main() {
9898 iconv()
9899 ; return 0; }
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 rm -rf conftest*
9903 eval "ac_cv_lib_$ac_lib_var=yes"
9904 else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 eval "ac_cv_lib_$ac_lib_var=no"
9910 rm -f conftest*
9911 LIBS="$ac_save_LIBS"
9914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 libiconv="-liconv"
9917 else
9918 echo "$ac_t""no" 1>&6
9921 ac_save_LIBS="$LIBS"
9922 LIBS="$LIBS $libiconv"
9924 for ac_func in iconv_open iconv_close iconv nl_langinfo
9926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9927 echo "configure:9928: checking for $ac_func" >&5
9928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func(); below. */
9936 #include <assert.h>
9937 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9940 char $ac_func();
9942 int main() {
9944 /* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9948 choke me
9949 #else
9950 $ac_func();
9951 #endif
9953 ; return 0; }
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9956 rm -rf conftest*
9957 eval "ac_cv_func_$ac_func=yes"
9958 else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=no"
9964 rm -f conftest*
9967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9968 echo "$ac_t""yes" 1>&6
9969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9970 cat >> confdefs.h <<EOF
9971 #define $ac_tr_func 1
9974 ac_XPG2funcs=yes
9975 else
9976 echo "$ac_t""no" 1>&6
9977 ac_XPG2funcs=no
9979 done
9982 LIBS="$ac_save_LIBS"
9984 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9985 echo "configure:9986: checking for XPG2 wchar_t support" >&5
9986 if test x"$ac_has_iconv_h" = xyes &&
9987 test x"$ac_has_langinfo_h" = xyes &&
9988 test x"$ac_XPG2funcs" = xyes; then
9989 ac_XPG2_wchar_t=yes
9990 else
9991 ac_XPG2_wchar_t=no
9993 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9995 if test x"$ac_isoC99_wchar_t" = xyes &&
9996 test x"$ac_XPG2_wchar_t" = xyes; then
9997 cat >> confdefs.h <<\EOF
9998 #define _GLIBCPP_USE_WCHAR_T 1
10001 enable_wchar_t=yes
10004 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10005 echo "configure:10006: checking for enabled wchar_t specializations" >&5
10006 echo "$ac_t""$enable_wchar_t" 1>&6
10009 if test "$enable_wchar_t" = yes; then
10010 GLIBCPP_TEST_WCHAR_T_TRUE=
10011 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10012 else
10013 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10014 GLIBCPP_TEST_WCHAR_T_FALSE=
10017 os_include_dir="os/qnx/qnx6.1"
10018 cat >> confdefs.h <<\EOF
10019 #define HAVE_COSF 1
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_COSL 1
10026 cat >> confdefs.h <<\EOF
10027 #define HAVE_COSHF 1
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_COSHL 1
10034 cat >> confdefs.h <<\EOF
10035 #define HAVE_LOGF 1
10038 cat >> confdefs.h <<\EOF
10039 #define HAVE_LOGL 1
10042 cat >> confdefs.h <<\EOF
10043 #define HAVE_LOG10F 1
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_LOG10L 1
10050 cat >> confdefs.h <<\EOF
10051 #define HAVE_SINF 1
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_SINL 1
10058 cat >> confdefs.h <<\EOF
10059 #define HAVE_SINHF 1
10062 cat >> confdefs.h <<\EOF
10063 #define HAVE_SINHL 1
10068 os_include_dir="os/newlib"
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_HYPOT 1
10074 esac
10076 case "$target" in
10077 *-mingw32*)
10079 *-windiss*)
10080 cat >> confdefs.h <<\EOF
10081 #define HAVE_ACOSF 1
10084 cat >> confdefs.h <<\EOF
10085 #define HAVE_ASINF 1
10088 cat >> confdefs.h <<\EOF
10089 #define HAVE_ATAN2F 1
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_ATANF 1
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_CEILF 1
10100 cat >> confdefs.h <<\EOF
10101 #define HAVE_COPYSIGN 1
10104 cat >> confdefs.h <<\EOF
10105 #define HAVE_COPYSIGNF 1
10108 cat >> confdefs.h <<\EOF
10109 #define HAVE_COSF 1
10112 cat >> confdefs.h <<\EOF
10113 #define HAVE_COSHF 1
10116 cat >> confdefs.h <<\EOF
10117 #define HAVE_EXPF 1
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_FABSF 1
10124 cat >> confdefs.h <<\EOF
10125 #define HAVE_FLOORF 1
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_FMODF 1
10132 cat >> confdefs.h <<\EOF
10133 #define HAVE_FREXPF 1
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_LDEXPF 1
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_LOG10F 1
10144 cat >> confdefs.h <<\EOF
10145 #define HAVE_LOGF 1
10148 cat >> confdefs.h <<\EOF
10149 #define HAVE_MODFF 1
10152 cat >> confdefs.h <<\EOF
10153 #define HAVE_POWF 1
10156 cat >> confdefs.h <<\EOF
10157 #define HAVE_SINF 1
10160 cat >> confdefs.h <<\EOF
10161 #define HAVE_SINHF 1
10164 cat >> confdefs.h <<\EOF
10165 #define HAVE_SQRTF 1
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_TANF 1
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_TANHF 1
10177 *-freebsd*)
10178 # Must replicate generic section since we don't have strtof or strtold.
10179 cat >> confdefs.h <<\EOF
10180 #define HAVE_MMAP 1
10183 cat >> confdefs.h <<\EOF
10184 #define HAVE_ACOSF 1
10187 cat >> confdefs.h <<\EOF
10188 #define HAVE_ASINF 1
10191 cat >> confdefs.h <<\EOF
10192 #define HAVE_ATAN2F 1
10195 cat >> confdefs.h <<\EOF
10196 #define HAVE_ATANF 1
10199 cat >> confdefs.h <<\EOF
10200 #define HAVE_CEILF 1
10203 cat >> confdefs.h <<\EOF
10204 #define HAVE_COPYSIGN 1
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_COPYSIGNF 1
10211 cat >> confdefs.h <<\EOF
10212 #define HAVE_COSF 1
10215 cat >> confdefs.h <<\EOF
10216 #define HAVE_COSHF 1
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_EXPF 1
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_FABSF 1
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_FLOORF 1
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_FMODF 1
10235 cat >> confdefs.h <<\EOF
10236 #define HAVE_FREXPF 1
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_LDEXPF 1
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_LOG10F 1
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_LOGF 1
10251 cat >> confdefs.h <<\EOF
10252 #define HAVE_MODFF 1
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_POWF 1
10259 cat >> confdefs.h <<\EOF
10260 #define HAVE_SINF 1
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_SINHF 1
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_SQRTF 1
10271 cat >> confdefs.h <<\EOF
10272 #define HAVE_TANF 1
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_TANHF 1
10281 # GLIBCPP_CHECK_STDLIB_SUPPORT
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_STRTOF 1
10286 cat >> confdefs.h <<\EOF
10287 #define HAVE_STRTOLD 1
10290 # AC_FUNC_MMAP
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_MMAP 1
10296 cat >> confdefs.h <<\EOF
10297 #define HAVE_ACOSF 1
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_ASINF 1
10304 cat >> confdefs.h <<\EOF
10305 #define HAVE_ATAN2F 1
10308 cat >> confdefs.h <<\EOF
10309 #define HAVE_ATANF 1
10312 cat >> confdefs.h <<\EOF
10313 #define HAVE_CEILF 1
10316 cat >> confdefs.h <<\EOF
10317 #define HAVE_COPYSIGN 1
10320 cat >> confdefs.h <<\EOF
10321 #define HAVE_COPYSIGNF 1
10324 cat >> confdefs.h <<\EOF
10325 #define HAVE_COSF 1
10328 cat >> confdefs.h <<\EOF
10329 #define HAVE_COSHF 1
10332 cat >> confdefs.h <<\EOF
10333 #define HAVE_EXPF 1
10336 cat >> confdefs.h <<\EOF
10337 #define HAVE_FABSF 1
10340 cat >> confdefs.h <<\EOF
10341 #define HAVE_FLOORF 1
10344 cat >> confdefs.h <<\EOF
10345 #define HAVE_FMODF 1
10348 cat >> confdefs.h <<\EOF
10349 #define HAVE_FREXPF 1
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_LDEXPF 1
10356 cat >> confdefs.h <<\EOF
10357 #define HAVE_LOG10F 1
10360 cat >> confdefs.h <<\EOF
10361 #define HAVE_LOGF 1
10364 cat >> confdefs.h <<\EOF
10365 #define HAVE_MODFF 1
10368 cat >> confdefs.h <<\EOF
10369 #define HAVE_POWF 1
10372 cat >> confdefs.h <<\EOF
10373 #define HAVE_SINF 1
10376 cat >> confdefs.h <<\EOF
10377 #define HAVE_SINHF 1
10380 cat >> confdefs.h <<\EOF
10381 #define HAVE_SQRTF 1
10384 cat >> confdefs.h <<\EOF
10385 #define HAVE_TANF 1
10388 cat >> confdefs.h <<\EOF
10389 #define HAVE_TANHF 1
10393 esac
10395 # At some point, we should differentiate between architectures
10396 # like x86, which have long double versions, and alpha/powerpc/etc.,
10397 # which don't. For the time being, punt.
10398 if test x"long_double_math_on_this_cpu" = x"yes"; then
10399 cat >> confdefs.h <<\EOF
10400 #define HAVE_ACOSL 1
10403 cat >> confdefs.h <<\EOF
10404 #define HAVE_ASINL 1
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_ATAN2L 1
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_ATANL 1
10415 cat >> confdefs.h <<\EOF
10416 #define HAVE_CEILL 1
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_COPYSIGNL 1
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_COSL 1
10427 cat >> confdefs.h <<\EOF
10428 #define HAVE_COSHL 1
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_EXPL 1
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_FABSL 1
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_FLOORL 1
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_FMODL 1
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_FREXPL 1
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_LDEXPL 1
10455 cat >> confdefs.h <<\EOF
10456 #define HAVE_LOG10L 1
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_LOGL 1
10463 cat >> confdefs.h <<\EOF
10464 #define HAVE_MODFL 1
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_POWL 1
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_SINCOSL 1
10475 cat >> confdefs.h <<\EOF
10476 #define HAVE_SINL 1
10479 cat >> confdefs.h <<\EOF
10480 #define HAVE_SINHL 1
10483 cat >> confdefs.h <<\EOF
10484 #define HAVE_SQRTL 1
10487 cat >> confdefs.h <<\EOF
10488 #define HAVE_TANL 1
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_TANHL 1
10497 else
10499 # We are being configured natively. We can do more elaborate tests
10500 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10501 # working.
10502 GLIBCPP_IS_CROSS_COMPILING=0
10503 CANADIAN=no
10505 # Check for available headers.
10506 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10507 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10511 echo "configure:10512: checking for $ac_hdr" >&5
10512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10514 else
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <$ac_hdr>
10520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10521 { (eval echo configure:10522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10523 if test -z "$ac_err"; then
10524 rm -rf conftest*
10525 eval "ac_cv_header_$ac_safe=yes"
10526 else
10527 echo "$ac_err" >&5
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 rm -rf conftest*
10531 eval "ac_cv_header_$ac_safe=no"
10533 rm -f conftest*
10535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10538 cat >> confdefs.h <<EOF
10539 #define $ac_tr_hdr 1
10542 else
10543 echo "$ac_t""no" 1>&6
10545 done
10549 # All these tests are for C++; save the language and the compiler flags.
10550 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10551 # found in GLIBCPP_CONFIGURE.
10553 ac_ext=C
10554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10555 ac_cpp='$CXXCPP $CPPFLAGS'
10556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10558 cross_compiling=$ac_cv_prog_cxx_cross
10560 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10561 ac_save_CXXFLAGS="$CXXFLAGS"
10563 # Check for maintainer-mode bits.
10564 if test x"$USE_MAINTAINER_MODE" = xno; then
10565 WERROR=''
10566 else
10567 WERROR='-Werror'
10570 # Check for -ffunction-sections -fdata-sections
10571 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10572 echo "configure:10573: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10573 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10578 int main() {
10579 int foo;
10581 ; return 0; }
10583 if { (eval echo configure:10584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10584 rm -rf conftest*
10585 ac_fdsections=yes
10586 else
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
10590 ac_fdsections=no
10592 rm -f conftest*
10593 if test "$ac_test_CXXFLAGS" = set; then
10594 CXXFLAGS="$ac_save_CXXFLAGS"
10595 else
10596 # this is the suspicious part
10597 CXXFLAGS=''
10599 if test x"$ac_fdsections" = x"yes"; then
10600 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10602 echo "$ac_t""$ac_fdsections" 1>&6
10604 ac_ext=c
10605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10609 cross_compiling=$ac_cv_prog_cc_cross
10615 # If we're not using GNU ld, then there's no point in even trying these
10616 # tests. Check for that first. We should have already tested for gld
10617 # by now (in libtool), but require it now just to be safe...
10618 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10619 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10622 # The name set by libtool depends on the version of libtool. Shame on us
10623 # for depending on an impl detail, but c'est la vie. Older versions used
10624 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10625 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10626 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10627 # set (hence we're using an older libtool), then set it.
10628 if test x${with_gnu_ld+set} != xset; then
10629 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10630 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10631 with_gnu_ld=no
10632 else
10633 with_gnu_ld=$ac_cv_prog_gnu_ld
10637 # Start by getting the version number. I think the libtool test already
10638 # does some of this, but throws away the result.
10640 ldver=`$LD --version 2>/dev/null | head -1 | \
10641 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10643 glibcpp_gnu_ld_version=`echo $ldver | \
10644 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10646 # Set --gc-sections.
10647 if test "$with_gnu_ld" = "notbroken"; then
10648 # GNU ld it is! Joy and bunny rabbits!
10650 # All these tests are for C++; save the language and the compiler flags.
10651 # Need to do this so that g++ won't try to link in libstdc++
10652 ac_test_CFLAGS="${CFLAGS+set}"
10653 ac_save_CFLAGS="$CFLAGS"
10654 CFLAGS='-x c++ -Wl,--gc-sections'
10656 # Check for -Wl,--gc-sections
10657 # XXX This test is broken at the moment, as symbols required for
10658 # linking are now in libsupc++ (not built yet.....). In addition,
10659 # this test has cored on solaris in the past. In addition,
10660 # --gc-sections doesn't really work at the moment (keeps on discarding
10661 # used sections, first .eh_frame and now some of the glibc sections for
10662 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10663 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10664 echo "configure:10665: checking for ld that supports -Wl,--gc-sections" >&5
10665 if test "$cross_compiling" = yes; then
10666 ac_sectionLDflags=yes
10667 else
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10672 int main(void)
10674 try { throw 1; }
10675 catch (...) { };
10676 return 0;
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10681 then
10682 ac_sectionLDflags=yes
10683 else
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10686 rm -fr conftest*
10687 ac_sectionLDflags=no
10689 rm -fr conftest*
10692 if test "$ac_test_CFLAGS" = set; then
10693 CFLAGS="$ac_save_CFLAGS"
10694 else
10695 # this is the suspicious part
10696 CFLAGS=''
10698 if test "$ac_sectionLDflags" = "yes"; then
10699 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10701 echo "$ac_t""$ac_sectionLDflags" 1>&6
10704 # Set linker optimization flags.
10705 if test x"$with_gnu_ld" = x"yes"; then
10706 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10714 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10715 echo "configure:10716: checking for __builtin_abs declaration" >&5
10716 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10717 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10719 else
10722 ac_ext=C
10723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10724 ac_cpp='$CXXCPP $CPPFLAGS'
10725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10727 cross_compiling=$ac_cv_prog_cxx_cross
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10732 #include <math.h>
10733 int main() {
10734 __builtin_abs(0);
10735 ; return 0; }
10737 if { (eval echo configure:10738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10738 rm -rf conftest*
10739 glibcpp_cv_func___builtin_abs_use=yes
10740 else
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -rf conftest*
10744 glibcpp_cv_func___builtin_abs_use=no
10746 rm -f conftest*
10747 ac_ext=c
10748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10752 cross_compiling=$ac_cv_prog_cc_cross
10758 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10759 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10760 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10761 echo "configure:10762: checking for __builtin_abs linkage" >&5
10762 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10763 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10765 else
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10770 #include <math.h>
10771 int main() {
10772 __builtin_abs(0);
10773 ; return 0; }
10775 if { (eval echo configure:10776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10776 rm -rf conftest*
10777 glibcpp_cv_func___builtin_abs_link=yes
10778 else
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 rm -rf conftest*
10782 glibcpp_cv_func___builtin_abs_link=no
10784 rm -f conftest*
10789 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10790 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10791 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10792 cat >> confdefs.h <<EOF
10793 #define ${ac_tr_func} 1
10800 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10801 echo "configure:10802: checking for __builtin_fabsf declaration" >&5
10802 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10803 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805 else
10808 ac_ext=C
10809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10810 ac_cpp='$CXXCPP $CPPFLAGS'
10811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10813 cross_compiling=$ac_cv_prog_cxx_cross
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10818 #include <math.h>
10819 int main() {
10820 __builtin_fabsf(0);
10821 ; return 0; }
10823 if { (eval echo configure:10824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10824 rm -rf conftest*
10825 glibcpp_cv_func___builtin_fabsf_use=yes
10826 else
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 rm -rf conftest*
10830 glibcpp_cv_func___builtin_fabsf_use=no
10832 rm -f conftest*
10833 ac_ext=c
10834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10838 cross_compiling=$ac_cv_prog_cc_cross
10844 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10845 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10846 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10847 echo "configure:10848: checking for __builtin_fabsf linkage" >&5
10848 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10849 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851 else
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10856 #include <math.h>
10857 int main() {
10858 __builtin_fabsf(0);
10859 ; return 0; }
10861 if { (eval echo configure:10862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10862 rm -rf conftest*
10863 glibcpp_cv_func___builtin_fabsf_link=yes
10864 else
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 rm -rf conftest*
10868 glibcpp_cv_func___builtin_fabsf_link=no
10870 rm -f conftest*
10875 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10876 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10877 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10878 cat >> confdefs.h <<EOF
10879 #define ${ac_tr_func} 1
10886 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10887 echo "configure:10888: checking for __builtin_fabs declaration" >&5
10888 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10889 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10891 else
10894 ac_ext=C
10895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10896 ac_cpp='$CXXCPP $CPPFLAGS'
10897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10899 cross_compiling=$ac_cv_prog_cxx_cross
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 #include <math.h>
10905 int main() {
10906 __builtin_fabs(0);
10907 ; return 0; }
10909 if { (eval echo configure:10910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10910 rm -rf conftest*
10911 glibcpp_cv_func___builtin_fabs_use=yes
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -rf conftest*
10916 glibcpp_cv_func___builtin_fabs_use=no
10918 rm -f conftest*
10919 ac_ext=c
10920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10924 cross_compiling=$ac_cv_prog_cc_cross
10930 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10931 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10932 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10933 echo "configure:10934: checking for __builtin_fabs linkage" >&5
10934 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10935 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10937 else
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include <math.h>
10943 int main() {
10944 __builtin_fabs(0);
10945 ; return 0; }
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10948 rm -rf conftest*
10949 glibcpp_cv_func___builtin_fabs_link=yes
10950 else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -rf conftest*
10954 glibcpp_cv_func___builtin_fabs_link=no
10956 rm -f conftest*
10961 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10962 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10963 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10964 cat >> confdefs.h <<EOF
10965 #define ${ac_tr_func} 1
10972 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10973 echo "configure:10974: checking for __builtin_fabsl declaration" >&5
10974 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10975 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10977 else
10980 ac_ext=C
10981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10982 ac_cpp='$CXXCPP $CPPFLAGS'
10983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10985 cross_compiling=$ac_cv_prog_cxx_cross
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 #include <math.h>
10991 int main() {
10992 __builtin_fabsl(0);
10993 ; return 0; }
10995 if { (eval echo configure:10996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10996 rm -rf conftest*
10997 glibcpp_cv_func___builtin_fabsl_use=yes
10998 else
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 rm -rf conftest*
11002 glibcpp_cv_func___builtin_fabsl_use=no
11004 rm -f conftest*
11005 ac_ext=c
11006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11007 ac_cpp='$CPP $CPPFLAGS'
11008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11010 cross_compiling=$ac_cv_prog_cc_cross
11016 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11017 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11018 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11019 echo "configure:11020: checking for __builtin_fabsl linkage" >&5
11020 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11021 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11022 echo $ac_n "(cached) $ac_c" 1>&6
11023 else
11025 cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure"
11027 #include "confdefs.h"
11028 #include <math.h>
11029 int main() {
11030 __builtin_fabsl(0);
11031 ; return 0; }
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034 rm -rf conftest*
11035 glibcpp_cv_func___builtin_fabsl_link=yes
11036 else
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11039 rm -rf conftest*
11040 glibcpp_cv_func___builtin_fabsl_link=no
11042 rm -f conftest*
11047 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11048 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11049 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11050 cat >> confdefs.h <<EOF
11051 #define ${ac_tr_func} 1
11058 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11059 echo "configure:11060: checking for __builtin_labs declaration" >&5
11060 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11061 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11063 else
11066 ac_ext=C
11067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11068 ac_cpp='$CXXCPP $CPPFLAGS'
11069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11071 cross_compiling=$ac_cv_prog_cxx_cross
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 #include <math.h>
11077 int main() {
11078 __builtin_labs(0);
11079 ; return 0; }
11081 if { (eval echo configure:11082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11082 rm -rf conftest*
11083 glibcpp_cv_func___builtin_labs_use=yes
11084 else
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -rf conftest*
11088 glibcpp_cv_func___builtin_labs_use=no
11090 rm -f conftest*
11091 ac_ext=c
11092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11093 ac_cpp='$CPP $CPPFLAGS'
11094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11096 cross_compiling=$ac_cv_prog_cc_cross
11102 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11103 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11104 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11105 echo "configure:11106: checking for __builtin_labs linkage" >&5
11106 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11107 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109 else
11111 cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11114 #include <math.h>
11115 int main() {
11116 __builtin_labs(0);
11117 ; return 0; }
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11120 rm -rf conftest*
11121 glibcpp_cv_func___builtin_labs_link=yes
11122 else
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -rf conftest*
11126 glibcpp_cv_func___builtin_labs_link=no
11128 rm -f conftest*
11133 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11134 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11135 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11136 cat >> confdefs.h <<EOF
11137 #define ${ac_tr_func} 1
11145 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11146 echo "configure:11147: checking for __builtin_sqrtf declaration" >&5
11147 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11148 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11153 ac_ext=C
11154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11155 ac_cpp='$CXXCPP $CPPFLAGS'
11156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11158 cross_compiling=$ac_cv_prog_cxx_cross
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163 #include <math.h>
11164 int main() {
11165 __builtin_sqrtf(0);
11166 ; return 0; }
11168 if { (eval echo configure:11169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11169 rm -rf conftest*
11170 glibcpp_cv_func___builtin_sqrtf_use=yes
11171 else
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 rm -rf conftest*
11175 glibcpp_cv_func___builtin_sqrtf_use=no
11177 rm -f conftest*
11178 ac_ext=c
11179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11180 ac_cpp='$CPP $CPPFLAGS'
11181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11183 cross_compiling=$ac_cv_prog_cc_cross
11189 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11190 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11191 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11192 echo "configure:11193: checking for __builtin_sqrtf linkage" >&5
11193 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11194 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196 else
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include <math.h>
11202 int main() {
11203 __builtin_sqrtf(0);
11204 ; return 0; }
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 rm -rf conftest*
11208 glibcpp_cv_func___builtin_sqrtf_link=yes
11209 else
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213 glibcpp_cv_func___builtin_sqrtf_link=no
11215 rm -f conftest*
11220 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11221 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11222 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11223 cat >> confdefs.h <<EOF
11224 #define ${ac_tr_func} 1
11231 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11232 echo "configure:11233: checking for __builtin_sqrt declaration" >&5
11233 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11234 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11235 echo $ac_n "(cached) $ac_c" 1>&6
11236 else
11239 ac_ext=C
11240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11241 ac_cpp='$CXXCPP $CPPFLAGS'
11242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11244 cross_compiling=$ac_cv_prog_cxx_cross
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11249 #include <math.h>
11250 int main() {
11251 __builtin_sqrt(0);
11252 ; return 0; }
11254 if { (eval echo configure:11255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11255 rm -rf conftest*
11256 glibcpp_cv_func___builtin_sqrt_use=yes
11257 else
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 rm -rf conftest*
11261 glibcpp_cv_func___builtin_sqrt_use=no
11263 rm -f conftest*
11264 ac_ext=c
11265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11266 ac_cpp='$CPP $CPPFLAGS'
11267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11269 cross_compiling=$ac_cv_prog_cc_cross
11275 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11276 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11277 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11278 echo "configure:11279: checking for __builtin_sqrt linkage" >&5
11279 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11280 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11282 else
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 #include <math.h>
11288 int main() {
11289 __builtin_sqrt(0);
11290 ; return 0; }
11292 if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11293 rm -rf conftest*
11294 glibcpp_cv_func___builtin_sqrt_link=yes
11295 else
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 rm -rf conftest*
11299 glibcpp_cv_func___builtin_sqrt_link=no
11301 rm -f conftest*
11306 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11307 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11308 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11309 cat >> confdefs.h <<EOF
11310 #define ${ac_tr_func} 1
11317 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11318 echo "configure:11319: checking for __builtin_sqrtl declaration" >&5
11319 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11320 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11322 else
11325 ac_ext=C
11326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11327 ac_cpp='$CXXCPP $CPPFLAGS'
11328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11330 cross_compiling=$ac_cv_prog_cxx_cross
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11335 #include <math.h>
11336 int main() {
11337 __builtin_sqrtl(0);
11338 ; return 0; }
11340 if { (eval echo configure:11341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11341 rm -rf conftest*
11342 glibcpp_cv_func___builtin_sqrtl_use=yes
11343 else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -rf conftest*
11347 glibcpp_cv_func___builtin_sqrtl_use=no
11349 rm -f conftest*
11350 ac_ext=c
11351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11352 ac_cpp='$CPP $CPPFLAGS'
11353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11355 cross_compiling=$ac_cv_prog_cc_cross
11361 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11362 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11363 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11364 echo "configure:11365: checking for __builtin_sqrtl linkage" >&5
11365 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11366 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11368 else
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 #include <math.h>
11374 int main() {
11375 __builtin_sqrtl(0);
11376 ; return 0; }
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11379 rm -rf conftest*
11380 glibcpp_cv_func___builtin_sqrtl_link=yes
11381 else
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 rm -rf conftest*
11385 glibcpp_cv_func___builtin_sqrtl_link=no
11387 rm -f conftest*
11392 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11393 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11394 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11395 cat >> confdefs.h <<EOF
11396 #define ${ac_tr_func} 1
11404 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11405 echo "configure:11406: checking for __builtin_sinf declaration" >&5
11406 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11407 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409 else
11412 ac_ext=C
11413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11414 ac_cpp='$CXXCPP $CPPFLAGS'
11415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11417 cross_compiling=$ac_cv_prog_cxx_cross
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include <math.h>
11423 int main() {
11424 __builtin_sinf(0);
11425 ; return 0; }
11427 if { (eval echo configure:11428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11428 rm -rf conftest*
11429 glibcpp_cv_func___builtin_sinf_use=yes
11430 else
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11433 rm -rf conftest*
11434 glibcpp_cv_func___builtin_sinf_use=no
11436 rm -f conftest*
11437 ac_ext=c
11438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11439 ac_cpp='$CPP $CPPFLAGS'
11440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11442 cross_compiling=$ac_cv_prog_cc_cross
11448 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11449 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11450 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11451 echo "configure:11452: checking for __builtin_sinf linkage" >&5
11452 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11453 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455 else
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 #include <math.h>
11461 int main() {
11462 __builtin_sinf(0);
11463 ; return 0; }
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11466 rm -rf conftest*
11467 glibcpp_cv_func___builtin_sinf_link=yes
11468 else
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472 glibcpp_cv_func___builtin_sinf_link=no
11474 rm -f conftest*
11479 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11480 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11481 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11482 cat >> confdefs.h <<EOF
11483 #define ${ac_tr_func} 1
11490 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11491 echo "configure:11492: checking for __builtin_sin declaration" >&5
11492 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11493 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11495 else
11498 ac_ext=C
11499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11500 ac_cpp='$CXXCPP $CPPFLAGS'
11501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11503 cross_compiling=$ac_cv_prog_cxx_cross
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 #include <math.h>
11509 int main() {
11510 __builtin_sin(0);
11511 ; return 0; }
11513 if { (eval echo configure:11514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11514 rm -rf conftest*
11515 glibcpp_cv_func___builtin_sin_use=yes
11516 else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 glibcpp_cv_func___builtin_sin_use=no
11522 rm -f conftest*
11523 ac_ext=c
11524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11528 cross_compiling=$ac_cv_prog_cc_cross
11534 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11535 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11536 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11537 echo "configure:11538: checking for __builtin_sin linkage" >&5
11538 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11539 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541 else
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 #include <math.h>
11547 int main() {
11548 __builtin_sin(0);
11549 ; return 0; }
11551 if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552 rm -rf conftest*
11553 glibcpp_cv_func___builtin_sin_link=yes
11554 else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558 glibcpp_cv_func___builtin_sin_link=no
11560 rm -f conftest*
11565 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11566 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11567 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11568 cat >> confdefs.h <<EOF
11569 #define ${ac_tr_func} 1
11576 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11577 echo "configure:11578: checking for __builtin_sinl declaration" >&5
11578 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11579 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11580 echo $ac_n "(cached) $ac_c" 1>&6
11581 else
11584 ac_ext=C
11585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11586 ac_cpp='$CXXCPP $CPPFLAGS'
11587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11589 cross_compiling=$ac_cv_prog_cxx_cross
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11594 #include <math.h>
11595 int main() {
11596 __builtin_sinl(0);
11597 ; return 0; }
11599 if { (eval echo configure:11600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11600 rm -rf conftest*
11601 glibcpp_cv_func___builtin_sinl_use=yes
11602 else
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
11606 glibcpp_cv_func___builtin_sinl_use=no
11608 rm -f conftest*
11609 ac_ext=c
11610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11611 ac_cpp='$CPP $CPPFLAGS'
11612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11614 cross_compiling=$ac_cv_prog_cc_cross
11620 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11621 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11622 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11623 echo "configure:11624: checking for __builtin_sinl linkage" >&5
11624 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11625 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627 else
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <math.h>
11633 int main() {
11634 __builtin_sinl(0);
11635 ; return 0; }
11637 if { (eval echo configure:11638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11638 rm -rf conftest*
11639 glibcpp_cv_func___builtin_sinl_link=yes
11640 else
11641 echo "configure: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 rm -rf conftest*
11644 glibcpp_cv_func___builtin_sinl_link=no
11646 rm -f conftest*
11651 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11652 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11653 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11654 cat >> confdefs.h <<EOF
11655 #define ${ac_tr_func} 1
11663 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11664 echo "configure:11665: checking for __builtin_cosf declaration" >&5
11665 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11666 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668 else
11671 ac_ext=C
11672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11673 ac_cpp='$CXXCPP $CPPFLAGS'
11674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11676 cross_compiling=$ac_cv_prog_cxx_cross
11678 cat > conftest.$ac_ext <<EOF
11679 #line 11680 "configure"
11680 #include "confdefs.h"
11681 #include <math.h>
11682 int main() {
11683 __builtin_cosf(0);
11684 ; return 0; }
11686 if { (eval echo configure:11687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11687 rm -rf conftest*
11688 glibcpp_cv_func___builtin_cosf_use=yes
11689 else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 glibcpp_cv_func___builtin_cosf_use=no
11695 rm -f conftest*
11696 ac_ext=c
11697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11701 cross_compiling=$ac_cv_prog_cc_cross
11707 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11708 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11709 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11710 echo "configure:11711: checking for __builtin_cosf linkage" >&5
11711 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11712 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11714 else
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 #include <math.h>
11720 int main() {
11721 __builtin_cosf(0);
11722 ; return 0; }
11724 if { (eval echo configure:11725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11725 rm -rf conftest*
11726 glibcpp_cv_func___builtin_cosf_link=yes
11727 else
11728 echo "configure: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 rm -rf conftest*
11731 glibcpp_cv_func___builtin_cosf_link=no
11733 rm -f conftest*
11738 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11739 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11740 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11741 cat >> confdefs.h <<EOF
11742 #define ${ac_tr_func} 1
11749 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11750 echo "configure:11751: checking for __builtin_cos declaration" >&5
11751 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11752 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11753 echo $ac_n "(cached) $ac_c" 1>&6
11754 else
11757 ac_ext=C
11758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11759 ac_cpp='$CXXCPP $CPPFLAGS'
11760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11762 cross_compiling=$ac_cv_prog_cxx_cross
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11767 #include <math.h>
11768 int main() {
11769 __builtin_cos(0);
11770 ; return 0; }
11772 if { (eval echo configure:11773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11773 rm -rf conftest*
11774 glibcpp_cv_func___builtin_cos_use=yes
11775 else
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 rm -rf conftest*
11779 glibcpp_cv_func___builtin_cos_use=no
11781 rm -f conftest*
11782 ac_ext=c
11783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11787 cross_compiling=$ac_cv_prog_cc_cross
11793 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11794 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11795 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11796 echo "configure:11797: checking for __builtin_cos linkage" >&5
11797 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11798 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11805 #include <math.h>
11806 int main() {
11807 __builtin_cos(0);
11808 ; return 0; }
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11811 rm -rf conftest*
11812 glibcpp_cv_func___builtin_cos_link=yes
11813 else
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 glibcpp_cv_func___builtin_cos_link=no
11819 rm -f conftest*
11824 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11825 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11826 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11827 cat >> confdefs.h <<EOF
11828 #define ${ac_tr_func} 1
11835 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11836 echo "configure:11837: checking for __builtin_cosl declaration" >&5
11837 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11838 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11843 ac_ext=C
11844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11845 ac_cpp='$CXXCPP $CPPFLAGS'
11846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11848 cross_compiling=$ac_cv_prog_cxx_cross
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 #include <math.h>
11854 int main() {
11855 __builtin_cosl(0);
11856 ; return 0; }
11858 if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11859 rm -rf conftest*
11860 glibcpp_cv_func___builtin_cosl_use=yes
11861 else
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11864 rm -rf conftest*
11865 glibcpp_cv_func___builtin_cosl_use=no
11867 rm -f conftest*
11868 ac_ext=c
11869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11870 ac_cpp='$CPP $CPPFLAGS'
11871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11873 cross_compiling=$ac_cv_prog_cc_cross
11879 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11880 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11881 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11882 echo "configure:11883: checking for __builtin_cosl linkage" >&5
11883 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11884 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11888 cat > conftest.$ac_ext <<EOF
11889 #line 11890 "configure"
11890 #include "confdefs.h"
11891 #include <math.h>
11892 int main() {
11893 __builtin_cosl(0);
11894 ; return 0; }
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 rm -rf conftest*
11898 glibcpp_cv_func___builtin_cosl_link=yes
11899 else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 glibcpp_cv_func___builtin_cosl_link=no
11905 rm -f conftest*
11910 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11911 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11912 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11913 cat >> confdefs.h <<EOF
11914 #define ${ac_tr_func} 1
11921 dummyvar=no
11922 if test x$dummyvar = x"yes"; then
11923 cat >> confdefs.h <<\EOF
11924 #define HAVE___BUILTIN_ABS 1
11927 cat >> confdefs.h <<\EOF
11928 #define HAVE___BUILTIN_LABS 1
11931 cat >> confdefs.h <<\EOF
11932 #define HAVE___BUILTIN_COS 1
11935 cat >> confdefs.h <<\EOF
11936 #define HAVE___BUILTIN_COSF 1
11939 cat >> confdefs.h <<\EOF
11940 #define HAVE___BUILTIN_COSL 1
11943 cat >> confdefs.h <<\EOF
11944 #define HAVE___BUILTIN_FABS 1
11947 cat >> confdefs.h <<\EOF
11948 #define HAVE___BUILTIN_FABSF 1
11951 cat >> confdefs.h <<\EOF
11952 #define HAVE___BUILTIN_FABSL 1
11955 cat >> confdefs.h <<\EOF
11956 #define HAVE___BUILTIN_SIN 1
11959 cat >> confdefs.h <<\EOF
11960 #define HAVE___BUILTIN_SINF 1
11963 cat >> confdefs.h <<\EOF
11964 #define HAVE___BUILTIN_SINL 1
11967 cat >> confdefs.h <<\EOF
11968 #define HAVE___BUILTIN_SQRT 1
11971 cat >> confdefs.h <<\EOF
11972 #define HAVE___BUILTIN_SQRTF 1
11975 cat >> confdefs.h <<\EOF
11976 #define HAVE___BUILTIN_SQRTL 1
11982 ac_test_CXXFLAGS="${CXXFLAGS+set}"
11983 ac_save_CXXFLAGS="$CXXFLAGS"
11984 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11986 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11987 echo "configure:11988: checking for sin in -lm" >&5
11988 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991 else
11992 ac_save_LIBS="$LIBS"
11993 LIBS="-lm $LIBS"
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12000 char sin();
12002 int main() {
12003 sin()
12004 ; return 0; }
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007 rm -rf conftest*
12008 eval "ac_cv_lib_$ac_lib_var=yes"
12009 else
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 rm -rf conftest*
12013 eval "ac_cv_lib_$ac_lib_var=no"
12015 rm -f conftest*
12016 LIBS="$ac_save_LIBS"
12019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 libm="-lm"
12022 else
12023 echo "$ac_t""no" 1>&6
12026 ac_save_LIBS="$LIBS"
12027 LIBS="$LIBS $libm"
12031 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12032 echo "configure:12033: checking for isinf declaration" >&5
12033 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12034 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12036 else
12039 ac_ext=C
12040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12044 cross_compiling=$ac_cv_prog_cxx_cross
12046 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12049 #include <math.h>
12050 #ifdef HAVE_IEEEFP_H
12051 #include <ieeefp.h>
12052 #endif
12054 int main() {
12055 isinf(0);
12056 ; return 0; }
12058 if { (eval echo configure:12059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12059 rm -rf conftest*
12060 glibcpp_cv_func_isinf_use=yes
12061 else
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 rm -rf conftest*
12065 glibcpp_cv_func_isinf_use=no
12067 rm -f conftest*
12068 ac_ext=c
12069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12070 ac_cpp='$CPP $CPPFLAGS'
12071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12073 cross_compiling=$ac_cv_prog_cc_cross
12079 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12081 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12082 for ac_func in isinf
12084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12085 echo "configure:12086: checking for $ac_func" >&5
12086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12088 else
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12092 /* System header to define __stub macros and hopefully few prototypes,
12093 which can conflict with char $ac_func(); below. */
12094 #include <assert.h>
12095 /* Override any gcc2 internal prototype to avoid an error. */
12096 /* We use char because int might match the return type of a gcc2
12097 builtin and then its argument prototype would still apply. */
12098 char $ac_func();
12100 int main() {
12102 /* The GNU C library defines this for functions which it implements
12103 to always fail with ENOSYS. Some functions are actually named
12104 something starting with __ and the normal name is an alias. */
12105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12106 choke me
12107 #else
12108 $ac_func();
12109 #endif
12111 ; return 0; }
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12114 rm -rf conftest*
12115 eval "ac_cv_func_$ac_func=yes"
12116 else
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 rm -rf conftest*
12120 eval "ac_cv_func_$ac_func=no"
12122 rm -f conftest*
12125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12126 echo "$ac_t""yes" 1>&6
12127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12128 cat >> confdefs.h <<EOF
12129 #define $ac_tr_func 1
12132 else
12133 echo "$ac_t""no" 1>&6
12135 done
12137 else
12139 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12140 echo "configure:12141: checking for _isinf declaration" >&5
12141 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12142 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144 else
12147 ac_ext=C
12148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12149 ac_cpp='$CXXCPP $CPPFLAGS'
12150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12152 cross_compiling=$ac_cv_prog_cxx_cross
12154 cat > conftest.$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 #include <math.h>
12158 #ifdef HAVE_IEEEFP_H
12159 #include <ieeefp.h>
12160 #endif
12162 int main() {
12163 _isinf(0);
12164 ; return 0; }
12166 if { (eval echo configure:12167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12167 rm -rf conftest*
12168 glibcpp_cv_func__isinf_use=yes
12169 else
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12172 rm -rf conftest*
12173 glibcpp_cv_func__isinf_use=no
12175 rm -f conftest*
12176 ac_ext=c
12177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12178 ac_cpp='$CPP $CPPFLAGS'
12179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12181 cross_compiling=$ac_cv_prog_cc_cross
12187 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12189 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12190 for ac_func in _isinf
12192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12193 echo "configure:12194: checking for $ac_func" >&5
12194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196 else
12197 cat > conftest.$ac_ext <<EOF
12198 #line 12199 "configure"
12199 #include "confdefs.h"
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char $ac_func(); below. */
12202 #include <assert.h>
12203 /* Override any gcc2 internal prototype to avoid an error. */
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206 char $ac_func();
12208 int main() {
12210 /* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12214 choke me
12215 #else
12216 $ac_func();
12217 #endif
12219 ; return 0; }
12221 if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12222 rm -rf conftest*
12223 eval "ac_cv_func_$ac_func=yes"
12224 else
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 eval "ac_cv_func_$ac_func=no"
12230 rm -f conftest*
12233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12234 echo "$ac_t""yes" 1>&6
12235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12236 cat >> confdefs.h <<EOF
12237 #define $ac_tr_func 1
12240 else
12241 echo "$ac_t""no" 1>&6
12243 done
12250 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12251 echo "configure:12252: checking for isnan declaration" >&5
12252 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12253 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255 else
12258 ac_ext=C
12259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12260 ac_cpp='$CXXCPP $CPPFLAGS'
12261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12263 cross_compiling=$ac_cv_prog_cxx_cross
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12268 #include <math.h>
12269 #ifdef HAVE_IEEEFP_H
12270 #include <ieeefp.h>
12271 #endif
12273 int main() {
12274 isnan(0);
12275 ; return 0; }
12277 if { (eval echo configure:12278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12278 rm -rf conftest*
12279 glibcpp_cv_func_isnan_use=yes
12280 else
12281 echo "configure: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 rm -rf conftest*
12284 glibcpp_cv_func_isnan_use=no
12286 rm -f conftest*
12287 ac_ext=c
12288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12292 cross_compiling=$ac_cv_prog_cc_cross
12298 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12300 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12301 for ac_func in isnan
12303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12304 echo "configure:12305: checking for $ac_func" >&5
12305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12307 else
12308 cat > conftest.$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char $ac_func(); below. */
12313 #include <assert.h>
12314 /* Override any gcc2 internal prototype to avoid an error. */
12315 /* We use char because int might match the return type of a gcc2
12316 builtin and then its argument prototype would still apply. */
12317 char $ac_func();
12319 int main() {
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12325 choke me
12326 #else
12327 $ac_func();
12328 #endif
12330 ; return 0; }
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12333 rm -rf conftest*
12334 eval "ac_cv_func_$ac_func=yes"
12335 else
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12338 rm -rf conftest*
12339 eval "ac_cv_func_$ac_func=no"
12341 rm -f conftest*
12344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12345 echo "$ac_t""yes" 1>&6
12346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12347 cat >> confdefs.h <<EOF
12348 #define $ac_tr_func 1
12351 else
12352 echo "$ac_t""no" 1>&6
12354 done
12356 else
12358 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12359 echo "configure:12360: checking for _isnan declaration" >&5
12360 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12361 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12363 else
12366 ac_ext=C
12367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12368 ac_cpp='$CXXCPP $CPPFLAGS'
12369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12371 cross_compiling=$ac_cv_prog_cxx_cross
12373 cat > conftest.$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12376 #include <math.h>
12377 #ifdef HAVE_IEEEFP_H
12378 #include <ieeefp.h>
12379 #endif
12381 int main() {
12382 _isnan(0);
12383 ; return 0; }
12385 if { (eval echo configure:12386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12386 rm -rf conftest*
12387 glibcpp_cv_func__isnan_use=yes
12388 else
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12391 rm -rf conftest*
12392 glibcpp_cv_func__isnan_use=no
12394 rm -f conftest*
12395 ac_ext=c
12396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12400 cross_compiling=$ac_cv_prog_cc_cross
12406 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12408 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12409 for ac_func in _isnan
12411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12412 echo "configure:12413: checking for $ac_func" >&5
12413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12414 echo $ac_n "(cached) $ac_c" 1>&6
12415 else
12416 cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 /* System header to define __stub macros and hopefully few prototypes,
12420 which can conflict with char $ac_func(); below. */
12421 #include <assert.h>
12422 /* Override any gcc2 internal prototype to avoid an error. */
12423 /* We use char because int might match the return type of a gcc2
12424 builtin and then its argument prototype would still apply. */
12425 char $ac_func();
12427 int main() {
12429 /* The GNU C library defines this for functions which it implements
12430 to always fail with ENOSYS. Some functions are actually named
12431 something starting with __ and the normal name is an alias. */
12432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12433 choke me
12434 #else
12435 $ac_func();
12436 #endif
12438 ; return 0; }
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441 rm -rf conftest*
12442 eval "ac_cv_func_$ac_func=yes"
12443 else
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 rm -rf conftest*
12447 eval "ac_cv_func_$ac_func=no"
12449 rm -f conftest*
12452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12455 cat >> confdefs.h <<EOF
12456 #define $ac_tr_func 1
12459 else
12460 echo "$ac_t""no" 1>&6
12462 done
12469 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12470 echo "configure:12471: checking for finite declaration" >&5
12471 if test x${glibcpp_cv_func_finite_use+set} != xset; then
12472 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12474 else
12477 ac_ext=C
12478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12479 ac_cpp='$CXXCPP $CPPFLAGS'
12480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12482 cross_compiling=$ac_cv_prog_cxx_cross
12484 cat > conftest.$ac_ext <<EOF
12485 #line 12486 "configure"
12486 #include "confdefs.h"
12487 #include <math.h>
12488 #ifdef HAVE_IEEEFP_H
12489 #include <ieeefp.h>
12490 #endif
12492 int main() {
12493 finite(0);
12494 ; return 0; }
12496 if { (eval echo configure:12497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12497 rm -rf conftest*
12498 glibcpp_cv_func_finite_use=yes
12499 else
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 rm -rf conftest*
12503 glibcpp_cv_func_finite_use=no
12505 rm -f conftest*
12506 ac_ext=c
12507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12511 cross_compiling=$ac_cv_prog_cc_cross
12517 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12519 if test x$glibcpp_cv_func_finite_use = x"yes"; then
12520 for ac_func in finite
12522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12523 echo "configure:12524: checking for $ac_func" >&5
12524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12525 echo $ac_n "(cached) $ac_c" 1>&6
12526 else
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func(); below. */
12532 #include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char $ac_func();
12538 int main() {
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12544 choke me
12545 #else
12546 $ac_func();
12547 #endif
12549 ; return 0; }
12551 if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 rm -rf conftest*
12553 eval "ac_cv_func_$ac_func=yes"
12554 else
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 rm -rf conftest*
12558 eval "ac_cv_func_$ac_func=no"
12560 rm -f conftest*
12563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12564 echo "$ac_t""yes" 1>&6
12565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12566 cat >> confdefs.h <<EOF
12567 #define $ac_tr_func 1
12570 else
12571 echo "$ac_t""no" 1>&6
12573 done
12575 else
12577 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12578 echo "configure:12579: checking for _finite declaration" >&5
12579 if test x${glibcpp_cv_func__finite_use+set} != xset; then
12580 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12582 else
12585 ac_ext=C
12586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12587 ac_cpp='$CXXCPP $CPPFLAGS'
12588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12590 cross_compiling=$ac_cv_prog_cxx_cross
12592 cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12595 #include <math.h>
12596 #ifdef HAVE_IEEEFP_H
12597 #include <ieeefp.h>
12598 #endif
12600 int main() {
12601 _finite(0);
12602 ; return 0; }
12604 if { (eval echo configure:12605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12605 rm -rf conftest*
12606 glibcpp_cv_func__finite_use=yes
12607 else
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 rm -rf conftest*
12611 glibcpp_cv_func__finite_use=no
12613 rm -f conftest*
12614 ac_ext=c
12615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12616 ac_cpp='$CPP $CPPFLAGS'
12617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12619 cross_compiling=$ac_cv_prog_cc_cross
12625 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12627 if test x$glibcpp_cv_func__finite_use = x"yes"; then
12628 for ac_func in _finite
12630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12631 echo "configure:12632: checking for $ac_func" >&5
12632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12633 echo $ac_n "(cached) $ac_c" 1>&6
12634 else
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 /* System header to define __stub macros and hopefully few prototypes,
12639 which can conflict with char $ac_func(); below. */
12640 #include <assert.h>
12641 /* Override any gcc2 internal prototype to avoid an error. */
12642 /* We use char because int might match the return type of a gcc2
12643 builtin and then its argument prototype would still apply. */
12644 char $ac_func();
12646 int main() {
12648 /* The GNU C library defines this for functions which it implements
12649 to always fail with ENOSYS. Some functions are actually named
12650 something starting with __ and the normal name is an alias. */
12651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12652 choke me
12653 #else
12654 $ac_func();
12655 #endif
12657 ; return 0; }
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12660 rm -rf conftest*
12661 eval "ac_cv_func_$ac_func=yes"
12662 else
12663 echo "configure: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12665 rm -rf conftest*
12666 eval "ac_cv_func_$ac_func=no"
12668 rm -f conftest*
12671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12672 echo "$ac_t""yes" 1>&6
12673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12674 cat >> confdefs.h <<EOF
12675 #define $ac_tr_func 1
12678 else
12679 echo "$ac_t""no" 1>&6
12681 done
12688 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12689 echo "configure:12690: checking for copysign declaration" >&5
12690 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12691 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12692 echo $ac_n "(cached) $ac_c" 1>&6
12693 else
12696 ac_ext=C
12697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12698 ac_cpp='$CXXCPP $CPPFLAGS'
12699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12701 cross_compiling=$ac_cv_prog_cxx_cross
12703 cat > conftest.$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 #include <math.h>
12707 int main() {
12708 copysign(0, 0);
12709 ; return 0; }
12711 if { (eval echo configure:12712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12712 rm -rf conftest*
12713 glibcpp_cv_func_copysign_use=yes
12714 else
12715 echo "configure: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12717 rm -rf conftest*
12718 glibcpp_cv_func_copysign_use=no
12720 rm -f conftest*
12721 ac_ext=c
12722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12726 cross_compiling=$ac_cv_prog_cc_cross
12732 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12734 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12735 for ac_func in copysign
12737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12738 echo "configure:12739: checking for $ac_func" >&5
12739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12741 else
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* System header to define __stub macros and hopefully few prototypes,
12746 which can conflict with char $ac_func(); below. */
12747 #include <assert.h>
12748 /* Override any gcc2 internal prototype to avoid an error. */
12749 /* We use char because int might match the return type of a gcc2
12750 builtin and then its argument prototype would still apply. */
12751 char $ac_func();
12753 int main() {
12755 /* The GNU C library defines this for functions which it implements
12756 to always fail with ENOSYS. Some functions are actually named
12757 something starting with __ and the normal name is an alias. */
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12759 choke me
12760 #else
12761 $ac_func();
12762 #endif
12764 ; return 0; }
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12767 rm -rf conftest*
12768 eval "ac_cv_func_$ac_func=yes"
12769 else
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12772 rm -rf conftest*
12773 eval "ac_cv_func_$ac_func=no"
12775 rm -f conftest*
12778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12779 echo "$ac_t""yes" 1>&6
12780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12781 cat >> confdefs.h <<EOF
12782 #define $ac_tr_func 1
12785 else
12786 echo "$ac_t""no" 1>&6
12788 done
12790 else
12792 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12793 echo "configure:12794: checking for _copysign declaration" >&5
12794 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12795 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12797 else
12800 ac_ext=C
12801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12802 ac_cpp='$CXXCPP $CPPFLAGS'
12803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12805 cross_compiling=$ac_cv_prog_cxx_cross
12807 cat > conftest.$ac_ext <<EOF
12808 #line 12809 "configure"
12809 #include "confdefs.h"
12810 #include <math.h>
12811 int main() {
12812 _copysign(0, 0);
12813 ; return 0; }
12815 if { (eval echo configure:12816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12816 rm -rf conftest*
12817 glibcpp_cv_func__copysign_use=yes
12818 else
12819 echo "configure: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 rm -rf conftest*
12822 glibcpp_cv_func__copysign_use=no
12824 rm -f conftest*
12825 ac_ext=c
12826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12827 ac_cpp='$CPP $CPPFLAGS'
12828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12830 cross_compiling=$ac_cv_prog_cc_cross
12836 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12838 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12839 for ac_func in _copysign
12841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12842 echo "configure:12843: checking for $ac_func" >&5
12843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12845 else
12846 cat > conftest.$ac_ext <<EOF
12847 #line 12848 "configure"
12848 #include "confdefs.h"
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func(); below. */
12851 #include <assert.h>
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12855 char $ac_func();
12857 int main() {
12859 /* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12863 choke me
12864 #else
12865 $ac_func();
12866 #endif
12868 ; return 0; }
12870 if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12871 rm -rf conftest*
12872 eval "ac_cv_func_$ac_func=yes"
12873 else
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 rm -rf conftest*
12877 eval "ac_cv_func_$ac_func=no"
12879 rm -f conftest*
12882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12883 echo "$ac_t""yes" 1>&6
12884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12885 cat >> confdefs.h <<EOF
12886 #define $ac_tr_func 1
12889 else
12890 echo "$ac_t""no" 1>&6
12892 done
12899 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12900 echo "configure:12901: checking for sincos declaration" >&5
12901 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12902 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12904 else
12907 ac_ext=C
12908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12909 ac_cpp='$CXXCPP $CPPFLAGS'
12910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12912 cross_compiling=$ac_cv_prog_cxx_cross
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 #include <math.h>
12918 int main() {
12919 sincos(0, 0, 0);
12920 ; return 0; }
12922 if { (eval echo configure:12923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12923 rm -rf conftest*
12924 glibcpp_cv_func_sincos_use=yes
12925 else
12926 echo "configure: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 rm -rf conftest*
12929 glibcpp_cv_func_sincos_use=no
12931 rm -f conftest*
12932 ac_ext=c
12933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12937 cross_compiling=$ac_cv_prog_cc_cross
12943 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12945 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12946 for ac_func in sincos
12948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12949 echo "configure:12950: checking for $ac_func" >&5
12950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12951 echo $ac_n "(cached) $ac_c" 1>&6
12952 else
12953 cat > conftest.$ac_ext <<EOF
12954 #line 12955 "configure"
12955 #include "confdefs.h"
12956 /* System header to define __stub macros and hopefully few prototypes,
12957 which can conflict with char $ac_func(); below. */
12958 #include <assert.h>
12959 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char $ac_func();
12964 int main() {
12966 /* The GNU C library defines this for functions which it implements
12967 to always fail with ENOSYS. Some functions are actually named
12968 something starting with __ and the normal name is an alias. */
12969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 choke me
12971 #else
12972 $ac_func();
12973 #endif
12975 ; return 0; }
12977 if { (eval echo configure:12978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12978 rm -rf conftest*
12979 eval "ac_cv_func_$ac_func=yes"
12980 else
12981 echo "configure: failed program was:" >&5
12982 cat conftest.$ac_ext >&5
12983 rm -rf conftest*
12984 eval "ac_cv_func_$ac_func=no"
12986 rm -f conftest*
12989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12990 echo "$ac_t""yes" 1>&6
12991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12992 cat >> confdefs.h <<EOF
12993 #define $ac_tr_func 1
12996 else
12997 echo "$ac_t""no" 1>&6
12999 done
13001 else
13003 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
13004 echo "configure:13005: checking for _sincos declaration" >&5
13005 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
13006 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
13007 echo $ac_n "(cached) $ac_c" 1>&6
13008 else
13011 ac_ext=C
13012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CXXCPP $CPPFLAGS'
13014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cxx_cross
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <math.h>
13022 int main() {
13023 _sincos(0, 0, 0);
13024 ; return 0; }
13026 if { (eval echo configure:13027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13027 rm -rf conftest*
13028 glibcpp_cv_func__sincos_use=yes
13029 else
13030 echo "configure: failed program was:" >&5
13031 cat conftest.$ac_ext >&5
13032 rm -rf conftest*
13033 glibcpp_cv_func__sincos_use=no
13035 rm -f conftest*
13036 ac_ext=c
13037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13041 cross_compiling=$ac_cv_prog_cc_cross
13047 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13049 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13050 for ac_func in _sincos
13052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13053 echo "configure:13054: checking for $ac_func" >&5
13054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
13056 else
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func(); below. */
13062 #include <assert.h>
13063 /* Override any gcc2 internal prototype to avoid an error. */
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066 char $ac_func();
13068 int main() {
13070 /* The GNU C library defines this for functions which it implements
13071 to always fail with ENOSYS. Some functions are actually named
13072 something starting with __ and the normal name is an alias. */
13073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13074 choke me
13075 #else
13076 $ac_func();
13077 #endif
13079 ; return 0; }
13081 if { (eval echo configure:13082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13082 rm -rf conftest*
13083 eval "ac_cv_func_$ac_func=yes"
13084 else
13085 echo "configure: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13087 rm -rf conftest*
13088 eval "ac_cv_func_$ac_func=no"
13090 rm -f conftest*
13093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13094 echo "$ac_t""yes" 1>&6
13095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13096 cat >> confdefs.h <<EOF
13097 #define $ac_tr_func 1
13100 else
13101 echo "$ac_t""no" 1>&6
13103 done
13110 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13111 echo "configure:13112: checking for fpclass declaration" >&5
13112 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13113 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115 else
13118 ac_ext=C
13119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13120 ac_cpp='$CXXCPP $CPPFLAGS'
13121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13123 cross_compiling=$ac_cv_prog_cxx_cross
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 #include <math.h>
13129 #ifdef HAVE_IEEEFP_H
13130 #include <ieeefp.h>
13131 #endif
13133 int main() {
13134 fpclass(0);
13135 ; return 0; }
13137 if { (eval echo configure:13138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13138 rm -rf conftest*
13139 glibcpp_cv_func_fpclass_use=yes
13140 else
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13143 rm -rf conftest*
13144 glibcpp_cv_func_fpclass_use=no
13146 rm -f conftest*
13147 ac_ext=c
13148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13152 cross_compiling=$ac_cv_prog_cc_cross
13158 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13160 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13161 for ac_func in fpclass
13163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13164 echo "configure:13165: checking for $ac_func" >&5
13165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13166 echo $ac_n "(cached) $ac_c" 1>&6
13167 else
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13171 /* System header to define __stub macros and hopefully few prototypes,
13172 which can conflict with char $ac_func(); below. */
13173 #include <assert.h>
13174 /* Override any gcc2 internal prototype to avoid an error. */
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char $ac_func();
13179 int main() {
13181 /* The GNU C library defines this for functions which it implements
13182 to always fail with ENOSYS. Some functions are actually named
13183 something starting with __ and the normal name is an alias. */
13184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13185 choke me
13186 #else
13187 $ac_func();
13188 #endif
13190 ; return 0; }
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13193 rm -rf conftest*
13194 eval "ac_cv_func_$ac_func=yes"
13195 else
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 rm -rf conftest*
13199 eval "ac_cv_func_$ac_func=no"
13201 rm -f conftest*
13204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13205 echo "$ac_t""yes" 1>&6
13206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13207 cat >> confdefs.h <<EOF
13208 #define $ac_tr_func 1
13211 else
13212 echo "$ac_t""no" 1>&6
13214 done
13216 else
13218 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13219 echo "configure:13220: checking for _fpclass declaration" >&5
13220 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13221 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13222 echo $ac_n "(cached) $ac_c" 1>&6
13223 else
13226 ac_ext=C
13227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13228 ac_cpp='$CXXCPP $CPPFLAGS'
13229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13231 cross_compiling=$ac_cv_prog_cxx_cross
13233 cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 #include <math.h>
13237 #ifdef HAVE_IEEEFP_H
13238 #include <ieeefp.h>
13239 #endif
13241 int main() {
13242 _fpclass(0);
13243 ; return 0; }
13245 if { (eval echo configure:13246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13246 rm -rf conftest*
13247 glibcpp_cv_func__fpclass_use=yes
13248 else
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
13252 glibcpp_cv_func__fpclass_use=no
13254 rm -f conftest*
13255 ac_ext=c
13256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13257 ac_cpp='$CPP $CPPFLAGS'
13258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13260 cross_compiling=$ac_cv_prog_cc_cross
13266 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13268 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13269 for ac_func in _fpclass
13271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13272 echo "configure:13273: checking for $ac_func" >&5
13273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275 else
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char $ac_func(); below. */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error. */
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285 char $ac_func();
13287 int main() {
13289 /* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293 choke me
13294 #else
13295 $ac_func();
13296 #endif
13298 ; return 0; }
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301 rm -rf conftest*
13302 eval "ac_cv_func_$ac_func=yes"
13303 else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_$ac_func=no"
13309 rm -f conftest*
13312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315 cat >> confdefs.h <<EOF
13316 #define $ac_tr_func 1
13319 else
13320 echo "$ac_t""no" 1>&6
13322 done
13329 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13330 echo "configure:13331: checking for qfpclass declaration" >&5
13331 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13332 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13334 else
13337 ac_ext=C
13338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13339 ac_cpp='$CXXCPP $CPPFLAGS'
13340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13342 cross_compiling=$ac_cv_prog_cxx_cross
13344 cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13347 #include <math.h>
13348 #ifdef HAVE_IEEEFP_H
13349 #include <ieeefp.h>
13350 #endif
13352 int main() {
13353 qfpclass(0);
13354 ; return 0; }
13356 if { (eval echo configure:13357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13357 rm -rf conftest*
13358 glibcpp_cv_func_qfpclass_use=yes
13359 else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 glibcpp_cv_func_qfpclass_use=no
13365 rm -f conftest*
13366 ac_ext=c
13367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13368 ac_cpp='$CPP $CPPFLAGS'
13369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13371 cross_compiling=$ac_cv_prog_cc_cross
13377 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13379 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13380 for ac_func in qfpclass
13382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13383 echo "configure:13384: checking for $ac_func" >&5
13384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13385 echo $ac_n "(cached) $ac_c" 1>&6
13386 else
13387 cat > conftest.$ac_ext <<EOF
13388 #line 13389 "configure"
13389 #include "confdefs.h"
13390 /* System header to define __stub macros and hopefully few prototypes,
13391 which can conflict with char $ac_func(); below. */
13392 #include <assert.h>
13393 /* Override any gcc2 internal prototype to avoid an error. */
13394 /* We use char because int might match the return type of a gcc2
13395 builtin and then its argument prototype would still apply. */
13396 char $ac_func();
13398 int main() {
13400 /* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
13403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13404 choke me
13405 #else
13406 $ac_func();
13407 #endif
13409 ; return 0; }
13411 if { (eval echo configure:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13412 rm -rf conftest*
13413 eval "ac_cv_func_$ac_func=yes"
13414 else
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13417 rm -rf conftest*
13418 eval "ac_cv_func_$ac_func=no"
13420 rm -f conftest*
13423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13426 cat >> confdefs.h <<EOF
13427 #define $ac_tr_func 1
13430 else
13431 echo "$ac_t""no" 1>&6
13433 done
13435 else
13437 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13438 echo "configure:13439: checking for _qfpclass declaration" >&5
13439 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13440 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13442 else
13445 ac_ext=C
13446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13447 ac_cpp='$CXXCPP $CPPFLAGS'
13448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13450 cross_compiling=$ac_cv_prog_cxx_cross
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13455 #include <math.h>
13456 #ifdef HAVE_IEEEFP_H
13457 #include <ieeefp.h>
13458 #endif
13460 int main() {
13461 _qfpclass(0);
13462 ; return 0; }
13464 if { (eval echo configure:13465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13465 rm -rf conftest*
13466 glibcpp_cv_func__qfpclass_use=yes
13467 else
13468 echo "configure: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13470 rm -rf conftest*
13471 glibcpp_cv_func__qfpclass_use=no
13473 rm -f conftest*
13474 ac_ext=c
13475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13479 cross_compiling=$ac_cv_prog_cc_cross
13485 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13487 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13488 for ac_func in _qfpclass
13490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13491 echo "configure:13492: checking for $ac_func" >&5
13492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13493 echo $ac_n "(cached) $ac_c" 1>&6
13494 else
13495 cat > conftest.$ac_ext <<EOF
13496 #line 13497 "configure"
13497 #include "confdefs.h"
13498 /* System header to define __stub macros and hopefully few prototypes,
13499 which can conflict with char $ac_func(); below. */
13500 #include <assert.h>
13501 /* Override any gcc2 internal prototype to avoid an error. */
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13504 char $ac_func();
13506 int main() {
13508 /* The GNU C library defines this for functions which it implements
13509 to always fail with ENOSYS. Some functions are actually named
13510 something starting with __ and the normal name is an alias. */
13511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13512 choke me
13513 #else
13514 $ac_func();
13515 #endif
13517 ; return 0; }
13519 if { (eval echo configure:13520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13520 rm -rf conftest*
13521 eval "ac_cv_func_$ac_func=yes"
13522 else
13523 echo "configure: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13525 rm -rf conftest*
13526 eval "ac_cv_func_$ac_func=no"
13528 rm -f conftest*
13531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13534 cat >> confdefs.h <<EOF
13535 #define $ac_tr_func 1
13538 else
13539 echo "$ac_t""no" 1>&6
13541 done
13548 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13549 echo "configure:13550: checking for hypot declaration" >&5
13550 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13551 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13552 echo $ac_n "(cached) $ac_c" 1>&6
13553 else
13556 ac_ext=C
13557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13558 ac_cpp='$CXXCPP $CPPFLAGS'
13559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13561 cross_compiling=$ac_cv_prog_cxx_cross
13563 cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure"
13565 #include "confdefs.h"
13566 #include <math.h>
13567 int main() {
13568 hypot(0, 0);
13569 ; return 0; }
13571 if { (eval echo configure:13572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13572 rm -rf conftest*
13573 glibcpp_cv_func_hypot_use=yes
13574 else
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 rm -rf conftest*
13578 glibcpp_cv_func_hypot_use=no
13580 rm -f conftest*
13581 ac_ext=c
13582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13586 cross_compiling=$ac_cv_prog_cc_cross
13592 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13594 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13595 for ac_func in hypot
13597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13598 echo "configure:13599: checking for $ac_func" >&5
13599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 /* System header to define __stub macros and hopefully few prototypes,
13606 which can conflict with char $ac_func(); below. */
13607 #include <assert.h>
13608 /* Override any gcc2 internal prototype to avoid an error. */
13609 /* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
13611 char $ac_func();
13613 int main() {
13615 /* The GNU C library defines this for functions which it implements
13616 to always fail with ENOSYS. Some functions are actually named
13617 something starting with __ and the normal name is an alias. */
13618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13619 choke me
13620 #else
13621 $ac_func();
13622 #endif
13624 ; return 0; }
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627 rm -rf conftest*
13628 eval "ac_cv_func_$ac_func=yes"
13629 else
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 rm -rf conftest*
13633 eval "ac_cv_func_$ac_func=no"
13635 rm -f conftest*
13638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13639 echo "$ac_t""yes" 1>&6
13640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13641 cat >> confdefs.h <<EOF
13642 #define $ac_tr_func 1
13645 else
13646 echo "$ac_t""no" 1>&6
13648 done
13650 else
13652 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13653 echo "configure:13654: checking for _hypot declaration" >&5
13654 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13655 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13656 echo $ac_n "(cached) $ac_c" 1>&6
13657 else
13660 ac_ext=C
13661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13662 ac_cpp='$CXXCPP $CPPFLAGS'
13663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13665 cross_compiling=$ac_cv_prog_cxx_cross
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 #include <math.h>
13671 int main() {
13672 _hypot(0, 0);
13673 ; return 0; }
13675 if { (eval echo configure:13676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13676 rm -rf conftest*
13677 glibcpp_cv_func__hypot_use=yes
13678 else
13679 echo "configure: failed program was:" >&5
13680 cat conftest.$ac_ext >&5
13681 rm -rf conftest*
13682 glibcpp_cv_func__hypot_use=no
13684 rm -f conftest*
13685 ac_ext=c
13686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13690 cross_compiling=$ac_cv_prog_cc_cross
13696 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13698 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13699 for ac_func in _hypot
13701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13702 echo "configure:13703: checking for $ac_func" >&5
13703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13704 echo $ac_n "(cached) $ac_c" 1>&6
13705 else
13706 cat > conftest.$ac_ext <<EOF
13707 #line 13708 "configure"
13708 #include "confdefs.h"
13709 /* System header to define __stub macros and hopefully few prototypes,
13710 which can conflict with char $ac_func(); below. */
13711 #include <assert.h>
13712 /* Override any gcc2 internal prototype to avoid an error. */
13713 /* We use char because int might match the return type of a gcc2
13714 builtin and then its argument prototype would still apply. */
13715 char $ac_func();
13717 int main() {
13719 /* The GNU C library defines this for functions which it implements
13720 to always fail with ENOSYS. Some functions are actually named
13721 something starting with __ and the normal name is an alias. */
13722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13723 choke me
13724 #else
13725 $ac_func();
13726 #endif
13728 ; return 0; }
13730 if { (eval echo configure:13731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13731 rm -rf conftest*
13732 eval "ac_cv_func_$ac_func=yes"
13733 else
13734 echo "configure: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13736 rm -rf conftest*
13737 eval "ac_cv_func_$ac_func=no"
13739 rm -f conftest*
13742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13743 echo "$ac_t""yes" 1>&6
13744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13745 cat >> confdefs.h <<EOF
13746 #define $ac_tr_func 1
13749 else
13750 echo "$ac_t""no" 1>&6
13752 done
13759 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13760 echo "configure:13761: checking for float trig functions" >&5
13761 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13762 echo $ac_n "(cached) $ac_c" 1>&6
13763 else
13766 ac_ext=C
13767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13768 ac_cpp='$CXXCPP $CPPFLAGS'
13769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13771 cross_compiling=$ac_cv_prog_cxx_cross
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 #include <math.h>
13777 int main() {
13778 `for x in acosf asinf atanf \
13779 cosf sinf tanf \
13780 coshf sinhf tanhf; do echo "$x (0);"; done`
13781 ; return 0; }
13783 if { (eval echo configure:13784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13784 rm -rf conftest*
13785 glibcpp_cv_func_float_trig_use=yes
13786 else
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
13790 glibcpp_cv_func_float_trig_use=no
13792 rm -f conftest*
13793 ac_ext=c
13794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13798 cross_compiling=$ac_cv_prog_cc_cross
13802 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13803 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13804 for ac_func in acosf asinf atanf \
13805 cosf sinf tanf \
13806 coshf sinhf tanhf
13808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13809 echo "configure:13810: checking for $ac_func" >&5
13810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
13812 else
13813 cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 /* System header to define __stub macros and hopefully few prototypes,
13817 which can conflict with char $ac_func(); below. */
13818 #include <assert.h>
13819 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822 char $ac_func();
13824 int main() {
13826 /* The GNU C library defines this for functions which it implements
13827 to always fail with ENOSYS. Some functions are actually named
13828 something starting with __ and the normal name is an alias. */
13829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13830 choke me
13831 #else
13832 $ac_func();
13833 #endif
13835 ; return 0; }
13837 if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838 rm -rf conftest*
13839 eval "ac_cv_func_$ac_func=yes"
13840 else
13841 echo "configure: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13843 rm -rf conftest*
13844 eval "ac_cv_func_$ac_func=no"
13846 rm -f conftest*
13849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13850 echo "$ac_t""yes" 1>&6
13851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13852 cat >> confdefs.h <<EOF
13853 #define $ac_tr_func 1
13856 else
13857 echo "$ac_t""no" 1>&6
13859 done
13864 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13865 echo "configure:13866: checking for float round functions" >&5
13866 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13867 echo $ac_n "(cached) $ac_c" 1>&6
13868 else
13871 ac_ext=C
13872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13873 ac_cpp='$CXXCPP $CPPFLAGS'
13874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13876 cross_compiling=$ac_cv_prog_cxx_cross
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 #include <math.h>
13882 int main() {
13883 `for x in ceilf floorf; do echo "$x (0);"; done`
13884 ; return 0; }
13886 if { (eval echo configure:13887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13887 rm -rf conftest*
13888 glibcpp_cv_func_float_round_use=yes
13889 else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 glibcpp_cv_func_float_round_use=no
13895 rm -f conftest*
13896 ac_ext=c
13897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13898 ac_cpp='$CPP $CPPFLAGS'
13899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13901 cross_compiling=$ac_cv_prog_cc_cross
13905 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13906 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13907 for ac_func in ceilf floorf
13909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13910 echo "configure:13911: checking for $ac_func" >&5
13911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
13913 else
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13917 /* System header to define __stub macros and hopefully few prototypes,
13918 which can conflict with char $ac_func(); below. */
13919 #include <assert.h>
13920 /* Override any gcc2 internal prototype to avoid an error. */
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13923 char $ac_func();
13925 int main() {
13927 /* The GNU C library defines this for functions which it implements
13928 to always fail with ENOSYS. Some functions are actually named
13929 something starting with __ and the normal name is an alias. */
13930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13931 choke me
13932 #else
13933 $ac_func();
13934 #endif
13936 ; return 0; }
13938 if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13939 rm -rf conftest*
13940 eval "ac_cv_func_$ac_func=yes"
13941 else
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 rm -rf conftest*
13945 eval "ac_cv_func_$ac_func=no"
13947 rm -f conftest*
13950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13951 echo "$ac_t""yes" 1>&6
13952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13953 cat >> confdefs.h <<EOF
13954 #define $ac_tr_func 1
13957 else
13958 echo "$ac_t""no" 1>&6
13960 done
13966 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13967 echo "configure:13968: checking for expf declaration" >&5
13968 if test x${glibcpp_cv_func_expf_use+set} != xset; then
13969 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971 else
13974 ac_ext=C
13975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13976 ac_cpp='$CXXCPP $CPPFLAGS'
13977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13979 cross_compiling=$ac_cv_prog_cxx_cross
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 #include <math.h>
13985 #ifdef HAVE_IEEEFP_H
13986 #include <ieeefp.h>
13987 #endif
13989 int main() {
13990 expf(0);
13991 ; return 0; }
13993 if { (eval echo configure:13994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13994 rm -rf conftest*
13995 glibcpp_cv_func_expf_use=yes
13996 else
13997 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 rm -rf conftest*
14000 glibcpp_cv_func_expf_use=no
14002 rm -f conftest*
14003 ac_ext=c
14004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14005 ac_cpp='$CPP $CPPFLAGS'
14006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14008 cross_compiling=$ac_cv_prog_cc_cross
14014 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14016 if test x$glibcpp_cv_func_expf_use = x"yes"; then
14017 for ac_func in expf
14019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14020 echo "configure:14021: checking for $ac_func" >&5
14021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14022 echo $ac_n "(cached) $ac_c" 1>&6
14023 else
14024 cat > conftest.$ac_ext <<EOF
14025 #line 14026 "configure"
14026 #include "confdefs.h"
14027 /* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char $ac_func(); below. */
14029 #include <assert.h>
14030 /* Override any gcc2 internal prototype to avoid an error. */
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char $ac_func();
14035 int main() {
14037 /* The GNU C library defines this for functions which it implements
14038 to always fail with ENOSYS. Some functions are actually named
14039 something starting with __ and the normal name is an alias. */
14040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14041 choke me
14042 #else
14043 $ac_func();
14044 #endif
14046 ; return 0; }
14048 if { (eval echo configure:14049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14049 rm -rf conftest*
14050 eval "ac_cv_func_$ac_func=yes"
14051 else
14052 echo "configure: failed program was:" >&5
14053 cat conftest.$ac_ext >&5
14054 rm -rf conftest*
14055 eval "ac_cv_func_$ac_func=no"
14057 rm -f conftest*
14060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14061 echo "$ac_t""yes" 1>&6
14062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14063 cat >> confdefs.h <<EOF
14064 #define $ac_tr_func 1
14067 else
14068 echo "$ac_t""no" 1>&6
14070 done
14072 else
14074 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14075 echo "configure:14076: checking for _expf declaration" >&5
14076 if test x${glibcpp_cv_func__expf_use+set} != xset; then
14077 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079 else
14082 ac_ext=C
14083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14084 ac_cpp='$CXXCPP $CPPFLAGS'
14085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14087 cross_compiling=$ac_cv_prog_cxx_cross
14089 cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 #include <math.h>
14093 #ifdef HAVE_IEEEFP_H
14094 #include <ieeefp.h>
14095 #endif
14097 int main() {
14098 _expf(0);
14099 ; return 0; }
14101 if { (eval echo configure:14102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14102 rm -rf conftest*
14103 glibcpp_cv_func__expf_use=yes
14104 else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -rf conftest*
14108 glibcpp_cv_func__expf_use=no
14110 rm -f conftest*
14111 ac_ext=c
14112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14116 cross_compiling=$ac_cv_prog_cc_cross
14122 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14124 if test x$glibcpp_cv_func__expf_use = x"yes"; then
14125 for ac_func in _expf
14127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14128 echo "configure:14129: checking for $ac_func" >&5
14129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14131 else
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char $ac_func(); below. */
14137 #include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error. */
14139 /* We use char because int might match the return type of a gcc2
14140 builtin and then its argument prototype would still apply. */
14141 char $ac_func();
14143 int main() {
14145 /* The GNU C library defines this for functions which it implements
14146 to always fail with ENOSYS. Some functions are actually named
14147 something starting with __ and the normal name is an alias. */
14148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149 choke me
14150 #else
14151 $ac_func();
14152 #endif
14154 ; return 0; }
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14157 rm -rf conftest*
14158 eval "ac_cv_func_$ac_func=yes"
14159 else
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
14163 eval "ac_cv_func_$ac_func=no"
14165 rm -f conftest*
14168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14169 echo "$ac_t""yes" 1>&6
14170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14171 cat >> confdefs.h <<EOF
14172 #define $ac_tr_func 1
14175 else
14176 echo "$ac_t""no" 1>&6
14178 done
14185 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14186 echo "configure:14187: checking for isnanf declaration" >&5
14187 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14188 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14189 echo $ac_n "(cached) $ac_c" 1>&6
14190 else
14193 ac_ext=C
14194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14195 ac_cpp='$CXXCPP $CPPFLAGS'
14196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14198 cross_compiling=$ac_cv_prog_cxx_cross
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14203 #include <math.h>
14204 #ifdef HAVE_IEEEFP_H
14205 #include <ieeefp.h>
14206 #endif
14208 int main() {
14209 isnanf(0);
14210 ; return 0; }
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 rm -rf conftest*
14214 glibcpp_cv_func_isnanf_use=yes
14215 else
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 rm -rf conftest*
14219 glibcpp_cv_func_isnanf_use=no
14221 rm -f conftest*
14222 ac_ext=c
14223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14227 cross_compiling=$ac_cv_prog_cc_cross
14233 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14235 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14236 for ac_func in isnanf
14238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14239 echo "configure:14240: checking for $ac_func" >&5
14240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243 cat > conftest.$ac_ext <<EOF
14244 #line 14245 "configure"
14245 #include "confdefs.h"
14246 /* System header to define __stub macros and hopefully few prototypes,
14247 which can conflict with char $ac_func(); below. */
14248 #include <assert.h>
14249 /* Override any gcc2 internal prototype to avoid an error. */
14250 /* We use char because int might match the return type of a gcc2
14251 builtin and then its argument prototype would still apply. */
14252 char $ac_func();
14254 int main() {
14256 /* The GNU C library defines this for functions which it implements
14257 to always fail with ENOSYS. Some functions are actually named
14258 something starting with __ and the normal name is an alias. */
14259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14260 choke me
14261 #else
14262 $ac_func();
14263 #endif
14265 ; return 0; }
14267 if { (eval echo configure:14268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14268 rm -rf conftest*
14269 eval "ac_cv_func_$ac_func=yes"
14270 else
14271 echo "configure: failed program was:" >&5
14272 cat conftest.$ac_ext >&5
14273 rm -rf conftest*
14274 eval "ac_cv_func_$ac_func=no"
14276 rm -f conftest*
14279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14280 echo "$ac_t""yes" 1>&6
14281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14282 cat >> confdefs.h <<EOF
14283 #define $ac_tr_func 1
14286 else
14287 echo "$ac_t""no" 1>&6
14289 done
14291 else
14293 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14294 echo "configure:14295: checking for _isnanf declaration" >&5
14295 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14296 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14297 echo $ac_n "(cached) $ac_c" 1>&6
14298 else
14301 ac_ext=C
14302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14303 ac_cpp='$CXXCPP $CPPFLAGS'
14304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14306 cross_compiling=$ac_cv_prog_cxx_cross
14308 cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14311 #include <math.h>
14312 #ifdef HAVE_IEEEFP_H
14313 #include <ieeefp.h>
14314 #endif
14316 int main() {
14317 _isnanf(0);
14318 ; return 0; }
14320 if { (eval echo configure:14321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14321 rm -rf conftest*
14322 glibcpp_cv_func__isnanf_use=yes
14323 else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 glibcpp_cv_func__isnanf_use=no
14329 rm -f conftest*
14330 ac_ext=c
14331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14332 ac_cpp='$CPP $CPPFLAGS'
14333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14335 cross_compiling=$ac_cv_prog_cc_cross
14341 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14343 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14344 for ac_func in _isnanf
14346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14347 echo "configure:14348: checking for $ac_func" >&5
14348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14349 echo $ac_n "(cached) $ac_c" 1>&6
14350 else
14351 cat > conftest.$ac_ext <<EOF
14352 #line 14353 "configure"
14353 #include "confdefs.h"
14354 /* System header to define __stub macros and hopefully few prototypes,
14355 which can conflict with char $ac_func(); below. */
14356 #include <assert.h>
14357 /* Override any gcc2 internal prototype to avoid an error. */
14358 /* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14360 char $ac_func();
14362 int main() {
14364 /* The GNU C library defines this for functions which it implements
14365 to always fail with ENOSYS. Some functions are actually named
14366 something starting with __ and the normal name is an alias. */
14367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14368 choke me
14369 #else
14370 $ac_func();
14371 #endif
14373 ; return 0; }
14375 if { (eval echo configure:14376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14376 rm -rf conftest*
14377 eval "ac_cv_func_$ac_func=yes"
14378 else
14379 echo "configure: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=no"
14384 rm -f conftest*
14387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14388 echo "$ac_t""yes" 1>&6
14389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14390 cat >> confdefs.h <<EOF
14391 #define $ac_tr_func 1
14394 else
14395 echo "$ac_t""no" 1>&6
14397 done
14404 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14405 echo "configure:14406: checking for isinff declaration" >&5
14406 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14407 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14408 echo $ac_n "(cached) $ac_c" 1>&6
14409 else
14412 ac_ext=C
14413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14414 ac_cpp='$CXXCPP $CPPFLAGS'
14415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14417 cross_compiling=$ac_cv_prog_cxx_cross
14419 cat > conftest.$ac_ext <<EOF
14420 #line 14421 "configure"
14421 #include "confdefs.h"
14422 #include <math.h>
14423 #ifdef HAVE_IEEEFP_H
14424 #include <ieeefp.h>
14425 #endif
14427 int main() {
14428 isinff(0);
14429 ; return 0; }
14431 if { (eval echo configure:14432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14432 rm -rf conftest*
14433 glibcpp_cv_func_isinff_use=yes
14434 else
14435 echo "configure: failed program was:" >&5
14436 cat conftest.$ac_ext >&5
14437 rm -rf conftest*
14438 glibcpp_cv_func_isinff_use=no
14440 rm -f conftest*
14441 ac_ext=c
14442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14443 ac_cpp='$CPP $CPPFLAGS'
14444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14446 cross_compiling=$ac_cv_prog_cc_cross
14452 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14454 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14455 for ac_func in isinff
14457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14458 echo "configure:14459: checking for $ac_func" >&5
14459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14460 echo $ac_n "(cached) $ac_c" 1>&6
14461 else
14462 cat > conftest.$ac_ext <<EOF
14463 #line 14464 "configure"
14464 #include "confdefs.h"
14465 /* System header to define __stub macros and hopefully few prototypes,
14466 which can conflict with char $ac_func(); below. */
14467 #include <assert.h>
14468 /* Override any gcc2 internal prototype to avoid an error. */
14469 /* We use char because int might match the return type of a gcc2
14470 builtin and then its argument prototype would still apply. */
14471 char $ac_func();
14473 int main() {
14475 /* The GNU C library defines this for functions which it implements
14476 to always fail with ENOSYS. Some functions are actually named
14477 something starting with __ and the normal name is an alias. */
14478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14479 choke me
14480 #else
14481 $ac_func();
14482 #endif
14484 ; return 0; }
14486 if { (eval echo configure:14487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14487 rm -rf conftest*
14488 eval "ac_cv_func_$ac_func=yes"
14489 else
14490 echo "configure: failed program was:" >&5
14491 cat conftest.$ac_ext >&5
14492 rm -rf conftest*
14493 eval "ac_cv_func_$ac_func=no"
14495 rm -f conftest*
14498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14499 echo "$ac_t""yes" 1>&6
14500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14501 cat >> confdefs.h <<EOF
14502 #define $ac_tr_func 1
14505 else
14506 echo "$ac_t""no" 1>&6
14508 done
14510 else
14512 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14513 echo "configure:14514: checking for _isinff declaration" >&5
14514 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14515 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14517 else
14520 ac_ext=C
14521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14522 ac_cpp='$CXXCPP $CPPFLAGS'
14523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14525 cross_compiling=$ac_cv_prog_cxx_cross
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 #include <math.h>
14531 #ifdef HAVE_IEEEFP_H
14532 #include <ieeefp.h>
14533 #endif
14535 int main() {
14536 _isinff(0);
14537 ; return 0; }
14539 if { (eval echo configure:14540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14540 rm -rf conftest*
14541 glibcpp_cv_func__isinff_use=yes
14542 else
14543 echo "configure: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14545 rm -rf conftest*
14546 glibcpp_cv_func__isinff_use=no
14548 rm -f conftest*
14549 ac_ext=c
14550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14551 ac_cpp='$CPP $CPPFLAGS'
14552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14554 cross_compiling=$ac_cv_prog_cc_cross
14560 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14562 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14563 for ac_func in _isinff
14565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14566 echo "configure:14567: checking for $ac_func" >&5
14567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14568 echo $ac_n "(cached) $ac_c" 1>&6
14569 else
14570 cat > conftest.$ac_ext <<EOF
14571 #line 14572 "configure"
14572 #include "confdefs.h"
14573 /* System header to define __stub macros and hopefully few prototypes,
14574 which can conflict with char $ac_func(); below. */
14575 #include <assert.h>
14576 /* Override any gcc2 internal prototype to avoid an error. */
14577 /* We use char because int might match the return type of a gcc2
14578 builtin and then its argument prototype would still apply. */
14579 char $ac_func();
14581 int main() {
14583 /* The GNU C library defines this for functions which it implements
14584 to always fail with ENOSYS. Some functions are actually named
14585 something starting with __ and the normal name is an alias. */
14586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14587 choke me
14588 #else
14589 $ac_func();
14590 #endif
14592 ; return 0; }
14594 if { (eval echo configure:14595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14595 rm -rf conftest*
14596 eval "ac_cv_func_$ac_func=yes"
14597 else
14598 echo "configure: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 rm -rf conftest*
14601 eval "ac_cv_func_$ac_func=no"
14603 rm -f conftest*
14606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14607 echo "$ac_t""yes" 1>&6
14608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14609 cat >> confdefs.h <<EOF
14610 #define $ac_tr_func 1
14613 else
14614 echo "$ac_t""no" 1>&6
14616 done
14623 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14624 echo "configure:14625: checking for atan2f declaration" >&5
14625 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14626 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14627 echo $ac_n "(cached) $ac_c" 1>&6
14628 else
14631 ac_ext=C
14632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14633 ac_cpp='$CXXCPP $CPPFLAGS'
14634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14636 cross_compiling=$ac_cv_prog_cxx_cross
14638 cat > conftest.$ac_ext <<EOF
14639 #line 14640 "configure"
14640 #include "confdefs.h"
14641 #include <math.h>
14642 int main() {
14643 atan2f(0, 0);
14644 ; return 0; }
14646 if { (eval echo configure:14647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14647 rm -rf conftest*
14648 glibcpp_cv_func_atan2f_use=yes
14649 else
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14652 rm -rf conftest*
14653 glibcpp_cv_func_atan2f_use=no
14655 rm -f conftest*
14656 ac_ext=c
14657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14658 ac_cpp='$CPP $CPPFLAGS'
14659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14661 cross_compiling=$ac_cv_prog_cc_cross
14667 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14669 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14670 for ac_func in atan2f
14672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14673 echo "configure:14674: checking for $ac_func" >&5
14674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14676 else
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 /* System header to define __stub macros and hopefully few prototypes,
14681 which can conflict with char $ac_func(); below. */
14682 #include <assert.h>
14683 /* Override any gcc2 internal prototype to avoid an error. */
14684 /* We use char because int might match the return type of a gcc2
14685 builtin and then its argument prototype would still apply. */
14686 char $ac_func();
14688 int main() {
14690 /* The GNU C library defines this for functions which it implements
14691 to always fail with ENOSYS. Some functions are actually named
14692 something starting with __ and the normal name is an alias. */
14693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14694 choke me
14695 #else
14696 $ac_func();
14697 #endif
14699 ; return 0; }
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 rm -rf conftest*
14703 eval "ac_cv_func_$ac_func=yes"
14704 else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 eval "ac_cv_func_$ac_func=no"
14710 rm -f conftest*
14713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14716 cat >> confdefs.h <<EOF
14717 #define $ac_tr_func 1
14720 else
14721 echo "$ac_t""no" 1>&6
14723 done
14725 else
14727 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14728 echo "configure:14729: checking for _atan2f declaration" >&5
14729 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14730 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732 else
14735 ac_ext=C
14736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14737 ac_cpp='$CXXCPP $CPPFLAGS'
14738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14740 cross_compiling=$ac_cv_prog_cxx_cross
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14745 #include <math.h>
14746 int main() {
14747 _atan2f(0, 0);
14748 ; return 0; }
14750 if { (eval echo configure:14751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14751 rm -rf conftest*
14752 glibcpp_cv_func__atan2f_use=yes
14753 else
14754 echo "configure: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 rm -rf conftest*
14757 glibcpp_cv_func__atan2f_use=no
14759 rm -f conftest*
14760 ac_ext=c
14761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14762 ac_cpp='$CPP $CPPFLAGS'
14763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14765 cross_compiling=$ac_cv_prog_cc_cross
14771 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14773 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14774 for ac_func in _atan2f
14776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14777 echo "configure:14778: checking for $ac_func" >&5
14778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14779 echo $ac_n "(cached) $ac_c" 1>&6
14780 else
14781 cat > conftest.$ac_ext <<EOF
14782 #line 14783 "configure"
14783 #include "confdefs.h"
14784 /* System header to define __stub macros and hopefully few prototypes,
14785 which can conflict with char $ac_func(); below. */
14786 #include <assert.h>
14787 /* Override any gcc2 internal prototype to avoid an error. */
14788 /* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14790 char $ac_func();
14792 int main() {
14794 /* The GNU C library defines this for functions which it implements
14795 to always fail with ENOSYS. Some functions are actually named
14796 something starting with __ and the normal name is an alias. */
14797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14798 choke me
14799 #else
14800 $ac_func();
14801 #endif
14803 ; return 0; }
14805 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14806 rm -rf conftest*
14807 eval "ac_cv_func_$ac_func=yes"
14808 else
14809 echo "configure: failed program was:" >&5
14810 cat conftest.$ac_ext >&5
14811 rm -rf conftest*
14812 eval "ac_cv_func_$ac_func=no"
14814 rm -f conftest*
14817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14818 echo "$ac_t""yes" 1>&6
14819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14820 cat >> confdefs.h <<EOF
14821 #define $ac_tr_func 1
14824 else
14825 echo "$ac_t""no" 1>&6
14827 done
14834 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14835 echo "configure:14836: checking for fabsf declaration" >&5
14836 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14837 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14839 else
14842 ac_ext=C
14843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14844 ac_cpp='$CXXCPP $CPPFLAGS'
14845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14847 cross_compiling=$ac_cv_prog_cxx_cross
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 #include <math.h>
14853 #ifdef HAVE_IEEEFP_H
14854 #include <ieeefp.h>
14855 #endif
14857 int main() {
14858 fabsf(0);
14859 ; return 0; }
14861 if { (eval echo configure:14862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14862 rm -rf conftest*
14863 glibcpp_cv_func_fabsf_use=yes
14864 else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 glibcpp_cv_func_fabsf_use=no
14870 rm -f conftest*
14871 ac_ext=c
14872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14873 ac_cpp='$CPP $CPPFLAGS'
14874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14876 cross_compiling=$ac_cv_prog_cc_cross
14882 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14884 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14885 for ac_func in fabsf
14887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14888 echo "configure:14889: checking for $ac_func" >&5
14889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
14891 else
14892 cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* System header to define __stub macros and hopefully few prototypes,
14896 which can conflict with char $ac_func(); below. */
14897 #include <assert.h>
14898 /* Override any gcc2 internal prototype to avoid an error. */
14899 /* We use char because int might match the return type of a gcc2
14900 builtin and then its argument prototype would still apply. */
14901 char $ac_func();
14903 int main() {
14905 /* The GNU C library defines this for functions which it implements
14906 to always fail with ENOSYS. Some functions are actually named
14907 something starting with __ and the normal name is an alias. */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 choke me
14910 #else
14911 $ac_func();
14912 #endif
14914 ; return 0; }
14916 if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917 rm -rf conftest*
14918 eval "ac_cv_func_$ac_func=yes"
14919 else
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 rm -rf conftest*
14923 eval "ac_cv_func_$ac_func=no"
14925 rm -f conftest*
14928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14929 echo "$ac_t""yes" 1>&6
14930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14931 cat >> confdefs.h <<EOF
14932 #define $ac_tr_func 1
14935 else
14936 echo "$ac_t""no" 1>&6
14938 done
14940 else
14942 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14943 echo "configure:14944: checking for _fabsf declaration" >&5
14944 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14945 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14946 echo $ac_n "(cached) $ac_c" 1>&6
14947 else
14950 ac_ext=C
14951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14952 ac_cpp='$CXXCPP $CPPFLAGS'
14953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14955 cross_compiling=$ac_cv_prog_cxx_cross
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 #include <math.h>
14961 #ifdef HAVE_IEEEFP_H
14962 #include <ieeefp.h>
14963 #endif
14965 int main() {
14966 _fabsf(0);
14967 ; return 0; }
14969 if { (eval echo configure:14970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14970 rm -rf conftest*
14971 glibcpp_cv_func__fabsf_use=yes
14972 else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
14976 glibcpp_cv_func__fabsf_use=no
14978 rm -f conftest*
14979 ac_ext=c
14980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14981 ac_cpp='$CPP $CPPFLAGS'
14982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14984 cross_compiling=$ac_cv_prog_cc_cross
14990 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14992 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14993 for ac_func in _fabsf
14995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14996 echo "configure:14997: checking for $ac_func" >&5
14997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14998 echo $ac_n "(cached) $ac_c" 1>&6
14999 else
15000 cat > conftest.$ac_ext <<EOF
15001 #line 15002 "configure"
15002 #include "confdefs.h"
15003 /* System header to define __stub macros and hopefully few prototypes,
15004 which can conflict with char $ac_func(); below. */
15005 #include <assert.h>
15006 /* Override any gcc2 internal prototype to avoid an error. */
15007 /* We use char because int might match the return type of a gcc2
15008 builtin and then its argument prototype would still apply. */
15009 char $ac_func();
15011 int main() {
15013 /* The GNU C library defines this for functions which it implements
15014 to always fail with ENOSYS. Some functions are actually named
15015 something starting with __ and the normal name is an alias. */
15016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15017 choke me
15018 #else
15019 $ac_func();
15020 #endif
15022 ; return 0; }
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15025 rm -rf conftest*
15026 eval "ac_cv_func_$ac_func=yes"
15027 else
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15030 rm -rf conftest*
15031 eval "ac_cv_func_$ac_func=no"
15033 rm -f conftest*
15036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15037 echo "$ac_t""yes" 1>&6
15038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15039 cat >> confdefs.h <<EOF
15040 #define $ac_tr_func 1
15043 else
15044 echo "$ac_t""no" 1>&6
15046 done
15053 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15054 echo "configure:15055: checking for fmodf declaration" >&5
15055 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15056 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
15058 else
15061 ac_ext=C
15062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15063 ac_cpp='$CXXCPP $CPPFLAGS'
15064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15066 cross_compiling=$ac_cv_prog_cxx_cross
15068 cat > conftest.$ac_ext <<EOF
15069 #line 15070 "configure"
15070 #include "confdefs.h"
15071 #include <math.h>
15072 int main() {
15073 fmodf(0, 0);
15074 ; return 0; }
15076 if { (eval echo configure:15077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15077 rm -rf conftest*
15078 glibcpp_cv_func_fmodf_use=yes
15079 else
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 rm -rf conftest*
15083 glibcpp_cv_func_fmodf_use=no
15085 rm -f conftest*
15086 ac_ext=c
15087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15088 ac_cpp='$CPP $CPPFLAGS'
15089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15091 cross_compiling=$ac_cv_prog_cc_cross
15097 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15099 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15100 for ac_func in fmodf
15102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15103 echo "configure:15104: checking for $ac_func" >&5
15104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15105 echo $ac_n "(cached) $ac_c" 1>&6
15106 else
15107 cat > conftest.$ac_ext <<EOF
15108 #line 15109 "configure"
15109 #include "confdefs.h"
15110 /* System header to define __stub macros and hopefully few prototypes,
15111 which can conflict with char $ac_func(); below. */
15112 #include <assert.h>
15113 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15116 char $ac_func();
15118 int main() {
15120 /* The GNU C library defines this for functions which it implements
15121 to always fail with ENOSYS. Some functions are actually named
15122 something starting with __ and the normal name is an alias. */
15123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15124 choke me
15125 #else
15126 $ac_func();
15127 #endif
15129 ; return 0; }
15131 if { (eval echo configure:15132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15132 rm -rf conftest*
15133 eval "ac_cv_func_$ac_func=yes"
15134 else
15135 echo "configure: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 rm -rf conftest*
15138 eval "ac_cv_func_$ac_func=no"
15140 rm -f conftest*
15143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15144 echo "$ac_t""yes" 1>&6
15145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15146 cat >> confdefs.h <<EOF
15147 #define $ac_tr_func 1
15150 else
15151 echo "$ac_t""no" 1>&6
15153 done
15155 else
15157 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15158 echo "configure:15159: checking for _fmodf declaration" >&5
15159 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15160 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15161 echo $ac_n "(cached) $ac_c" 1>&6
15162 else
15165 ac_ext=C
15166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15167 ac_cpp='$CXXCPP $CPPFLAGS'
15168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15170 cross_compiling=$ac_cv_prog_cxx_cross
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 #include <math.h>
15176 int main() {
15177 _fmodf(0, 0);
15178 ; return 0; }
15180 if { (eval echo configure:15181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15181 rm -rf conftest*
15182 glibcpp_cv_func__fmodf_use=yes
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 glibcpp_cv_func__fmodf_use=no
15189 rm -f conftest*
15190 ac_ext=c
15191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15192 ac_cpp='$CPP $CPPFLAGS'
15193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15195 cross_compiling=$ac_cv_prog_cc_cross
15201 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15203 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15204 for ac_func in _fmodf
15206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15207 echo "configure:15208: checking for $ac_func" >&5
15208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15209 echo $ac_n "(cached) $ac_c" 1>&6
15210 else
15211 cat > conftest.$ac_ext <<EOF
15212 #line 15213 "configure"
15213 #include "confdefs.h"
15214 /* System header to define __stub macros and hopefully few prototypes,
15215 which can conflict with char $ac_func(); below. */
15216 #include <assert.h>
15217 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char $ac_func();
15222 int main() {
15224 /* The GNU C library defines this for functions which it implements
15225 to always fail with ENOSYS. Some functions are actually named
15226 something starting with __ and the normal name is an alias. */
15227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15228 choke me
15229 #else
15230 $ac_func();
15231 #endif
15233 ; return 0; }
15235 if { (eval echo configure:15236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15236 rm -rf conftest*
15237 eval "ac_cv_func_$ac_func=yes"
15238 else
15239 echo "configure: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15241 rm -rf conftest*
15242 eval "ac_cv_func_$ac_func=no"
15244 rm -f conftest*
15247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15248 echo "$ac_t""yes" 1>&6
15249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15250 cat >> confdefs.h <<EOF
15251 #define $ac_tr_func 1
15254 else
15255 echo "$ac_t""no" 1>&6
15257 done
15264 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15265 echo "configure:15266: checking for frexpf declaration" >&5
15266 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15267 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15268 echo $ac_n "(cached) $ac_c" 1>&6
15269 else
15272 ac_ext=C
15273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15274 ac_cpp='$CXXCPP $CPPFLAGS'
15275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15277 cross_compiling=$ac_cv_prog_cxx_cross
15279 cat > conftest.$ac_ext <<EOF
15280 #line 15281 "configure"
15281 #include "confdefs.h"
15282 #include <math.h>
15283 int main() {
15284 frexpf(0, 0);
15285 ; return 0; }
15287 if { (eval echo configure:15288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15288 rm -rf conftest*
15289 glibcpp_cv_func_frexpf_use=yes
15290 else
15291 echo "configure: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15293 rm -rf conftest*
15294 glibcpp_cv_func_frexpf_use=no
15296 rm -f conftest*
15297 ac_ext=c
15298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15302 cross_compiling=$ac_cv_prog_cc_cross
15308 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15310 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15311 for ac_func in frexpf
15313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15314 echo "configure:15315: checking for $ac_func" >&5
15315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15316 echo $ac_n "(cached) $ac_c" 1>&6
15317 else
15318 cat > conftest.$ac_ext <<EOF
15319 #line 15320 "configure"
15320 #include "confdefs.h"
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func(); below. */
15323 #include <assert.h>
15324 /* Override any gcc2 internal prototype to avoid an error. */
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15327 char $ac_func();
15329 int main() {
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15335 choke me
15336 #else
15337 $ac_func();
15338 #endif
15340 ; return 0; }
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 rm -rf conftest*
15344 eval "ac_cv_func_$ac_func=yes"
15345 else
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 rm -rf conftest*
15349 eval "ac_cv_func_$ac_func=no"
15351 rm -f conftest*
15354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15355 echo "$ac_t""yes" 1>&6
15356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15357 cat >> confdefs.h <<EOF
15358 #define $ac_tr_func 1
15361 else
15362 echo "$ac_t""no" 1>&6
15364 done
15366 else
15368 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15369 echo "configure:15370: checking for _frexpf declaration" >&5
15370 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15371 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15372 echo $ac_n "(cached) $ac_c" 1>&6
15373 else
15376 ac_ext=C
15377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15378 ac_cpp='$CXXCPP $CPPFLAGS'
15379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15381 cross_compiling=$ac_cv_prog_cxx_cross
15383 cat > conftest.$ac_ext <<EOF
15384 #line 15385 "configure"
15385 #include "confdefs.h"
15386 #include <math.h>
15387 int main() {
15388 _frexpf(0, 0);
15389 ; return 0; }
15391 if { (eval echo configure:15392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15392 rm -rf conftest*
15393 glibcpp_cv_func__frexpf_use=yes
15394 else
15395 echo "configure: failed program was:" >&5
15396 cat conftest.$ac_ext >&5
15397 rm -rf conftest*
15398 glibcpp_cv_func__frexpf_use=no
15400 rm -f conftest*
15401 ac_ext=c
15402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15403 ac_cpp='$CPP $CPPFLAGS'
15404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15406 cross_compiling=$ac_cv_prog_cc_cross
15412 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15414 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15415 for ac_func in _frexpf
15417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15418 echo "configure:15419: checking for $ac_func" >&5
15419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15421 else
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char $ac_func(); below. */
15427 #include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15431 char $ac_func();
15433 int main() {
15435 /* The GNU C library defines this for functions which it implements
15436 to always fail with ENOSYS. Some functions are actually named
15437 something starting with __ and the normal name is an alias. */
15438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15439 choke me
15440 #else
15441 $ac_func();
15442 #endif
15444 ; return 0; }
15446 if { (eval echo configure:15447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15447 rm -rf conftest*
15448 eval "ac_cv_func_$ac_func=yes"
15449 else
15450 echo "configure: failed program was:" >&5
15451 cat conftest.$ac_ext >&5
15452 rm -rf conftest*
15453 eval "ac_cv_func_$ac_func=no"
15455 rm -f conftest*
15458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15459 echo "$ac_t""yes" 1>&6
15460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15461 cat >> confdefs.h <<EOF
15462 #define $ac_tr_func 1
15465 else
15466 echo "$ac_t""no" 1>&6
15468 done
15475 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15476 echo "configure:15477: checking for hypotf declaration" >&5
15477 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15478 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15479 echo $ac_n "(cached) $ac_c" 1>&6
15480 else
15483 ac_ext=C
15484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15485 ac_cpp='$CXXCPP $CPPFLAGS'
15486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15488 cross_compiling=$ac_cv_prog_cxx_cross
15490 cat > conftest.$ac_ext <<EOF
15491 #line 15492 "configure"
15492 #include "confdefs.h"
15493 #include <math.h>
15494 int main() {
15495 hypotf(0, 0);
15496 ; return 0; }
15498 if { (eval echo configure:15499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15499 rm -rf conftest*
15500 glibcpp_cv_func_hypotf_use=yes
15501 else
15502 echo "configure: failed program was:" >&5
15503 cat conftest.$ac_ext >&5
15504 rm -rf conftest*
15505 glibcpp_cv_func_hypotf_use=no
15507 rm -f conftest*
15508 ac_ext=c
15509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15510 ac_cpp='$CPP $CPPFLAGS'
15511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15513 cross_compiling=$ac_cv_prog_cc_cross
15519 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15521 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15522 for ac_func in hypotf
15524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15525 echo "configure:15526: checking for $ac_func" >&5
15526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15527 echo $ac_n "(cached) $ac_c" 1>&6
15528 else
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532 /* System header to define __stub macros and hopefully few prototypes,
15533 which can conflict with char $ac_func(); below. */
15534 #include <assert.h>
15535 /* Override any gcc2 internal prototype to avoid an error. */
15536 /* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538 char $ac_func();
15540 int main() {
15542 /* The GNU C library defines this for functions which it implements
15543 to always fail with ENOSYS. Some functions are actually named
15544 something starting with __ and the normal name is an alias. */
15545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15546 choke me
15547 #else
15548 $ac_func();
15549 #endif
15551 ; return 0; }
15553 if { (eval echo configure:15554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15554 rm -rf conftest*
15555 eval "ac_cv_func_$ac_func=yes"
15556 else
15557 echo "configure: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15559 rm -rf conftest*
15560 eval "ac_cv_func_$ac_func=no"
15562 rm -f conftest*
15565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15566 echo "$ac_t""yes" 1>&6
15567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15568 cat >> confdefs.h <<EOF
15569 #define $ac_tr_func 1
15572 else
15573 echo "$ac_t""no" 1>&6
15575 done
15577 else
15579 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15580 echo "configure:15581: checking for _hypotf declaration" >&5
15581 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15582 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15583 echo $ac_n "(cached) $ac_c" 1>&6
15584 else
15587 ac_ext=C
15588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15589 ac_cpp='$CXXCPP $CPPFLAGS'
15590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15592 cross_compiling=$ac_cv_prog_cxx_cross
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <math.h>
15598 int main() {
15599 _hypotf(0, 0);
15600 ; return 0; }
15602 if { (eval echo configure:15603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15603 rm -rf conftest*
15604 glibcpp_cv_func__hypotf_use=yes
15605 else
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15608 rm -rf conftest*
15609 glibcpp_cv_func__hypotf_use=no
15611 rm -f conftest*
15612 ac_ext=c
15613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15614 ac_cpp='$CPP $CPPFLAGS'
15615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15617 cross_compiling=$ac_cv_prog_cc_cross
15623 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15625 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15626 for ac_func in _hypotf
15628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15629 echo "configure:15630: checking for $ac_func" >&5
15630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15631 echo $ac_n "(cached) $ac_c" 1>&6
15632 else
15633 cat > conftest.$ac_ext <<EOF
15634 #line 15635 "configure"
15635 #include "confdefs.h"
15636 /* System header to define __stub macros and hopefully few prototypes,
15637 which can conflict with char $ac_func(); below. */
15638 #include <assert.h>
15639 /* Override any gcc2 internal prototype to avoid an error. */
15640 /* We use char because int might match the return type of a gcc2
15641 builtin and then its argument prototype would still apply. */
15642 char $ac_func();
15644 int main() {
15646 /* The GNU C library defines this for functions which it implements
15647 to always fail with ENOSYS. Some functions are actually named
15648 something starting with __ and the normal name is an alias. */
15649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15650 choke me
15651 #else
15652 $ac_func();
15653 #endif
15655 ; return 0; }
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658 rm -rf conftest*
15659 eval "ac_cv_func_$ac_func=yes"
15660 else
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 rm -rf conftest*
15664 eval "ac_cv_func_$ac_func=no"
15666 rm -f conftest*
15669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15670 echo "$ac_t""yes" 1>&6
15671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15672 cat >> confdefs.h <<EOF
15673 #define $ac_tr_func 1
15676 else
15677 echo "$ac_t""no" 1>&6
15679 done
15686 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15687 echo "configure:15688: checking for ldexpf declaration" >&5
15688 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15689 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691 else
15694 ac_ext=C
15695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15696 ac_cpp='$CXXCPP $CPPFLAGS'
15697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15699 cross_compiling=$ac_cv_prog_cxx_cross
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 #include <math.h>
15705 int main() {
15706 ldexpf(0, 0);
15707 ; return 0; }
15709 if { (eval echo configure:15710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15710 rm -rf conftest*
15711 glibcpp_cv_func_ldexpf_use=yes
15712 else
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 rm -rf conftest*
15716 glibcpp_cv_func_ldexpf_use=no
15718 rm -f conftest*
15719 ac_ext=c
15720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15721 ac_cpp='$CPP $CPPFLAGS'
15722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15724 cross_compiling=$ac_cv_prog_cc_cross
15730 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15732 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15733 for ac_func in ldexpf
15735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15736 echo "configure:15737: checking for $ac_func" >&5
15737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15738 echo $ac_n "(cached) $ac_c" 1>&6
15739 else
15740 cat > conftest.$ac_ext <<EOF
15741 #line 15742 "configure"
15742 #include "confdefs.h"
15743 /* System header to define __stub macros and hopefully few prototypes,
15744 which can conflict with char $ac_func(); below. */
15745 #include <assert.h>
15746 /* Override any gcc2 internal prototype to avoid an error. */
15747 /* We use char because int might match the return type of a gcc2
15748 builtin and then its argument prototype would still apply. */
15749 char $ac_func();
15751 int main() {
15753 /* The GNU C library defines this for functions which it implements
15754 to always fail with ENOSYS. Some functions are actually named
15755 something starting with __ and the normal name is an alias. */
15756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15757 choke me
15758 #else
15759 $ac_func();
15760 #endif
15762 ; return 0; }
15764 if { (eval echo configure:15765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15765 rm -rf conftest*
15766 eval "ac_cv_func_$ac_func=yes"
15767 else
15768 echo "configure: failed program was:" >&5
15769 cat conftest.$ac_ext >&5
15770 rm -rf conftest*
15771 eval "ac_cv_func_$ac_func=no"
15773 rm -f conftest*
15776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15777 echo "$ac_t""yes" 1>&6
15778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15779 cat >> confdefs.h <<EOF
15780 #define $ac_tr_func 1
15783 else
15784 echo "$ac_t""no" 1>&6
15786 done
15788 else
15790 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15791 echo "configure:15792: checking for _ldexpf declaration" >&5
15792 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15793 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15794 echo $ac_n "(cached) $ac_c" 1>&6
15795 else
15798 ac_ext=C
15799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15800 ac_cpp='$CXXCPP $CPPFLAGS'
15801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15803 cross_compiling=$ac_cv_prog_cxx_cross
15805 cat > conftest.$ac_ext <<EOF
15806 #line 15807 "configure"
15807 #include "confdefs.h"
15808 #include <math.h>
15809 int main() {
15810 _ldexpf(0, 0);
15811 ; return 0; }
15813 if { (eval echo configure:15814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15814 rm -rf conftest*
15815 glibcpp_cv_func__ldexpf_use=yes
15816 else
15817 echo "configure: failed program was:" >&5
15818 cat conftest.$ac_ext >&5
15819 rm -rf conftest*
15820 glibcpp_cv_func__ldexpf_use=no
15822 rm -f conftest*
15823 ac_ext=c
15824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15825 ac_cpp='$CPP $CPPFLAGS'
15826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15828 cross_compiling=$ac_cv_prog_cc_cross
15834 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15836 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15837 for ac_func in _ldexpf
15839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15840 echo "configure:15841: checking for $ac_func" >&5
15841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15842 echo $ac_n "(cached) $ac_c" 1>&6
15843 else
15844 cat > conftest.$ac_ext <<EOF
15845 #line 15846 "configure"
15846 #include "confdefs.h"
15847 /* System header to define __stub macros and hopefully few prototypes,
15848 which can conflict with char $ac_func(); below. */
15849 #include <assert.h>
15850 /* Override any gcc2 internal prototype to avoid an error. */
15851 /* We use char because int might match the return type of a gcc2
15852 builtin and then its argument prototype would still apply. */
15853 char $ac_func();
15855 int main() {
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15861 choke me
15862 #else
15863 $ac_func();
15864 #endif
15866 ; return 0; }
15868 if { (eval echo configure:15869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15869 rm -rf conftest*
15870 eval "ac_cv_func_$ac_func=yes"
15871 else
15872 echo "configure: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15874 rm -rf conftest*
15875 eval "ac_cv_func_$ac_func=no"
15877 rm -f conftest*
15880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15883 cat >> confdefs.h <<EOF
15884 #define $ac_tr_func 1
15887 else
15888 echo "$ac_t""no" 1>&6
15890 done
15897 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15898 echo "configure:15899: checking for logf declaration" >&5
15899 if test x${glibcpp_cv_func_logf_use+set} != xset; then
15900 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15901 echo $ac_n "(cached) $ac_c" 1>&6
15902 else
15905 ac_ext=C
15906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15907 ac_cpp='$CXXCPP $CPPFLAGS'
15908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15910 cross_compiling=$ac_cv_prog_cxx_cross
15912 cat > conftest.$ac_ext <<EOF
15913 #line 15914 "configure"
15914 #include "confdefs.h"
15915 #include <math.h>
15916 #ifdef HAVE_IEEEFP_H
15917 #include <ieeefp.h>
15918 #endif
15920 int main() {
15921 logf(0);
15922 ; return 0; }
15924 if { (eval echo configure:15925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15925 rm -rf conftest*
15926 glibcpp_cv_func_logf_use=yes
15927 else
15928 echo "configure: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15930 rm -rf conftest*
15931 glibcpp_cv_func_logf_use=no
15933 rm -f conftest*
15934 ac_ext=c
15935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15936 ac_cpp='$CPP $CPPFLAGS'
15937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15939 cross_compiling=$ac_cv_prog_cc_cross
15945 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15947 if test x$glibcpp_cv_func_logf_use = x"yes"; then
15948 for ac_func in logf
15950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15951 echo "configure:15952: checking for $ac_func" >&5
15952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15953 echo $ac_n "(cached) $ac_c" 1>&6
15954 else
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15957 "configure"
15957 #include "confdefs.h"
15958 /* System header to define __stub macros and hopefully few prototypes,
15959 which can conflict with char $ac_func(); below. */
15960 #include <assert.h>
15961 /* Override any gcc2 internal prototype to avoid an error. */
15962 /* We use char because int might match the return type of a gcc2
15963 builtin and then its argument prototype would still apply. */
15964 char $ac_func();
15966 int main() {
15968 /* The GNU C library defines this for functions which it implements
15969 to always fail with ENOSYS. Some functions are actually named
15970 something starting with __ and the normal name is an alias. */
15971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15972 choke me
15973 #else
15974 $ac_func();
15975 #endif
15977 ; return 0; }
15979 if { (eval echo configure:15980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15980 rm -rf conftest*
15981 eval "ac_cv_func_$ac_func=yes"
15982 else
15983 echo "configure: failed program was:" >&5
15984 cat conftest.$ac_ext >&5
15985 rm -rf conftest*
15986 eval "ac_cv_func_$ac_func=no"
15988 rm -f conftest*
15991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15992 echo "$ac_t""yes" 1>&6
15993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15994 cat >> confdefs.h <<EOF
15995 #define $ac_tr_func 1
15998 else
15999 echo "$ac_t""no" 1>&6
16001 done
16003 else
16005 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
16006 echo "configure:16007: checking for _logf declaration" >&5
16007 if test x${glibcpp_cv_func__logf_use+set} != xset; then
16008 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
16009 echo $ac_n "(cached) $ac_c" 1>&6
16010 else
16013 ac_ext=C
16014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16015 ac_cpp='$CXXCPP $CPPFLAGS'
16016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16018 cross_compiling=$ac_cv_prog_cxx_cross
16020 cat > conftest.$ac_ext <<EOF
16021 #line 16022 "configure"
16022 #include "confdefs.h"
16023 #include <math.h>
16024 #ifdef HAVE_IEEEFP_H
16025 #include <ieeefp.h>
16026 #endif
16028 int main() {
16029 _logf(0);
16030 ; return 0; }
16032 if { (eval echo configure:16033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16033 rm -rf conftest*
16034 glibcpp_cv_func__logf_use=yes
16035 else
16036 echo "configure: failed program was:" >&5
16037 cat conftest.$ac_ext >&5
16038 rm -rf conftest*
16039 glibcpp_cv_func__logf_use=no
16041 rm -f conftest*
16042 ac_ext=c
16043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16044 ac_cpp='$CPP $CPPFLAGS'
16045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16047 cross_compiling=$ac_cv_prog_cc_cross
16053 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16055 if test x$glibcpp_cv_func__logf_use = x"yes"; then
16056 for ac_func in _logf
16058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16059 echo "configure:16060: checking for $ac_func" >&5
16060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
16062 else
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 /* System header to define __stub macros and hopefully few prototypes,
16067 which can conflict with char $ac_func(); below. */
16068 #include <assert.h>
16069 /* Override any gcc2 internal prototype to avoid an error. */
16070 /* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16072 char $ac_func();
16074 int main() {
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080 choke me
16081 #else
16082 $ac_func();
16083 #endif
16085 ; return 0; }
16087 if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16088 rm -rf conftest*
16089 eval "ac_cv_func_$ac_func=yes"
16090 else
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094 eval "ac_cv_func_$ac_func=no"
16096 rm -f conftest*
16099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16102 cat >> confdefs.h <<EOF
16103 #define $ac_tr_func 1
16106 else
16107 echo "$ac_t""no" 1>&6
16109 done
16116 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16117 echo "configure:16118: checking for log10f declaration" >&5
16118 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16119 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16120 echo $ac_n "(cached) $ac_c" 1>&6
16121 else
16124 ac_ext=C
16125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16126 ac_cpp='$CXXCPP $CPPFLAGS'
16127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16129 cross_compiling=$ac_cv_prog_cxx_cross
16131 cat > conftest.$ac_ext <<EOF
16132 #line 16133 "configure"
16133 #include "confdefs.h"
16134 #include <math.h>
16135 #ifdef HAVE_IEEEFP_H
16136 #include <ieeefp.h>
16137 #endif
16139 int main() {
16140 log10f(0);
16141 ; return 0; }
16143 if { (eval echo configure:16144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16144 rm -rf conftest*
16145 glibcpp_cv_func_log10f_use=yes
16146 else
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16149 rm -rf conftest*
16150 glibcpp_cv_func_log10f_use=no
16152 rm -f conftest*
16153 ac_ext=c
16154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16158 cross_compiling=$ac_cv_prog_cc_cross
16164 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16166 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16167 for ac_func in log10f
16169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16170 echo "configure:16171: checking for $ac_func" >&5
16171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16172 echo $ac_n "(cached) $ac_c" 1>&6
16173 else
16174 cat > conftest.$ac_ext <<EOF
16175 #line 16176 "configure"
16176 #include "confdefs.h"
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char $ac_func(); below. */
16179 #include <assert.h>
16180 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16183 char $ac_func();
16185 int main() {
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16191 choke me
16192 #else
16193 $ac_func();
16194 #endif
16196 ; return 0; }
16198 if { (eval echo configure:16199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16199 rm -rf conftest*
16200 eval "ac_cv_func_$ac_func=yes"
16201 else
16202 echo "configure: failed program was:" >&5
16203 cat conftest.$ac_ext >&5
16204 rm -rf conftest*
16205 eval "ac_cv_func_$ac_func=no"
16207 rm -f conftest*
16210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16211 echo "$ac_t""yes" 1>&6
16212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16213 cat >> confdefs.h <<EOF
16214 #define $ac_tr_func 1
16217 else
16218 echo "$ac_t""no" 1>&6
16220 done
16222 else
16224 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16225 echo "configure:16226: checking for _log10f declaration" >&5
16226 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16227 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16228 echo $ac_n "(cached) $ac_c" 1>&6
16229 else
16232 ac_ext=C
16233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16234 ac_cpp='$CXXCPP $CPPFLAGS'
16235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16237 cross_compiling=$ac_cv_prog_cxx_cross
16239 cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16242 #include <math.h>
16243 #ifdef HAVE_IEEEFP_H
16244 #include <ieeefp.h>
16245 #endif
16247 int main() {
16248 _log10f(0);
16249 ; return 0; }
16251 if { (eval echo configure:16252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16252 rm -rf conftest*
16253 glibcpp_cv_func__log10f_use=yes
16254 else
16255 echo "configure: failed program was:" >&5
16256 cat conftest.$ac_ext >&5
16257 rm -rf conftest*
16258 glibcpp_cv_func__log10f_use=no
16260 rm -f conftest*
16261 ac_ext=c
16262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16263 ac_cpp='$CPP $CPPFLAGS'
16264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16266 cross_compiling=$ac_cv_prog_cc_cross
16272 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16274 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16275 for ac_func in _log10f
16277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16278 echo "configure:16279: checking for $ac_func" >&5
16279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16280 echo $ac_n "(cached) $ac_c" 1>&6
16281 else
16282 cat > conftest.$ac_ext <<EOF
16283 #line 16284 "configure"
16284 #include "confdefs.h"
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func(); below. */
16287 #include <assert.h>
16288 /* Override any gcc2 internal prototype to avoid an error. */
16289 /* We use char because int might match the return type of a gcc2
16290 builtin and then its argument prototype would still apply. */
16291 char $ac_func();
16293 int main() {
16295 /* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16299 choke me
16300 #else
16301 $ac_func();
16302 #endif
16304 ; return 0; }
16306 if { (eval echo configure:16307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16307 rm -rf conftest*
16308 eval "ac_cv_func_$ac_func=yes"
16309 else
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 rm -rf conftest*
16313 eval "ac_cv_func_$ac_func=no"
16315 rm -f conftest*
16318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16321 cat >> confdefs.h <<EOF
16322 #define $ac_tr_func 1
16325 else
16326 echo "$ac_t""no" 1>&6
16328 done
16335 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16336 echo "configure:16337: checking for modff declaration" >&5
16337 if test x${glibcpp_cv_func_modff_use+set} != xset; then
16338 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16339 echo $ac_n "(cached) $ac_c" 1>&6
16340 else
16343 ac_ext=C
16344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16345 ac_cpp='$CXXCPP $CPPFLAGS'
16346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16348 cross_compiling=$ac_cv_prog_cxx_cross
16350 cat > conftest.$ac_ext <<EOF
16351 #line 16352 "configure"
16352 #include "confdefs.h"
16353 #include <math.h>
16354 int main() {
16355 modff(0, 0);
16356 ; return 0; }
16358 if { (eval echo configure:16359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16359 rm -rf conftest*
16360 glibcpp_cv_func_modff_use=yes
16361 else
16362 echo "configure: failed program was:" >&5
16363 cat conftest.$ac_ext >&5
16364 rm -rf conftest*
16365 glibcpp_cv_func_modff_use=no
16367 rm -f conftest*
16368 ac_ext=c
16369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16370 ac_cpp='$CPP $CPPFLAGS'
16371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16373 cross_compiling=$ac_cv_prog_cc_cross
16379 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16381 if test x$glibcpp_cv_func_modff_use = x"yes"; then
16382 for ac_func in modff
16384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16385 echo "configure:16386: checking for $ac_func" >&5
16386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16387 echo $ac_n "(cached) $ac_c" 1>&6
16388 else
16389 cat > conftest.$ac_ext <<EOF
16390 #line 16391 "configure"
16391 #include "confdefs.h"
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func(); below. */
16394 #include <assert.h>
16395 /* Override any gcc2 internal prototype to avoid an error. */
16396 /* We use char because int might match the return type of a gcc2
16397 builtin and then its argument prototype would still apply. */
16398 char $ac_func();
16400 int main() {
16402 /* The GNU C library defines this for functions which it implements
16403 to always fail with ENOSYS. Some functions are actually named
16404 something starting with __ and the normal name is an alias. */
16405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16406 choke me
16407 #else
16408 $ac_func();
16409 #endif
16411 ; return 0; }
16413 if { (eval echo configure:16414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16414 rm -rf conftest*
16415 eval "ac_cv_func_$ac_func=yes"
16416 else
16417 echo "configure: failed program was:" >&5
16418 cat conftest.$ac_ext >&5
16419 rm -rf conftest*
16420 eval "ac_cv_func_$ac_func=no"
16422 rm -f conftest*
16425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16426 echo "$ac_t""yes" 1>&6
16427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16428 cat >> confdefs.h <<EOF
16429 #define $ac_tr_func 1
16432 else
16433 echo "$ac_t""no" 1>&6
16435 done
16437 else
16439 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16440 echo "configure:16441: checking for _modff declaration" >&5
16441 if test x${glibcpp_cv_func__modff_use+set} != xset; then
16442 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16443 echo $ac_n "(cached) $ac_c" 1>&6
16444 else
16447 ac_ext=C
16448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16449 ac_cpp='$CXXCPP $CPPFLAGS'
16450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16452 cross_compiling=$ac_cv_prog_cxx_cross
16454 cat > conftest.$ac_ext <<EOF
16455 #line 16456 "configure"
16456 #include "confdefs.h"
16457 #include <math.h>
16458 int main() {
16459 _modff(0, 0);
16460 ; return 0; }
16462 if { (eval echo configure:16463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16463 rm -rf conftest*
16464 glibcpp_cv_func__modff_use=yes
16465 else
16466 echo "configure: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16468 rm -rf conftest*
16469 glibcpp_cv_func__modff_use=no
16471 rm -f conftest*
16472 ac_ext=c
16473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16474 ac_cpp='$CPP $CPPFLAGS'
16475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16477 cross_compiling=$ac_cv_prog_cc_cross
16483 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16485 if test x$glibcpp_cv_func__modff_use = x"yes"; then
16486 for ac_func in _modff
16488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16489 echo "configure:16490: checking for $ac_func" >&5
16490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16492 else
16493 cat > conftest.$ac_ext <<EOF
16494 #line 16495 "configure"
16495 #include "confdefs.h"
16496 /* System header to define __stub macros and hopefully few prototypes,
16497 which can conflict with char $ac_func(); below. */
16498 #include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error. */
16500 /* We use char because int might match the return type of a gcc2
16501 builtin and then its argument prototype would still apply. */
16502 char $ac_func();
16504 int main() {
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16510 choke me
16511 #else
16512 $ac_func();
16513 #endif
16515 ; return 0; }
16517 if { (eval echo configure:16518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16518 rm -rf conftest*
16519 eval "ac_cv_func_$ac_func=yes"
16520 else
16521 echo "configure: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 rm -rf conftest*
16524 eval "ac_cv_func_$ac_func=no"
16526 rm -f conftest*
16529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16530 echo "$ac_t""yes" 1>&6
16531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16532 cat >> confdefs.h <<EOF
16533 #define $ac_tr_func 1
16536 else
16537 echo "$ac_t""no" 1>&6
16539 done
16546 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16547 echo "configure:16548: checking for powf declaration" >&5
16548 if test x${glibcpp_cv_func_powf_use+set} != xset; then
16549 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16550 echo $ac_n "(cached) $ac_c" 1>&6
16551 else
16554 ac_ext=C
16555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16556 ac_cpp='$CXXCPP $CPPFLAGS'
16557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16559 cross_compiling=$ac_cv_prog_cxx_cross
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16564 #include <math.h>
16565 int main() {
16566 powf(0, 0);
16567 ; return 0; }
16569 if { (eval echo configure:16570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16570 rm -rf conftest*
16571 glibcpp_cv_func_powf_use=yes
16572 else
16573 echo "configure: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16575 rm -rf conftest*
16576 glibcpp_cv_func_powf_use=no
16578 rm -f conftest*
16579 ac_ext=c
16580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16581 ac_cpp='$CPP $CPPFLAGS'
16582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16584 cross_compiling=$ac_cv_prog_cc_cross
16590 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16592 if test x$glibcpp_cv_func_powf_use = x"yes"; then
16593 for ac_func in powf
16595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16596 echo "configure:16597: checking for $ac_func" >&5
16597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16598 echo $ac_n "(cached) $ac_c" 1>&6
16599 else
16600 cat > conftest.$ac_ext <<EOF
16601 #line 16602 "configure"
16602 #include "confdefs.h"
16603 /* System header to define __stub macros and hopefully few prototypes,
16604 which can conflict with char $ac_func(); below. */
16605 #include <assert.h>
16606 /* Override any gcc2 internal prototype to avoid an error. */
16607 /* We use char because int might match the return type of a gcc2
16608 builtin and then its argument prototype would still apply. */
16609 char $ac_func();
16611 int main() {
16613 /* The GNU C library defines this for functions which it implements
16614 to always fail with ENOSYS. Some functions are actually named
16615 something starting with __ and the normal name is an alias. */
16616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16617 choke me
16618 #else
16619 $ac_func();
16620 #endif
16622 ; return 0; }
16624 if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16625 rm -rf conftest*
16626 eval "ac_cv_func_$ac_func=yes"
16627 else
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 rm -rf conftest*
16631 eval "ac_cv_func_$ac_func=no"
16633 rm -f conftest*
16636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16637 echo "$ac_t""yes" 1>&6
16638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16639 cat >> confdefs.h <<EOF
16640 #define $ac_tr_func 1
16643 else
16644 echo "$ac_t""no" 1>&6
16646 done
16648 else
16650 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16651 echo "configure:16652: checking for _powf declaration" >&5
16652 if test x${glibcpp_cv_func__powf_use+set} != xset; then
16653 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16654 echo $ac_n "(cached) $ac_c" 1>&6
16655 else
16658 ac_ext=C
16659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16660 ac_cpp='$CXXCPP $CPPFLAGS'
16661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16663 cross_compiling=$ac_cv_prog_cxx_cross
16665 cat > conftest.$ac_ext <<EOF
16666 #line 16667 "configure"
16667 #include "confdefs.h"
16668 #include <math.h>
16669 int main() {
16670 _powf(0, 0);
16671 ; return 0; }
16673 if { (eval echo configure:16674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16674 rm -rf conftest*
16675 glibcpp_cv_func__powf_use=yes
16676 else
16677 echo "configure: failed program was:" >&5
16678 cat conftest.$ac_ext >&5
16679 rm -rf conftest*
16680 glibcpp_cv_func__powf_use=no
16682 rm -f conftest*
16683 ac_ext=c
16684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16685 ac_cpp='$CPP $CPPFLAGS'
16686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16688 cross_compiling=$ac_cv_prog_cc_cross
16694 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16696 if test x$glibcpp_cv_func__powf_use = x"yes"; then
16697 for ac_func in _powf
16699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16700 echo "configure:16701: checking for $ac_func" >&5
16701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703 else
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16707 /* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char $ac_func(); below. */
16709 #include <assert.h>
16710 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16713 char $ac_func();
16715 int main() {
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721 choke me
16722 #else
16723 $ac_func();
16724 #endif
16726 ; return 0; }
16728 if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16729 rm -rf conftest*
16730 eval "ac_cv_func_$ac_func=yes"
16731 else
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=no"
16737 rm -f conftest*
16740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16741 echo "$ac_t""yes" 1>&6
16742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16743 cat >> confdefs.h <<EOF
16744 #define $ac_tr_func 1
16747 else
16748 echo "$ac_t""no" 1>&6
16750 done
16757 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16758 echo "configure:16759: checking for sqrtf declaration" >&5
16759 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16760 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16761 echo $ac_n "(cached) $ac_c" 1>&6
16762 else
16765 ac_ext=C
16766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16767 ac_cpp='$CXXCPP $CPPFLAGS'
16768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16770 cross_compiling=$ac_cv_prog_cxx_cross
16772 cat > conftest.$ac_ext <<EOF
16773 #line 16774 "configure"
16774 #include "confdefs.h"
16775 #include <math.h>
16776 #ifdef HAVE_IEEEFP_H
16777 #include <ieeefp.h>
16778 #endif
16780 int main() {
16781 sqrtf(0);
16782 ; return 0; }
16784 if { (eval echo configure:16785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16785 rm -rf conftest*
16786 glibcpp_cv_func_sqrtf_use=yes
16787 else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 glibcpp_cv_func_sqrtf_use=no
16793 rm -f conftest*
16794 ac_ext=c
16795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16796 ac_cpp='$CPP $CPPFLAGS'
16797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16799 cross_compiling=$ac_cv_prog_cc_cross
16805 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16807 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16808 for ac_func in sqrtf
16810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16811 echo "configure:16812: checking for $ac_func" >&5
16812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16813 echo $ac_n "(cached) $ac_c" 1>&6
16814 else
16815 cat > conftest.$ac_ext <<EOF
16816 #line 16817 "configure"
16817 #include "confdefs.h"
16818 /* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func(); below. */
16820 #include <assert.h>
16821 /* Override any gcc2 internal prototype to avoid an error. */
16822 /* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16824 char $ac_func();
16826 int main() {
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16832 choke me
16833 #else
16834 $ac_func();
16835 #endif
16837 ; return 0; }
16839 if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16840 rm -rf conftest*
16841 eval "ac_cv_func_$ac_func=yes"
16842 else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "ac_cv_func_$ac_func=no"
16848 rm -f conftest*
16851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16852 echo "$ac_t""yes" 1>&6
16853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16854 cat >> confdefs.h <<EOF
16855 #define $ac_tr_func 1
16858 else
16859 echo "$ac_t""no" 1>&6
16861 done
16863 else
16865 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16866 echo "configure:16867: checking for _sqrtf declaration" >&5
16867 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16868 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16869 echo $ac_n "(cached) $ac_c" 1>&6
16870 else
16873 ac_ext=C
16874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16875 ac_cpp='$CXXCPP $CPPFLAGS'
16876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16878 cross_compiling=$ac_cv_prog_cxx_cross
16880 cat > conftest.$ac_ext <<EOF
16881 #line 16882 "configure"
16882 #include "confdefs.h"
16883 #include <math.h>
16884 #ifdef HAVE_IEEEFP_H
16885 #include <ieeefp.h>
16886 #endif
16888 int main() {
16889 _sqrtf(0);
16890 ; return 0; }
16892 if { (eval echo configure:16893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16893 rm -rf conftest*
16894 glibcpp_cv_func__sqrtf_use=yes
16895 else
16896 echo "configure: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16898 rm -rf conftest*
16899 glibcpp_cv_func__sqrtf_use=no
16901 rm -f conftest*
16902 ac_ext=c
16903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16904 ac_cpp='$CPP $CPPFLAGS'
16905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16907 cross_compiling=$ac_cv_prog_cc_cross
16913 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16915 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16916 for ac_func in _sqrtf
16918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16919 echo "configure:16920: checking for $ac_func" >&5
16920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922 else
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 /* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char $ac_func(); below. */
16928 #include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16930 /* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932 char $ac_func();
16934 int main() {
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 choke me
16941 #else
16942 $ac_func();
16943 #endif
16945 ; return 0; }
16947 if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16948 rm -rf conftest*
16949 eval "ac_cv_func_$ac_func=yes"
16950 else
16951 echo "configure: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 rm -rf conftest*
16954 eval "ac_cv_func_$ac_func=no"
16956 rm -f conftest*
16959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16960 echo "$ac_t""yes" 1>&6
16961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16962 cat >> confdefs.h <<EOF
16963 #define $ac_tr_func 1
16966 else
16967 echo "$ac_t""no" 1>&6
16969 done
16976 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16977 echo "configure:16978: checking for sincosf declaration" >&5
16978 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16979 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16981 else
16984 ac_ext=C
16985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16986 ac_cpp='$CXXCPP $CPPFLAGS'
16987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16989 cross_compiling=$ac_cv_prog_cxx_cross
16991 cat > conftest.$ac_ext <<EOF
16992 #line 16993 "configure"
16993 #include "confdefs.h"
16994 #include <math.h>
16995 int main() {
16996 sincosf(0, 0, 0);
16997 ; return 0; }
16999 if { (eval echo configure:17000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17000 rm -rf conftest*
17001 glibcpp_cv_func_sincosf_use=yes
17002 else
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17005 rm -rf conftest*
17006 glibcpp_cv_func_sincosf_use=no
17008 rm -f conftest*
17009 ac_ext=c
17010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17011 ac_cpp='$CPP $CPPFLAGS'
17012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17014 cross_compiling=$ac_cv_prog_cc_cross
17020 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17022 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17023 for ac_func in sincosf
17025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17026 echo "configure:17027: checking for $ac_func" >&5
17027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029 else
17030 cat > conftest.$ac_ext <<EOF
17031 #line 17032 "configure"
17032 #include "confdefs.h"
17033 /* System header to define __stub macros and hopefully few prototypes,
17034 which can conflict with char $ac_func(); below. */
17035 #include <assert.h>
17036 /* Override any gcc2 internal prototype to avoid an error. */
17037 /* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039 char $ac_func();
17041 int main() {
17043 /* The GNU C library defines this for functions which it implements
17044 to always fail with ENOSYS. Some functions are actually named
17045 something starting with __ and the normal name is an alias. */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 choke me
17048 #else
17049 $ac_func();
17050 #endif
17052 ; return 0; }
17054 if { (eval echo configure:17055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17055 rm -rf conftest*
17056 eval "ac_cv_func_$ac_func=yes"
17057 else
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 rm -rf conftest*
17061 eval "ac_cv_func_$ac_func=no"
17063 rm -f conftest*
17066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17067 echo "$ac_t""yes" 1>&6
17068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17069 cat >> confdefs.h <<EOF
17070 #define $ac_tr_func 1
17073 else
17074 echo "$ac_t""no" 1>&6
17076 done
17078 else
17080 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17081 echo "configure:17082: checking for _sincosf declaration" >&5
17082 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17083 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17084 echo $ac_n "(cached) $ac_c" 1>&6
17085 else
17088 ac_ext=C
17089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17090 ac_cpp='$CXXCPP $CPPFLAGS'
17091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17093 cross_compiling=$ac_cv_prog_cxx_cross
17095 cat > conftest.$ac_ext <<EOF
17096 #line 17097 "configure"
17097 #include "confdefs.h"
17098 #include <math.h>
17099 int main() {
17100 _sincosf(0, 0, 0);
17101 ; return 0; }
17103 if { (eval echo configure:17104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17104 rm -rf conftest*
17105 glibcpp_cv_func__sincosf_use=yes
17106 else
17107 echo "configure: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17109 rm -rf conftest*
17110 glibcpp_cv_func__sincosf_use=no
17112 rm -f conftest*
17113 ac_ext=c
17114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17115 ac_cpp='$CPP $CPPFLAGS'
17116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17118 cross_compiling=$ac_cv_prog_cc_cross
17124 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17126 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17127 for ac_func in _sincosf
17129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17130 echo "configure:17131: checking for $ac_func" >&5
17131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
17133 else
17134 cat > conftest.$ac_ext <<EOF
17135 #line 17136 "configure"
17136 #include "confdefs.h"
17137 /* System header to define __stub macros and hopefully few prototypes,
17138 which can conflict with char $ac_func(); below. */
17139 #include <assert.h>
17140 /* Override any gcc2 internal prototype to avoid an error. */
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143 char $ac_func();
17145 int main() {
17147 /* The GNU C library defines this for functions which it implements
17148 to always fail with ENOSYS. Some functions are actually named
17149 something starting with __ and the normal name is an alias. */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17151 choke me
17152 #else
17153 $ac_func();
17154 #endif
17156 ; return 0; }
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17159 rm -rf conftest*
17160 eval "ac_cv_func_$ac_func=yes"
17161 else
17162 echo "configure: failed program was:" >&5
17163 cat conftest.$ac_ext >&5
17164 rm -rf conftest*
17165 eval "ac_cv_func_$ac_func=no"
17167 rm -f conftest*
17170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17171 echo "$ac_t""yes" 1>&6
17172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17173 cat >> confdefs.h <<EOF
17174 #define $ac_tr_func 1
17177 else
17178 echo "$ac_t""no" 1>&6
17180 done
17187 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17188 echo "configure:17189: checking for finitef declaration" >&5
17189 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17190 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17191 echo $ac_n "(cached) $ac_c" 1>&6
17192 else
17195 ac_ext=C
17196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17197 ac_cpp='$CXXCPP $CPPFLAGS'
17198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17200 cross_compiling=$ac_cv_prog_cxx_cross
17202 cat > conftest.$ac_ext <<EOF
17203 #line 17204 "configure"
17204 #include "confdefs.h"
17205 #include <math.h>
17206 #ifdef HAVE_IEEEFP_H
17207 #include <ieeefp.h>
17208 #endif
17210 int main() {
17211 finitef(0);
17212 ; return 0; }
17214 if { (eval echo configure:17215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17215 rm -rf conftest*
17216 glibcpp_cv_func_finitef_use=yes
17217 else
17218 echo "configure: failed program was:" >&5
17219 cat conftest.$ac_ext >&5
17220 rm -rf conftest*
17221 glibcpp_cv_func_finitef_use=no
17223 rm -f conftest*
17224 ac_ext=c
17225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17226 ac_cpp='$CPP $CPPFLAGS'
17227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17229 cross_compiling=$ac_cv_prog_cc_cross
17235 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17237 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17238 for ac_func in finitef
17240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17241 echo "configure:17242: checking for $ac_func" >&5
17242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17243 echo $ac_n "(cached) $ac_c" 1>&6
17244 else
17245 cat > conftest.$ac_ext <<EOF
17246 #line 17247 "configure"
17247 #include "confdefs.h"
17248 /* System header to define __stub macros and hopefully few prototypes,
17249 which can conflict with char $ac_func(); below. */
17250 #include <assert.h>
17251 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17254 char $ac_func();
17256 int main() {
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17262 choke me
17263 #else
17264 $ac_func();
17265 #endif
17267 ; return 0; }
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270 rm -rf conftest*
17271 eval "ac_cv_func_$ac_func=yes"
17272 else
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17275 rm -rf conftest*
17276 eval "ac_cv_func_$ac_func=no"
17278 rm -f conftest*
17281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17282 echo "$ac_t""yes" 1>&6
17283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17284 cat >> confdefs.h <<EOF
17285 #define $ac_tr_func 1
17288 else
17289 echo "$ac_t""no" 1>&6
17291 done
17293 else
17295 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17296 echo "configure:17297: checking for _finitef declaration" >&5
17297 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17298 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17299 echo $ac_n "(cached) $ac_c" 1>&6
17300 else
17303 ac_ext=C
17304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17305 ac_cpp='$CXXCPP $CPPFLAGS'
17306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17308 cross_compiling=$ac_cv_prog_cxx_cross
17310 cat > conftest.$ac_ext <<EOF
17311 #line 17312 "configure"
17312 #include "confdefs.h"
17313 #include <math.h>
17314 #ifdef HAVE_IEEEFP_H
17315 #include <ieeefp.h>
17316 #endif
17318 int main() {
17319 _finitef(0);
17320 ; return 0; }
17322 if { (eval echo configure:17323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17323 rm -rf conftest*
17324 glibcpp_cv_func__finitef_use=yes
17325 else
17326 echo "configure: failed program was:" >&5
17327 cat conftest.$ac_ext >&5
17328 rm -rf conftest*
17329 glibcpp_cv_func__finitef_use=no
17331 rm -f conftest*
17332 ac_ext=c
17333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17337 cross_compiling=$ac_cv_prog_cc_cross
17343 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17345 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17346 for ac_func in _finitef
17348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17349 echo "configure:17350: checking for $ac_func" >&5
17350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
17352 else
17353 cat > conftest.$ac_ext <<EOF
17354 #line 17355 "configure"
17355 #include "confdefs.h"
17356 /* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func(); below. */
17358 #include <assert.h>
17359 /* Override any gcc2 internal prototype to avoid an error. */
17360 /* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17362 char $ac_func();
17364 int main() {
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17370 choke me
17371 #else
17372 $ac_func();
17373 #endif
17375 ; return 0; }
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17378 rm -rf conftest*
17379 eval "ac_cv_func_$ac_func=yes"
17380 else
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17383 rm -rf conftest*
17384 eval "ac_cv_func_$ac_func=no"
17386 rm -f conftest*
17389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17390 echo "$ac_t""yes" 1>&6
17391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17392 cat >> confdefs.h <<EOF
17393 #define $ac_tr_func 1
17396 else
17397 echo "$ac_t""no" 1>&6
17399 done
17406 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17407 echo "configure:17408: checking for long double trig functions" >&5
17408 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17409 echo $ac_n "(cached) $ac_c" 1>&6
17410 else
17413 ac_ext=C
17414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17418 cross_compiling=$ac_cv_prog_cxx_cross
17420 cat > conftest.$ac_ext <<EOF
17421 #line 17422 "configure"
17422 #include "confdefs.h"
17423 #include <math.h>
17424 int main() {
17425 `for x in acosl asinl atanl \
17426 cosl sinl tanl \
17427 coshl sinhl tanhl; do echo "$x (0);"; done`
17428 ; return 0; }
17430 if { (eval echo configure:17431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17431 rm -rf conftest*
17432 glibcpp_cv_func_long_double_trig_use=yes
17433 else
17434 echo "configure: failed program was:" >&5
17435 cat conftest.$ac_ext >&5
17436 rm -rf conftest*
17437 glibcpp_cv_func_long_double_trig_use=no
17439 rm -f conftest*
17440 ac_ext=c
17441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17442 ac_cpp='$CPP $CPPFLAGS'
17443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17445 cross_compiling=$ac_cv_prog_cc_cross
17449 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17450 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17451 for ac_func in acosl asinl atanl \
17452 cosl sinl tanl \
17453 coshl sinhl tanhl
17455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17456 echo "configure:17457: checking for $ac_func" >&5
17457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17458 echo $ac_n "(cached) $ac_c" 1>&6
17459 else
17460 cat > conftest.$ac_ext <<EOF
17461 #line 17462 "configure"
17462 #include "confdefs.h"
17463 /* System header to define __stub macros and hopefully few prototypes,
17464 which can conflict with char $ac_func(); below. */
17465 #include <assert.h>
17466 /* Override any gcc2 internal prototype to avoid an error. */
17467 /* We use char because int might match the return type of a gcc2
17468 builtin and then its argument prototype would still apply. */
17469 char $ac_func();
17471 int main() {
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17477 choke me
17478 #else
17479 $ac_func();
17480 #endif
17482 ; return 0; }
17484 if { (eval echo configure:17485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17485 rm -rf conftest*
17486 eval "ac_cv_func_$ac_func=yes"
17487 else
17488 echo "configure: failed program was:" >&5
17489 cat conftest.$ac_ext >&5
17490 rm -rf conftest*
17491 eval "ac_cv_func_$ac_func=no"
17493 rm -f conftest*
17496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17497 echo "$ac_t""yes" 1>&6
17498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17499 cat >> confdefs.h <<EOF
17500 #define $ac_tr_func 1
17503 else
17504 echo "$ac_t""no" 1>&6
17506 done
17511 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17512 echo "configure:17513: checking for long double round functions" >&5
17513 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17514 echo $ac_n "(cached) $ac_c" 1>&6
17515 else
17518 ac_ext=C
17519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17520 ac_cpp='$CXXCPP $CPPFLAGS'
17521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17523 cross_compiling=$ac_cv_prog_cxx_cross
17525 cat > conftest.$ac_ext <<EOF
17526 #line 17527 "configure"
17527 #include "confdefs.h"
17528 #include <math.h>
17529 int main() {
17530 `for x in ceill floorl; do echo "$x (0);"; done`
17531 ; return 0; }
17533 if { (eval echo configure:17534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17534 rm -rf conftest*
17535 glibcpp_cv_func_long_double_round_use=yes
17536 else
17537 echo "configure: failed program was:" >&5
17538 cat conftest.$ac_ext >&5
17539 rm -rf conftest*
17540 glibcpp_cv_func_long_double_round_use=no
17542 rm -f conftest*
17543 ac_ext=c
17544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17545 ac_cpp='$CPP $CPPFLAGS'
17546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17548 cross_compiling=$ac_cv_prog_cc_cross
17552 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17553 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17554 for ac_func in ceill floorl
17556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17557 echo "configure:17558: checking for $ac_func" >&5
17558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17559 echo $ac_n "(cached) $ac_c" 1>&6
17560 else
17561 cat > conftest.$ac_ext <<EOF
17562 #line 17563 "configure"
17563 #include "confdefs.h"
17564 /* System header to define __stub macros and hopefully few prototypes,
17565 which can conflict with char $ac_func(); below. */
17566 #include <assert.h>
17567 /* Override any gcc2 internal prototype to avoid an error. */
17568 /* We use char because int might match the return type of a gcc2
17569 builtin and then its argument prototype would still apply. */
17570 char $ac_func();
17572 int main() {
17574 /* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17578 choke me
17579 #else
17580 $ac_func();
17581 #endif
17583 ; return 0; }
17585 if { (eval echo configure:17586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17586 rm -rf conftest*
17587 eval "ac_cv_func_$ac_func=yes"
17588 else
17589 echo "configure: failed program was:" >&5
17590 cat conftest.$ac_ext >&5
17591 rm -rf conftest*
17592 eval "ac_cv_func_$ac_func=no"
17594 rm -f conftest*
17597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17598 echo "$ac_t""yes" 1>&6
17599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17600 cat >> confdefs.h <<EOF
17601 #define $ac_tr_func 1
17604 else
17605 echo "$ac_t""no" 1>&6
17607 done
17613 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17614 echo "configure:17615: checking for isnanl declaration" >&5
17615 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17616 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17617 echo $ac_n "(cached) $ac_c" 1>&6
17618 else
17621 ac_ext=C
17622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17623 ac_cpp='$CXXCPP $CPPFLAGS'
17624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17626 cross_compiling=$ac_cv_prog_cxx_cross
17628 cat > conftest.$ac_ext <<EOF
17629 #line 17630 "configure"
17630 #include "confdefs.h"
17631 #include <math.h>
17632 #ifdef HAVE_IEEEFP_H
17633 #include <ieeefp.h>
17634 #endif
17636 int main() {
17637 isnanl(0);
17638 ; return 0; }
17640 if { (eval echo configure:17641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17641 rm -rf conftest*
17642 glibcpp_cv_func_isnanl_use=yes
17643 else
17644 echo "configure: failed program was:" >&5
17645 cat conftest.$ac_ext >&5
17646 rm -rf conftest*
17647 glibcpp_cv_func_isnanl_use=no
17649 rm -f conftest*
17650 ac_ext=c
17651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17652 ac_cpp='$CPP $CPPFLAGS'
17653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17655 cross_compiling=$ac_cv_prog_cc_cross
17661 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17663 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17664 for ac_func in isnanl
17666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17667 echo "configure:17668: checking for $ac_func" >&5
17668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
17670 else
17671 cat > conftest.$ac_ext <<EOF
17672 #line 17673 "configure"
17673 #include "confdefs.h"
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char $ac_func(); below. */
17676 #include <assert.h>
17677 /* Override any gcc2 internal prototype to avoid an error. */
17678 /* We use char because int might match the return type of a gcc2
17679 builtin and then its argument prototype would still apply. */
17680 char $ac_func();
17682 int main() {
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17688 choke me
17689 #else
17690 $ac_func();
17691 #endif
17693 ; return 0; }
17695 if { (eval echo configure:17696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17696 rm -rf conftest*
17697 eval "ac_cv_func_$ac_func=yes"
17698 else
17699 echo "configure: failed program was:" >&5
17700 cat conftest.$ac_ext >&5
17701 rm -rf conftest*
17702 eval "ac_cv_func_$ac_func=no"
17704 rm -f conftest*
17707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17708 echo "$ac_t""yes" 1>&6
17709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17710 cat >> confdefs.h <<EOF
17711 #define $ac_tr_func 1
17714 else
17715 echo "$ac_t""no" 1>&6
17717 done
17719 else
17721 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17722 echo "configure:17723: checking for _isnanl declaration" >&5
17723 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17724 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17725 echo $ac_n "(cached) $ac_c" 1>&6
17726 else
17729 ac_ext=C
17730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17731 ac_cpp='$CXXCPP $CPPFLAGS'
17732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17734 cross_compiling=$ac_cv_prog_cxx_cross
17736 cat > conftest.$ac_ext <<EOF
17737 #line 17738 "configure"
17738 #include "confdefs.h"
17739 #include <math.h>
17740 #ifdef HAVE_IEEEFP_H
17741 #include <ieeefp.h>
17742 #endif
17744 int main() {
17745 _isnanl(0);
17746 ; return 0; }
17748 if { (eval echo configure:17749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17749 rm -rf conftest*
17750 glibcpp_cv_func__isnanl_use=yes
17751 else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 glibcpp_cv_func__isnanl_use=no
17757 rm -f conftest*
17758 ac_ext=c
17759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17760 ac_cpp='$CPP $CPPFLAGS'
17761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17763 cross_compiling=$ac_cv_prog_cc_cross
17769 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17771 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17772 for ac_func in _isnanl
17774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17775 echo "configure:17776: checking for $ac_func" >&5
17776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17777 echo $ac_n "(cached) $ac_c" 1>&6
17778 else
17779 cat > conftest.$ac_ext <<EOF
17780 #line 17781 "configure"
17781 #include "confdefs.h"
17782 /* System header to define __stub macros and hopefully few prototypes,
17783 which can conflict with char $ac_func(); below. */
17784 #include <assert.h>
17785 /* Override any gcc2 internal prototype to avoid an error. */
17786 /* We use char because int might match the return type of a gcc2
17787 builtin and then its argument prototype would still apply. */
17788 char $ac_func();
17790 int main() {
17792 /* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17796 choke me
17797 #else
17798 $ac_func();
17799 #endif
17801 ; return 0; }
17803 if { (eval echo configure:17804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17804 rm -rf conftest*
17805 eval "ac_cv_func_$ac_func=yes"
17806 else
17807 echo "configure: failed program was:" >&5
17808 cat conftest.$ac_ext >&5
17809 rm -rf conftest*
17810 eval "ac_cv_func_$ac_func=no"
17812 rm -f conftest*
17815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17816 echo "$ac_t""yes" 1>&6
17817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17818 cat >> confdefs.h <<EOF
17819 #define $ac_tr_func 1
17822 else
17823 echo "$ac_t""no" 1>&6
17825 done
17832 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17833 echo "configure:17834: checking for isinfl declaration" >&5
17834 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17835 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17836 echo $ac_n "(cached) $ac_c" 1>&6
17837 else
17840 ac_ext=C
17841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17842 ac_cpp='$CXXCPP $CPPFLAGS'
17843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17845 cross_compiling=$ac_cv_prog_cxx_cross
17847 cat > conftest.$ac_ext <<EOF
17848 #line 17849 "configure"
17849 #include "confdefs.h"
17850 #include <math.h>
17851 #ifdef HAVE_IEEEFP_H
17852 #include <ieeefp.h>
17853 #endif
17855 int main() {
17856 isinfl(0);
17857 ; return 0; }
17859 if { (eval echo configure:17860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17860 rm -rf conftest*
17861 glibcpp_cv_func_isinfl_use=yes
17862 else
17863 echo "configure: failed program was:" >&5
17864 cat conftest.$ac_ext >&5
17865 rm -rf conftest*
17866 glibcpp_cv_func_isinfl_use=no
17868 rm -f conftest*
17869 ac_ext=c
17870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17871 ac_cpp='$CPP $CPPFLAGS'
17872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17874 cross_compiling=$ac_cv_prog_cc_cross
17880 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17882 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17883 for ac_func in isinfl
17885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17886 echo "configure:17887: checking for $ac_func" >&5
17887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17888 echo $ac_n "(cached) $ac_c" 1>&6
17889 else
17890 cat > conftest.$ac_ext <<EOF
17891 #line 17892 "configure"
17892 #include "confdefs.h"
17893 /* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char $ac_func(); below. */
17895 #include <assert.h>
17896 /* Override any gcc2 internal prototype to avoid an error. */
17897 /* We use char because int might match the return type of a gcc2
17898 builtin and then its argument prototype would still apply. */
17899 char $ac_func();
17901 int main() {
17903 /* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17907 choke me
17908 #else
17909 $ac_func();
17910 #endif
17912 ; return 0; }
17914 if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17915 rm -rf conftest*
17916 eval "ac_cv_func_$ac_func=yes"
17917 else
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17920 rm -rf conftest*
17921 eval "ac_cv_func_$ac_func=no"
17923 rm -f conftest*
17926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17927 echo "$ac_t""yes" 1>&6
17928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17929 cat >> confdefs.h <<EOF
17930 #define $ac_tr_func 1
17933 else
17934 echo "$ac_t""no" 1>&6
17936 done
17938 else
17940 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17941 echo "configure:17942: checking for _isinfl declaration" >&5
17942 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17943 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17945 else
17948 ac_ext=C
17949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17950 ac_cpp='$CXXCPP $CPPFLAGS'
17951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17953 cross_compiling=$ac_cv_prog_cxx_cross
17955 cat > conftest.$ac_ext <<EOF
17956 #line 17957 "configure"
17957 #include "confdefs.h"
17958 #include <math.h>
17959 #ifdef HAVE_IEEEFP_H
17960 #include <ieeefp.h>
17961 #endif
17963 int main() {
17964 _isinfl(0);
17965 ; return 0; }
17967 if { (eval echo configure:17968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17968 rm -rf conftest*
17969 glibcpp_cv_func__isinfl_use=yes
17970 else
17971 echo "configure: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 rm -rf conftest*
17974 glibcpp_cv_func__isinfl_use=no
17976 rm -f conftest*
17977 ac_ext=c
17978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17979 ac_cpp='$CPP $CPPFLAGS'
17980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17982 cross_compiling=$ac_cv_prog_cc_cross
17988 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17990 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17991 for ac_func in _isinfl
17993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17994 echo "configure:17995: checking for $ac_func" >&5
17995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17996 echo $ac_n "(cached) $ac_c" 1>&6
17997 else
17998 cat > conftest.$ac_ext <<EOF
17999 #line 18000 "configure"
18000 #include "confdefs.h"
18001 /* System header to define __stub macros and hopefully few prototypes,
18002 which can conflict with char $ac_func(); below. */
18003 #include <assert.h>
18004 /* Override any gcc2 internal prototype to avoid an error. */
18005 /* We use char because int might match the return type of a gcc2
18006 builtin and then its argument prototype would still apply. */
18007 char $ac_func();
18009 int main() {
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18015 choke me
18016 #else
18017 $ac_func();
18018 #endif
18020 ; return 0; }
18022 if { (eval echo configure:18023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18023 rm -rf conftest*
18024 eval "ac_cv_func_$ac_func=yes"
18025 else
18026 echo "configure: failed program was:" >&5
18027 cat conftest.$ac_ext >&5
18028 rm -rf conftest*
18029 eval "ac_cv_func_$ac_func=no"
18031 rm -f conftest*
18034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18035 echo "$ac_t""yes" 1>&6
18036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18037 cat >> confdefs.h <<EOF
18038 #define $ac_tr_func 1
18041 else
18042 echo "$ac_t""no" 1>&6
18044 done
18051 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18052 echo "configure:18053: checking for copysignl declaration" >&5
18053 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18054 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
18056 else
18059 ac_ext=C
18060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18061 ac_cpp='$CXXCPP $CPPFLAGS'
18062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18064 cross_compiling=$ac_cv_prog_cxx_cross
18066 cat > conftest.$ac_ext <<EOF
18067 #line 18068 "configure"
18068 #include "confdefs.h"
18069 #include <math.h>
18070 int main() {
18071 copysignl(0, 0);
18072 ; return 0; }
18074 if { (eval echo configure:18075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18075 rm -rf conftest*
18076 glibcpp_cv_func_copysignl_use=yes
18077 else
18078 echo "configure: failed program was:" >&5
18079 cat conftest.$ac_ext >&5
18080 rm -rf conftest*
18081 glibcpp_cv_func_copysignl_use=no
18083 rm -f conftest*
18084 ac_ext=c
18085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18086 ac_cpp='$CPP $CPPFLAGS'
18087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18089 cross_compiling=$ac_cv_prog_cc_cross
18095 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18097 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18098 for ac_func in copysignl
18100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18101 echo "configure:18102: checking for $ac_func" >&5
18102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18103 echo $ac_n "(cached) $ac_c" 1>&6
18104 else
18105 cat > conftest.$ac_ext <<EOF
18106 #line 18107 "configure"
18107 #include "confdefs.h"
18108 /* System header to define __stub macros and hopefully few prototypes,
18109 which can conflict with char $ac_func(); below. */
18110 #include <assert.h>
18111 /* Override any gcc2 internal prototype to avoid an error. */
18112 /* We use char because int might match the return type of a gcc2
18113 builtin and then its argument prototype would still apply. */
18114 char $ac_func();
18116 int main() {
18118 /* The GNU C library defines this for functions which it implements
18119 to always fail with ENOSYS. Some functions are actually named
18120 something starting with __ and the normal name is an alias. */
18121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18122 choke me
18123 #else
18124 $ac_func();
18125 #endif
18127 ; return 0; }
18129 if { (eval echo configure:18130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18130 rm -rf conftest*
18131 eval "ac_cv_func_$ac_func=yes"
18132 else
18133 echo "configure: failed program was:" >&5
18134 cat conftest.$ac_ext >&5
18135 rm -rf conftest*
18136 eval "ac_cv_func_$ac_func=no"
18138 rm -f conftest*
18141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18142 echo "$ac_t""yes" 1>&6
18143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18144 cat >> confdefs.h <<EOF
18145 #define $ac_tr_func 1
18148 else
18149 echo "$ac_t""no" 1>&6
18151 done
18153 else
18155 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18156 echo "configure:18157: checking for _copysignl declaration" >&5
18157 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18158 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18159 echo $ac_n "(cached) $ac_c" 1>&6
18160 else
18163 ac_ext=C
18164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18165 ac_cpp='$CXXCPP $CPPFLAGS'
18166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18168 cross_compiling=$ac_cv_prog_cxx_cross
18170 cat > conftest.$ac_ext <<EOF
18171 #line 18172 "configure"
18172 #include "confdefs.h"
18173 #include <math.h>
18174 int main() {
18175 _copysignl(0, 0);
18176 ; return 0; }
18178 if { (eval echo configure:18179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18179 rm -rf conftest*
18180 glibcpp_cv_func__copysignl_use=yes
18181 else
18182 echo "configure: failed program was:" >&5
18183 cat conftest.$ac_ext >&5
18184 rm -rf conftest*
18185 glibcpp_cv_func__copysignl_use=no
18187 rm -f conftest*
18188 ac_ext=c
18189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18193 cross_compiling=$ac_cv_prog_cc_cross
18199 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18201 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18202 for ac_func in _copysignl
18204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18205 echo "configure:18206: checking for $ac_func" >&5
18206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18207 echo $ac_n "(cached) $ac_c" 1>&6
18208 else
18209 cat > conftest.$ac_ext <<EOF
18210 #line 18211 "configure"
18211 #include "confdefs.h"
18212 /* System header to define __stub macros and hopefully few prototypes,
18213 which can conflict with char $ac_func(); below. */
18214 #include <assert.h>
18215 /* Override any gcc2 internal prototype to avoid an error. */
18216 /* We use char because int might match the return type of a gcc2
18217 builtin and then its argument prototype would still apply. */
18218 char $ac_func();
18220 int main() {
18222 /* The GNU C library defines this for functions which it implements
18223 to always fail with ENOSYS. Some functions are actually named
18224 something starting with __ and the normal name is an alias. */
18225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18226 choke me
18227 #else
18228 $ac_func();
18229 #endif
18231 ; return 0; }
18233 if { (eval echo configure:18234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18234 rm -rf conftest*
18235 eval "ac_cv_func_$ac_func=yes"
18236 else
18237 echo "configure: failed program was:" >&5
18238 cat conftest.$ac_ext >&5
18239 rm -rf conftest*
18240 eval "ac_cv_func_$ac_func=no"
18242 rm -f conftest*
18245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18246 echo "$ac_t""yes" 1>&6
18247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18248 cat >> confdefs.h <<EOF
18249 #define $ac_tr_func 1
18252 else
18253 echo "$ac_t""no" 1>&6
18255 done
18262 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18263 echo "configure:18264: checking for atan2l declaration" >&5
18264 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18265 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18266 echo $ac_n "(cached) $ac_c" 1>&6
18267 else
18270 ac_ext=C
18271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18272 ac_cpp='$CXXCPP $CPPFLAGS'
18273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18275 cross_compiling=$ac_cv_prog_cxx_cross
18277 cat > conftest.$ac_ext <<EOF
18278 #line 18279 "configure"
18279 #include "confdefs.h"
18280 #include <math.h>
18281 int main() {
18282 atan2l(0, 0);
18283 ; return 0; }
18285 if { (eval echo configure:18286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18286 rm -rf conftest*
18287 glibcpp_cv_func_atan2l_use=yes
18288 else
18289 echo "configure: failed program was:" >&5
18290 cat conftest.$ac_ext >&5
18291 rm -rf conftest*
18292 glibcpp_cv_func_atan2l_use=no
18294 rm -f conftest*
18295 ac_ext=c
18296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18297 ac_cpp='$CPP $CPPFLAGS'
18298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18300 cross_compiling=$ac_cv_prog_cc_cross
18306 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18308 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18309 for ac_func in atan2l
18311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18312 echo "configure:18313: checking for $ac_func" >&5
18313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18314 echo $ac_n "(cached) $ac_c" 1>&6
18315 else
18316 cat > conftest.$ac_ext <<EOF
18317 #line 18318 "configure"
18318 #include "confdefs.h"
18319 /* System header to define __stub macros and hopefully few prototypes,
18320 which can conflict with char $ac_func(); below. */
18321 #include <assert.h>
18322 /* Override any gcc2 internal prototype to avoid an error. */
18323 /* We use char because int might match the return type of a gcc2
18324 builtin and then its argument prototype would still apply. */
18325 char $ac_func();
18327 int main() {
18329 /* The GNU C library defines this for functions which it implements
18330 to always fail with ENOSYS. Some functions are actually named
18331 something starting with __ and the normal name is an alias. */
18332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18333 choke me
18334 #else
18335 $ac_func();
18336 #endif
18338 ; return 0; }
18340 if { (eval echo configure:18341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18341 rm -rf conftest*
18342 eval "ac_cv_func_$ac_func=yes"
18343 else
18344 echo "configure: failed program was:" >&5
18345 cat conftest.$ac_ext >&5
18346 rm -rf conftest*
18347 eval "ac_cv_func_$ac_func=no"
18349 rm -f conftest*
18352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18353 echo "$ac_t""yes" 1>&6
18354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18355 cat >> confdefs.h <<EOF
18356 #define $ac_tr_func 1
18359 else
18360 echo "$ac_t""no" 1>&6
18362 done
18364 else
18366 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18367 echo "configure:18368: checking for _atan2l declaration" >&5
18368 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18369 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18370 echo $ac_n "(cached) $ac_c" 1>&6
18371 else
18374 ac_ext=C
18375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18376 ac_cpp='$CXXCPP $CPPFLAGS'
18377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18379 cross_compiling=$ac_cv_prog_cxx_cross
18381 cat > conftest.$ac_ext <<EOF
18382 #line 18383 "configure"
18383 #include "confdefs.h"
18384 #include <math.h>
18385 int main() {
18386 _atan2l(0, 0);
18387 ; return 0; }
18389 if { (eval echo configure:18390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18390 rm -rf conftest*
18391 glibcpp_cv_func__atan2l_use=yes
18392 else
18393 echo "configure: failed program was:" >&5
18394 cat conftest.$ac_ext >&5
18395 rm -rf conftest*
18396 glibcpp_cv_func__atan2l_use=no
18398 rm -f conftest*
18399 ac_ext=c
18400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18401 ac_cpp='$CPP $CPPFLAGS'
18402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18404 cross_compiling=$ac_cv_prog_cc_cross
18410 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18412 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18413 for ac_func in _atan2l
18415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18416 echo "configure:18417: checking for $ac_func" >&5
18417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18418 echo $ac_n "(cached) $ac_c" 1>&6
18419 else
18420 cat > conftest.$ac_ext <<EOF
18421 #line 18422 "configure"
18422 #include "confdefs.h"
18423 /* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char $ac_func(); below. */
18425 #include <assert.h>
18426 /* Override any gcc2 internal prototype to avoid an error. */
18427 /* We use char because int might match the return type of a gcc2
18428 builtin and then its argument prototype would still apply. */
18429 char $ac_func();
18431 int main() {
18433 /* The GNU C library defines this for functions which it implements
18434 to always fail with ENOSYS. Some functions are actually named
18435 something starting with __ and the normal name is an alias. */
18436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18437 choke me
18438 #else
18439 $ac_func();
18440 #endif
18442 ; return 0; }
18444 if { (eval echo configure:18445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18445 rm -rf conftest*
18446 eval "ac_cv_func_$ac_func=yes"
18447 else
18448 echo "configure: failed program was:" >&5
18449 cat conftest.$ac_ext >&5
18450 rm -rf conftest*
18451 eval "ac_cv_func_$ac_func=no"
18453 rm -f conftest*
18456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18457 echo "$ac_t""yes" 1>&6
18458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18459 cat >> confdefs.h <<EOF
18460 #define $ac_tr_func 1
18463 else
18464 echo "$ac_t""no" 1>&6
18466 done
18473 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18474 echo "configure:18475: checking for expl declaration" >&5
18475 if test x${glibcpp_cv_func_expl_use+set} != xset; then
18476 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18477 echo $ac_n "(cached) $ac_c" 1>&6
18478 else
18481 ac_ext=C
18482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18486 cross_compiling=$ac_cv_prog_cxx_cross
18488 cat > conftest.$ac_ext <<EOF
18489 #line 18490 "configure"
18490 #include "confdefs.h"
18491 #include <math.h>
18492 #ifdef HAVE_IEEEFP_H
18493 #include <ieeefp.h>
18494 #endif
18496 int main() {
18497 expl(0);
18498 ; return 0; }
18500 if { (eval echo configure:18501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18501 rm -rf conftest*
18502 glibcpp_cv_func_expl_use=yes
18503 else
18504 echo "configure: failed program was:" >&5
18505 cat conftest.$ac_ext >&5
18506 rm -rf conftest*
18507 glibcpp_cv_func_expl_use=no
18509 rm -f conftest*
18510 ac_ext=c
18511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18512 ac_cpp='$CPP $CPPFLAGS'
18513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18515 cross_compiling=$ac_cv_prog_cc_cross
18521 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18523 if test x$glibcpp_cv_func_expl_use = x"yes"; then
18524 for ac_func in expl
18526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18527 echo "configure:18528: checking for $ac_func" >&5
18528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18529 echo $ac_n "(cached) $ac_c" 1>&6
18530 else
18531 cat > conftest.$ac_ext <<EOF
18532 #line 18533 "configure"
18533 #include "confdefs.h"
18534 /* System header to define __stub macros and hopefully few prototypes,
18535 which can conflict with char $ac_func(); below. */
18536 #include <assert.h>
18537 /* Override any gcc2 internal prototype to avoid an error. */
18538 /* We use char because int might match the return type of a gcc2
18539 builtin and then its argument prototype would still apply. */
18540 char $ac_func();
18542 int main() {
18544 /* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18548 choke me
18549 #else
18550 $ac_func();
18551 #endif
18553 ; return 0; }
18555 if { (eval echo configure:18556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18556 rm -rf conftest*
18557 eval "ac_cv_func_$ac_func=yes"
18558 else
18559 echo "configure: failed program was:" >&5
18560 cat conftest.$ac_ext >&5
18561 rm -rf conftest*
18562 eval "ac_cv_func_$ac_func=no"
18564 rm -f conftest*
18567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18568 echo "$ac_t""yes" 1>&6
18569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18570 cat >> confdefs.h <<EOF
18571 #define $ac_tr_func 1
18574 else
18575 echo "$ac_t""no" 1>&6
18577 done
18579 else
18581 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18582 echo "configure:18583: checking for _expl declaration" >&5
18583 if test x${glibcpp_cv_func__expl_use+set} != xset; then
18584 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18585 echo $ac_n "(cached) $ac_c" 1>&6
18586 else
18589 ac_ext=C
18590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18591 ac_cpp='$CXXCPP $CPPFLAGS'
18592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18594 cross_compiling=$ac_cv_prog_cxx_cross
18596 cat > conftest.$ac_ext <<EOF
18597 #line 18598 "configure"
18598 #include "confdefs.h"
18599 #include <math.h>
18600 #ifdef HAVE_IEEEFP_H
18601 #include <ieeefp.h>
18602 #endif
18604 int main() {
18605 _expl(0);
18606 ; return 0; }
18608 if { (eval echo configure:18609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18609 rm -rf conftest*
18610 glibcpp_cv_func__expl_use=yes
18611 else
18612 echo "configure: failed program was:" >&5
18613 cat conftest.$ac_ext >&5
18614 rm -rf conftest*
18615 glibcpp_cv_func__expl_use=no
18617 rm -f conftest*
18618 ac_ext=c
18619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18620 ac_cpp='$CPP $CPPFLAGS'
18621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18623 cross_compiling=$ac_cv_prog_cc_cross
18629 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18631 if test x$glibcpp_cv_func__expl_use = x"yes"; then
18632 for ac_func in _expl
18634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18635 echo "configure:18636: checking for $ac_func" >&5
18636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18637 echo $ac_n "(cached) $ac_c" 1>&6
18638 else
18639 cat > conftest.$ac_ext <<EOF
18640 #line 18641 "configure"
18641 #include "confdefs.h"
18642 /* System header to define __stub macros and hopefully few prototypes,
18643 which can conflict with char $ac_func(); below. */
18644 #include <assert.h>
18645 /* Override any gcc2 internal prototype to avoid an error. */
18646 /* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
18648 char $ac_func();
18650 int main() {
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18656 choke me
18657 #else
18658 $ac_func();
18659 #endif
18661 ; return 0; }
18663 if { (eval echo configure:18664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18664 rm -rf conftest*
18665 eval "ac_cv_func_$ac_func=yes"
18666 else
18667 echo "configure: failed program was:" >&5
18668 cat conftest.$ac_ext >&5
18669 rm -rf conftest*
18670 eval "ac_cv_func_$ac_func=no"
18672 rm -f conftest*
18675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18676 echo "$ac_t""yes" 1>&6
18677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18678 cat >> confdefs.h <<EOF
18679 #define $ac_tr_func 1
18682 else
18683 echo "$ac_t""no" 1>&6
18685 done
18692 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18693 echo "configure:18694: checking for fabsl declaration" >&5
18694 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18695 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18696 echo $ac_n "(cached) $ac_c" 1>&6
18697 else
18700 ac_ext=C
18701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18702 ac_cpp='$CXXCPP $CPPFLAGS'
18703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18705 cross_compiling=$ac_cv_prog_cxx_cross
18707 cat > conftest.$ac_ext <<EOF
18708 #line 18709 "configure"
18709 #include "confdefs.h"
18710 #include <math.h>
18711 #ifdef HAVE_IEEEFP_H
18712 #include <ieeefp.h>
18713 #endif
18715 int main() {
18716 fabsl(0);
18717 ; return 0; }
18719 if { (eval echo configure:18720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18720 rm -rf conftest*
18721 glibcpp_cv_func_fabsl_use=yes
18722 else
18723 echo "configure: failed program was:" >&5
18724 cat conftest.$ac_ext >&5
18725 rm -rf conftest*
18726 glibcpp_cv_func_fabsl_use=no
18728 rm -f conftest*
18729 ac_ext=c
18730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18731 ac_cpp='$CPP $CPPFLAGS'
18732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18734 cross_compiling=$ac_cv_prog_cc_cross
18740 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18742 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18743 for ac_func in fabsl
18745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18746 echo "configure:18747: checking for $ac_func" >&5
18747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18748 echo $ac_n "(cached) $ac_c" 1>&6
18749 else
18750 cat > conftest.$ac_ext <<EOF
18751 #line 18752 "configure"
18752 #include "confdefs.h"
18753 /* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func(); below. */
18755 #include <assert.h>
18756 /* Override any gcc2 internal prototype to avoid an error. */
18757 /* We use char because int might match the return type of a gcc2
18758 builtin and then its argument prototype would still apply. */
18759 char $ac_func();
18761 int main() {
18763 /* The GNU C library defines this for functions which it implements
18764 to always fail with ENOSYS. Some functions are actually named
18765 something starting with __ and the normal name is an alias. */
18766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18767 choke me
18768 #else
18769 $ac_func();
18770 #endif
18772 ; return 0; }
18774 if { (eval echo configure:18775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18775 rm -rf conftest*
18776 eval "ac_cv_func_$ac_func=yes"
18777 else
18778 echo "configure: failed program was:" >&5
18779 cat conftest.$ac_ext >&5
18780 rm -rf conftest*
18781 eval "ac_cv_func_$ac_func=no"
18783 rm -f conftest*
18786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18787 echo "$ac_t""yes" 1>&6
18788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18789 cat >> confdefs.h <<EOF
18790 #define $ac_tr_func 1
18793 else
18794 echo "$ac_t""no" 1>&6
18796 done
18798 else
18800 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18801 echo "configure:18802: checking for _fabsl declaration" >&5
18802 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18803 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18804 echo $ac_n "(cached) $ac_c" 1>&6
18805 else
18808 ac_ext=C
18809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18810 ac_cpp='$CXXCPP $CPPFLAGS'
18811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18813 cross_compiling=$ac_cv_prog_cxx_cross
18815 cat > conftest.$ac_ext <<EOF
18816 #line 18817 "configure"
18817 #include "confdefs.h"
18818 #include <math.h>
18819 #ifdef HAVE_IEEEFP_H
18820 #include <ieeefp.h>
18821 #endif
18823 int main() {
18824 _fabsl(0);
18825 ; return 0; }
18827 if { (eval echo configure:18828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18828 rm -rf conftest*
18829 glibcpp_cv_func__fabsl_use=yes
18830 else
18831 echo "configure: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 rm -rf conftest*
18834 glibcpp_cv_func__fabsl_use=no
18836 rm -f conftest*
18837 ac_ext=c
18838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18839 ac_cpp='$CPP $CPPFLAGS'
18840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18842 cross_compiling=$ac_cv_prog_cc_cross
18848 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18850 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18851 for ac_func in _fabsl
18853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18854 echo "configure:18855: checking for $ac_func" >&5
18855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18856 echo $ac_n "(cached) $ac_c" 1>&6
18857 else
18858 cat > conftest.$ac_ext <<EOF
18859 #line 18860 "configure"
18860 #include "confdefs.h"
18861 /* System header to define __stub macros and hopefully few prototypes,
18862 which can conflict with char $ac_func(); below. */
18863 #include <assert.h>
18864 /* Override any gcc2 internal prototype to avoid an error. */
18865 /* We use char because int might match the return type of a gcc2
18866 builtin and then its argument prototype would still apply. */
18867 char $ac_func();
18869 int main() {
18871 /* The GNU C library defines this for functions which it implements
18872 to always fail with ENOSYS. Some functions are actually named
18873 something starting with __ and the normal name is an alias. */
18874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18875 choke me
18876 #else
18877 $ac_func();
18878 #endif
18880 ; return 0; }
18882 if { (eval echo configure:18883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18883 rm -rf conftest*
18884 eval "ac_cv_func_$ac_func=yes"
18885 else
18886 echo "configure: failed program was:" >&5
18887 cat conftest.$ac_ext >&5
18888 rm -rf conftest*
18889 eval "ac_cv_func_$ac_func=no"
18891 rm -f conftest*
18894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18895 echo "$ac_t""yes" 1>&6
18896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18897 cat >> confdefs.h <<EOF
18898 #define $ac_tr_func 1
18901 else
18902 echo "$ac_t""no" 1>&6
18904 done
18911 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18912 echo "configure:18913: checking for fmodl declaration" >&5
18913 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18914 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18915 echo $ac_n "(cached) $ac_c" 1>&6
18916 else
18919 ac_ext=C
18920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18921 ac_cpp='$CXXCPP $CPPFLAGS'
18922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18924 cross_compiling=$ac_cv_prog_cxx_cross
18926 cat > conftest.$ac_ext <<EOF
18927 #line 18928 "configure"
18928 #include "confdefs.h"
18929 #include <math.h>
18930 int main() {
18931 fmodl(0, 0);
18932 ; return 0; }
18934 if { (eval echo configure:18935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18935 rm -rf conftest*
18936 glibcpp_cv_func_fmodl_use=yes
18937 else
18938 echo "configure: failed program was:" >&5
18939 cat conftest.$ac_ext >&5
18940 rm -rf conftest*
18941 glibcpp_cv_func_fmodl_use=no
18943 rm -f conftest*
18944 ac_ext=c
18945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18946 ac_cpp='$CPP $CPPFLAGS'
18947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18949 cross_compiling=$ac_cv_prog_cc_cross
18955 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18957 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18958 for ac_func in fmodl
18960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18961 echo "configure:18962: checking for $ac_func" >&5
18962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18963 echo $ac_n "(cached) $ac_c" 1>&6
18964 else
18965 cat > conftest.$ac_ext <<EOF
18966 #line 18967 "configure"
18967 #include "confdefs.h"
18968 /* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char $ac_func(); below. */
18970 #include <assert.h>
18971 /* Override any gcc2 internal prototype to avoid an error. */
18972 /* We use char because int might match the return type of a gcc2
18973 builtin and then its argument prototype would still apply. */
18974 char $ac_func();
18976 int main() {
18978 /* The GNU C library defines this for functions which it implements
18979 to always fail with ENOSYS. Some functions are actually named
18980 something starting with __ and the normal name is an alias. */
18981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18982 choke me
18983 #else
18984 $ac_func();
18985 #endif
18987 ; return 0; }
18989 if { (eval echo configure:18990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18990 rm -rf conftest*
18991 eval "ac_cv_func_$ac_func=yes"
18992 else
18993 echo "configure: failed program was:" >&5
18994 cat conftest.$ac_ext >&5
18995 rm -rf conftest*
18996 eval "ac_cv_func_$ac_func=no"
18998 rm -f conftest*
19001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19002 echo "$ac_t""yes" 1>&6
19003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19004 cat >> confdefs.h <<EOF
19005 #define $ac_tr_func 1
19008 else
19009 echo "$ac_t""no" 1>&6
19011 done
19013 else
19015 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19016 echo "configure:19017: checking for _fmodl declaration" >&5
19017 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19018 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19019 echo $ac_n "(cached) $ac_c" 1>&6
19020 else
19023 ac_ext=C
19024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19028 cross_compiling=$ac_cv_prog_cxx_cross
19030 cat > conftest.$ac_ext <<EOF
19031 #line 19032 "configure"
19032 #include "confdefs.h"
19033 #include <math.h>
19034 int main() {
19035 _fmodl(0, 0);
19036 ; return 0; }
19038 if { (eval echo configure:19039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19039 rm -rf conftest*
19040 glibcpp_cv_func__fmodl_use=yes
19041 else
19042 echo "configure: failed program was:" >&5
19043 cat conftest.$ac_ext >&5
19044 rm -rf conftest*
19045 glibcpp_cv_func__fmodl_use=no
19047 rm -f conftest*
19048 ac_ext=c
19049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19050 ac_cpp='$CPP $CPPFLAGS'
19051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19053 cross_compiling=$ac_cv_prog_cc_cross
19059 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19061 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19062 for ac_func in _fmodl
19064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19065 echo "configure:19066: checking for $ac_func" >&5
19066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
19068 else
19069 cat > conftest.$ac_ext <<EOF
19070 #line 19071 "configure"
19071 #include "confdefs.h"
19072 /* System header to define __stub macros and hopefully few prototypes,
19073 which can conflict with char $ac_func(); below. */
19074 #include <assert.h>
19075 /* Override any gcc2 internal prototype to avoid an error. */
19076 /* We use char because int might match the return type of a gcc2
19077 builtin and then its argument prototype would still apply. */
19078 char $ac_func();
19080 int main() {
19082 /* The GNU C library defines this for functions which it implements
19083 to always fail with ENOSYS. Some functions are actually named
19084 something starting with __ and the normal name is an alias. */
19085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19086 choke me
19087 #else
19088 $ac_func();
19089 #endif
19091 ; return 0; }
19093 if { (eval echo configure:19094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19094 rm -rf conftest*
19095 eval "ac_cv_func_$ac_func=yes"
19096 else
19097 echo "configure: failed program was:" >&5
19098 cat conftest.$ac_ext >&5
19099 rm -rf conftest*
19100 eval "ac_cv_func_$ac_func=no"
19102 rm -f conftest*
19105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19106 echo "$ac_t""yes" 1>&6
19107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19108 cat >> confdefs.h <<EOF
19109 #define $ac_tr_func 1
19112 else
19113 echo "$ac_t""no" 1>&6
19115 done
19122 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19123 echo "configure:19124: checking for frexpl declaration" >&5
19124 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19125 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19126 echo $ac_n "(cached) $ac_c" 1>&6
19127 else
19130 ac_ext=C
19131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19132 ac_cpp='$CXXCPP $CPPFLAGS'
19133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19135 cross_compiling=$ac_cv_prog_cxx_cross
19137 cat > conftest.$ac_ext <<EOF
19138 #line 19139 "configure"
19139 #include "confdefs.h"
19140 #include <math.h>
19141 int main() {
19142 frexpl(0, 0);
19143 ; return 0; }
19145 if { (eval echo configure:19146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19146 rm -rf conftest*
19147 glibcpp_cv_func_frexpl_use=yes
19148 else
19149 echo "configure: failed program was:" >&5
19150 cat conftest.$ac_ext >&5
19151 rm -rf conftest*
19152 glibcpp_cv_func_frexpl_use=no
19154 rm -f conftest*
19155 ac_ext=c
19156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19157 ac_cpp='$CPP $CPPFLAGS'
19158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19160 cross_compiling=$ac_cv_prog_cc_cross
19166 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19168 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19169 for ac_func in frexpl
19171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19172 echo "configure:19173: checking for $ac_func" >&5
19173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19174 echo $ac_n "(cached) $ac_c" 1>&6
19175 else
19176 cat > conftest.$ac_ext <<EOF
19177 #line 19178 "configure"
19178 #include "confdefs.h"
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char $ac_func(); below. */
19181 #include <assert.h>
19182 /* Override any gcc2 internal prototype to avoid an error. */
19183 /* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185 char $ac_func();
19187 int main() {
19189 /* The GNU C library defines this for functions which it implements
19190 to always fail with ENOSYS. Some functions are actually named
19191 something starting with __ and the normal name is an alias. */
19192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19193 choke me
19194 #else
19195 $ac_func();
19196 #endif
19198 ; return 0; }
19200 if { (eval echo configure:19201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19201 rm -rf conftest*
19202 eval "ac_cv_func_$ac_func=yes"
19203 else
19204 echo "configure: failed program was:" >&5
19205 cat conftest.$ac_ext >&5
19206 rm -rf conftest*
19207 eval "ac_cv_func_$ac_func=no"
19209 rm -f conftest*
19212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19213 echo "$ac_t""yes" 1>&6
19214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19215 cat >> confdefs.h <<EOF
19216 #define $ac_tr_func 1
19219 else
19220 echo "$ac_t""no" 1>&6
19222 done
19224 else
19226 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19227 echo "configure:19228: checking for _frexpl declaration" >&5
19228 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19229 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19230 echo $ac_n "(cached) $ac_c" 1>&6
19231 else
19234 ac_ext=C
19235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19236 ac_cpp='$CXXCPP $CPPFLAGS'
19237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19239 cross_compiling=$ac_cv_prog_cxx_cross
19241 cat > conftest.$ac_ext <<EOF
19242 #line 19243 "configure"
19243 #include "confdefs.h"
19244 #include <math.h>
19245 int main() {
19246 _frexpl(0, 0);
19247 ; return 0; }
19249 if { (eval echo configure:19250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19250 rm -rf conftest*
19251 glibcpp_cv_func__frexpl_use=yes
19252 else
19253 echo "configure: failed program was:" >&5
19254 cat conftest.$ac_ext >&5
19255 rm -rf conftest*
19256 glibcpp_cv_func__frexpl_use=no
19258 rm -f conftest*
19259 ac_ext=c
19260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19264 cross_compiling=$ac_cv_prog_cc_cross
19270 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19272 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19273 for ac_func in _frexpl
19275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19276 echo "configure:19277: checking for $ac_func" >&5
19277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19278 echo $ac_n "(cached) $ac_c" 1>&6
19279 else
19280 cat > conftest.$ac_ext <<EOF
19281 #line 19282 "configure"
19282 #include "confdefs.h"
19283 /* System header to define __stub macros and hopefully few prototypes,
19284 which can conflict with char $ac_func(); below. */
19285 #include <assert.h>
19286 /* Override any gcc2 internal prototype to avoid an error. */
19287 /* We use char because int might match the return type of a gcc2
19288 builtin and then its argument prototype would still apply. */
19289 char $ac_func();
19291 int main() {
19293 /* The GNU C library defines this for functions which it implements
19294 to always fail with ENOSYS. Some functions are actually named
19295 something starting with __ and the normal name is an alias. */
19296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19297 choke me
19298 #else
19299 $ac_func();
19300 #endif
19302 ; return 0; }
19304 if { (eval echo configure:19305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19305 rm -rf conftest*
19306 eval "ac_cv_func_$ac_func=yes"
19307 else
19308 echo "configure: failed program was:" >&5
19309 cat conftest.$ac_ext >&5
19310 rm -rf conftest*
19311 eval "ac_cv_func_$ac_func=no"
19313 rm -f conftest*
19316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19317 echo "$ac_t""yes" 1>&6
19318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19319 cat >> confdefs.h <<EOF
19320 #define $ac_tr_func 1
19323 else
19324 echo "$ac_t""no" 1>&6
19326 done
19333 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19334 echo "configure:19335: checking for hypotl declaration" >&5
19335 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19336 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19337 echo $ac_n "(cached) $ac_c" 1>&6
19338 else
19341 ac_ext=C
19342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19346 cross_compiling=$ac_cv_prog_cxx_cross
19348 cat > conftest.$ac_ext <<EOF
19349 #line 19350 "configure"
19350 #include "confdefs.h"
19351 #include <math.h>
19352 int main() {
19353 hypotl(0, 0);
19354 ; return 0; }
19356 if { (eval echo configure:19357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19357 rm -rf conftest*
19358 glibcpp_cv_func_hypotl_use=yes
19359 else
19360 echo "configure: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19362 rm -rf conftest*
19363 glibcpp_cv_func_hypotl_use=no
19365 rm -f conftest*
19366 ac_ext=c
19367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19368 ac_cpp='$CPP $CPPFLAGS'
19369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19371 cross_compiling=$ac_cv_prog_cc_cross
19377 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19379 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19380 for ac_func in hypotl
19382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19383 echo "configure:19384: checking for $ac_func" >&5
19384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19385 echo $ac_n "(cached) $ac_c" 1>&6
19386 else
19387 cat > conftest.$ac_ext <<EOF
19388 #line 19389 "configure"
19389 #include "confdefs.h"
19390 /* System header to define __stub macros and hopefully few prototypes,
19391 which can conflict with char $ac_func(); below. */
19392 #include <assert.h>
19393 /* Override any gcc2 internal prototype to avoid an error. */
19394 /* We use char because int might match the return type of a gcc2
19395 builtin and then its argument prototype would still apply. */
19396 char $ac_func();
19398 int main() {
19400 /* The GNU C library defines this for functions which it implements
19401 to always fail with ENOSYS. Some functions are actually named
19402 something starting with __ and the normal name is an alias. */
19403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19404 choke me
19405 #else
19406 $ac_func();
19407 #endif
19409 ; return 0; }
19411 if { (eval echo configure:19412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 rm -rf conftest*
19413 eval "ac_cv_func_$ac_func=yes"
19414 else
19415 echo "configure: failed program was:" >&5
19416 cat conftest.$ac_ext >&5
19417 rm -rf conftest*
19418 eval "ac_cv_func_$ac_func=no"
19420 rm -f conftest*
19423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19424 echo "$ac_t""yes" 1>&6
19425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19426 cat >> confdefs.h <<EOF
19427 #define $ac_tr_func 1
19430 else
19431 echo "$ac_t""no" 1>&6
19433 done
19435 else
19437 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19438 echo "configure:19439: checking for _hypotl declaration" >&5
19439 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19440 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19441 echo $ac_n "(cached) $ac_c" 1>&6
19442 else
19445 ac_ext=C
19446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19447 ac_cpp='$CXXCPP $CPPFLAGS'
19448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19450 cross_compiling=$ac_cv_prog_cxx_cross
19452 cat > conftest.$ac_ext <<EOF
19453 #line 19454 "configure"
19454 #include "confdefs.h"
19455 #include <math.h>
19456 int main() {
19457 _hypotl(0, 0);
19458 ; return 0; }
19460 if { (eval echo configure:19461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19461 rm -rf conftest*
19462 glibcpp_cv_func__hypotl_use=yes
19463 else
19464 echo "configure: failed program was:" >&5
19465 cat conftest.$ac_ext >&5
19466 rm -rf conftest*
19467 glibcpp_cv_func__hypotl_use=no
19469 rm -f conftest*
19470 ac_ext=c
19471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19475 cross_compiling=$ac_cv_prog_cc_cross
19481 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19483 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19484 for ac_func in _hypotl
19486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19487 echo "configure:19488: checking for $ac_func" >&5
19488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19489 echo $ac_n "(cached) $ac_c" 1>&6
19490 else
19491 cat > conftest.$ac_ext <<EOF
19492 #line 19493 "configure"
19493 #include "confdefs.h"
19494 /* System header to define __stub macros and hopefully few prototypes,
19495 which can conflict with char $ac_func(); below. */
19496 #include <assert.h>
19497 /* Override any gcc2 internal prototype to avoid an error. */
19498 /* We use char because int might match the return type of a gcc2
19499 builtin and then its argument prototype would still apply. */
19500 char $ac_func();
19502 int main() {
19504 /* The GNU C library defines this for functions which it implements
19505 to always fail with ENOSYS. Some functions are actually named
19506 something starting with __ and the normal name is an alias. */
19507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19508 choke me
19509 #else
19510 $ac_func();
19511 #endif
19513 ; return 0; }
19515 if { (eval echo configure:19516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19516 rm -rf conftest*
19517 eval "ac_cv_func_$ac_func=yes"
19518 else
19519 echo "configure: failed program was:" >&5
19520 cat conftest.$ac_ext >&5
19521 rm -rf conftest*
19522 eval "ac_cv_func_$ac_func=no"
19524 rm -f conftest*
19527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19528 echo "$ac_t""yes" 1>&6
19529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19530 cat >> confdefs.h <<EOF
19531 #define $ac_tr_func 1
19534 else
19535 echo "$ac_t""no" 1>&6
19537 done
19544 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19545 echo "configure:19546: checking for ldexpl declaration" >&5
19546 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19547 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19548 echo $ac_n "(cached) $ac_c" 1>&6
19549 else
19552 ac_ext=C
19553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19554 ac_cpp='$CXXCPP $CPPFLAGS'
19555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19557 cross_compiling=$ac_cv_prog_cxx_cross
19559 cat > conftest.$ac_ext <<EOF
19560 #line 19561 "configure"
19561 #include "confdefs.h"
19562 #include <math.h>
19563 int main() {
19564 ldexpl(0, 0);
19565 ; return 0; }
19567 if { (eval echo configure:19568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19568 rm -rf conftest*
19569 glibcpp_cv_func_ldexpl_use=yes
19570 else
19571 echo "configure: failed program was:" >&5
19572 cat conftest.$ac_ext >&5
19573 rm -rf conftest*
19574 glibcpp_cv_func_ldexpl_use=no
19576 rm -f conftest*
19577 ac_ext=c
19578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19579 ac_cpp='$CPP $CPPFLAGS'
19580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19582 cross_compiling=$ac_cv_prog_cc_cross
19588 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19590 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19591 for ac_func in ldexpl
19593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19594 echo "configure:19595: checking for $ac_func" >&5
19595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19596 echo $ac_n "(cached) $ac_c" 1>&6
19597 else
19598 cat > conftest.$ac_ext <<EOF
19599 #line 19600 "configure"
19600 #include "confdefs.h"
19601 /* System header to define __stub macros and hopefully few prototypes,
19602 which can conflict with char $ac_func(); below. */
19603 #include <assert.h>
19604 /* Override any gcc2 internal prototype to avoid an error. */
19605 /* We use char because int might match the return type of a gcc2
19606 builtin and then its argument prototype would still apply. */
19607 char $ac_func();
19609 int main() {
19611 /* The GNU C library defines this for functions which it implements
19612 to always fail with ENOSYS. Some functions are actually named
19613 something starting with __ and the normal name is an alias. */
19614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19615 choke me
19616 #else
19617 $ac_func();
19618 #endif
19620 ; return 0; }
19622 if { (eval echo configure:19623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19623 rm -rf conftest*
19624 eval "ac_cv_func_$ac_func=yes"
19625 else
19626 echo "configure: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 rm -rf conftest*
19629 eval "ac_cv_func_$ac_func=no"
19631 rm -f conftest*
19634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19635 echo "$ac_t""yes" 1>&6
19636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19637 cat >> confdefs.h <<EOF
19638 #define $ac_tr_func 1
19641 else
19642 echo "$ac_t""no" 1>&6
19644 done
19646 else
19648 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19649 echo "configure:19650: checking for _ldexpl declaration" >&5
19650 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19651 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19652 echo $ac_n "(cached) $ac_c" 1>&6
19653 else
19656 ac_ext=C
19657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19661 cross_compiling=$ac_cv_prog_cxx_cross
19663 cat > conftest.$ac_ext <<EOF
19664 #line 19665 "configure"
19665 #include "confdefs.h"
19666 #include <math.h>
19667 int main() {
19668 _ldexpl(0, 0);
19669 ; return 0; }
19671 if { (eval echo configure:19672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19672 rm -rf conftest*
19673 glibcpp_cv_func__ldexpl_use=yes
19674 else
19675 echo "configure: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 rm -rf conftest*
19678 glibcpp_cv_func__ldexpl_use=no
19680 rm -f conftest*
19681 ac_ext=c
19682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19683 ac_cpp='$CPP $CPPFLAGS'
19684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19686 cross_compiling=$ac_cv_prog_cc_cross
19692 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19694 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19695 for ac_func in _ldexpl
19697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19698 echo "configure:19699: checking for $ac_func" >&5
19699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19700 echo $ac_n "(cached) $ac_c" 1>&6
19701 else
19702 cat > conftest.$ac_ext <<EOF
19703 #line 19704 "configure"
19704 #include "confdefs.h"
19705 /* System header to define __stub macros and hopefully few prototypes,
19706 which can conflict with char $ac_func(); below. */
19707 #include <assert.h>
19708 /* Override any gcc2 internal prototype to avoid an error. */
19709 /* We use char because int might match the return type of a gcc2
19710 builtin and then its argument prototype would still apply. */
19711 char $ac_func();
19713 int main() {
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19719 choke me
19720 #else
19721 $ac_func();
19722 #endif
19724 ; return 0; }
19726 if { (eval echo configure:19727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19727 rm -rf conftest*
19728 eval "ac_cv_func_$ac_func=yes"
19729 else
19730 echo "configure: failed program was:" >&5
19731 cat conftest.$ac_ext >&5
19732 rm -rf conftest*
19733 eval "ac_cv_func_$ac_func=no"
19735 rm -f conftest*
19738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19739 echo "$ac_t""yes" 1>&6
19740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19741 cat >> confdefs.h <<EOF
19742 #define $ac_tr_func 1
19745 else
19746 echo "$ac_t""no" 1>&6
19748 done
19755 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19756 echo "configure:19757: checking for logl declaration" >&5
19757 if test x${glibcpp_cv_func_logl_use+set} != xset; then
19758 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19759 echo $ac_n "(cached) $ac_c" 1>&6
19760 else
19763 ac_ext=C
19764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19765 ac_cpp='$CXXCPP $CPPFLAGS'
19766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19768 cross_compiling=$ac_cv_prog_cxx_cross
19770 cat > conftest.$ac_ext <<EOF
19771 #line 19772 "configure"
19772 #include "confdefs.h"
19773 #include <math.h>
19774 #ifdef HAVE_IEEEFP_H
19775 #include <ieeefp.h>
19776 #endif
19778 int main() {
19779 logl(0);
19780 ; return 0; }
19782 if { (eval echo configure:19783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19783 rm -rf conftest*
19784 glibcpp_cv_func_logl_use=yes
19785 else
19786 echo "configure: failed program was:" >&5
19787 cat conftest.$ac_ext >&5
19788 rm -rf conftest*
19789 glibcpp_cv_func_logl_use=no
19791 rm -f conftest*
19792 ac_ext=c
19793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19794 ac_cpp='$CPP $CPPFLAGS'
19795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19797 cross_compiling=$ac_cv_prog_cc_cross
19803 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19805 if test x$glibcpp_cv_func_logl_use = x"yes"; then
19806 for ac_func in logl
19808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19809 echo "configure:19810: checking for $ac_func" >&5
19810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19811 echo $ac_n "(cached) $ac_c" 1>&6
19812 else
19813 cat > conftest.$ac_ext <<EOF
19814 #line 19815 "configure"
19815 #include "confdefs.h"
19816 /* System header to define __stub macros and hopefully few prototypes,
19817 which can conflict with char $ac_func(); below. */
19818 #include <assert.h>
19819 /* Override any gcc2 internal prototype to avoid an error. */
19820 /* We use char because int might match the return type of a gcc2
19821 builtin and then its argument prototype would still apply. */
19822 char $ac_func();
19824 int main() {
19826 /* The GNU C library defines this for functions which it implements
19827 to always fail with ENOSYS. Some functions are actually named
19828 something starting with __ and the normal name is an alias. */
19829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19830 choke me
19831 #else
19832 $ac_func();
19833 #endif
19835 ; return 0; }
19837 if { (eval echo configure:19838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19838 rm -rf conftest*
19839 eval "ac_cv_func_$ac_func=yes"
19840 else
19841 echo "configure: failed program was:" >&5
19842 cat conftest.$ac_ext >&5
19843 rm -rf conftest*
19844 eval "ac_cv_func_$ac_func=no"
19846 rm -f conftest*
19849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19850 echo "$ac_t""yes" 1>&6
19851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19852 cat >> confdefs.h <<EOF
19853 #define $ac_tr_func 1
19856 else
19857 echo "$ac_t""no" 1>&6
19859 done
19861 else
19863 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19864 echo "configure:19865: checking for _logl declaration" >&5
19865 if test x${glibcpp_cv_func__logl_use+set} != xset; then
19866 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19867 echo $ac_n "(cached) $ac_c" 1>&6
19868 else
19871 ac_ext=C
19872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19873 ac_cpp='$CXXCPP $CPPFLAGS'
19874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19876 cross_compiling=$ac_cv_prog_cxx_cross
19878 cat > conftest.$ac_ext <<EOF
19879 #line 19880 "configure"
19880 #include "confdefs.h"
19881 #include <math.h>
19882 #ifdef HAVE_IEEEFP_H
19883 #include <ieeefp.h>
19884 #endif
19886 int main() {
19887 _logl(0);
19888 ; return 0; }
19890 if { (eval echo configure:19891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19891 rm -rf conftest*
19892 glibcpp_cv_func__logl_use=yes
19893 else
19894 echo "configure: failed program was:" >&5
19895 cat conftest.$ac_ext >&5
19896 rm -rf conftest*
19897 glibcpp_cv_func__logl_use=no
19899 rm -f conftest*
19900 ac_ext=c
19901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19902 ac_cpp='$CPP $CPPFLAGS'
19903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19905 cross_compiling=$ac_cv_prog_cc_cross
19911 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19913 if test x$glibcpp_cv_func__logl_use = x"yes"; then
19914 for ac_func in _logl
19916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19917 echo "configure:19918: checking for $ac_func" >&5
19918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19919 echo $ac_n "(cached) $ac_c" 1>&6
19920 else
19921 cat > conftest.$ac_ext <<EOF
19922 #line 19923 "configure"
19923 #include "confdefs.h"
19924 /* System header to define __stub macros and hopefully few prototypes,
19925 which can conflict with char $ac_func(); below. */
19926 #include <assert.h>
19927 /* Override any gcc2 internal prototype to avoid an error. */
19928 /* We use char because int might match the return type of a gcc2
19929 builtin and then its argument prototype would still apply. */
19930 char $ac_func();
19932 int main() {
19934 /* The GNU C library defines this for functions which it implements
19935 to always fail with ENOSYS. Some functions are actually named
19936 something starting with __ and the normal name is an alias. */
19937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19938 choke me
19939 #else
19940 $ac_func();
19941 #endif
19943 ; return 0; }
19945 if { (eval echo configure:19946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19946 rm -rf conftest*
19947 eval "ac_cv_func_$ac_func=yes"
19948 else
19949 echo "configure: failed program was:" >&5
19950 cat conftest.$ac_ext >&5
19951 rm -rf conftest*
19952 eval "ac_cv_func_$ac_func=no"
19954 rm -f conftest*
19957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19958 echo "$ac_t""yes" 1>&6
19959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19960 cat >> confdefs.h <<EOF
19961 #define $ac_tr_func 1
19964 else
19965 echo "$ac_t""no" 1>&6
19967 done
19974 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19975 echo "configure:19976: checking for log10l declaration" >&5
19976 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19977 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19978 echo $ac_n "(cached) $ac_c" 1>&6
19979 else
19982 ac_ext=C
19983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19984 ac_cpp='$CXXCPP $CPPFLAGS'
19985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19987 cross_compiling=$ac_cv_prog_cxx_cross
19989 cat > conftest.$ac_ext <<EOF
19990 #line 19991 "configure"
19991 #include "confdefs.h"
19992 #include <math.h>
19993 #ifdef HAVE_IEEEFP_H
19994 #include <ieeefp.h>
19995 #endif
19997 int main() {
19998 log10l(0);
19999 ; return 0; }
20001 if { (eval echo configure:20002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20002 rm -rf conftest*
20003 glibcpp_cv_func_log10l_use=yes
20004 else
20005 echo "configure: failed program was:" >&5
20006 cat conftest.$ac_ext >&5
20007 rm -rf conftest*
20008 glibcpp_cv_func_log10l_use=no
20010 rm -f conftest*
20011 ac_ext=c
20012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20016 cross_compiling=$ac_cv_prog_cc_cross
20022 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20024 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20025 for ac_func in log10l
20027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20028 echo "configure:20029: checking for $ac_func" >&5
20029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20030 echo $ac_n "(cached) $ac_c" 1>&6
20031 else
20032 cat > conftest.$ac_ext <<EOF
20033 #line 20034 "configure"
20034 #include "confdefs.h"
20035 /* System header to define __stub macros and hopefully few prototypes,
20036 which can conflict with char $ac_func(); below. */
20037 #include <assert.h>
20038 /* Override any gcc2 internal prototype to avoid an error. */
20039 /* We use char because int might match the return type of a gcc2
20040 builtin and then its argument prototype would still apply. */
20041 char $ac_func();
20043 int main() {
20045 /* The GNU C library defines this for functions which it implements
20046 to always fail with ENOSYS. Some functions are actually named
20047 something starting with __ and the normal name is an alias. */
20048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20049 choke me
20050 #else
20051 $ac_func();
20052 #endif
20054 ; return 0; }
20056 if { (eval echo configure:20057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20057 rm -rf conftest*
20058 eval "ac_cv_func_$ac_func=yes"
20059 else
20060 echo "configure: failed program was:" >&5
20061 cat conftest.$ac_ext >&5
20062 rm -rf conftest*
20063 eval "ac_cv_func_$ac_func=no"
20065 rm -f conftest*
20068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20069 echo "$ac_t""yes" 1>&6
20070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20071 cat >> confdefs.h <<EOF
20072 #define $ac_tr_func 1
20075 else
20076 echo "$ac_t""no" 1>&6
20078 done
20080 else
20082 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20083 echo "configure:20084: checking for _log10l declaration" >&5
20084 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20085 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20086 echo $ac_n "(cached) $ac_c" 1>&6
20087 else
20090 ac_ext=C
20091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20092 ac_cpp='$CXXCPP $CPPFLAGS'
20093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20095 cross_compiling=$ac_cv_prog_cxx_cross
20097 cat > conftest.$ac_ext <<EOF
20098 #line 20099 "configure"
20099 #include "confdefs.h"
20100 #include <math.h>
20101 #ifdef HAVE_IEEEFP_H
20102 #include <ieeefp.h>
20103 #endif
20105 int main() {
20106 _log10l(0);
20107 ; return 0; }
20109 if { (eval echo configure:20110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20110 rm -rf conftest*
20111 glibcpp_cv_func__log10l_use=yes
20112 else
20113 echo "configure: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20115 rm -rf conftest*
20116 glibcpp_cv_func__log10l_use=no
20118 rm -f conftest*
20119 ac_ext=c
20120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20124 cross_compiling=$ac_cv_prog_cc_cross
20130 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20132 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20133 for ac_func in _log10l
20135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20136 echo "configure:20137: checking for $ac_func" >&5
20137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20138 echo $ac_n "(cached) $ac_c" 1>&6
20139 else
20140 cat > conftest.$ac_ext <<EOF
20141 #line 20142 "configure"
20142 #include "confdefs.h"
20143 /* System header to define __stub macros and hopefully few prototypes,
20144 which can conflict with char $ac_func(); below. */
20145 #include <assert.h>
20146 /* Override any gcc2 internal prototype to avoid an error. */
20147 /* We use char because int might match the return type of a gcc2
20148 builtin and then its argument prototype would still apply. */
20149 char $ac_func();
20151 int main() {
20153 /* The GNU C library defines this for functions which it implements
20154 to always fail with ENOSYS. Some functions are actually named
20155 something starting with __ and the normal name is an alias. */
20156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20157 choke me
20158 #else
20159 $ac_func();
20160 #endif
20162 ; return 0; }
20164 if { (eval echo configure:20165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20165 rm -rf conftest*
20166 eval "ac_cv_func_$ac_func=yes"
20167 else
20168 echo "configure: failed program was:" >&5
20169 cat conftest.$ac_ext >&5
20170 rm -rf conftest*
20171 eval "ac_cv_func_$ac_func=no"
20173 rm -f conftest*
20176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20177 echo "$ac_t""yes" 1>&6
20178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20179 cat >> confdefs.h <<EOF
20180 #define $ac_tr_func 1
20183 else
20184 echo "$ac_t""no" 1>&6
20186 done
20193 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20194 echo "configure:20195: checking for modfl declaration" >&5
20195 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20196 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20197 echo $ac_n "(cached) $ac_c" 1>&6
20198 else
20201 ac_ext=C
20202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20203 ac_cpp='$CXXCPP $CPPFLAGS'
20204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20206 cross_compiling=$ac_cv_prog_cxx_cross
20208 cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20211 #include <math.h>
20212 int main() {
20213 modfl(0, 0);
20214 ; return 0; }
20216 if { (eval echo configure:20217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20217 rm -rf conftest*
20218 glibcpp_cv_func_modfl_use=yes
20219 else
20220 echo "configure: failed program was:" >&5
20221 cat conftest.$ac_ext >&5
20222 rm -rf conftest*
20223 glibcpp_cv_func_modfl_use=no
20225 rm -f conftest*
20226 ac_ext=c
20227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20228 ac_cpp='$CPP $CPPFLAGS'
20229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20231 cross_compiling=$ac_cv_prog_cc_cross
20237 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20239 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20240 for ac_func in modfl
20242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20243 echo "configure:20244: checking for $ac_func" >&5
20244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20245 echo $ac_n "(cached) $ac_c" 1>&6
20246 else
20247 cat > conftest.$ac_ext <<EOF
20248 #line 20249 "configure"
20249 #include "confdefs.h"
20250 /* System header to define __stub macros and hopefully few prototypes,
20251 which can conflict with char $ac_func(); below. */
20252 #include <assert.h>
20253 /* Override any gcc2 internal prototype to avoid an error. */
20254 /* We use char because int might match the return type of a gcc2
20255 builtin and then its argument prototype would still apply. */
20256 char $ac_func();
20258 int main() {
20260 /* The GNU C library defines this for functions which it implements
20261 to always fail with ENOSYS. Some functions are actually named
20262 something starting with __ and the normal name is an alias. */
20263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20264 choke me
20265 #else
20266 $ac_func();
20267 #endif
20269 ; return 0; }
20271 if { (eval echo configure:20272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20272 rm -rf conftest*
20273 eval "ac_cv_func_$ac_func=yes"
20274 else
20275 echo "configure: failed program was:" >&5
20276 cat conftest.$ac_ext >&5
20277 rm -rf conftest*
20278 eval "ac_cv_func_$ac_func=no"
20280 rm -f conftest*
20283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20284 echo "$ac_t""yes" 1>&6
20285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20286 cat >> confdefs.h <<EOF
20287 #define $ac_tr_func 1
20290 else
20291 echo "$ac_t""no" 1>&6
20293 done
20295 else
20297 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20298 echo "configure:20299: checking for _modfl declaration" >&5
20299 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20300 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20301 echo $ac_n "(cached) $ac_c" 1>&6
20302 else
20305 ac_ext=C
20306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20307 ac_cpp='$CXXCPP $CPPFLAGS'
20308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20310 cross_compiling=$ac_cv_prog_cxx_cross
20312 cat > conftest.$ac_ext <<EOF
20313 #line 20314 "configure"
20314 #include "confdefs.h"
20315 #include <math.h>
20316 int main() {
20317 _modfl(0, 0);
20318 ; return 0; }
20320 if { (eval echo configure:20321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20321 rm -rf conftest*
20322 glibcpp_cv_func__modfl_use=yes
20323 else
20324 echo "configure: failed program was:" >&5
20325 cat conftest.$ac_ext >&5
20326 rm -rf conftest*
20327 glibcpp_cv_func__modfl_use=no
20329 rm -f conftest*
20330 ac_ext=c
20331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20335 cross_compiling=$ac_cv_prog_cc_cross
20341 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20343 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20344 for ac_func in _modfl
20346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20347 echo "configure:20348: checking for $ac_func" >&5
20348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20349 echo $ac_n "(cached) $ac_c" 1>&6
20350 else
20351 cat > conftest.$ac_ext <<EOF
20352 #line 20353 "configure"
20353 #include "confdefs.h"
20354 /* System header to define __stub macros and hopefully few prototypes,
20355 which can conflict with char $ac_func(); below. */
20356 #include <assert.h>
20357 /* Override any gcc2 internal prototype to avoid an error. */
20358 /* We use char because int might match the return type of a gcc2
20359 builtin and then its argument prototype would still apply. */
20360 char $ac_func();
20362 int main() {
20364 /* The GNU C library defines this for functions which it implements
20365 to always fail with ENOSYS. Some functions are actually named
20366 something starting with __ and the normal name is an alias. */
20367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20368 choke me
20369 #else
20370 $ac_func();
20371 #endif
20373 ; return 0; }
20375 if { (eval echo configure:20376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20376 rm -rf conftest*
20377 eval "ac_cv_func_$ac_func=yes"
20378 else
20379 echo "configure: failed program was:" >&5
20380 cat conftest.$ac_ext >&5
20381 rm -rf conftest*
20382 eval "ac_cv_func_$ac_func=no"
20384 rm -f conftest*
20387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20388 echo "$ac_t""yes" 1>&6
20389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20390 cat >> confdefs.h <<EOF
20391 #define $ac_tr_func 1
20394 else
20395 echo "$ac_t""no" 1>&6
20397 done
20404 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20405 echo "configure:20406: checking for powl declaration" >&5
20406 if test x${glibcpp_cv_func_powl_use+set} != xset; then
20407 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20408 echo $ac_n "(cached) $ac_c" 1>&6
20409 else
20412 ac_ext=C
20413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20414 ac_cpp='$CXXCPP $CPPFLAGS'
20415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20417 cross_compiling=$ac_cv_prog_cxx_cross
20419 cat > conftest.$ac_ext <<EOF
20420 #line 20421 "configure"
20421 #include "confdefs.h"
20422 #include <math.h>
20423 int main() {
20424 powl(0, 0);
20425 ; return 0; }
20427 if { (eval echo configure:20428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20428 rm -rf conftest*
20429 glibcpp_cv_func_powl_use=yes
20430 else
20431 echo "configure: failed program was:" >&5
20432 cat conftest.$ac_ext >&5
20433 rm -rf conftest*
20434 glibcpp_cv_func_powl_use=no
20436 rm -f conftest*
20437 ac_ext=c
20438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20442 cross_compiling=$ac_cv_prog_cc_cross
20448 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20450 if test x$glibcpp_cv_func_powl_use = x"yes"; then
20451 for ac_func in powl
20453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20454 echo "configure:20455: checking for $ac_func" >&5
20455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20456 echo $ac_n "(cached) $ac_c" 1>&6
20457 else
20458 cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20461 /* System header to define __stub macros and hopefully few prototypes,
20462 which can conflict with char $ac_func(); below. */
20463 #include <assert.h>
20464 /* Override any gcc2 internal prototype to avoid an error. */
20465 /* We use char because int might match the return type of a gcc2
20466 builtin and then its argument prototype would still apply. */
20467 char $ac_func();
20469 int main() {
20471 /* The GNU C library defines this for functions which it implements
20472 to always fail with ENOSYS. Some functions are actually named
20473 something starting with __ and the normal name is an alias. */
20474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20475 choke me
20476 #else
20477 $ac_func();
20478 #endif
20480 ; return 0; }
20482 if { (eval echo configure:20483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20483 rm -rf conftest*
20484 eval "ac_cv_func_$ac_func=yes"
20485 else
20486 echo "configure: failed program was:" >&5
20487 cat conftest.$ac_ext >&5
20488 rm -rf conftest*
20489 eval "ac_cv_func_$ac_func=no"
20491 rm -f conftest*
20494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20495 echo "$ac_t""yes" 1>&6
20496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20497 cat >> confdefs.h <<EOF
20498 #define $ac_tr_func 1
20501 else
20502 echo "$ac_t""no" 1>&6
20504 done
20506 else
20508 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20509 echo "configure:20510: checking for _powl declaration" >&5
20510 if test x${glibcpp_cv_func__powl_use+set} != xset; then
20511 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20512 echo $ac_n "(cached) $ac_c" 1>&6
20513 else
20516 ac_ext=C
20517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20521 cross_compiling=$ac_cv_prog_cxx_cross
20523 cat > conftest.$ac_ext <<EOF
20524 #line 20525 "configure"
20525 #include "confdefs.h"
20526 #include <math.h>
20527 int main() {
20528 _powl(0, 0);
20529 ; return 0; }
20531 if { (eval echo configure:20532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20532 rm -rf conftest*
20533 glibcpp_cv_func__powl_use=yes
20534 else
20535 echo "configure: failed program was:" >&5
20536 cat conftest.$ac_ext >&5
20537 rm -rf conftest*
20538 glibcpp_cv_func__powl_use=no
20540 rm -f conftest*
20541 ac_ext=c
20542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20543 ac_cpp='$CPP $CPPFLAGS'
20544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20546 cross_compiling=$ac_cv_prog_cc_cross
20552 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20554 if test x$glibcpp_cv_func__powl_use = x"yes"; then
20555 for ac_func in _powl
20557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20558 echo "configure:20559: checking for $ac_func" >&5
20559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20560 echo $ac_n "(cached) $ac_c" 1>&6
20561 else
20562 cat > conftest.$ac_ext <<EOF
20563 #line 20564 "configure"
20564 #include "confdefs.h"
20565 /* System header to define __stub macros and hopefully few prototypes,
20566 which can conflict with char $ac_func(); below. */
20567 #include <assert.h>
20568 /* Override any gcc2 internal prototype to avoid an error. */
20569 /* We use char because int might match the return type of a gcc2
20570 builtin and then its argument prototype would still apply. */
20571 char $ac_func();
20573 int main() {
20575 /* The GNU C library defines this for functions which it implements
20576 to always fail with ENOSYS. Some functions are actually named
20577 something starting with __ and the normal name is an alias. */
20578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20579 choke me
20580 #else
20581 $ac_func();
20582 #endif
20584 ; return 0; }
20586 if { (eval echo configure:20587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20587 rm -rf conftest*
20588 eval "ac_cv_func_$ac_func=yes"
20589 else
20590 echo "configure: failed program was:" >&5
20591 cat conftest.$ac_ext >&5
20592 rm -rf conftest*
20593 eval "ac_cv_func_$ac_func=no"
20595 rm -f conftest*
20598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20599 echo "$ac_t""yes" 1>&6
20600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20601 cat >> confdefs.h <<EOF
20602 #define $ac_tr_func 1
20605 else
20606 echo "$ac_t""no" 1>&6
20608 done
20615 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20616 echo "configure:20617: checking for sqrtl declaration" >&5
20617 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20618 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20619 echo $ac_n "(cached) $ac_c" 1>&6
20620 else
20623 ac_ext=C
20624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20625 ac_cpp='$CXXCPP $CPPFLAGS'
20626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20628 cross_compiling=$ac_cv_prog_cxx_cross
20630 cat > conftest.$ac_ext <<EOF
20631 #line 20632 "configure"
20632 #include "confdefs.h"
20633 #include <math.h>
20634 #ifdef HAVE_IEEEFP_H
20635 #include <ieeefp.h>
20636 #endif
20638 int main() {
20639 sqrtl(0);
20640 ; return 0; }
20642 if { (eval echo configure:20643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20643 rm -rf conftest*
20644 glibcpp_cv_func_sqrtl_use=yes
20645 else
20646 echo "configure: failed program was:" >&5
20647 cat conftest.$ac_ext >&5
20648 rm -rf conftest*
20649 glibcpp_cv_func_sqrtl_use=no
20651 rm -f conftest*
20652 ac_ext=c
20653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20654 ac_cpp='$CPP $CPPFLAGS'
20655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20657 cross_compiling=$ac_cv_prog_cc_cross
20663 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20665 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20666 for ac_func in sqrtl
20668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20669 echo "configure:20670: checking for $ac_func" >&5
20670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20671 echo $ac_n "(cached) $ac_c" 1>&6
20672 else
20673 cat > conftest.$ac_ext <<EOF
20674 #line 20675 "configure"
20675 #include "confdefs.h"
20676 /* System header to define __stub macros and hopefully few prototypes,
20677 which can conflict with char $ac_func(); below. */
20678 #include <assert.h>
20679 /* Override any gcc2 internal prototype to avoid an error. */
20680 /* We use char because int might match the return type of a gcc2
20681 builtin and then its argument prototype would still apply. */
20682 char $ac_func();
20684 int main() {
20686 /* The GNU C library defines this for functions which it implements
20687 to always fail with ENOSYS. Some functions are actually named
20688 something starting with __ and the normal name is an alias. */
20689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20690 choke me
20691 #else
20692 $ac_func();
20693 #endif
20695 ; return 0; }
20697 if { (eval echo configure:20698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20698 rm -rf conftest*
20699 eval "ac_cv_func_$ac_func=yes"
20700 else
20701 echo "configure: failed program was:" >&5
20702 cat conftest.$ac_ext >&5
20703 rm -rf conftest*
20704 eval "ac_cv_func_$ac_func=no"
20706 rm -f conftest*
20709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20710 echo "$ac_t""yes" 1>&6
20711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20712 cat >> confdefs.h <<EOF
20713 #define $ac_tr_func 1
20716 else
20717 echo "$ac_t""no" 1>&6
20719 done
20721 else
20723 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20724 echo "configure:20725: checking for _sqrtl declaration" >&5
20725 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20726 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20727 echo $ac_n "(cached) $ac_c" 1>&6
20728 else
20731 ac_ext=C
20732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20733 ac_cpp='$CXXCPP $CPPFLAGS'
20734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20736 cross_compiling=$ac_cv_prog_cxx_cross
20738 cat > conftest.$ac_ext <<EOF
20739 #line 20740 "configure"
20740 #include "confdefs.h"
20741 #include <math.h>
20742 #ifdef HAVE_IEEEFP_H
20743 #include <ieeefp.h>
20744 #endif
20746 int main() {
20747 _sqrtl(0);
20748 ; return 0; }
20750 if { (eval echo configure:20751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20751 rm -rf conftest*
20752 glibcpp_cv_func__sqrtl_use=yes
20753 else
20754 echo "configure: failed program was:" >&5
20755 cat conftest.$ac_ext >&5
20756 rm -rf conftest*
20757 glibcpp_cv_func__sqrtl_use=no
20759 rm -f conftest*
20760 ac_ext=c
20761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20762 ac_cpp='$CPP $CPPFLAGS'
20763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20765 cross_compiling=$ac_cv_prog_cc_cross
20771 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20773 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20774 for ac_func in _sqrtl
20776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20777 echo "configure:20778: checking for $ac_func" >&5
20778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20779 echo $ac_n "(cached) $ac_c" 1>&6
20780 else
20781 cat > conftest.$ac_ext <<EOF
20782 #line 20783 "configure"
20783 #include "confdefs.h"
20784 /* System header to define __stub macros and hopefully few prototypes,
20785 which can conflict with char $ac_func(); below. */
20786 #include <assert.h>
20787 /* Override any gcc2 internal prototype to avoid an error. */
20788 /* We use char because int might match the return type of a gcc2
20789 builtin and then its argument prototype would still apply. */
20790 char $ac_func();
20792 int main() {
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20798 choke me
20799 #else
20800 $ac_func();
20801 #endif
20803 ; return 0; }
20805 if { (eval echo configure:20806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20806 rm -rf conftest*
20807 eval "ac_cv_func_$ac_func=yes"
20808 else
20809 echo "configure: failed program was:" >&5
20810 cat conftest.$ac_ext >&5
20811 rm -rf conftest*
20812 eval "ac_cv_func_$ac_func=no"
20814 rm -f conftest*
20817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20818 echo "$ac_t""yes" 1>&6
20819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20820 cat >> confdefs.h <<EOF
20821 #define $ac_tr_func 1
20824 else
20825 echo "$ac_t""no" 1>&6
20827 done
20834 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20835 echo "configure:20836: checking for sincosl declaration" >&5
20836 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20837 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20838 echo $ac_n "(cached) $ac_c" 1>&6
20839 else
20842 ac_ext=C
20843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20844 ac_cpp='$CXXCPP $CPPFLAGS'
20845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20847 cross_compiling=$ac_cv_prog_cxx_cross
20849 cat > conftest.$ac_ext <<EOF
20850 #line 20851 "configure"
20851 #include "confdefs.h"
20852 #include <math.h>
20853 int main() {
20854 sincosl(0, 0, 0);
20855 ; return 0; }
20857 if { (eval echo configure:20858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20858 rm -rf conftest*
20859 glibcpp_cv_func_sincosl_use=yes
20860 else
20861 echo "configure: failed program was:" >&5
20862 cat conftest.$ac_ext >&5
20863 rm -rf conftest*
20864 glibcpp_cv_func_sincosl_use=no
20866 rm -f conftest*
20867 ac_ext=c
20868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20869 ac_cpp='$CPP $CPPFLAGS'
20870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20872 cross_compiling=$ac_cv_prog_cc_cross
20878 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20880 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20881 for ac_func in sincosl
20883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20884 echo "configure:20885: checking for $ac_func" >&5
20885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20886 echo $ac_n "(cached) $ac_c" 1>&6
20887 else
20888 cat > conftest.$ac_ext <<EOF
20889 #line 20890 "configure"
20890 #include "confdefs.h"
20891 /* System header to define __stub macros and hopefully few prototypes,
20892 which can conflict with char $ac_func(); below. */
20893 #include <assert.h>
20894 /* Override any gcc2 internal prototype to avoid an error. */
20895 /* We use char because int might match the return type of a gcc2
20896 builtin and then its argument prototype would still apply. */
20897 char $ac_func();
20899 int main() {
20901 /* The GNU C library defines this for functions which it implements
20902 to always fail with ENOSYS. Some functions are actually named
20903 something starting with __ and the normal name is an alias. */
20904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20905 choke me
20906 #else
20907 $ac_func();
20908 #endif
20910 ; return 0; }
20912 if { (eval echo configure:20913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20913 rm -rf conftest*
20914 eval "ac_cv_func_$ac_func=yes"
20915 else
20916 echo "configure: failed program was:" >&5
20917 cat conftest.$ac_ext >&5
20918 rm -rf conftest*
20919 eval "ac_cv_func_$ac_func=no"
20921 rm -f conftest*
20924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20925 echo "$ac_t""yes" 1>&6
20926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20927 cat >> confdefs.h <<EOF
20928 #define $ac_tr_func 1
20931 else
20932 echo "$ac_t""no" 1>&6
20934 done
20936 else
20938 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20939 echo "configure:20940: checking for _sincosl declaration" >&5
20940 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20941 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20942 echo $ac_n "(cached) $ac_c" 1>&6
20943 else
20946 ac_ext=C
20947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20951 cross_compiling=$ac_cv_prog_cxx_cross
20953 cat > conftest.$ac_ext <<EOF
20954 #line 20955 "configure"
20955 #include "confdefs.h"
20956 #include <math.h>
20957 int main() {
20958 _sincosl(0, 0, 0);
20959 ; return 0; }
20961 if { (eval echo configure:20962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20962 rm -rf conftest*
20963 glibcpp_cv_func__sincosl_use=yes
20964 else
20965 echo "configure: failed program was:" >&5
20966 cat conftest.$ac_ext >&5
20967 rm -rf conftest*
20968 glibcpp_cv_func__sincosl_use=no
20970 rm -f conftest*
20971 ac_ext=c
20972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20973 ac_cpp='$CPP $CPPFLAGS'
20974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20976 cross_compiling=$ac_cv_prog_cc_cross
20982 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20984 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20985 for ac_func in _sincosl
20987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20988 echo "configure:20989: checking for $ac_func" >&5
20989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20990 echo $ac_n "(cached) $ac_c" 1>&6
20991 else
20992 cat > conftest.$ac_ext <<EOF
20993 #line 20994 "configure"
20994 #include "confdefs.h"
20995 /* System header to define __stub macros and hopefully few prototypes,
20996 which can conflict with char $ac_func(); below. */
20997 #include <assert.h>
20998 /* Override any gcc2 internal prototype to avoid an error. */
20999 /* We use char because int might match the return type of a gcc2
21000 builtin and then its argument prototype would still apply. */
21001 char $ac_func();
21003 int main() {
21005 /* The GNU C library defines this for functions which it implements
21006 to always fail with ENOSYS. Some functions are actually named
21007 something starting with __ and the normal name is an alias. */
21008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21009 choke me
21010 #else
21011 $ac_func();
21012 #endif
21014 ; return 0; }
21016 if { (eval echo configure:21017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21017 rm -rf conftest*
21018 eval "ac_cv_func_$ac_func=yes"
21019 else
21020 echo "configure: failed program was:" >&5
21021 cat conftest.$ac_ext >&5
21022 rm -rf conftest*
21023 eval "ac_cv_func_$ac_func=no"
21025 rm -f conftest*
21028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21029 echo "$ac_t""yes" 1>&6
21030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21031 cat >> confdefs.h <<EOF
21032 #define $ac_tr_func 1
21035 else
21036 echo "$ac_t""no" 1>&6
21038 done
21045 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21046 echo "configure:21047: checking for finitel declaration" >&5
21047 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21048 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21049 echo $ac_n "(cached) $ac_c" 1>&6
21050 else
21053 ac_ext=C
21054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21055 ac_cpp='$CXXCPP $CPPFLAGS'
21056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21058 cross_compiling=$ac_cv_prog_cxx_cross
21060 cat > conftest.$ac_ext <<EOF
21061 #line 21062 "configure"
21062 #include "confdefs.h"
21063 #include <math.h>
21064 #ifdef HAVE_IEEEFP_H
21065 #include <ieeefp.h>
21066 #endif
21068 int main() {
21069 finitel(0);
21070 ; return 0; }
21072 if { (eval echo configure:21073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21073 rm -rf conftest*
21074 glibcpp_cv_func_finitel_use=yes
21075 else
21076 echo "configure: failed program was:" >&5
21077 cat conftest.$ac_ext >&5
21078 rm -rf conftest*
21079 glibcpp_cv_func_finitel_use=no
21081 rm -f conftest*
21082 ac_ext=c
21083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21087 cross_compiling=$ac_cv_prog_cc_cross
21093 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21095 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21096 for ac_func in finitel
21098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21099 echo "configure:21100: checking for $ac_func" >&5
21100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21101 echo $ac_n "(cached) $ac_c" 1>&6
21102 else
21103 cat > conftest.$ac_ext <<EOF
21104 #line 21105 "configure"
21105 #include "confdefs.h"
21106 /* System header to define __stub macros and hopefully few prototypes,
21107 which can conflict with char $ac_func(); below. */
21108 #include <assert.h>
21109 /* Override any gcc2 internal prototype to avoid an error. */
21110 /* We use char because int might match the return type of a gcc2
21111 builtin and then its argument prototype would still apply. */
21112 char $ac_func();
21114 int main() {
21116 /* The GNU C library defines this for functions which it implements
21117 to always fail with ENOSYS. Some functions are actually named
21118 something starting with __ and the normal name is an alias. */
21119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21120 choke me
21121 #else
21122 $ac_func();
21123 #endif
21125 ; return 0; }
21127 if { (eval echo configure:21128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21128 rm -rf conftest*
21129 eval "ac_cv_func_$ac_func=yes"
21130 else
21131 echo "configure: failed program was:" >&5
21132 cat conftest.$ac_ext >&5
21133 rm -rf conftest*
21134 eval "ac_cv_func_$ac_func=no"
21136 rm -f conftest*
21139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21140 echo "$ac_t""yes" 1>&6
21141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21142 cat >> confdefs.h <<EOF
21143 #define $ac_tr_func 1
21146 else
21147 echo "$ac_t""no" 1>&6
21149 done
21151 else
21153 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21154 echo "configure:21155: checking for _finitel declaration" >&5
21155 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21156 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21157 echo $ac_n "(cached) $ac_c" 1>&6
21158 else
21161 ac_ext=C
21162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21163 ac_cpp='$CXXCPP $CPPFLAGS'
21164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21166 cross_compiling=$ac_cv_prog_cxx_cross
21168 cat > conftest.$ac_ext <<EOF
21169 #line 21170 "configure"
21170 #include "confdefs.h"
21171 #include <math.h>
21172 #ifdef HAVE_IEEEFP_H
21173 #include <ieeefp.h>
21174 #endif
21176 int main() {
21177 _finitel(0);
21178 ; return 0; }
21180 if { (eval echo configure:21181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21181 rm -rf conftest*
21182 glibcpp_cv_func__finitel_use=yes
21183 else
21184 echo "configure: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21186 rm -rf conftest*
21187 glibcpp_cv_func__finitel_use=no
21189 rm -f conftest*
21190 ac_ext=c
21191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21195 cross_compiling=$ac_cv_prog_cc_cross
21201 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21203 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21204 for ac_func in _finitel
21206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21207 echo "configure:21208: checking for $ac_func" >&5
21208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21209 echo $ac_n "(cached) $ac_c" 1>&6
21210 else
21211 cat > conftest.$ac_ext <<EOF
21212 #line 21213 "configure"
21213 #include "confdefs.h"
21214 /* System header to define __stub macros and hopefully few prototypes,
21215 which can conflict with char $ac_func(); below. */
21216 #include <assert.h>
21217 /* Override any gcc2 internal prototype to avoid an error. */
21218 /* We use char because int might match the return type of a gcc2
21219 builtin and then its argument prototype would still apply. */
21220 char $ac_func();
21222 int main() {
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21228 choke me
21229 #else
21230 $ac_func();
21231 #endif
21233 ; return 0; }
21235 if { (eval echo configure:21236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21236 rm -rf conftest*
21237 eval "ac_cv_func_$ac_func=yes"
21238 else
21239 echo "configure: failed program was:" >&5
21240 cat conftest.$ac_ext >&5
21241 rm -rf conftest*
21242 eval "ac_cv_func_$ac_func=no"
21244 rm -f conftest*
21247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21248 echo "$ac_t""yes" 1>&6
21249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21250 cat >> confdefs.h <<EOF
21251 #define $ac_tr_func 1
21254 else
21255 echo "$ac_t""no" 1>&6
21257 done
21265 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21266 echo "configure:21267: checking for _float trig functions" >&5
21267 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21268 echo $ac_n "(cached) $ac_c" 1>&6
21269 else
21272 ac_ext=C
21273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21274 ac_cpp='$CXXCPP $CPPFLAGS'
21275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21277 cross_compiling=$ac_cv_prog_cxx_cross
21279 cat > conftest.$ac_ext <<EOF
21280 #line 21281 "configure"
21281 #include "confdefs.h"
21282 #include <math.h>
21283 int main() {
21284 `for x in _acosf _asinf _atanf \
21285 _cosf _sinf _tanf \
21286 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21287 ; return 0; }
21289 if { (eval echo configure:21290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21290 rm -rf conftest*
21291 glibcpp_cv_func__float_trig_use=yes
21292 else
21293 echo "configure: failed program was:" >&5
21294 cat conftest.$ac_ext >&5
21295 rm -rf conftest*
21296 glibcpp_cv_func__float_trig_use=no
21298 rm -f conftest*
21299 ac_ext=c
21300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21301 ac_cpp='$CPP $CPPFLAGS'
21302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21304 cross_compiling=$ac_cv_prog_cc_cross
21308 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21309 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21310 for ac_func in _acosf _asinf _atanf \
21311 _cosf _sinf _tanf \
21312 _coshf _sinhf _tanhf
21314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21315 echo "configure:21316: checking for $ac_func" >&5
21316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21317 echo $ac_n "(cached) $ac_c" 1>&6
21318 else
21319 cat > conftest.$ac_ext <<EOF
21320 #line 21321 "configure"
21321 #include "confdefs.h"
21322 /* System header to define __stub macros and hopefully few prototypes,
21323 which can conflict with char $ac_func(); below. */
21324 #include <assert.h>
21325 /* Override any gcc2 internal prototype to avoid an error. */
21326 /* We use char because int might match the return type of a gcc2
21327 builtin and then its argument prototype would still apply. */
21328 char $ac_func();
21330 int main() {
21332 /* The GNU C library defines this for functions which it implements
21333 to always fail with ENOSYS. Some functions are actually named
21334 something starting with __ and the normal name is an alias. */
21335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21336 choke me
21337 #else
21338 $ac_func();
21339 #endif
21341 ; return 0; }
21343 if { (eval echo configure:21344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21344 rm -rf conftest*
21345 eval "ac_cv_func_$ac_func=yes"
21346 else
21347 echo "configure: failed program was:" >&5
21348 cat conftest.$ac_ext >&5
21349 rm -rf conftest*
21350 eval "ac_cv_func_$ac_func=no"
21352 rm -f conftest*
21355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21356 echo "$ac_t""yes" 1>&6
21357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21358 cat >> confdefs.h <<EOF
21359 #define $ac_tr_func 1
21362 else
21363 echo "$ac_t""no" 1>&6
21365 done
21370 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21371 echo "configure:21372: checking for _float round functions" >&5
21372 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21373 echo $ac_n "(cached) $ac_c" 1>&6
21374 else
21377 ac_ext=C
21378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21379 ac_cpp='$CXXCPP $CPPFLAGS'
21380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21382 cross_compiling=$ac_cv_prog_cxx_cross
21384 cat > conftest.$ac_ext <<EOF
21385 #line 21386 "configure"
21386 #include "confdefs.h"
21387 #include <math.h>
21388 int main() {
21389 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21390 ; return 0; }
21392 if { (eval echo configure:21393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21393 rm -rf conftest*
21394 glibcpp_cv_func__float_round_use=yes
21395 else
21396 echo "configure: failed program was:" >&5
21397 cat conftest.$ac_ext >&5
21398 rm -rf conftest*
21399 glibcpp_cv_func__float_round_use=no
21401 rm -f conftest*
21402 ac_ext=c
21403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21407 cross_compiling=$ac_cv_prog_cc_cross
21411 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21412 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21413 for ac_func in _ceilf _floorf
21415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21416 echo "configure:21417: checking for $ac_func" >&5
21417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21418 echo $ac_n "(cached) $ac_c" 1>&6
21419 else
21420 cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 /* System header to define __stub macros and hopefully few prototypes,
21424 which can conflict with char $ac_func(); below. */
21425 #include <assert.h>
21426 /* Override any gcc2 internal prototype to avoid an error. */
21427 /* We use char because int might match the return type of a gcc2
21428 builtin and then its argument prototype would still apply. */
21429 char $ac_func();
21431 int main() {
21433 /* The GNU C library defines this for functions which it implements
21434 to always fail with ENOSYS. Some functions are actually named
21435 something starting with __ and the normal name is an alias. */
21436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21437 choke me
21438 #else
21439 $ac_func();
21440 #endif
21442 ; return 0; }
21444 if { (eval echo configure:21445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21445 rm -rf conftest*
21446 eval "ac_cv_func_$ac_func=yes"
21447 else
21448 echo "configure: failed program was:" >&5
21449 cat conftest.$ac_ext >&5
21450 rm -rf conftest*
21451 eval "ac_cv_func_$ac_func=no"
21453 rm -f conftest*
21456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21457 echo "$ac_t""yes" 1>&6
21458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21459 cat >> confdefs.h <<EOF
21460 #define $ac_tr_func 1
21463 else
21464 echo "$ac_t""no" 1>&6
21466 done
21472 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21473 echo "configure:21474: checking for _long double trig functions" >&5
21474 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21475 echo $ac_n "(cached) $ac_c" 1>&6
21476 else
21479 ac_ext=C
21480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21481 ac_cpp='$CXXCPP $CPPFLAGS'
21482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21484 cross_compiling=$ac_cv_prog_cxx_cross
21486 cat > conftest.$ac_ext <<EOF
21487 #line 21488 "configure"
21488 #include "confdefs.h"
21489 #include <math.h>
21490 int main() {
21491 `for x in _acosl _asinl _atanl \
21492 _cosl _sinl _tanl \
21493 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21494 ; return 0; }
21496 if { (eval echo configure:21497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21497 rm -rf conftest*
21498 glibcpp_cv_func__long_double_trig_use=yes
21499 else
21500 echo "configure: failed program was:" >&5
21501 cat conftest.$ac_ext >&5
21502 rm -rf conftest*
21503 glibcpp_cv_func__long_double_trig_use=no
21505 rm -f conftest*
21506 ac_ext=c
21507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21511 cross_compiling=$ac_cv_prog_cc_cross
21515 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21516 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21517 for ac_func in _acosl _asinl _atanl \
21518 _cosl _sinl _tanl \
21519 _coshl _sinhl _tanhl
21521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21522 echo "configure:21523: checking for $ac_func" >&5
21523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21524 echo $ac_n "(cached) $ac_c" 1>&6
21525 else
21526 cat > conftest.$ac_ext <<EOF
21527 #line 21528 "configure"
21528 #include "confdefs.h"
21529 /* System header to define __stub macros and hopefully few prototypes,
21530 which can conflict with char $ac_func(); below. */
21531 #include <assert.h>
21532 /* Override any gcc2 internal prototype to avoid an error. */
21533 /* We use char because int might match the return type of a gcc2
21534 builtin and then its argument prototype would still apply. */
21535 char $ac_func();
21537 int main() {
21539 /* The GNU C library defines this for functions which it implements
21540 to always fail with ENOSYS. Some functions are actually named
21541 something starting with __ and the normal name is an alias. */
21542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21543 choke me
21544 #else
21545 $ac_func();
21546 #endif
21548 ; return 0; }
21550 if { (eval echo configure:21551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21551 rm -rf conftest*
21552 eval "ac_cv_func_$ac_func=yes"
21553 else
21554 echo "configure: failed program was:" >&5
21555 cat conftest.$ac_ext >&5
21556 rm -rf conftest*
21557 eval "ac_cv_func_$ac_func=no"
21559 rm -f conftest*
21562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21563 echo "$ac_t""yes" 1>&6
21564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21565 cat >> confdefs.h <<EOF
21566 #define $ac_tr_func 1
21569 else
21570 echo "$ac_t""no" 1>&6
21572 done
21577 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21578 echo "configure:21579: checking for _long double round functions" >&5
21579 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21580 echo $ac_n "(cached) $ac_c" 1>&6
21581 else
21584 ac_ext=C
21585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21586 ac_cpp='$CXXCPP $CPPFLAGS'
21587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21589 cross_compiling=$ac_cv_prog_cxx_cross
21591 cat > conftest.$ac_ext <<EOF
21592 #line 21593 "configure"
21593 #include "confdefs.h"
21594 #include <math.h>
21595 int main() {
21596 `for x in _ceill _floorl; do echo "$x (0);"; done`
21597 ; return 0; }
21599 if { (eval echo configure:21600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21600 rm -rf conftest*
21601 glibcpp_cv_func__long_double_round_use=yes
21602 else
21603 echo "configure: failed program was:" >&5
21604 cat conftest.$ac_ext >&5
21605 rm -rf conftest*
21606 glibcpp_cv_func__long_double_round_use=no
21608 rm -f conftest*
21609 ac_ext=c
21610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21611 ac_cpp='$CPP $CPPFLAGS'
21612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21614 cross_compiling=$ac_cv_prog_cc_cross
21618 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21619 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21620 for ac_func in _ceill _floorl
21622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21623 echo "configure:21624: checking for $ac_func" >&5
21624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21625 echo $ac_n "(cached) $ac_c" 1>&6
21626 else
21627 cat > conftest.$ac_ext <<EOF
21628 #line 21629 "configure"
21629 #include "confdefs.h"
21630 /* System header to define __stub macros and hopefully few prototypes,
21631 which can conflict with char $ac_func(); below. */
21632 #include <assert.h>
21633 /* Override any gcc2 internal prototype to avoid an error. */
21634 /* We use char because int might match the return type of a gcc2
21635 builtin and then its argument prototype would still apply. */
21636 char $ac_func();
21638 int main() {
21640 /* The GNU C library defines this for functions which it implements
21641 to always fail with ENOSYS. Some functions are actually named
21642 something starting with __ and the normal name is an alias. */
21643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21644 choke me
21645 #else
21646 $ac_func();
21647 #endif
21649 ; return 0; }
21651 if { (eval echo configure:21652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21652 rm -rf conftest*
21653 eval "ac_cv_func_$ac_func=yes"
21654 else
21655 echo "configure: failed program was:" >&5
21656 cat conftest.$ac_ext >&5
21657 rm -rf conftest*
21658 eval "ac_cv_func_$ac_func=no"
21660 rm -f conftest*
21663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21664 echo "$ac_t""yes" 1>&6
21665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21666 cat >> confdefs.h <<EOF
21667 #define $ac_tr_func 1
21670 else
21671 echo "$ac_t""no" 1>&6
21673 done
21678 LIBS="$ac_save_LIBS"
21679 CXXFLAGS="$ac_save_CXXFLAGS"
21682 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21683 echo "configure:21684: checking for main in -lm" >&5
21684 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21686 echo $ac_n "(cached) $ac_c" 1>&6
21687 else
21688 ac_save_LIBS="$LIBS"
21689 LIBS="-lm $LIBS"
21690 cat > conftest.$ac_ext <<EOF
21691 #line 21692 "configure"
21692 #include "confdefs.h"
21694 int main() {
21695 main()
21696 ; return 0; }
21698 if { (eval echo configure:21699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21699 rm -rf conftest*
21700 eval "ac_cv_lib_$ac_lib_var=yes"
21701 else
21702 echo "configure: failed program was:" >&5
21703 cat conftest.$ac_ext >&5
21704 rm -rf conftest*
21705 eval "ac_cv_lib_$ac_lib_var=no"
21707 rm -f conftest*
21708 LIBS="$ac_save_LIBS"
21711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21712 echo "$ac_t""yes" 1>&6
21713 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21715 cat >> confdefs.h <<EOF
21716 #define $ac_tr_lib 1
21719 LIBS="-lm $LIBS"
21721 else
21722 echo "$ac_t""no" 1>&6
21725 for ac_func in nan copysignf
21727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21728 echo "configure:21729: checking for $ac_func" >&5
21729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21730 echo $ac_n "(cached) $ac_c" 1>&6
21731 else
21732 cat > conftest.$ac_ext <<EOF
21733 #line 21734 "configure"
21734 #include "confdefs.h"
21735 /* System header to define __stub macros and hopefully few prototypes,
21736 which can conflict with char $ac_func(); below. */
21737 #include <assert.h>
21738 /* Override any gcc2 internal prototype to avoid an error. */
21739 /* We use char because int might match the return type of a gcc2
21740 builtin and then its argument prototype would still apply. */
21741 char $ac_func();
21743 int main() {
21745 /* The GNU C library defines this for functions which it implements
21746 to always fail with ENOSYS. Some functions are actually named
21747 something starting with __ and the normal name is an alias. */
21748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21749 choke me
21750 #else
21751 $ac_func();
21752 #endif
21754 ; return 0; }
21756 if { (eval echo configure:21757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21757 rm -rf conftest*
21758 eval "ac_cv_func_$ac_func=yes"
21759 else
21760 echo "configure: failed program was:" >&5
21761 cat conftest.$ac_ext >&5
21762 rm -rf conftest*
21763 eval "ac_cv_func_$ac_func=no"
21765 rm -f conftest*
21768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21769 echo "$ac_t""yes" 1>&6
21770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21771 cat >> confdefs.h <<EOF
21772 #define $ac_tr_func 1
21775 else
21776 echo "$ac_t""no" 1>&6
21777 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21779 done
21782 for ac_func in __signbit
21784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21785 echo "configure:21786: checking for $ac_func" >&5
21786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21787 echo $ac_n "(cached) $ac_c" 1>&6
21788 else
21789 cat > conftest.$ac_ext <<EOF
21790 #line 21791 "configure"
21791 #include "confdefs.h"
21792 /* System header to define __stub macros and hopefully few prototypes,
21793 which can conflict with char $ac_func(); below. */
21794 #include <assert.h>
21795 /* Override any gcc2 internal prototype to avoid an error. */
21796 /* We use char because int might match the return type of a gcc2
21797 builtin and then its argument prototype would still apply. */
21798 char $ac_func();
21800 int main() {
21802 /* The GNU C library defines this for functions which it implements
21803 to always fail with ENOSYS. Some functions are actually named
21804 something starting with __ and the normal name is an alias. */
21805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21806 choke me
21807 #else
21808 $ac_func();
21809 #endif
21811 ; return 0; }
21813 if { (eval echo configure:21814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21814 rm -rf conftest*
21815 eval "ac_cv_func_$ac_func=yes"
21816 else
21817 echo "configure: failed program was:" >&5
21818 cat conftest.$ac_ext >&5
21819 rm -rf conftest*
21820 eval "ac_cv_func_$ac_func=no"
21822 rm -f conftest*
21825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21826 echo "$ac_t""yes" 1>&6
21827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21828 cat >> confdefs.h <<EOF
21829 #define $ac_tr_func 1
21832 else
21833 echo "$ac_t""no" 1>&6
21834 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21836 done
21838 for ac_func in __signbitf
21840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21841 echo "configure:21842: checking for $ac_func" >&5
21842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21843 echo $ac_n "(cached) $ac_c" 1>&6
21844 else
21845 cat > conftest.$ac_ext <<EOF
21846 #line 21847 "configure"
21847 #include "confdefs.h"
21848 /* System header to define __stub macros and hopefully few prototypes,
21849 which can conflict with char $ac_func(); below. */
21850 #include <assert.h>
21851 /* Override any gcc2 internal prototype to avoid an error. */
21852 /* We use char because int might match the return type of a gcc2
21853 builtin and then its argument prototype would still apply. */
21854 char $ac_func();
21856 int main() {
21858 /* The GNU C library defines this for functions which it implements
21859 to always fail with ENOSYS. Some functions are actually named
21860 something starting with __ and the normal name is an alias. */
21861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21862 choke me
21863 #else
21864 $ac_func();
21865 #endif
21867 ; return 0; }
21869 if { (eval echo configure:21870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21870 rm -rf conftest*
21871 eval "ac_cv_func_$ac_func=yes"
21872 else
21873 echo "configure: failed program was:" >&5
21874 cat conftest.$ac_ext >&5
21875 rm -rf conftest*
21876 eval "ac_cv_func_$ac_func=no"
21878 rm -f conftest*
21881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21882 echo "$ac_t""yes" 1>&6
21883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21884 cat >> confdefs.h <<EOF
21885 #define $ac_tr_func 1
21888 else
21889 echo "$ac_t""no" 1>&6
21890 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21892 done
21895 if test x$ac_cv_func_copysignl = x"yes"; then
21896 for ac_func in __signbitl
21898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21899 echo "configure:21900: checking for $ac_func" >&5
21900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21901 echo $ac_n "(cached) $ac_c" 1>&6
21902 else
21903 cat > conftest.$ac_ext <<EOF
21904 #line 21905 "configure"
21905 #include "confdefs.h"
21906 /* System header to define __stub macros and hopefully few prototypes,
21907 which can conflict with char $ac_func(); below. */
21908 #include <assert.h>
21909 /* Override any gcc2 internal prototype to avoid an error. */
21910 /* We use char because int might match the return type of a gcc2
21911 builtin and then its argument prototype would still apply. */
21912 char $ac_func();
21914 int main() {
21916 /* The GNU C library defines this for functions which it implements
21917 to always fail with ENOSYS. Some functions are actually named
21918 something starting with __ and the normal name is an alias. */
21919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21920 choke me
21921 #else
21922 $ac_func();
21923 #endif
21925 ; return 0; }
21927 if { (eval echo configure:21928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21928 rm -rf conftest*
21929 eval "ac_cv_func_$ac_func=yes"
21930 else
21931 echo "configure: failed program was:" >&5
21932 cat conftest.$ac_ext >&5
21933 rm -rf conftest*
21934 eval "ac_cv_func_$ac_func=no"
21936 rm -f conftest*
21939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21940 echo "$ac_t""yes" 1>&6
21941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21942 cat >> confdefs.h <<EOF
21943 #define $ac_tr_func 1
21946 else
21947 echo "$ac_t""no" 1>&6
21948 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21950 done
21954 if test -n "$LIBMATHOBJS"; then
21955 need_libmath=yes
21960 if test "$need_libmath" = yes; then
21961 GLIBCPP_BUILD_LIBMATH_TRUE=
21962 GLIBCPP_BUILD_LIBMATH_FALSE='#'
21963 else
21964 GLIBCPP_BUILD_LIBMATH_TRUE='#'
21965 GLIBCPP_BUILD_LIBMATH_FALSE=
21969 enable_wchar_t=no
21971 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21972 echo "configure:21973: checking for mbstate_t" >&5
21973 cat > conftest.$ac_ext <<EOF
21974 #line 21975 "configure"
21975 #include "confdefs.h"
21976 #include <wchar.h>
21977 int main() {
21978 mbstate_t teststate;
21979 ; return 0; }
21981 if { (eval echo configure:21982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21982 rm -rf conftest*
21983 have_mbstate_t=yes
21984 else
21985 echo "configure: failed program was:" >&5
21986 cat conftest.$ac_ext >&5
21987 rm -rf conftest*
21988 have_mbstate_t=no
21990 rm -f conftest*
21991 echo "$ac_t""$have_mbstate_t" 1>&6
21992 if test x"$have_mbstate_t" = xyes; then
21993 cat >> confdefs.h <<\EOF
21994 #define HAVE_MBSTATE_T 1
21999 for ac_hdr in wchar.h
22001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22003 echo "configure:22004: checking for $ac_hdr" >&5
22004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22005 echo $ac_n "(cached) $ac_c" 1>&6
22006 else
22007 cat > conftest.$ac_ext <<EOF
22008 #line 22009 "configure"
22009 #include "confdefs.h"
22010 #include <$ac_hdr>
22012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22013 { (eval echo configure:22014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22015 if test -z "$ac_err"; then
22016 rm -rf conftest*
22017 eval "ac_cv_header_$ac_safe=yes"
22018 else
22019 echo "$ac_err" >&5
22020 echo "configure: failed program was:" >&5
22021 cat conftest.$ac_ext >&5
22022 rm -rf conftest*
22023 eval "ac_cv_header_$ac_safe=no"
22025 rm -f conftest*
22027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22028 echo "$ac_t""yes" 1>&6
22029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22030 cat >> confdefs.h <<EOF
22031 #define $ac_tr_hdr 1
22033 ac_has_wchar_h=yes
22034 else
22035 echo "$ac_t""no" 1>&6
22036 ac_has_wchar_h=no
22038 done
22040 for ac_hdr in wctype.h
22042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22044 echo "configure:22045: checking for $ac_hdr" >&5
22045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22046 echo $ac_n "(cached) $ac_c" 1>&6
22047 else
22048 cat > conftest.$ac_ext <<EOF
22049 #line 22050 "configure"
22050 #include "confdefs.h"
22051 #include <$ac_hdr>
22053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22054 { (eval echo configure:22055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22056 if test -z "$ac_err"; then
22057 rm -rf conftest*
22058 eval "ac_cv_header_$ac_safe=yes"
22059 else
22060 echo "$ac_err" >&5
22061 echo "configure: failed program was:" >&5
22062 cat conftest.$ac_ext >&5
22063 rm -rf conftest*
22064 eval "ac_cv_header_$ac_safe=no"
22066 rm -f conftest*
22068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22069 echo "$ac_t""yes" 1>&6
22070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22071 cat >> confdefs.h <<EOF
22072 #define $ac_tr_hdr 1
22074 ac_has_wctype_h=yes
22075 else
22076 echo "$ac_t""no" 1>&6
22077 ac_has_wctype_h=no
22079 done
22082 if test x"$ac_has_wchar_h" = xyes &&
22083 test x"$ac_has_wctype_h" = xyes &&
22084 test x"$enable_c_mbchar" != xno; then
22086 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22087 echo "configure:22088: checking for WCHAR_MIN and WCHAR_MAX" >&5
22088 cat > conftest.$ac_ext <<EOF
22089 #line 22090 "configure"
22090 #include "confdefs.h"
22091 #include <wchar.h>
22092 int main() {
22093 int i = WCHAR_MIN; int j = WCHAR_MAX;
22094 ; return 0; }
22096 if { (eval echo configure:22097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22097 rm -rf conftest*
22098 has_wchar_minmax=yes
22099 else
22100 echo "configure: failed program was:" >&5
22101 cat conftest.$ac_ext >&5
22102 rm -rf conftest*
22103 has_wchar_minmax=no
22105 rm -f conftest*
22106 echo "$ac_t""$has_wchar_minmax" 1>&6
22108 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22109 echo "configure:22110: checking for WEOF" >&5
22110 cat > conftest.$ac_ext <<EOF
22111 #line 22112 "configure"
22112 #include "confdefs.h"
22114 #include <wchar.h>
22115 #include <stddef.h>
22116 int main() {
22117 wint_t i = WEOF;
22118 ; return 0; }
22120 if { (eval echo configure:22121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22121 rm -rf conftest*
22122 has_weof=yes
22123 else
22124 echo "configure: failed program was:" >&5
22125 cat conftest.$ac_ext >&5
22126 rm -rf conftest*
22127 has_weof=no
22129 rm -f conftest*
22130 echo "$ac_t""$has_weof" 1>&6
22132 ac_wfuncs=yes
22133 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22136 echo "configure:22137: checking for $ac_func" >&5
22137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22138 echo $ac_n "(cached) $ac_c" 1>&6
22139 else
22140 cat > conftest.$ac_ext <<EOF
22141 #line 22142 "configure"
22142 #include "confdefs.h"
22143 /* System header to define __stub macros and hopefully few prototypes,
22144 which can conflict with char $ac_func(); below. */
22145 #include <assert.h>
22146 /* Override any gcc2 internal prototype to avoid an error. */
22147 /* We use char because int might match the return type of a gcc2
22148 builtin and then its argument prototype would still apply. */
22149 char $ac_func();
22151 int main() {
22153 /* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22157 choke me
22158 #else
22159 $ac_func();
22160 #endif
22162 ; return 0; }
22164 if { (eval echo configure:22165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22165 rm -rf conftest*
22166 eval "ac_cv_func_$ac_func=yes"
22167 else
22168 echo "configure: failed program was:" >&5
22169 cat conftest.$ac_ext >&5
22170 rm -rf conftest*
22171 eval "ac_cv_func_$ac_func=no"
22173 rm -f conftest*
22176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22177 echo "$ac_t""yes" 1>&6
22178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22179 cat >> confdefs.h <<EOF
22180 #define $ac_tr_func 1
22183 else
22184 echo "$ac_t""no" 1>&6
22186 ac_wfuncs=no
22188 done
22191 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22192 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22193 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22194 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22195 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22196 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22199 echo "configure:22200: checking for $ac_func" >&5
22200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22201 echo $ac_n "(cached) $ac_c" 1>&6
22202 else
22203 cat > conftest.$ac_ext <<EOF
22204 #line 22205 "configure"
22205 #include "confdefs.h"
22206 /* System header to define __stub macros and hopefully few prototypes,
22207 which can conflict with char $ac_func(); below. */
22208 #include <assert.h>
22209 /* Override any gcc2 internal prototype to avoid an error. */
22210 /* We use char because int might match the return type of a gcc2
22211 builtin and then its argument prototype would still apply. */
22212 char $ac_func();
22214 int main() {
22216 /* The GNU C library defines this for functions which it implements
22217 to always fail with ENOSYS. Some functions are actually named
22218 something starting with __ and the normal name is an alias. */
22219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22220 choke me
22221 #else
22222 $ac_func();
22223 #endif
22225 ; return 0; }
22227 if { (eval echo configure:22228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22228 rm -rf conftest*
22229 eval "ac_cv_func_$ac_func=yes"
22230 else
22231 echo "configure: failed program was:" >&5
22232 cat conftest.$ac_ext >&5
22233 rm -rf conftest*
22234 eval "ac_cv_func_$ac_func=no"
22236 rm -f conftest*
22239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22240 echo "$ac_t""yes" 1>&6
22241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22242 cat >> confdefs.h <<EOF
22243 #define $ac_tr_func 1
22246 else
22247 echo "$ac_t""no" 1>&6
22249 ac_wfuncs=no
22251 done
22254 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22255 echo "configure:22256: checking for ISO C99 wchar_t support" >&5
22256 if test x"$has_weof" = xyes &&
22257 test x"$has_wchar_minmax" = xyes &&
22258 test x"$ac_wfuncs" = xyes; then
22259 ac_isoC99_wchar_t=yes
22260 else
22261 ac_isoC99_wchar_t=no
22263 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22265 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22266 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22267 echo "configure:22268: checking for iconv.h" >&5
22268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22269 echo $ac_n "(cached) $ac_c" 1>&6
22270 else
22271 cat > conftest.$ac_ext <<EOF
22272 #line 22273 "configure"
22273 #include "confdefs.h"
22274 #include <iconv.h>
22276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22277 { (eval echo configure:22278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22279 if test -z "$ac_err"; then
22280 rm -rf conftest*
22281 eval "ac_cv_header_$ac_safe=yes"
22282 else
22283 echo "$ac_err" >&5
22284 echo "configure: failed program was:" >&5
22285 cat conftest.$ac_ext >&5
22286 rm -rf conftest*
22287 eval "ac_cv_header_$ac_safe=no"
22289 rm -f conftest*
22291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22292 echo "$ac_t""yes" 1>&6
22293 ac_has_iconv_h=yes
22294 else
22295 echo "$ac_t""no" 1>&6
22296 ac_has_iconv_h=no
22299 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22300 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22301 echo "configure:22302: checking for langinfo.h" >&5
22302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22303 echo $ac_n "(cached) $ac_c" 1>&6
22304 else
22305 cat > conftest.$ac_ext <<EOF
22306 #line 22307 "configure"
22307 #include "confdefs.h"
22308 #include <langinfo.h>
22310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22311 { (eval echo configure:22312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22313 if test -z "$ac_err"; then
22314 rm -rf conftest*
22315 eval "ac_cv_header_$ac_safe=yes"
22316 else
22317 echo "$ac_err" >&5
22318 echo "configure: failed program was:" >&5
22319 cat conftest.$ac_ext >&5
22320 rm -rf conftest*
22321 eval "ac_cv_header_$ac_safe=no"
22323 rm -f conftest*
22325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22326 echo "$ac_t""yes" 1>&6
22327 ac_has_langinfo_h=yes
22328 else
22329 echo "$ac_t""no" 1>&6
22330 ac_has_langinfo_h=no
22334 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22335 echo "configure:22336: checking for iconv in -liconv" >&5
22336 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22338 echo $ac_n "(cached) $ac_c" 1>&6
22339 else
22340 ac_save_LIBS="$LIBS"
22341 LIBS="-liconv $LIBS"
22342 cat > conftest.$ac_ext <<EOF
22343 #line 22344 "configure"
22344 #include "confdefs.h"
22345 /* Override any gcc2 internal prototype to avoid an error. */
22346 /* We use char because int might match the return type of a gcc2
22347 builtin and then its argument prototype would still apply. */
22348 char iconv();
22350 int main() {
22351 iconv()
22352 ; return 0; }
22354 if { (eval echo configure:22355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22355 rm -rf conftest*
22356 eval "ac_cv_lib_$ac_lib_var=yes"
22357 else
22358 echo "configure: failed program was:" >&5
22359 cat conftest.$ac_ext >&5
22360 rm -rf conftest*
22361 eval "ac_cv_lib_$ac_lib_var=no"
22363 rm -f conftest*
22364 LIBS="$ac_save_LIBS"
22367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22368 echo "$ac_t""yes" 1>&6
22369 libiconv="-liconv"
22370 else
22371 echo "$ac_t""no" 1>&6
22374 ac_save_LIBS="$LIBS"
22375 LIBS="$LIBS $libiconv"
22377 for ac_func in iconv_open iconv_close iconv nl_langinfo
22379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22380 echo "configure:22381: checking for $ac_func" >&5
22381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22382 echo $ac_n "(cached) $ac_c" 1>&6
22383 else
22384 cat > conftest.$ac_ext <<EOF
22385 #line 22386 "configure"
22386 #include "confdefs.h"
22387 /* System header to define __stub macros and hopefully few prototypes,
22388 which can conflict with char $ac_func(); below. */
22389 #include <assert.h>
22390 /* Override any gcc2 internal prototype to avoid an error. */
22391 /* We use char because int might match the return type of a gcc2
22392 builtin and then its argument prototype would still apply. */
22393 char $ac_func();
22395 int main() {
22397 /* The GNU C library defines this for functions which it implements
22398 to always fail with ENOSYS. Some functions are actually named
22399 something starting with __ and the normal name is an alias. */
22400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22401 choke me
22402 #else
22403 $ac_func();
22404 #endif
22406 ; return 0; }
22408 if { (eval echo configure:22409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22409 rm -rf conftest*
22410 eval "ac_cv_func_$ac_func=yes"
22411 else
22412 echo "configure: failed program was:" >&5
22413 cat conftest.$ac_ext >&5
22414 rm -rf conftest*
22415 eval "ac_cv_func_$ac_func=no"
22417 rm -f conftest*
22420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22421 echo "$ac_t""yes" 1>&6
22422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22423 cat >> confdefs.h <<EOF
22424 #define $ac_tr_func 1
22427 ac_XPG2funcs=yes
22428 else
22429 echo "$ac_t""no" 1>&6
22430 ac_XPG2funcs=no
22432 done
22435 LIBS="$ac_save_LIBS"
22437 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22438 echo "configure:22439: checking for XPG2 wchar_t support" >&5
22439 if test x"$ac_has_iconv_h" = xyes &&
22440 test x"$ac_has_langinfo_h" = xyes &&
22441 test x"$ac_XPG2funcs" = xyes; then
22442 ac_XPG2_wchar_t=yes
22443 else
22444 ac_XPG2_wchar_t=no
22446 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22448 if test x"$ac_isoC99_wchar_t" = xyes &&
22449 test x"$ac_XPG2_wchar_t" = xyes; then
22450 cat >> confdefs.h <<\EOF
22451 #define _GLIBCPP_USE_WCHAR_T 1
22454 enable_wchar_t=yes
22457 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22458 echo "configure:22459: checking for enabled wchar_t specializations" >&5
22459 echo "$ac_t""$enable_wchar_t" 1>&6
22462 if test "$enable_wchar_t" = yes; then
22463 GLIBCPP_TEST_WCHAR_T_TRUE=
22464 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22465 else
22466 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22467 GLIBCPP_TEST_WCHAR_T_FALSE=
22471 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22472 ac_save_CXXFLAGS="$CXXFLAGS"
22473 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22476 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22477 echo "configure:22478: checking for strtold declaration" >&5
22478 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22479 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22480 echo $ac_n "(cached) $ac_c" 1>&6
22481 else
22484 ac_ext=C
22485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22486 ac_cpp='$CXXCPP $CPPFLAGS'
22487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22489 cross_compiling=$ac_cv_prog_cxx_cross
22491 cat > conftest.$ac_ext <<EOF
22492 #line 22493 "configure"
22493 #include "confdefs.h"
22494 #include <stdlib.h>
22495 int main() {
22496 strtold(0, 0);
22497 ; return 0; }
22499 if { (eval echo configure:22500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22500 rm -rf conftest*
22501 glibcpp_cv_func_strtold_use=yes
22502 else
22503 echo "configure: failed program was:" >&5
22504 cat conftest.$ac_ext >&5
22505 rm -rf conftest*
22506 glibcpp_cv_func_strtold_use=no
22508 rm -f conftest*
22509 ac_ext=c
22510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22511 ac_cpp='$CPP $CPPFLAGS'
22512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22514 cross_compiling=$ac_cv_prog_cc_cross
22520 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22521 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22522 for ac_func in strtold
22524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22525 echo "configure:22526: checking for $ac_func" >&5
22526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22527 echo $ac_n "(cached) $ac_c" 1>&6
22528 else
22529 cat > conftest.$ac_ext <<EOF
22530 #line 22531 "configure"
22531 #include "confdefs.h"
22532 /* System header to define __stub macros and hopefully few prototypes,
22533 which can conflict with char $ac_func(); below. */
22534 #include <assert.h>
22535 /* Override any gcc2 internal prototype to avoid an error. */
22536 /* We use char because int might match the return type of a gcc2
22537 builtin and then its argument prototype would still apply. */
22538 char $ac_func();
22540 int main() {
22542 /* The GNU C library defines this for functions which it implements
22543 to always fail with ENOSYS. Some functions are actually named
22544 something starting with __ and the normal name is an alias. */
22545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22546 choke me
22547 #else
22548 $ac_func();
22549 #endif
22551 ; return 0; }
22553 if { (eval echo configure:22554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22554 rm -rf conftest*
22555 eval "ac_cv_func_$ac_func=yes"
22556 else
22557 echo "configure: failed program was:" >&5
22558 cat conftest.$ac_ext >&5
22559 rm -rf conftest*
22560 eval "ac_cv_func_$ac_func=no"
22562 rm -f conftest*
22565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22566 echo "$ac_t""yes" 1>&6
22567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22568 cat >> confdefs.h <<EOF
22569 #define $ac_tr_func 1
22572 else
22573 echo "$ac_t""no" 1>&6
22575 done
22580 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22581 echo "configure:22582: checking for strtof declaration" >&5
22582 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22583 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22584 echo $ac_n "(cached) $ac_c" 1>&6
22585 else
22588 ac_ext=C
22589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22590 ac_cpp='$CXXCPP $CPPFLAGS'
22591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22593 cross_compiling=$ac_cv_prog_cxx_cross
22595 cat > conftest.$ac_ext <<EOF
22596 #line 22597 "configure"
22597 #include "confdefs.h"
22598 #include <stdlib.h>
22599 int main() {
22600 strtof(0, 0);
22601 ; return 0; }
22603 if { (eval echo configure:22604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22604 rm -rf conftest*
22605 glibcpp_cv_func_strtof_use=yes
22606 else
22607 echo "configure: failed program was:" >&5
22608 cat conftest.$ac_ext >&5
22609 rm -rf conftest*
22610 glibcpp_cv_func_strtof_use=no
22612 rm -f conftest*
22613 ac_ext=c
22614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22615 ac_cpp='$CPP $CPPFLAGS'
22616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22618 cross_compiling=$ac_cv_prog_cc_cross
22624 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22625 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22626 for ac_func in strtof
22628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22629 echo "configure:22630: checking for $ac_func" >&5
22630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22631 echo $ac_n "(cached) $ac_c" 1>&6
22632 else
22633 cat > conftest.$ac_ext <<EOF
22634 #line 22635 "configure"
22635 #include "confdefs.h"
22636 /* System header to define __stub macros and hopefully few prototypes,
22637 which can conflict with char $ac_func(); below. */
22638 #include <assert.h>
22639 /* Override any gcc2 internal prototype to avoid an error. */
22640 /* We use char because int might match the return type of a gcc2
22641 builtin and then its argument prototype would still apply. */
22642 char $ac_func();
22644 int main() {
22646 /* The GNU C library defines this for functions which it implements
22647 to always fail with ENOSYS. Some functions are actually named
22648 something starting with __ and the normal name is an alias. */
22649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22650 choke me
22651 #else
22652 $ac_func();
22653 #endif
22655 ; return 0; }
22657 if { (eval echo configure:22658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22658 rm -rf conftest*
22659 eval "ac_cv_func_$ac_func=yes"
22660 else
22661 echo "configure: failed program was:" >&5
22662 cat conftest.$ac_ext >&5
22663 rm -rf conftest*
22664 eval "ac_cv_func_$ac_func=no"
22666 rm -f conftest*
22669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22670 echo "$ac_t""yes" 1>&6
22671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22672 cat >> confdefs.h <<EOF
22673 #define $ac_tr_func 1
22676 else
22677 echo "$ac_t""no" 1>&6
22679 done
22683 for ac_func in drand48
22685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22686 echo "configure:22687: checking for $ac_func" >&5
22687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22688 echo $ac_n "(cached) $ac_c" 1>&6
22689 else
22690 cat > conftest.$ac_ext <<EOF
22691 #line 22692 "configure"
22692 #include "confdefs.h"
22693 /* System header to define __stub macros and hopefully few prototypes,
22694 which can conflict with char $ac_func(); below. */
22695 #include <assert.h>
22696 /* Override any gcc2 internal prototype to avoid an error. */
22697 /* We use char because int might match the return type of a gcc2
22698 builtin and then its argument prototype would still apply. */
22699 char $ac_func();
22701 int main() {
22703 /* The GNU C library defines this for functions which it implements
22704 to always fail with ENOSYS. Some functions are actually named
22705 something starting with __ and the normal name is an alias. */
22706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22707 choke me
22708 #else
22709 $ac_func();
22710 #endif
22712 ; return 0; }
22714 if { (eval echo configure:22715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22715 rm -rf conftest*
22716 eval "ac_cv_func_$ac_func=yes"
22717 else
22718 echo "configure: failed program was:" >&5
22719 cat conftest.$ac_ext >&5
22720 rm -rf conftest*
22721 eval "ac_cv_func_$ac_func=no"
22723 rm -f conftest*
22726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22727 echo "$ac_t""yes" 1>&6
22728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22729 cat >> confdefs.h <<EOF
22730 #define $ac_tr_func 1
22733 else
22734 echo "$ac_t""no" 1>&6
22736 done
22739 CXXFLAGS="$ac_save_CXXFLAGS"
22742 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22743 ac_save_CXXFLAGS="$CXXFLAGS"
22744 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22747 echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22748 echo "configure:22749: checking for isatty declaration" >&5
22749 if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22750 if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22751 echo $ac_n "(cached) $ac_c" 1>&6
22752 else
22755 ac_ext=C
22756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22757 ac_cpp='$CXXCPP $CPPFLAGS'
22758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22760 cross_compiling=$ac_cv_prog_cxx_cross
22762 cat > conftest.$ac_ext <<EOF
22763 #line 22764 "configure"
22764 #include "confdefs.h"
22765 #include <unistd.h>
22766 int main() {
22767 isatty(0);
22768 ; return 0; }
22770 if { (eval echo configure:22771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22771 rm -rf conftest*
22772 glibcpp_cv_func_isatty_use=yes
22773 else
22774 echo "configure: failed program was:" >&5
22775 cat conftest.$ac_ext >&5
22776 rm -rf conftest*
22777 glibcpp_cv_func_isatty_use=no
22779 rm -f conftest*
22780 ac_ext=c
22781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22782 ac_cpp='$CPP $CPPFLAGS'
22783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22785 cross_compiling=$ac_cv_prog_cc_cross
22791 echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22792 if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22793 for ac_func in isatty
22795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22796 echo "configure:22797: checking for $ac_func" >&5
22797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22798 echo $ac_n "(cached) $ac_c" 1>&6
22799 else
22800 cat > conftest.$ac_ext <<EOF
22801 #line 22802 "configure"
22802 #include "confdefs.h"
22803 /* System header to define __stub macros and hopefully few prototypes,
22804 which can conflict with char $ac_func(); below. */
22805 #include <assert.h>
22806 /* Override any gcc2 internal prototype to avoid an error. */
22807 /* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22809 char $ac_func();
22811 int main() {
22813 /* The GNU C library defines this for functions which it implements
22814 to always fail with ENOSYS. Some functions are actually named
22815 something starting with __ and the normal name is an alias. */
22816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22817 choke me
22818 #else
22819 $ac_func();
22820 #endif
22822 ; return 0; }
22824 if { (eval echo configure:22825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22825 rm -rf conftest*
22826 eval "ac_cv_func_$ac_func=yes"
22827 else
22828 echo "configure: failed program was:" >&5
22829 cat conftest.$ac_ext >&5
22830 rm -rf conftest*
22831 eval "ac_cv_func_$ac_func=no"
22833 rm -f conftest*
22836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22837 echo "$ac_t""yes" 1>&6
22838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22839 cat >> confdefs.h <<EOF
22840 #define $ac_tr_func 1
22843 else
22844 echo "$ac_t""no" 1>&6
22846 done
22851 CXXFLAGS="$ac_save_CXXFLAGS"
22854 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22855 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22856 echo "configure:22857: checking for locale.h" >&5
22857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22858 echo $ac_n "(cached) $ac_c" 1>&6
22859 else
22860 cat > conftest.$ac_ext <<EOF
22861 #line 22862 "configure"
22862 #include "confdefs.h"
22863 #include <locale.h>
22865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22866 { (eval echo configure:22867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22868 if test -z "$ac_err"; then
22869 rm -rf conftest*
22870 eval "ac_cv_header_$ac_safe=yes"
22871 else
22872 echo "$ac_err" >&5
22873 echo "configure: failed program was:" >&5
22874 cat conftest.$ac_ext >&5
22875 rm -rf conftest*
22876 eval "ac_cv_header_$ac_safe=no"
22878 rm -f conftest*
22880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22881 echo "$ac_t""yes" 1>&6
22883 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22884 echo "configure:22885: checking for LC_MESSAGES" >&5
22885 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22886 echo $ac_n "(cached) $ac_c" 1>&6
22887 else
22888 cat > conftest.$ac_ext <<EOF
22889 #line 22890 "configure"
22890 #include "confdefs.h"
22891 #include <locale.h>
22892 int main() {
22893 return LC_MESSAGES
22894 ; return 0; }
22896 if { (eval echo configure:22897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22897 rm -rf conftest*
22898 ac_cv_val_LC_MESSAGES=yes
22899 else
22900 echo "configure: failed program was:" >&5
22901 cat conftest.$ac_ext >&5
22902 rm -rf conftest*
22903 ac_cv_val_LC_MESSAGES=no
22905 rm -f conftest*
22908 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22909 if test $ac_cv_val_LC_MESSAGES = yes; then
22910 cat >> confdefs.h <<\EOF
22911 #define HAVE_LC_MESSAGES 1
22916 else
22917 echo "$ac_t""no" 1>&6
22922 cat > conftest.$ac_ext <<EOF
22923 #line 22924 "configure"
22924 #include "confdefs.h"
22926 #include <setjmp.h>
22928 int main() {
22929 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22930 ; return 0; }
22932 if { (eval echo configure:22933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22933 rm -rf conftest*
22934 cat >> confdefs.h <<\EOF
22935 #define HAVE_SIGSETJMP 1
22939 else
22940 echo "configure: failed program was:" >&5
22941 cat conftest.$ac_ext >&5
22943 rm -f conftest*
22945 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22949 echo "configure:22950: checking for $ac_hdr" >&5
22950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22951 echo $ac_n "(cached) $ac_c" 1>&6
22952 else
22953 cat > conftest.$ac_ext <<EOF
22954 #line 22955 "configure"
22955 #include "confdefs.h"
22956 #include <$ac_hdr>
22958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22959 { (eval echo configure:22960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22961 if test -z "$ac_err"; then
22962 rm -rf conftest*
22963 eval "ac_cv_header_$ac_safe=yes"
22964 else
22965 echo "$ac_err" >&5
22966 echo "configure: failed program was:" >&5
22967 cat conftest.$ac_ext >&5
22968 rm -rf conftest*
22969 eval "ac_cv_header_$ac_safe=no"
22971 rm -f conftest*
22973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22974 echo "$ac_t""yes" 1>&6
22975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22976 cat >> confdefs.h <<EOF
22977 #define $ac_tr_hdr 1
22980 else
22981 echo "$ac_t""no" 1>&6
22983 done
22985 for ac_func in getpagesize
22987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22988 echo "configure:22989: checking for $ac_func" >&5
22989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22990 echo $ac_n "(cached) $ac_c" 1>&6
22991 else
22992 cat > conftest.$ac_ext <<EOF
22993 #line 22994 "configure"
22994 #include "confdefs.h"
22995 /* System header to define __stub macros and hopefully few prototypes,
22996 which can conflict with char $ac_func(); below. */
22997 #include <assert.h>
22998 /* Override any gcc2 internal prototype to avoid an error. */
22999 /* We use char because int might match the return type of a gcc2
23000 builtin and then its argument prototype would still apply. */
23001 char $ac_func();
23003 int main() {
23005 /* The GNU C library defines this for functions which it implements
23006 to always fail with ENOSYS. Some functions are actually named
23007 something starting with __ and the normal name is an alias. */
23008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23009 choke me
23010 #else
23011 $ac_func();
23012 #endif
23014 ; return 0; }
23016 if { (eval echo configure:23017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23017 rm -rf conftest*
23018 eval "ac_cv_func_$ac_func=yes"
23019 else
23020 echo "configure: failed program was:" >&5
23021 cat conftest.$ac_ext >&5
23022 rm -rf conftest*
23023 eval "ac_cv_func_$ac_func=no"
23025 rm -f conftest*
23028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23029 echo "$ac_t""yes" 1>&6
23030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23031 cat >> confdefs.h <<EOF
23032 #define $ac_tr_func 1
23035 else
23036 echo "$ac_t""no" 1>&6
23038 done
23040 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23041 echo "configure:23042: checking for working mmap" >&5
23042 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23043 echo $ac_n "(cached) $ac_c" 1>&6
23044 else
23045 if test "$cross_compiling" = yes; then
23046 ac_cv_func_mmap_fixed_mapped=no
23047 else
23048 cat > conftest.$ac_ext <<EOF
23049 #line 23050 "configure"
23050 #include "confdefs.h"
23052 /* Thanks to Mike Haertel and Jim Avera for this test.
23053 Here is a matrix of mmap possibilities:
23054 mmap private not fixed
23055 mmap private fixed at somewhere currently unmapped
23056 mmap private fixed at somewhere already mapped
23057 mmap shared not fixed
23058 mmap shared fixed at somewhere currently unmapped
23059 mmap shared fixed at somewhere already mapped
23060 For private mappings, we should verify that changes cannot be read()
23061 back from the file, nor mmap's back from the file at a different
23062 address. (There have been systems where private was not correctly
23063 implemented like the infamous i386 svr4.0, and systems where the
23064 VM page cache was not coherent with the filesystem buffer cache
23065 like early versions of FreeBSD and possibly contemporary NetBSD.)
23066 For shared mappings, we should conversely verify that changes get
23067 propogated back to all the places they're supposed to be.
23069 Grep wants private fixed already mapped.
23070 The main things grep needs to know about mmap are:
23071 * does it exist and is it safe to write into the mmap'd area
23072 * how to use it (BSD variants) */
23073 #include <sys/types.h>
23074 #include <fcntl.h>
23075 #include <sys/mman.h>
23077 #if HAVE_SYS_TYPES_H
23078 # include <sys/types.h>
23079 #endif
23081 #if HAVE_STDLIB_H
23082 # include <stdlib.h>
23083 #endif
23085 #if HAVE_SYS_STAT_H
23086 # include <sys/stat.h>
23087 #endif
23089 #if HAVE_UNISTD_H
23090 # include <unistd.h>
23091 #endif
23093 /* This mess was copied from the GNU getpagesize.h. */
23094 #ifndef HAVE_GETPAGESIZE
23096 /* Assume that all systems that can run configure have sys/param.h. */
23097 # ifndef HAVE_SYS_PARAM_H
23098 # define HAVE_SYS_PARAM_H 1
23099 # endif
23101 # ifdef _SC_PAGESIZE
23102 # define getpagesize() sysconf(_SC_PAGESIZE)
23103 # else /* no _SC_PAGESIZE */
23104 # ifdef HAVE_SYS_PARAM_H
23105 # include <sys/param.h>
23106 # ifdef EXEC_PAGESIZE
23107 # define getpagesize() EXEC_PAGESIZE
23108 # else /* no EXEC_PAGESIZE */
23109 # ifdef NBPG
23110 # define getpagesize() NBPG * CLSIZE
23111 # ifndef CLSIZE
23112 # define CLSIZE 1
23113 # endif /* no CLSIZE */
23114 # else /* no NBPG */
23115 # ifdef NBPC
23116 # define getpagesize() NBPC
23117 # else /* no NBPC */
23118 # ifdef PAGESIZE
23119 # define getpagesize() PAGESIZE
23120 # endif /* PAGESIZE */
23121 # endif /* no NBPC */
23122 # endif /* no NBPG */
23123 # endif /* no EXEC_PAGESIZE */
23124 # else /* no HAVE_SYS_PARAM_H */
23125 # define getpagesize() 8192 /* punt totally */
23126 # endif /* no HAVE_SYS_PARAM_H */
23127 # endif /* no _SC_PAGESIZE */
23129 #endif /* no HAVE_GETPAGESIZE */
23131 #ifdef __cplusplus
23132 extern "C" { void *malloc(unsigned); }
23133 #else
23134 char *malloc();
23135 #endif
23138 main()
23140 char *data, *data2, *data3;
23141 int i, pagesize;
23142 int fd;
23144 pagesize = getpagesize();
23147 * First, make a file with some known garbage in it.
23149 data = malloc(pagesize);
23150 if (!data)
23151 exit(1);
23152 for (i = 0; i < pagesize; ++i)
23153 *(data + i) = rand();
23154 umask(0);
23155 fd = creat("conftestmmap", 0600);
23156 if (fd < 0)
23157 exit(1);
23158 if (write(fd, data, pagesize) != pagesize)
23159 exit(1);
23160 close(fd);
23163 * Next, try to mmap the file at a fixed address which
23164 * already has something else allocated at it. If we can,
23165 * also make sure that we see the same garbage.
23167 fd = open("conftestmmap", O_RDWR);
23168 if (fd < 0)
23169 exit(1);
23170 data2 = malloc(2 * pagesize);
23171 if (!data2)
23172 exit(1);
23173 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23174 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23175 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23176 exit(1);
23177 for (i = 0; i < pagesize; ++i)
23178 if (*(data + i) != *(data2 + i))
23179 exit(1);
23182 * Finally, make sure that changes to the mapped area
23183 * do not percolate back to the file as seen by read().
23184 * (This is a bug on some variants of i386 svr4.0.)
23186 for (i = 0; i < pagesize; ++i)
23187 *(data2 + i) = *(data2 + i) + 1;
23188 data3 = malloc(pagesize);
23189 if (!data3)
23190 exit(1);
23191 if (read(fd, data3, pagesize) != pagesize)
23192 exit(1);
23193 for (i = 0; i < pagesize; ++i)
23194 if (*(data + i) != *(data3 + i))
23195 exit(1);
23196 close(fd);
23197 unlink("conftestmmap");
23198 exit(0);
23202 if { (eval echo configure:23203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23203 then
23204 ac_cv_func_mmap_fixed_mapped=yes
23205 else
23206 echo "configure: failed program was:" >&5
23207 cat conftest.$ac_ext >&5
23208 rm -fr conftest*
23209 ac_cv_func_mmap_fixed_mapped=no
23211 rm -fr conftest*
23216 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23217 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23218 cat >> confdefs.h <<\EOF
23219 #define HAVE_MMAP 1
23225 # Establish limits on memory usage during 'make check'
23228 setrlimit_have_headers=yes
23229 for ac_hdr in unistd.h sys/time.h sys/resource.h
23231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23233 echo "configure:23234: checking for $ac_hdr" >&5
23234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23235 echo $ac_n "(cached) $ac_c" 1>&6
23236 else
23237 cat > conftest.$ac_ext <<EOF
23238 #line 23239 "configure"
23239 #include "confdefs.h"
23240 #include <$ac_hdr>
23242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23243 { (eval echo configure:23244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23245 if test -z "$ac_err"; then
23246 rm -rf conftest*
23247 eval "ac_cv_header_$ac_safe=yes"
23248 else
23249 echo "$ac_err" >&5
23250 echo "configure: failed program was:" >&5
23251 cat conftest.$ac_ext >&5
23252 rm -rf conftest*
23253 eval "ac_cv_header_$ac_safe=no"
23255 rm -f conftest*
23257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23258 echo "$ac_t""yes" 1>&6
23259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23260 cat >> confdefs.h <<EOF
23261 #define $ac_tr_hdr 1
23264 else
23265 echo "$ac_t""no" 1>&6
23266 setrlimit_have_headers=no
23268 done
23270 # If don't have the headers, then we can't run the tests now, and we
23271 # won't be seeing any of these during testsuite compilation.
23272 if test $setrlimit_have_headers = yes; then
23273 # Can't do these in a loop, else the resulting syntax is wrong.
23275 cat > conftest.$ac_ext <<EOF
23276 #line 23277 "configure"
23277 #include "confdefs.h"
23278 #include <unistd.h>
23279 #include <sys/time.h>
23280 #include <sys/resource.h>
23282 int main() {
23283 int f = RLIMIT_DATA ;
23284 ; return 0; }
23286 if { (eval echo configure:23287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23287 rm -rf conftest*
23288 glibcpp_mresult=1
23289 else
23290 echo "configure: failed program was:" >&5
23291 cat conftest.$ac_ext >&5
23292 rm -rf conftest*
23293 glibcpp_mresult=0
23295 rm -f conftest*
23296 cat >> confdefs.h <<EOF
23297 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23302 cat > conftest.$ac_ext <<EOF
23303 #line 23304 "configure"
23304 #include "confdefs.h"
23305 #include <unistd.h>
23306 #include <sys/time.h>
23307 #include <sys/resource.h>
23309 int main() {
23310 int f = RLIMIT_RSS ;
23311 ; return 0; }
23313 if { (eval echo configure:23314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23314 rm -rf conftest*
23315 glibcpp_mresult=1
23316 else
23317 echo "configure: failed program was:" >&5
23318 cat conftest.$ac_ext >&5
23319 rm -rf conftest*
23320 glibcpp_mresult=0
23322 rm -f conftest*
23323 cat >> confdefs.h <<EOF
23324 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23329 cat > conftest.$ac_ext <<EOF
23330 #line 23331 "configure"
23331 #include "confdefs.h"
23332 #include <unistd.h>
23333 #include <sys/time.h>
23334 #include <sys/resource.h>
23336 int main() {
23337 int f = RLIMIT_VMEM ;
23338 ; return 0; }
23340 if { (eval echo configure:23341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23341 rm -rf conftest*
23342 glibcpp_mresult=1
23343 else
23344 echo "configure: failed program was:" >&5
23345 cat conftest.$ac_ext >&5
23346 rm -rf conftest*
23347 glibcpp_mresult=0
23349 rm -f conftest*
23350 cat >> confdefs.h <<EOF
23351 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23356 cat > conftest.$ac_ext <<EOF
23357 #line 23358 "configure"
23358 #include "confdefs.h"
23359 #include <unistd.h>
23360 #include <sys/time.h>
23361 #include <sys/resource.h>
23363 int main() {
23364 int f = RLIMIT_AS ;
23365 ; return 0; }
23367 if { (eval echo configure:23368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23368 rm -rf conftest*
23369 glibcpp_mresult=1
23370 else
23371 echo "configure: failed program was:" >&5
23372 cat conftest.$ac_ext >&5
23373 rm -rf conftest*
23374 glibcpp_mresult=0
23376 rm -f conftest*
23377 cat >> confdefs.h <<EOF
23378 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23383 # Check for rlimit, setrlimit.
23384 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23385 echo $ac_n "(cached) $ac_c" 1>&6
23386 else
23388 cat > conftest.$ac_ext <<EOF
23389 #line 23390 "configure"
23390 #include "confdefs.h"
23391 #include <unistd.h>
23392 #include <sys/time.h>
23393 #include <sys/resource.h>
23395 int main() {
23396 struct rlimit r; setrlimit(0, &r);
23397 ; return 0; }
23399 if { (eval echo configure:23400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23400 rm -rf conftest*
23401 ac_setrlimit=yes
23402 else
23403 echo "configure: failed program was:" >&5
23404 cat conftest.$ac_ext >&5
23405 rm -rf conftest*
23406 ac_setrlimit=no
23408 rm -f conftest*
23414 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23415 echo "configure:23416: checking for testsuite memory limit support" >&5
23416 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23417 ac_mem_limits=yes
23418 cat >> confdefs.h <<\EOF
23419 #define _GLIBCPP_MEM_LIMITS 1
23422 else
23423 ac_mem_limits=no
23425 echo "$ac_t""$ac_mem_limits" 1>&6
23428 # Look for setenv, so that extended locale tests can be performed.
23430 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23431 echo "configure:23432: checking for setenv declaration" >&5
23432 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23433 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23434 echo $ac_n "(cached) $ac_c" 1>&6
23435 else
23438 ac_ext=C
23439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23440 ac_cpp='$CXXCPP $CPPFLAGS'
23441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23443 cross_compiling=$ac_cv_prog_cxx_cross
23445 cat > conftest.$ac_ext <<EOF
23446 #line 23447 "configure"
23447 #include "confdefs.h"
23448 #include <stdlib.h>
23449 int main() {
23450 setenv(0, 0, 0);
23451 ; return 0; }
23453 if { (eval echo configure:23454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23454 rm -rf conftest*
23455 glibcpp_cv_func_setenv_use=yes
23456 else
23457 echo "configure: failed program was:" >&5
23458 cat conftest.$ac_ext >&5
23459 rm -rf conftest*
23460 glibcpp_cv_func_setenv_use=no
23462 rm -f conftest*
23463 ac_ext=c
23464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23465 ac_cpp='$CPP $CPPFLAGS'
23466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23468 cross_compiling=$ac_cv_prog_cc_cross
23474 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23475 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23476 for ac_func in setenv
23478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23479 echo "configure:23480: checking for $ac_func" >&5
23480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23481 echo $ac_n "(cached) $ac_c" 1>&6
23482 else
23483 cat > conftest.$ac_ext <<EOF
23484 #line 23485 "configure"
23485 #include "confdefs.h"
23486 /* System header to define __stub macros and hopefully few prototypes,
23487 which can conflict with char $ac_func(); below. */
23488 #include <assert.h>
23489 /* Override any gcc2 internal prototype to avoid an error. */
23490 /* We use char because int might match the return type of a gcc2
23491 builtin and then its argument prototype would still apply. */
23492 char $ac_func();
23494 int main() {
23496 /* The GNU C library defines this for functions which it implements
23497 to always fail with ENOSYS. Some functions are actually named
23498 something starting with __ and the normal name is an alias. */
23499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23500 choke me
23501 #else
23502 $ac_func();
23503 #endif
23505 ; return 0; }
23507 if { (eval echo configure:23508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23508 rm -rf conftest*
23509 eval "ac_cv_func_$ac_func=yes"
23510 else
23511 echo "configure: failed program was:" >&5
23512 cat conftest.$ac_ext >&5
23513 rm -rf conftest*
23514 eval "ac_cv_func_$ac_func=no"
23516 rm -f conftest*
23519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23520 echo "$ac_t""yes" 1>&6
23521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23522 cat >> confdefs.h <<EOF
23523 #define $ac_tr_func 1
23526 else
23527 echo "$ac_t""no" 1>&6
23529 done
23534 # Export file names for ABI checking.
23535 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23538 case "$target" in
23539 *-*-cygwin* ) enable_abi_check=no ;;
23540 * ) enable_abi_check=yes ;;
23541 esac
23543 # Don't do ABI checking unless native.
23546 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23547 && test "$enable_abi_check" = yes ; then
23548 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23549 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23550 else
23551 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23552 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23557 # This depends on the possibly-skipped linker test above.
23558 # Check whether --enable-symvers or --disable-symvers was given.
23559 if test "${enable_symvers+set}" = set; then
23560 enableval="$enable_symvers"
23561 case "$enableval" in
23562 yes) enable_symvers=yes ;;
23563 no) enable_symvers=no ;;
23564 # other names here, just as sanity checks
23565 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23566 gnu) enable_symvers=$enableval ;;
23567 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23568 esac
23569 else
23570 enable_symvers=yes
23573 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23574 # don't know enough about $LD to do tricks...
23575 if test x$enable_shared = xno ||
23576 test "x$LD" = x ||
23577 test x$glibcpp_gnu_ld_version = x; then
23578 enable_symvers=no
23581 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23582 if test $enable_symvers != no; then
23583 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23584 echo "configure:23585: checking for shared libgcc" >&5
23585 ac_save_CFLAGS="$CFLAGS"
23586 CFLAGS=' -lgcc_s'
23587 cat > conftest.$ac_ext <<EOF
23588 #line 23589 "configure"
23589 #include "confdefs.h"
23591 int main() {
23592 return 0
23593 ; return 0; }
23595 if { (eval echo configure:23596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23596 rm -rf conftest*
23597 glibcpp_shared_libgcc=yes
23598 else
23599 echo "configure: failed program was:" >&5
23600 cat conftest.$ac_ext >&5
23601 rm -rf conftest*
23602 glibcpp_shared_libgcc=no
23604 rm -f conftest*
23605 CFLAGS="$ac_save_CFLAGS"
23606 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23609 # For GNU ld, we need at least this version. It's 2.12 in the same format
23610 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23611 glibcpp_min_gnu_ld_version=21200
23613 # Check to see if unspecified "yes" value can win, given results
23614 # above.
23615 if test $enable_symvers = yes ; then
23616 if test $with_gnu_ld = yes &&
23617 test $glibcpp_shared_libgcc = yes ;
23618 then
23619 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23620 enable_symvers=gnu
23621 else
23622 ac_test_CFLAGS="${CFLAGS+set}"
23623 ac_save_CFLAGS="$CFLAGS"
23624 CFLAGS='-shared -Wl,--version-script,conftest.map'
23625 enable_symvers=no
23627 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23629 cat > conftest.$ac_ext <<EOF
23630 #line 23631 "configure"
23631 #include "confdefs.h"
23632 int foo;
23633 int main() {
23635 ; return 0; }
23637 if { (eval echo configure:23638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23638 rm -rf conftest*
23639 enable_symvers=gnu
23640 else
23641 echo "configure: failed program was:" >&5
23642 cat conftest.$ac_ext >&5
23644 rm -f conftest*
23645 if test "$ac_test_CFLAGS" = set; then
23646 CFLAGS="$ac_save_CFLAGS"
23647 else
23648 # this is the suspicious part
23649 CFLAGS=''
23651 rm -f conftest.map
23653 else
23654 # just fail for now
23655 enable_symvers=no
23659 case $enable_symvers in
23661 SYMVER_MAP=config/linker-map.dummy
23663 gnu)
23664 SYMVER_MAP=config/linker-map.gnu
23665 cat >> confdefs.h <<\EOF
23666 #define _GLIBCPP_SYMVER 1
23670 esac
23675 if test $enable_symvers != no; then
23676 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23677 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23678 else
23679 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23680 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23682 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23683 echo "configure:23684: checking versioning on shared library symbols" >&5
23684 echo "$ac_t""$enable_symvers" 1>&6
23687 # Propagate the target-specific source directories through the build chain.
23688 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23689 # uses it, and it only gets used in this file.)
23690 OS_INC_SRCDIR=config/${os_include_dir}
23691 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23695 # Set up cross-compile flags
23698 if test "$CANADIAN" = yes; then
23699 CANADIAN_TRUE=
23700 CANADIAN_FALSE='#'
23701 else
23702 CANADIAN_TRUE='#'
23703 CANADIAN_FALSE=
23706 cat > confcache <<\EOF
23707 # This file is a shell script that caches the results of configure
23708 # tests run on this system so they can be shared between configure
23709 # scripts and configure runs. It is not useful on other systems.
23710 # If it contains results you don't want to keep, you may remove or edit it.
23712 # By default, configure uses ./config.cache as the cache file,
23713 # creating it if it does not exist already. You can give configure
23714 # the --cache-file=FILE option to use a different cache file; that is
23715 # what configure does when it calls configure scripts in
23716 # subdirectories, so they share the cache.
23717 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23718 # config.status only pays attention to the cache file if you give it the
23719 # --recheck option to rerun configure.
23722 # The following way of writing the cache mishandles newlines in values,
23723 # but we know of no workaround that is simple, portable, and efficient.
23724 # So, don't put newlines in cache variables' values.
23725 # Ultrix sh set writes to stderr and can't be redirected directly,
23726 # and sets the high bit in the cache file unless we assign to the vars.
23727 (set) 2>&1 |
23728 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23729 *ac_space=\ *)
23730 # `set' does not quote correctly, so add quotes (double-quote substitution
23731 # turns \\\\ into \\, and sed turns \\ into \).
23732 sed -n \
23733 -e "s/'/'\\\\''/g" \
23734 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23737 # `set' quotes correctly as required by POSIX, so do not add quotes.
23738 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23740 esac >> confcache
23741 if cmp -s $cache_file confcache; then
23743 else
23744 if test -w $cache_file; then
23745 echo "updating cache $cache_file"
23746 cat confcache > $cache_file
23747 else
23748 echo "not updating unwritable cache $cache_file"
23751 rm -f confcache
23754 if test "${multilib}" = "yes"; then
23755 multilib_arg="--enable-multilib"
23756 else
23757 multilib_arg=
23760 # Export all the install information
23762 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23763 # exported correctly in GLIBCPP_CONFIGURE.
23764 glibcpp_toolexecdir=no
23765 glibcpp_toolexeclibdir=no
23766 glibcpp_prefixdir=${prefix}
23768 # Process the option --with-gxx-include-dir=<path to include-files directory>
23769 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23770 echo "configure:23771: checking for --with-gxx-include-dir" >&5
23771 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23772 if test "${with_gxx_include_dir+set}" = set; then
23773 withval="$with_gxx_include_dir"
23774 case "${withval}" in
23775 yes)
23776 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23777 gxx_include_dir=no
23780 gxx_include_dir=no
23783 gxx_include_dir=${withval}
23785 esac
23786 else
23787 gxx_include_dir=no
23790 echo "$ac_t""$gxx_include_dir" 1>&6
23792 # Process the option "--enable-version-specific-runtime-libs"
23793 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23794 echo "configure:23795: checking for --enable-version-specific-runtime-libs" >&5
23795 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23796 if test "${enable_version_specific_runtime_libs+set}" = set; then
23797 enableval="$enable_version_specific_runtime_libs"
23798 case "$enableval" in
23799 yes) version_specific_libs=yes ;;
23800 no) version_specific_libs=no ;;
23801 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23802 esac
23803 else
23804 version_specific_libs=no
23806 # Option set, now we can test it.
23807 echo "$ac_t""$version_specific_libs" 1>&6
23809 # Default case for install directory for include files.
23810 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23811 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23814 # Version-specific runtime libs processing.
23815 if test $version_specific_libs = yes; then
23816 # Need the gcc compiler version to know where to install libraries
23817 # and header files if --enable-version-specific-runtime-libs option
23818 # is selected.
23819 if test x"$gxx_include_dir" = x"no"; then
23820 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23822 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23823 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23826 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23827 # Install a library built with a cross compiler in tooldir, not libdir.
23828 if test x"$glibcpp_toolexecdir" = x"no"; then
23829 if test -n "$with_cross_host" &&
23830 test x"$with_cross_host" != x"no"; then
23831 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23832 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23833 else
23834 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23835 glibcpp_toolexeclibdir='$(libdir)'
23837 glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
23840 echo $ac_n "checking for install location""... $ac_c" 1>&6
23841 echo "configure:23842: checking for install location" >&5
23842 echo "$ac_t""$gxx_include_dir" 1>&6
23850 # Export all the include and flag information to Makefiles.
23852 # Root level of the build directory include sources.
23853 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23855 # Passed down for canadian crosses.
23856 if test x"$CANADIAN" = xyes; then
23857 TOPLEVEL_INCLUDES='-I$(includedir)'
23860 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23862 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23864 if test x"$need_libio" = xyes; then
23865 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23869 # Now, export this to all the little Makefiles....
23876 # Optimization flags that are probably a good idea for thrill-seekers. Just
23877 # uncomment the lines below and make, everything else is ready to go...
23878 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23879 OPTIMIZE_CXXFLAGS=
23882 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23886 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23887 grep "enable shared" > /dev/null; then
23888 LIBSUPCXX_PICFLAGS=-prefer-pic
23889 else
23890 LIBSUPCXX_PICFLAGS=
23894 # Generate the various Makefiles, include files, and scripts.
23895 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23896 # and libsupc++/Makefile.am so that multilib installs will end up
23897 # installed in the correct place. To work around this not being passed
23898 # down from config-ml.in -> top_srcdir/Makefile.am ->
23899 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23900 trap '' 1 2 15
23901 cat > confcache <<\EOF
23902 # This file is a shell script that caches the results of configure
23903 # tests run on this system so they can be shared between configure
23904 # scripts and configure runs. It is not useful on other systems.
23905 # If it contains results you don't want to keep, you may remove or edit it.
23907 # By default, configure uses ./config.cache as the cache file,
23908 # creating it if it does not exist already. You can give configure
23909 # the --cache-file=FILE option to use a different cache file; that is
23910 # what configure does when it calls configure scripts in
23911 # subdirectories, so they share the cache.
23912 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23913 # config.status only pays attention to the cache file if you give it the
23914 # --recheck option to rerun configure.
23917 # The following way of writing the cache mishandles newlines in values,
23918 # but we know of no workaround that is simple, portable, and efficient.
23919 # So, don't put newlines in cache variables' values.
23920 # Ultrix sh set writes to stderr and can't be redirected directly,
23921 # and sets the high bit in the cache file unless we assign to the vars.
23922 (set) 2>&1 |
23923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23924 *ac_space=\ *)
23925 # `set' does not quote correctly, so add quotes (double-quote substitution
23926 # turns \\\\ into \\, and sed turns \\ into \).
23927 sed -n \
23928 -e "s/'/'\\\\''/g" \
23929 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23932 # `set' quotes correctly as required by POSIX, so do not add quotes.
23933 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23935 esac >> confcache
23936 if cmp -s $cache_file confcache; then
23938 else
23939 if test -w $cache_file; then
23940 echo "updating cache $cache_file"
23941 cat confcache > $cache_file
23942 else
23943 echo "not updating unwritable cache $cache_file"
23946 rm -f confcache
23948 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23951 # Let make expand exec_prefix.
23952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23954 # Any assignment to VPATH causes Sun make to only execute
23955 # the first set of double-colon rules, so remove it if not needed.
23956 # If there is a colon in the path, we need to keep it.
23957 if test "x$srcdir" = x.; then
23958 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23961 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23963 DEFS=-DHAVE_CONFIG_H
23965 # Without the "./", some shells look in PATH for config.status.
23966 : ${CONFIG_STATUS=./config.status}
23968 echo creating $CONFIG_STATUS
23969 rm -f $CONFIG_STATUS
23970 cat > $CONFIG_STATUS <<EOF
23971 #! /bin/sh
23972 # Generated automatically by configure.
23973 # Run this file to recreate the current configuration.
23974 # This directory was configured as follows,
23975 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23977 # $0 $ac_configure_args
23979 # Compiler output produced by configure, useful for debugging
23980 # configure, is in ./config.log if it exists.
23982 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23983 for ac_option
23985 case "\$ac_option" in
23986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23987 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23988 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23989 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23990 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23991 exit 0 ;;
23992 -help | --help | --hel | --he | --h)
23993 echo "\$ac_cs_usage"; exit 0 ;;
23994 *) echo "\$ac_cs_usage"; exit 1 ;;
23995 esac
23996 done
23998 ac_given_srcdir=$srcdir
23999 ac_given_INSTALL="$INSTALL"
24001 trap 'rm -fr `echo "Makefile \
24002 include/Makefile src/Makefile \
24003 libmath/Makefile libio/Makefile libsupc++/Makefile \
24004 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24006 cat >> $CONFIG_STATUS <<EOF
24008 # Protect against being on the right side of a sed subst in config.status.
24009 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24010 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24011 $ac_vpsub
24012 $extrasub
24013 s%@SHELL@%$SHELL%g
24014 s%@CFLAGS@%$CFLAGS%g
24015 s%@CPPFLAGS@%$CPPFLAGS%g
24016 s%@CXXFLAGS@%$CXXFLAGS%g
24017 s%@FFLAGS@%$FFLAGS%g
24018 s%@DEFS@%$DEFS%g
24019 s%@LDFLAGS@%$LDFLAGS%g
24020 s%@LIBS@%$LIBS%g
24021 s%@exec_prefix@%$exec_prefix%g
24022 s%@prefix@%$prefix%g
24023 s%@program_transform_name@%$program_transform_name%g
24024 s%@bindir@%$bindir%g
24025 s%@sbindir@%$sbindir%g
24026 s%@libexecdir@%$libexecdir%g
24027 s%@datadir@%$datadir%g
24028 s%@sysconfdir@%$sysconfdir%g
24029 s%@sharedstatedir@%$sharedstatedir%g
24030 s%@localstatedir@%$localstatedir%g
24031 s%@libdir@%$libdir%g
24032 s%@includedir@%$includedir%g
24033 s%@oldincludedir@%$oldincludedir%g
24034 s%@infodir@%$infodir%g
24035 s%@mandir@%$mandir%g
24036 s%@PACKAGE@%$PACKAGE%g
24037 s%@libtool_VERSION@%$libtool_VERSION%g
24038 s%@toplevel_srcdir@%$toplevel_srcdir%g
24039 s%@host@%$host%g
24040 s%@host_alias@%$host_alias%g
24041 s%@host_cpu@%$host_cpu%g
24042 s%@host_vendor@%$host_vendor%g
24043 s%@host_os@%$host_os%g
24044 s%@target@%$target%g
24045 s%@target_alias@%$target_alias%g
24046 s%@target_cpu@%$target_cpu%g
24047 s%@target_vendor@%$target_vendor%g
24048 s%@target_os@%$target_os%g
24049 s%@build@%$build%g
24050 s%@build_alias@%$build_alias%g
24051 s%@build_cpu@%$build_cpu%g
24052 s%@build_vendor@%$build_vendor%g
24053 s%@build_os@%$build_os%g
24054 s%@glibcpp_builddir@%$glibcpp_builddir%g
24055 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24056 s%@AWK@%$AWK%g
24057 s%@LN_S@%$LN_S%g
24058 s%@glibcpp_basedir@%$glibcpp_basedir%g
24059 s%@CC@%$CC%g
24060 s%@glibcpp_CXX@%$glibcpp_CXX%g
24061 s%@AS@%$AS%g
24062 s%@AR@%$AR%g
24063 s%@RANLIB@%$RANLIB%g
24064 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24065 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24066 s%@INSTALL_DATA@%$INSTALL_DATA%g
24067 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24068 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24069 s%@MAINT@%$MAINT%g
24070 s%@EXEEXT@%$EXEEXT%g
24071 s%@VERSION@%$VERSION%g
24072 s%@ACLOCAL@%$ACLOCAL%g
24073 s%@AUTOCONF@%$AUTOCONF%g
24074 s%@AUTOMAKE@%$AUTOMAKE%g
24075 s%@AUTOHEADER@%$AUTOHEADER%g
24076 s%@MAKEINFO@%$MAKEINFO%g
24077 s%@SET_MAKE@%$SET_MAKE%g
24078 s%@OBJEXT@%$OBJEXT%g
24079 s%@STRIP@%$STRIP%g
24080 s%@LIBTOOL@%$LIBTOOL%g
24081 s%@CXXCPP@%$CXXCPP%g
24082 s%@enable_shared@%$enable_shared%g
24083 s%@enable_static@%$enable_static%g
24084 s%@ifGNUmake@%$ifGNUmake%g
24085 s%@CPP@%$CPP%g
24086 s%@CSTDIO_H@%$CSTDIO_H%g
24087 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24088 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24089 s%@CCODECVT_C@%$CCODECVT_C%g
24090 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24091 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24092 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24093 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24094 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24095 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24096 s%@libio_la@%$libio_la%g
24097 s%@check_msgfmt@%$check_msgfmt%g
24098 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24099 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24100 s%@glibcpp_localedir@%$glibcpp_localedir%g
24101 s%@USE_NLS@%$USE_NLS%g
24102 s%@CLOCALE_H@%$CLOCALE_H%g
24103 s%@CCODECVT_H@%$CCODECVT_H%g
24104 s%@CMESSAGES_H@%$CMESSAGES_H%g
24105 s%@CCODECVT_CC@%$CCODECVT_CC%g
24106 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24107 s%@CCTYPE_CC@%$CCTYPE_CC%g
24108 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24109 s%@CMONEY_CC@%$CMONEY_CC%g
24110 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24111 s%@CTIME_H@%$CTIME_H%g
24112 s%@CTIME_CC@%$CTIME_CC%g
24113 s%@CLOCALE_CC@%$CLOCALE_CC%g
24114 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24115 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24116 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24117 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24118 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24119 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24120 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24121 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24122 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24123 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24124 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24125 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24126 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24127 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24128 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24129 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24130 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24131 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24132 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24133 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24134 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24135 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24136 s%@WERROR@%$WERROR%g
24137 s%@baseline_file@%$baseline_file%g
24138 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24139 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24140 s%@SYMVER_MAP@%$SYMVER_MAP%g
24141 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24142 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24143 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24144 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24145 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24146 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24147 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24148 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24149 s%@gxx_include_dir@%$gxx_include_dir%g
24150 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24151 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24152 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24153 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24154 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24155 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24156 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24157 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24158 s%@WARN_FLAGS@%$WARN_FLAGS%g
24159 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24161 CEOF
24164 cat >> $CONFIG_STATUS <<\EOF
24166 # Split the substitutions into bite-sized pieces for seds with
24167 # small command number limits, like on Digital OSF/1 and HP-UX.
24168 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24169 ac_file=1 # Number of current file.
24170 ac_beg=1 # First line for current file.
24171 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24172 ac_more_lines=:
24173 ac_sed_cmds=""
24174 while $ac_more_lines; do
24175 if test $ac_beg -gt 1; then
24176 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24177 else
24178 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24180 if test ! -s conftest.s$ac_file; then
24181 ac_more_lines=false
24182 rm -f conftest.s$ac_file
24183 else
24184 if test -z "$ac_sed_cmds"; then
24185 ac_sed_cmds="sed -f conftest.s$ac_file"
24186 else
24187 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24189 ac_file=`expr $ac_file + 1`
24190 ac_beg=$ac_end
24191 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24193 done
24194 if test -z "$ac_sed_cmds"; then
24195 ac_sed_cmds=cat
24199 cat >> $CONFIG_STATUS <<EOF
24201 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24202 include/Makefile src/Makefile \
24203 libmath/Makefile libio/Makefile libsupc++/Makefile \
24204 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24206 cat >> $CONFIG_STATUS <<\EOF
24207 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24209 case "$ac_file" in
24210 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24211 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24212 *) ac_file_in="${ac_file}.in" ;;
24213 esac
24215 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24217 # Remove last slash and all that follows it. Not all systems have dirname.
24218 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24219 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24220 # The file is in a subdirectory.
24221 test ! -d "$ac_dir" && mkdir "$ac_dir"
24222 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24223 # A "../" for each directory in $ac_dir_suffix.
24224 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24225 else
24226 ac_dir_suffix= ac_dots=
24229 case "$ac_given_srcdir" in
24230 .) srcdir=.
24231 if test -z "$ac_dots"; then top_srcdir=.
24232 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24233 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24234 *) # Relative path.
24235 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24236 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24237 esac
24239 case "$ac_given_INSTALL" in
24240 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24241 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24242 esac
24244 echo creating "$ac_file"
24245 rm -f "$ac_file"
24246 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24247 case "$ac_file" in
24248 *Makefile*) ac_comsub="1i\\
24249 # $configure_input" ;;
24250 *) ac_comsub= ;;
24251 esac
24253 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24254 sed -e "$ac_comsub
24255 s%@configure_input@%$configure_input%g
24256 s%@srcdir@%$srcdir%g
24257 s%@top_srcdir@%$top_srcdir%g
24258 s%@INSTALL@%$INSTALL%g
24259 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24260 fi; done
24261 rm -f conftest.s*
24263 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24264 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24266 # ac_d sets the value in "#define NAME VALUE" lines.
24267 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24268 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24269 ac_dC='\3'
24270 ac_dD='%g'
24271 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24272 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24273 ac_uB='\([ ]\)%\1#\2define\3'
24274 ac_uC=' '
24275 ac_uD='\4%g'
24276 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24277 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24278 ac_eB='$%\1#\2define\3'
24279 ac_eC=' '
24280 ac_eD='%g'
24282 if test "${CONFIG_HEADERS+set}" != set; then
24284 cat >> $CONFIG_STATUS <<EOF
24285 CONFIG_HEADERS="config.h"
24287 cat >> $CONFIG_STATUS <<\EOF
24289 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24291 case "$ac_file" in
24292 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24293 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24294 *) ac_file_in="${ac_file}.in" ;;
24295 esac
24297 echo creating $ac_file
24299 rm -f conftest.frag conftest.in conftest.out
24300 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24301 cat $ac_file_inputs > conftest.in
24305 # Transform confdefs.h into a sed script conftest.vals that substitutes
24306 # the proper values into config.h.in to produce config.h. And first:
24307 # Protect against being on the right side of a sed subst in config.status.
24308 # Protect against being in an unquoted here document in config.status.
24309 rm -f conftest.vals
24310 cat > conftest.hdr <<\EOF
24311 s/[\\&%]/\\&/g
24312 s%[\\$`]%\\&%g
24313 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24314 s%ac_d%ac_u%gp
24315 s%ac_u%ac_e%gp
24317 sed -n -f conftest.hdr confdefs.h > conftest.vals
24318 rm -f conftest.hdr
24320 # This sed command replaces #undef with comments. This is necessary, for
24321 # example, in the case of _POSIX_SOURCE, which is predefined and required
24322 # on some systems where configure will not decide to define it.
24323 cat >> conftest.vals <<\EOF
24324 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24327 # Break up conftest.vals because some shells have a limit on
24328 # the size of here documents, and old seds have small limits too.
24330 rm -f conftest.tail
24331 while :
24333 ac_lines=`grep -c . conftest.vals`
24334 # grep -c gives empty output for an empty file on some AIX systems.
24335 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24336 # Write a limited-size here document to conftest.frag.
24337 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24338 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24339 echo 'CEOF
24340 sed -f conftest.frag conftest.in > conftest.out
24341 rm -f conftest.in
24342 mv conftest.out conftest.in
24343 ' >> $CONFIG_STATUS
24344 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24345 rm -f conftest.vals
24346 mv conftest.tail conftest.vals
24347 done
24348 rm -f conftest.vals
24350 cat >> $CONFIG_STATUS <<\EOF
24351 rm -f conftest.frag conftest.h
24352 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24353 cat conftest.in >> conftest.h
24354 rm -f conftest.in
24355 if cmp -s $ac_file conftest.h 2>/dev/null; then
24356 echo "$ac_file is unchanged"
24357 rm -f conftest.h
24358 else
24359 # Remove last slash and all that follows it. Not all systems have dirname.
24360 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24361 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24362 # The file is in a subdirectory.
24363 test ! -d "$ac_dir" && mkdir "$ac_dir"
24365 rm -f $ac_file
24366 mv conftest.h $ac_file
24368 fi; done
24371 cat >> $CONFIG_STATUS <<EOF
24373 srcdir=${srcdir}
24374 host=${host}
24375 target=${target}
24376 with_target_subdir=${with_target_subdir}
24377 with_build_subdir=${with_build_subdir}
24378 with_multisubdir=${with_multisubdir}
24379 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24380 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24381 glibcpp_basedir=${glibcpp_basedir}
24382 CC="${CC}"
24383 CXX="${CXX}"
24384 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24387 cat >> $CONFIG_STATUS <<\EOF
24388 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24389 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24390 if test -n "$CONFIG_FILES"; then
24391 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24392 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24393 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24394 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24395 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24398 chmod +x mkcheck
24399 chmod +x testsuite_flags
24400 exit 0
24402 chmod +x $CONFIG_STATUS
24403 rm -fr confdefs* $ac_clean_files
24404 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24408 # Sanity checking & User-visible messages.
24409 # Checks down here, otherwise they get scrolled off before
24410 # the user will notice.
24412 # Trying to get more people to read documentation. Possibly remove
24413 # check and warn all the time. There is no "informational" AC_MSG_
24414 # macro, so these are going to be printed even when --quiet/--silent
24415 # is given.
24416 if test ! -f stamp-sanity-warned; then
24417 touch stamp-sanity-warned
24418 echo ""
24419 echo "Please make certain that you read the installation information here:"
24420 echo " faster => ${srcdir}/docs/html/install.html"
24421 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24422 echo ""
24423 echo "and the configuration information here:"
24424 echo " faster => ${srcdir}/docs/html/configopts.html"
24425 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24426 echo ""
24427 echo "before proceeding with ${_cv_gnu_make_command}."
24428 echo ""