Mark ChangeLog
[official-gcc.git] / libstdc++-v3 / configure
blob65bd12479c6b54aba43feaa524c2087309cea1ee
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
591 PACKAGE=libstdc++
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=5:5: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*|powerpc64-*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;
3759 fi;
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;
3827 fi;
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=true
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=
5149 # For showmanyc_helper().
5150 for ac_hdr in sys/ioctl.h sys/filio.h
5152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_hdr" >&5
5155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 #include <$ac_hdr>
5163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5164 { (eval echo configure:5165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5166 if test -z "$ac_err"; then
5167 rm -rf conftest*
5168 eval "ac_cv_header_$ac_safe=yes"
5169 else
5170 echo "$ac_err" >&5
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -rf conftest*
5174 eval "ac_cv_header_$ac_safe=no"
5176 rm -f conftest*
5178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5179 echo "$ac_t""yes" 1>&6
5180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5181 cat >> confdefs.h <<EOF
5182 #define $ac_tr_hdr 1
5185 else
5186 echo "$ac_t""no" 1>&6
5188 done
5191 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5193 else
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5198 #include <poll.h>
5199 int main() {
5200 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
5201 ; return 0; }
5203 if { (eval echo configure:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 rm -rf conftest*
5205 glibcpp_cv_POLL=yes
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 rm -rf conftest*
5210 glibcpp_cv_POLL=no
5212 rm -f conftest*
5216 if test x$glibcpp_cv_POLL = xyes; then
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_POLL 1
5224 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 #include <sys/stat.h>
5232 int main() {
5233 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
5234 ; return 0; }
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 rm -rf conftest*
5238 glibcpp_cv_S_ISREG=yes
5239 else
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 rm -rf conftest*
5243 glibcpp_cv_S_ISREG=no
5245 rm -f conftest*
5249 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5251 else
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <sys/stat.h>
5257 int main() {
5258 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
5259 ; return 0; }
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 rm -rf conftest*
5263 glibcpp_cv_S_IFREG=yes
5264 else
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 rm -rf conftest*
5268 glibcpp_cv_S_IFREG=no
5270 rm -f conftest*
5274 if test x$glibcpp_cv_S_ISREG = xyes; then
5275 cat >> confdefs.h <<\EOF
5276 #define HAVE_S_ISREG 1
5279 elif test x$glibcpp_cv_S_IFREG = xyes; then
5280 cat >> confdefs.h <<\EOF
5281 #define HAVE_S_IFREG 1
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_COPYSIGN 1
5291 cat >> confdefs.h <<\EOF
5292 #define HAVE_COPYSIGNF 1
5295 cat >> confdefs.h <<\EOF
5296 #define HAVE_FINITE 1
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_FINITEF 1
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_FREXPF 1
5307 cat >> confdefs.h <<\EOF
5308 #define HAVE_HYPOTF 1
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_ISINF 1
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_ISINFF 1
5319 cat >> confdefs.h <<\EOF
5320 #define HAVE_ISNAN 1
5323 cat >> confdefs.h <<\EOF
5324 #define HAVE_ISNANF 1
5327 cat >> confdefs.h <<\EOF
5328 #define HAVE_SINCOS 1
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_SINCOSF 1
5335 if test x"long_double_math_on_this_cpu" = x"yes"; then
5336 cat >> confdefs.h <<\EOF
5337 #define HAVE_FINITEL 1
5340 cat >> confdefs.h <<\EOF
5341 #define HAVE_HYPOTL 1
5344 cat >> confdefs.h <<\EOF
5345 #define HAVE_ISINFL 1
5348 cat >> confdefs.h <<\EOF
5349 #define HAVE_ISNANL 1
5354 *-hpux*)
5355 # Check for available headers.
5356 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5357 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5358 fp.h locale.h float.h inttypes.h
5360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_hdr" >&5
5363 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365 else
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 #include <$ac_hdr>
5371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5372 { (eval echo configure:5373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5374 if test -z "$ac_err"; then
5375 rm -rf conftest*
5376 eval "ac_cv_header_$ac_safe=yes"
5377 else
5378 echo "$ac_err" >&5
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 rm -rf conftest*
5382 eval "ac_cv_header_$ac_safe=no"
5384 rm -f conftest*
5386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5387 echo "$ac_t""yes" 1>&6
5388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5389 cat >> confdefs.h <<EOF
5390 #define $ac_tr_hdr 1
5393 else
5394 echo "$ac_t""no" 1>&6
5396 done
5398 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5401 # If we're not using GNU ld, then there's no point in even trying these
5402 # tests. Check for that first. We should have already tested for gld
5403 # by now (in libtool), but require it now just to be safe...
5404 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5405 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5408 # The name set by libtool depends on the version of libtool. Shame on us
5409 # for depending on an impl detail, but c'est la vie. Older versions used
5410 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5411 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5412 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5413 # set (hence we're using an older libtool), then set it.
5414 if test x${with_gnu_ld+set} != xset; then
5415 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5416 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5417 with_gnu_ld=no
5418 else
5419 with_gnu_ld=$ac_cv_prog_gnu_ld
5423 # Start by getting the version number. I think the libtool test already
5424 # does some of this, but throws away the result.
5426 ldver=`$LD --version 2>/dev/null | head -1 | \
5427 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5429 glibcpp_gnu_ld_version=`echo $ldver | \
5430 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5432 # Set --gc-sections.
5433 if test "$with_gnu_ld" = "notbroken"; then
5434 # GNU ld it is! Joy and bunny rabbits!
5436 # All these tests are for C++; save the language and the compiler flags.
5437 # Need to do this so that g++ won't try to link in libstdc++
5438 ac_test_CFLAGS="${CFLAGS+set}"
5439 ac_save_CFLAGS="$CFLAGS"
5440 CFLAGS='-x c++ -Wl,--gc-sections'
5442 # Check for -Wl,--gc-sections
5443 # XXX This test is broken at the moment, as symbols required for
5444 # linking are now in libsupc++ (not built yet.....). In addition,
5445 # this test has cored on solaris in the past. In addition,
5446 # --gc-sections doesn't really work at the moment (keeps on discarding
5447 # used sections, first .eh_frame and now some of the glibc sections for
5448 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5449 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5450 echo "configure:5451: checking for ld that supports -Wl,--gc-sections" >&5
5451 if test "$cross_compiling" = yes; then
5452 ac_sectionLDflags=yes
5453 else
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5458 int main(void)
5460 try { throw 1; }
5461 catch (...) { };
5462 return 0;
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5467 then
5468 ac_sectionLDflags=yes
5469 else
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 rm -fr conftest*
5473 ac_sectionLDflags=no
5475 rm -fr conftest*
5478 if test "$ac_test_CFLAGS" = set; then
5479 CFLAGS="$ac_save_CFLAGS"
5480 else
5481 # this is the suspicious part
5482 CFLAGS=''
5484 if test "$ac_sectionLDflags" = "yes"; then
5485 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5487 echo "$ac_t""$ac_sectionLDflags" 1>&6
5490 # Set linker optimization flags.
5491 if test x"$with_gnu_ld" = x"yes"; then
5492 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5499 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5500 echo "configure:5501: checking for main in -lm" >&5
5501 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5504 else
5505 ac_save_LIBS="$LIBS"
5506 LIBS="-lm $LIBS"
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5511 int main() {
5512 main()
5513 ; return 0; }
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5516 rm -rf conftest*
5517 eval "ac_cv_lib_$ac_lib_var=yes"
5518 else
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 rm -rf conftest*
5522 eval "ac_cv_lib_$ac_lib_var=no"
5524 rm -f conftest*
5525 LIBS="$ac_save_LIBS"
5528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5529 echo "$ac_t""yes" 1>&6
5530 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5532 cat >> confdefs.h <<EOF
5533 #define $ac_tr_lib 1
5536 LIBS="-lm $LIBS"
5538 else
5539 echo "$ac_t""no" 1>&6
5542 for ac_func in nan copysignf
5544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_func" >&5
5546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 /* System header to define __stub macros and hopefully few prototypes,
5553 which can conflict with char $ac_func(); below. */
5554 #include <assert.h>
5555 /* Override any gcc2 internal prototype to avoid an error. */
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
5558 char $ac_func();
5560 int main() {
5562 /* The GNU C library defines this for functions which it implements
5563 to always fail with ENOSYS. Some functions are actually named
5564 something starting with __ and the normal name is an alias. */
5565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 choke me
5567 #else
5568 $ac_func();
5569 #endif
5571 ; return 0; }
5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5574 rm -rf conftest*
5575 eval "ac_cv_func_$ac_func=yes"
5576 else
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 rm -rf conftest*
5580 eval "ac_cv_func_$ac_func=no"
5582 rm -f conftest*
5585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5588 cat >> confdefs.h <<EOF
5589 #define $ac_tr_func 1
5592 else
5593 echo "$ac_t""no" 1>&6
5594 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5596 done
5599 for ac_func in __signbit
5601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5602 echo "configure:5603: checking for $ac_func" >&5
5603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5605 else
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 /* System header to define __stub macros and hopefully few prototypes,
5610 which can conflict with char $ac_func(); below. */
5611 #include <assert.h>
5612 /* Override any gcc2 internal prototype to avoid an error. */
5613 /* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
5615 char $ac_func();
5617 int main() {
5619 /* The GNU C library defines this for functions which it implements
5620 to always fail with ENOSYS. Some functions are actually named
5621 something starting with __ and the normal name is an alias. */
5622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5623 choke me
5624 #else
5625 $ac_func();
5626 #endif
5628 ; return 0; }
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5631 rm -rf conftest*
5632 eval "ac_cv_func_$ac_func=yes"
5633 else
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 rm -rf conftest*
5637 eval "ac_cv_func_$ac_func=no"
5639 rm -f conftest*
5642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5643 echo "$ac_t""yes" 1>&6
5644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5645 cat >> confdefs.h <<EOF
5646 #define $ac_tr_func 1
5649 else
5650 echo "$ac_t""no" 1>&6
5651 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5653 done
5655 for ac_func in __signbitf
5657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5658 echo "configure:5659: checking for $ac_func" >&5
5659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5661 else
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5665 /* System header to define __stub macros and hopefully few prototypes,
5666 which can conflict with char $ac_func(); below. */
5667 #include <assert.h>
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5671 char $ac_func();
5673 int main() {
5675 /* The GNU C library defines this for functions which it implements
5676 to always fail with ENOSYS. Some functions are actually named
5677 something starting with __ and the normal name is an alias. */
5678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5679 choke me
5680 #else
5681 $ac_func();
5682 #endif
5684 ; return 0; }
5686 if { (eval echo configure:5687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5687 rm -rf conftest*
5688 eval "ac_cv_func_$ac_func=yes"
5689 else
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5692 rm -rf conftest*
5693 eval "ac_cv_func_$ac_func=no"
5695 rm -f conftest*
5698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5701 cat >> confdefs.h <<EOF
5702 #define $ac_tr_func 1
5705 else
5706 echo "$ac_t""no" 1>&6
5707 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5709 done
5712 if test x$ac_cv_func_copysignl = x"yes"; then
5713 for ac_func in __signbitl
5715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_func" >&5
5717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5719 else
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723 /* System header to define __stub macros and hopefully few prototypes,
5724 which can conflict with char $ac_func(); below. */
5725 #include <assert.h>
5726 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5729 char $ac_func();
5731 int main() {
5733 /* The GNU C library defines this for functions which it implements
5734 to always fail with ENOSYS. Some functions are actually named
5735 something starting with __ and the normal name is an alias. */
5736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5737 choke me
5738 #else
5739 $ac_func();
5740 #endif
5742 ; return 0; }
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 rm -rf conftest*
5746 eval "ac_cv_func_$ac_func=yes"
5747 else
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 rm -rf conftest*
5751 eval "ac_cv_func_$ac_func=no"
5753 rm -f conftest*
5756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5757 echo "$ac_t""yes" 1>&6
5758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5759 cat >> confdefs.h <<EOF
5760 #define $ac_tr_func 1
5763 else
5764 echo "$ac_t""no" 1>&6
5765 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5767 done
5771 if test -n "$LIBMATHOBJS"; then
5772 need_libmath=yes
5777 if test "$need_libmath" = yes; then
5778 GLIBCPP_BUILD_LIBMATH_TRUE=
5779 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5780 else
5781 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5782 GLIBCPP_BUILD_LIBMATH_FALSE=
5786 enable_wchar_t=no
5788 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5789 echo "configure:5790: checking for mbstate_t" >&5
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5793 #include <wchar.h>
5794 int main() {
5795 mbstate_t teststate;
5796 ; return 0; }
5798 if { (eval echo configure:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 rm -rf conftest*
5800 have_mbstate_t=yes
5801 else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 have_mbstate_t=no
5807 rm -f conftest*
5808 echo "$ac_t""$have_mbstate_t" 1>&6
5809 if test x"$have_mbstate_t" = xyes; then
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE_MBSTATE_T 1
5816 for ac_hdr in wchar.h
5818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_hdr" >&5
5821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5823 else
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5827 #include <$ac_hdr>
5829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5830 { (eval echo configure:5831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5832 if test -z "$ac_err"; then
5833 rm -rf conftest*
5834 eval "ac_cv_header_$ac_safe=yes"
5835 else
5836 echo "$ac_err" >&5
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5839 rm -rf conftest*
5840 eval "ac_cv_header_$ac_safe=no"
5842 rm -f conftest*
5844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5847 cat >> confdefs.h <<EOF
5848 #define $ac_tr_hdr 1
5850 ac_has_wchar_h=yes
5851 else
5852 echo "$ac_t""no" 1>&6
5853 ac_has_wchar_h=no
5855 done
5857 for ac_hdr in wctype.h
5859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_hdr" >&5
5862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5864 else
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 #include <$ac_hdr>
5870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5871 { (eval echo configure:5872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5873 if test -z "$ac_err"; then
5874 rm -rf conftest*
5875 eval "ac_cv_header_$ac_safe=yes"
5876 else
5877 echo "$ac_err" >&5
5878 echo "configure: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5880 rm -rf conftest*
5881 eval "ac_cv_header_$ac_safe=no"
5883 rm -f conftest*
5885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_hdr 1
5891 ac_has_wctype_h=yes
5892 else
5893 echo "$ac_t""no" 1>&6
5894 ac_has_wctype_h=no
5896 done
5899 if test x"$ac_has_wchar_h" = xyes &&
5900 test x"$ac_has_wctype_h" = xyes &&
5901 test x"$enable_c_mbchar" != xno; then
5903 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5904 echo "configure:5905: checking for WCHAR_MIN and WCHAR_MAX" >&5
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <wchar.h>
5909 int main() {
5910 int i = WCHAR_MIN; int j = WCHAR_MAX;
5911 ; return 0; }
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914 rm -rf conftest*
5915 has_wchar_minmax=yes
5916 else
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5919 rm -rf conftest*
5920 has_wchar_minmax=no
5922 rm -f conftest*
5923 echo "$ac_t""$has_wchar_minmax" 1>&6
5925 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5926 echo "configure:5927: checking for WEOF" >&5
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5931 #include <wchar.h>
5932 #include <stddef.h>
5933 int main() {
5934 wint_t i = WEOF;
5935 ; return 0; }
5937 if { (eval echo configure:5938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5938 rm -rf conftest*
5939 has_weof=yes
5940 else
5941 echo "configure: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 rm -rf conftest*
5944 has_weof=no
5946 rm -f conftest*
5947 echo "$ac_t""$has_weof" 1>&6
5949 ac_wfuncs=yes
5950 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5956 else
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5962 #include <assert.h>
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5966 char $ac_func();
5968 int main() {
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5974 choke me
5975 #else
5976 $ac_func();
5977 #endif
5979 ; return 0; }
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5982 rm -rf conftest*
5983 eval "ac_cv_func_$ac_func=yes"
5984 else
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5987 rm -rf conftest*
5988 eval "ac_cv_func_$ac_func=no"
5990 rm -f conftest*
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h <<EOF
5997 #define $ac_tr_func 1
6000 else
6001 echo "$ac_t""no" 1>&6
6003 ac_wfuncs=no
6005 done
6008 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6009 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6010 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6011 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6012 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6013 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6016 echo "configure:6017: checking for $ac_func" >&5
6017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6019 else
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 /* System header to define __stub macros and hopefully few prototypes,
6024 which can conflict with char $ac_func(); below. */
6025 #include <assert.h>
6026 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6029 char $ac_func();
6031 int main() {
6033 /* The GNU C library defines this for functions which it implements
6034 to always fail with ENOSYS. Some functions are actually named
6035 something starting with __ and the normal name is an alias. */
6036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6037 choke me
6038 #else
6039 $ac_func();
6040 #endif
6042 ; return 0; }
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6045 rm -rf conftest*
6046 eval "ac_cv_func_$ac_func=yes"
6047 else
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 rm -rf conftest*
6051 eval "ac_cv_func_$ac_func=no"
6053 rm -f conftest*
6056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6057 echo "$ac_t""yes" 1>&6
6058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6059 cat >> confdefs.h <<EOF
6060 #define $ac_tr_func 1
6063 else
6064 echo "$ac_t""no" 1>&6
6066 ac_wfuncs=no
6068 done
6071 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6072 echo "configure:6073: checking for ISO C99 wchar_t support" >&5
6073 if test x"$has_weof" = xyes &&
6074 test x"$has_wchar_minmax" = xyes &&
6075 test x"$ac_wfuncs" = xyes; then
6076 ac_isoC99_wchar_t=yes
6077 else
6078 ac_isoC99_wchar_t=no
6080 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6082 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6083 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6084 echo "configure:6085: checking for iconv.h" >&5
6085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6087 else
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 #include <iconv.h>
6093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6094 { (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6096 if test -z "$ac_err"; then
6097 rm -rf conftest*
6098 eval "ac_cv_header_$ac_safe=yes"
6099 else
6100 echo "$ac_err" >&5
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 rm -rf conftest*
6104 eval "ac_cv_header_$ac_safe=no"
6106 rm -f conftest*
6108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6109 echo "$ac_t""yes" 1>&6
6110 ac_has_iconv_h=yes
6111 else
6112 echo "$ac_t""no" 1>&6
6113 ac_has_iconv_h=no
6116 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6117 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6118 echo "configure:6119: checking for langinfo.h" >&5
6119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6121 else
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 #include <langinfo.h>
6127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6128 { (eval echo configure:6129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6130 if test -z "$ac_err"; then
6131 rm -rf conftest*
6132 eval "ac_cv_header_$ac_safe=yes"
6133 else
6134 echo "$ac_err" >&5
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 rm -rf conftest*
6138 eval "ac_cv_header_$ac_safe=no"
6140 rm -f conftest*
6142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_has_langinfo_h=yes
6145 else
6146 echo "$ac_t""no" 1>&6
6147 ac_has_langinfo_h=no
6151 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6152 echo "configure:6153: checking for iconv in -liconv" >&5
6153 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6156 else
6157 ac_save_LIBS="$LIBS"
6158 LIBS="-liconv $LIBS"
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6165 char iconv();
6167 int main() {
6168 iconv()
6169 ; return 0; }
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6172 rm -rf conftest*
6173 eval "ac_cv_lib_$ac_lib_var=yes"
6174 else
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 rm -rf conftest*
6178 eval "ac_cv_lib_$ac_lib_var=no"
6180 rm -f conftest*
6181 LIBS="$ac_save_LIBS"
6184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 libiconv="-liconv"
6187 else
6188 echo "$ac_t""no" 1>&6
6191 ac_save_LIBS="$LIBS"
6192 LIBS="$LIBS $libiconv"
6194 for ac_func in iconv_open iconv_close iconv nl_langinfo
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6206 #include <assert.h>
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char $ac_func();
6212 int main() {
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 $ac_func();
6221 #endif
6223 ; return 0; }
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 rm -rf conftest*
6227 eval "ac_cv_func_$ac_func=yes"
6228 else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 eval "ac_cv_func_$ac_func=no"
6234 rm -f conftest*
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_func 1
6244 ac_XPG2funcs=yes
6245 else
6246 echo "$ac_t""no" 1>&6
6247 ac_XPG2funcs=no
6249 done
6252 LIBS="$ac_save_LIBS"
6254 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6255 echo "configure:6256: checking for XPG2 wchar_t support" >&5
6256 if test x"$ac_has_iconv_h" = xyes &&
6257 test x"$ac_has_langinfo_h" = xyes &&
6258 test x"$ac_XPG2funcs" = xyes; then
6259 ac_XPG2_wchar_t=yes
6260 else
6261 ac_XPG2_wchar_t=no
6263 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6265 if test x"$ac_isoC99_wchar_t" = xyes &&
6266 test x"$ac_XPG2_wchar_t" = xyes; then
6267 cat >> confdefs.h <<\EOF
6268 #define _GLIBCPP_USE_WCHAR_T 1
6271 enable_wchar_t=yes
6274 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6275 echo "configure:6276: checking for enabled wchar_t specializations" >&5
6276 echo "$ac_t""$enable_wchar_t" 1>&6
6279 if test "$enable_wchar_t" = yes; then
6280 GLIBCPP_TEST_WCHAR_T_TRUE=
6281 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6282 else
6283 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6284 GLIBCPP_TEST_WCHAR_T_FALSE=
6287 os_include_dir="os/hpux"
6288 cat >> confdefs.h <<\EOF
6289 #define HAVE_COPYSIGN 1
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_COPYSIGNF 1
6296 cat >> confdefs.h <<\EOF
6297 #define HAVE_FREXPF 1
6300 cat >> confdefs.h <<\EOF
6301 #define HAVE_HYPOT 1
6304 case "$target" in
6305 *-hpux10*)
6306 cat >> confdefs.h <<\EOF
6307 #define HAVE_FINITE 1
6310 cat >> confdefs.h <<\EOF
6311 #define HAVE_FINITEF 1
6314 cat >> confdefs.h <<\EOF
6315 #define HAVE_ISINF 1
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE_ISINFF 1
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_ISNAN 1
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_ISNANF 1
6331 esac
6334 *-netbsd*)
6335 # Check for available headers.
6336 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6337 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6338 fp.h locale.h float.h inttypes.h
6340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_hdr" >&5
6343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6345 else
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 #include <$ac_hdr>
6351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6352 { (eval echo configure:6353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6354 if test -z "$ac_err"; then
6355 rm -rf conftest*
6356 eval "ac_cv_header_$ac_safe=yes"
6357 else
6358 echo "$ac_err" >&5
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6361 rm -rf conftest*
6362 eval "ac_cv_header_$ac_safe=no"
6364 rm -f conftest*
6366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_hdr 1
6373 else
6374 echo "$ac_t""no" 1>&6
6376 done
6378 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6381 # If we're not using GNU ld, then there's no point in even trying these
6382 # tests. Check for that first. We should have already tested for gld
6383 # by now (in libtool), but require it now just to be safe...
6384 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6385 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6388 # The name set by libtool depends on the version of libtool. Shame on us
6389 # for depending on an impl detail, but c'est la vie. Older versions used
6390 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6391 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6392 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6393 # set (hence we're using an older libtool), then set it.
6394 if test x${with_gnu_ld+set} != xset; then
6395 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6396 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6397 with_gnu_ld=no
6398 else
6399 with_gnu_ld=$ac_cv_prog_gnu_ld
6403 # Start by getting the version number. I think the libtool test already
6404 # does some of this, but throws away the result.
6406 ldver=`$LD --version 2>/dev/null | head -1 | \
6407 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6409 glibcpp_gnu_ld_version=`echo $ldver | \
6410 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6412 # Set --gc-sections.
6413 if test "$with_gnu_ld" = "notbroken"; then
6414 # GNU ld it is! Joy and bunny rabbits!
6416 # All these tests are for C++; save the language and the compiler flags.
6417 # Need to do this so that g++ won't try to link in libstdc++
6418 ac_test_CFLAGS="${CFLAGS+set}"
6419 ac_save_CFLAGS="$CFLAGS"
6420 CFLAGS='-x c++ -Wl,--gc-sections'
6422 # Check for -Wl,--gc-sections
6423 # XXX This test is broken at the moment, as symbols required for
6424 # linking are now in libsupc++ (not built yet.....). In addition,
6425 # this test has cored on solaris in the past. In addition,
6426 # --gc-sections doesn't really work at the moment (keeps on discarding
6427 # used sections, first .eh_frame and now some of the glibc sections for
6428 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6429 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6430 echo "configure:6431: checking for ld that supports -Wl,--gc-sections" >&5
6431 if test "$cross_compiling" = yes; then
6432 ac_sectionLDflags=yes
6433 else
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6438 int main(void)
6440 try { throw 1; }
6441 catch (...) { };
6442 return 0;
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6447 then
6448 ac_sectionLDflags=yes
6449 else
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6452 rm -fr conftest*
6453 ac_sectionLDflags=no
6455 rm -fr conftest*
6458 if test "$ac_test_CFLAGS" = set; then
6459 CFLAGS="$ac_save_CFLAGS"
6460 else
6461 # this is the suspicious part
6462 CFLAGS=''
6464 if test "$ac_sectionLDflags" = "yes"; then
6465 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6467 echo "$ac_t""$ac_sectionLDflags" 1>&6
6470 # Set linker optimization flags.
6471 if test x"$with_gnu_ld" = x"yes"; then
6472 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6479 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6480 echo "configure:6481: checking for main in -lm" >&5
6481 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6484 else
6485 ac_save_LIBS="$LIBS"
6486 LIBS="-lm $LIBS"
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 int main() {
6492 main()
6493 ; return 0; }
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 rm -rf conftest*
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6498 else
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 rm -rf conftest*
6502 eval "ac_cv_lib_$ac_lib_var=no"
6504 rm -f conftest*
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_lib 1
6516 LIBS="-lm $LIBS"
6518 else
6519 echo "$ac_t""no" 1>&6
6522 for ac_func in nan copysignf
6524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_func" >&5
6526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func(); below. */
6534 #include <assert.h>
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538 char $ac_func();
6540 int main() {
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6546 choke me
6547 #else
6548 $ac_func();
6549 #endif
6551 ; return 0; }
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 rm -rf conftest*
6555 eval "ac_cv_func_$ac_func=yes"
6556 else
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6559 rm -rf conftest*
6560 eval "ac_cv_func_$ac_func=no"
6562 rm -f conftest*
6565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h <<EOF
6569 #define $ac_tr_func 1
6572 else
6573 echo "$ac_t""no" 1>&6
6574 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6576 done
6579 for ac_func in __signbit
6581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_func" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6585 else
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func(); below. */
6591 #include <assert.h>
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6595 char $ac_func();
6597 int main() {
6599 /* The GNU C library defines this for functions which it implements
6600 to always fail with ENOSYS. Some functions are actually named
6601 something starting with __ and the normal name is an alias. */
6602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6603 choke me
6604 #else
6605 $ac_func();
6606 #endif
6608 ; return 0; }
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 rm -rf conftest*
6612 eval "ac_cv_func_$ac_func=yes"
6613 else
6614 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5
6616 rm -rf conftest*
6617 eval "ac_cv_func_$ac_func=no"
6619 rm -f conftest*
6622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6625 cat >> confdefs.h <<EOF
6626 #define $ac_tr_func 1
6629 else
6630 echo "$ac_t""no" 1>&6
6631 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6633 done
6635 for ac_func in __signbitf
6637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6638 echo "configure:6639: checking for $ac_func" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char $ac_func(); below. */
6647 #include <assert.h>
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char $ac_func();
6653 int main() {
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 choke me
6660 #else
6661 $ac_func();
6662 #endif
6664 ; return 0; }
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest*
6668 eval "ac_cv_func_$ac_func=yes"
6669 else
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 rm -rf conftest*
6673 eval "ac_cv_func_$ac_func=no"
6675 rm -f conftest*
6678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6681 cat >> confdefs.h <<EOF
6682 #define $ac_tr_func 1
6685 else
6686 echo "$ac_t""no" 1>&6
6687 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6689 done
6692 if test x$ac_cv_func_copysignl = x"yes"; then
6693 for ac_func in __signbitl
6695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_func" >&5
6697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6699 else
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func(); below. */
6705 #include <assert.h>
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709 char $ac_func();
6711 int main() {
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6717 choke me
6718 #else
6719 $ac_func();
6720 #endif
6722 ; return 0; }
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6725 rm -rf conftest*
6726 eval "ac_cv_func_$ac_func=yes"
6727 else
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 rm -rf conftest*
6731 eval "ac_cv_func_$ac_func=no"
6733 rm -f conftest*
6736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 cat >> confdefs.h <<EOF
6740 #define $ac_tr_func 1
6743 else
6744 echo "$ac_t""no" 1>&6
6745 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6747 done
6751 if test -n "$LIBMATHOBJS"; then
6752 need_libmath=yes
6757 if test "$need_libmath" = yes; then
6758 GLIBCPP_BUILD_LIBMATH_TRUE=
6759 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6760 else
6761 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6762 GLIBCPP_BUILD_LIBMATH_FALSE=
6766 enable_wchar_t=no
6768 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6769 echo "configure:6770: checking for mbstate_t" >&5
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 #include <wchar.h>
6774 int main() {
6775 mbstate_t teststate;
6776 ; return 0; }
6778 if { (eval echo configure:6779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779 rm -rf conftest*
6780 have_mbstate_t=yes
6781 else
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 rm -rf conftest*
6785 have_mbstate_t=no
6787 rm -f conftest*
6788 echo "$ac_t""$have_mbstate_t" 1>&6
6789 if test x"$have_mbstate_t" = xyes; then
6790 cat >> confdefs.h <<\EOF
6791 #define HAVE_MBSTATE_T 1
6796 for ac_hdr in wchar.h
6798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_hdr" >&5
6801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6803 else
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 #include <$ac_hdr>
6809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6810 { (eval echo configure:6811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6812 if test -z "$ac_err"; then
6813 rm -rf conftest*
6814 eval "ac_cv_header_$ac_safe=yes"
6815 else
6816 echo "$ac_err" >&5
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 rm -rf conftest*
6820 eval "ac_cv_header_$ac_safe=no"
6822 rm -f conftest*
6824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6827 cat >> confdefs.h <<EOF
6828 #define $ac_tr_hdr 1
6830 ac_has_wchar_h=yes
6831 else
6832 echo "$ac_t""no" 1>&6
6833 ac_has_wchar_h=no
6835 done
6837 for ac_hdr in wctype.h
6839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_hdr" >&5
6842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6844 else
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 #include <$ac_hdr>
6850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6851 { (eval echo configure:6852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6853 if test -z "$ac_err"; then
6854 rm -rf conftest*
6855 eval "ac_cv_header_$ac_safe=yes"
6856 else
6857 echo "$ac_err" >&5
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 rm -rf conftest*
6861 eval "ac_cv_header_$ac_safe=no"
6863 rm -f conftest*
6865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6868 cat >> confdefs.h <<EOF
6869 #define $ac_tr_hdr 1
6871 ac_has_wctype_h=yes
6872 else
6873 echo "$ac_t""no" 1>&6
6874 ac_has_wctype_h=no
6876 done
6879 if test x"$ac_has_wchar_h" = xyes &&
6880 test x"$ac_has_wctype_h" = xyes &&
6881 test x"$enable_c_mbchar" != xno; then
6883 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6884 echo "configure:6885: checking for WCHAR_MIN and WCHAR_MAX" >&5
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include <wchar.h>
6889 int main() {
6890 int i = WCHAR_MIN; int j = WCHAR_MAX;
6891 ; return 0; }
6893 if { (eval echo configure:6894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6894 rm -rf conftest*
6895 has_wchar_minmax=yes
6896 else
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 rm -rf conftest*
6900 has_wchar_minmax=no
6902 rm -f conftest*
6903 echo "$ac_t""$has_wchar_minmax" 1>&6
6905 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6906 echo "configure:6907: checking for WEOF" >&5
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6911 #include <wchar.h>
6912 #include <stddef.h>
6913 int main() {
6914 wint_t i = WEOF;
6915 ; return 0; }
6917 if { (eval echo configure:6918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6918 rm -rf conftest*
6919 has_weof=yes
6920 else
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6923 rm -rf conftest*
6924 has_weof=no
6926 rm -f conftest*
6927 echo "$ac_t""$has_weof" 1>&6
6929 ac_wfuncs=yes
6930 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6933 echo "configure:6934: checking for $ac_func" >&5
6934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6936 else
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 /* System header to define __stub macros and hopefully few prototypes,
6941 which can conflict with char $ac_func(); below. */
6942 #include <assert.h>
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char $ac_func();
6948 int main() {
6950 /* The GNU C library defines this for functions which it implements
6951 to always fail with ENOSYS. Some functions are actually named
6952 something starting with __ and the normal name is an alias. */
6953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6954 choke me
6955 #else
6956 $ac_func();
6957 #endif
6959 ; return 0; }
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 rm -rf conftest*
6963 eval "ac_cv_func_$ac_func=yes"
6964 else
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 rm -rf conftest*
6968 eval "ac_cv_func_$ac_func=no"
6970 rm -f conftest*
6973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6974 echo "$ac_t""yes" 1>&6
6975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6976 cat >> confdefs.h <<EOF
6977 #define $ac_tr_func 1
6980 else
6981 echo "$ac_t""no" 1>&6
6983 ac_wfuncs=no
6985 done
6988 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6989 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6990 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6991 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6992 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6993 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6996 echo "configure:6997: checking for $ac_func" >&5
6997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 /* System header to define __stub macros and hopefully few prototypes,
7004 which can conflict with char $ac_func(); below. */
7005 #include <assert.h>
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7009 char $ac_func();
7011 int main() {
7013 /* The GNU C library defines this for functions which it implements
7014 to always fail with ENOSYS. Some functions are actually named
7015 something starting with __ and the normal name is an alias. */
7016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7017 choke me
7018 #else
7019 $ac_func();
7020 #endif
7022 ; return 0; }
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7025 rm -rf conftest*
7026 eval "ac_cv_func_$ac_func=yes"
7027 else
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 rm -rf conftest*
7031 eval "ac_cv_func_$ac_func=no"
7033 rm -f conftest*
7036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7037 echo "$ac_t""yes" 1>&6
7038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7039 cat >> confdefs.h <<EOF
7040 #define $ac_tr_func 1
7043 else
7044 echo "$ac_t""no" 1>&6
7046 ac_wfuncs=no
7048 done
7051 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7052 echo "configure:7053: checking for ISO C99 wchar_t support" >&5
7053 if test x"$has_weof" = xyes &&
7054 test x"$has_wchar_minmax" = xyes &&
7055 test x"$ac_wfuncs" = xyes; then
7056 ac_isoC99_wchar_t=yes
7057 else
7058 ac_isoC99_wchar_t=no
7060 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7062 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7063 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7064 echo "configure:7065: checking for iconv.h" >&5
7065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7066 echo $ac_n "(cached) $ac_c" 1>&6
7067 else
7068 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 #include <iconv.h>
7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7074 { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7076 if test -z "$ac_err"; then
7077 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=yes"
7079 else
7080 echo "$ac_err" >&5
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 rm -rf conftest*
7084 eval "ac_cv_header_$ac_safe=no"
7086 rm -f conftest*
7088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_has_iconv_h=yes
7091 else
7092 echo "$ac_t""no" 1>&6
7093 ac_has_iconv_h=no
7096 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7097 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7098 echo "configure:7099: checking for langinfo.h" >&5
7099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 #include <langinfo.h>
7107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7108 { (eval echo configure:7109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7110 if test -z "$ac_err"; then
7111 rm -rf conftest*
7112 eval "ac_cv_header_$ac_safe=yes"
7113 else
7114 echo "$ac_err" >&5
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_header_$ac_safe=no"
7120 rm -f conftest*
7122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7123 echo "$ac_t""yes" 1>&6
7124 ac_has_langinfo_h=yes
7125 else
7126 echo "$ac_t""no" 1>&6
7127 ac_has_langinfo_h=no
7131 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7132 echo "configure:7133: checking for iconv in -liconv" >&5
7133 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7136 else
7137 ac_save_LIBS="$LIBS"
7138 LIBS="-liconv $LIBS"
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7145 char iconv();
7147 int main() {
7148 iconv()
7149 ; return 0; }
7151 if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7152 rm -rf conftest*
7153 eval "ac_cv_lib_$ac_lib_var=yes"
7154 else
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 rm -rf conftest*
7158 eval "ac_cv_lib_$ac_lib_var=no"
7160 rm -f conftest*
7161 LIBS="$ac_save_LIBS"
7164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7166 libiconv="-liconv"
7167 else
7168 echo "$ac_t""no" 1>&6
7171 ac_save_LIBS="$LIBS"
7172 LIBS="$LIBS $libiconv"
7174 for ac_func in iconv_open iconv_close iconv nl_langinfo
7176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_func" >&5
7178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7180 else
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func(); below. */
7186 #include <assert.h>
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char $ac_func();
7192 int main() {
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 choke me
7199 #else
7200 $ac_func();
7201 #endif
7203 ; return 0; }
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 rm -rf conftest*
7207 eval "ac_cv_func_$ac_func=yes"
7208 else
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7211 rm -rf conftest*
7212 eval "ac_cv_func_$ac_func=no"
7214 rm -f conftest*
7217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_func 1
7224 ac_XPG2funcs=yes
7225 else
7226 echo "$ac_t""no" 1>&6
7227 ac_XPG2funcs=no
7229 done
7232 LIBS="$ac_save_LIBS"
7234 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7235 echo "configure:7236: checking for XPG2 wchar_t support" >&5
7236 if test x"$ac_has_iconv_h" = xyes &&
7237 test x"$ac_has_langinfo_h" = xyes &&
7238 test x"$ac_XPG2funcs" = xyes; then
7239 ac_XPG2_wchar_t=yes
7240 else
7241 ac_XPG2_wchar_t=no
7243 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7245 if test x"$ac_isoC99_wchar_t" = xyes &&
7246 test x"$ac_XPG2_wchar_t" = xyes; then
7247 cat >> confdefs.h <<\EOF
7248 #define _GLIBCPP_USE_WCHAR_T 1
7251 enable_wchar_t=yes
7254 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7255 echo "configure:7256: checking for enabled wchar_t specializations" >&5
7256 echo "$ac_t""$enable_wchar_t" 1>&6
7259 if test "$enable_wchar_t" = yes; then
7260 GLIBCPP_TEST_WCHAR_T_TRUE=
7261 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7262 else
7263 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7264 GLIBCPP_TEST_WCHAR_T_FALSE=
7267 os_include_dir="os/bsd/netbsd"
7268 cat >> confdefs.h <<\EOF
7269 #define HAVE_COPYSIGN 1
7272 cat >> confdefs.h <<\EOF
7273 #define HAVE_COPYSIGNF 1
7276 cat >> confdefs.h <<\EOF
7277 #define HAVE_FINITEF 1
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_FINITE 1
7284 cat >> confdefs.h <<\EOF
7285 #define HAVE_FREXPF 1
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_HYPOTF 1
7292 cat >> confdefs.h <<\EOF
7293 #define HAVE_ISINF 1
7296 cat >> confdefs.h <<\EOF
7297 #define HAVE_ISINFF 1
7300 cat >> confdefs.h <<\EOF
7301 #define HAVE_ISNAN 1
7304 cat >> confdefs.h <<\EOF
7305 #define HAVE_ISNANF 1
7308 if test x"long_double_math_on_this_cpu" = x"yes"; then
7309 cat >> confdefs.h <<\EOF
7310 #define HAVE_FINITEL 1
7313 cat >> confdefs.h <<\EOF
7314 #define HAVE_ISINFL 1
7317 cat >> confdefs.h <<\EOF
7318 #define HAVE_ISNANL 1
7323 *-freebsd*)
7324 # Check for available headers.
7325 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7326 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7327 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7328 sys/time.h unistd.h
7330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7332 echo "configure:7333: checking for $ac_hdr" >&5
7333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7335 else
7336 cat > conftest.$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7339 #include <$ac_hdr>
7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7344 if test -z "$ac_err"; then
7345 rm -rf conftest*
7346 eval "ac_cv_header_$ac_safe=yes"
7347 else
7348 echo "$ac_err" >&5
7349 echo "configure: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 rm -rf conftest*
7352 eval "ac_cv_header_$ac_safe=no"
7354 rm -f conftest*
7356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7359 cat >> confdefs.h <<EOF
7360 #define $ac_tr_hdr 1
7363 else
7364 echo "$ac_t""no" 1>&6
7366 done
7368 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7371 # If we're not using GNU ld, then there's no point in even trying these
7372 # tests. Check for that first. We should have already tested for gld
7373 # by now (in libtool), but require it now just to be safe...
7374 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7375 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7378 # The name set by libtool depends on the version of libtool. Shame on us
7379 # for depending on an impl detail, but c'est la vie. Older versions used
7380 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7381 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7382 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7383 # set (hence we're using an older libtool), then set it.
7384 if test x${with_gnu_ld+set} != xset; then
7385 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7386 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7387 with_gnu_ld=no
7388 else
7389 with_gnu_ld=$ac_cv_prog_gnu_ld
7393 # Start by getting the version number. I think the libtool test already
7394 # does some of this, but throws away the result.
7396 ldver=`$LD --version 2>/dev/null | head -1 | \
7397 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7399 glibcpp_gnu_ld_version=`echo $ldver | \
7400 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7402 # Set --gc-sections.
7403 if test "$with_gnu_ld" = "notbroken"; then
7404 # GNU ld it is! Joy and bunny rabbits!
7406 # All these tests are for C++; save the language and the compiler flags.
7407 # Need to do this so that g++ won't try to link in libstdc++
7408 ac_test_CFLAGS="${CFLAGS+set}"
7409 ac_save_CFLAGS="$CFLAGS"
7410 CFLAGS='-x c++ -Wl,--gc-sections'
7412 # Check for -Wl,--gc-sections
7413 # XXX This test is broken at the moment, as symbols required for
7414 # linking are now in libsupc++ (not built yet.....). In addition,
7415 # this test has cored on solaris in the past. In addition,
7416 # --gc-sections doesn't really work at the moment (keeps on discarding
7417 # used sections, first .eh_frame and now some of the glibc sections for
7418 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7419 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7420 echo "configure:7421: checking for ld that supports -Wl,--gc-sections" >&5
7421 if test "$cross_compiling" = yes; then
7422 ac_sectionLDflags=yes
7423 else
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7428 int main(void)
7430 try { throw 1; }
7431 catch (...) { };
7432 return 0;
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7437 then
7438 ac_sectionLDflags=yes
7439 else
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7442 rm -fr conftest*
7443 ac_sectionLDflags=no
7445 rm -fr conftest*
7448 if test "$ac_test_CFLAGS" = set; then
7449 CFLAGS="$ac_save_CFLAGS"
7450 else
7451 # this is the suspicious part
7452 CFLAGS=''
7454 if test "$ac_sectionLDflags" = "yes"; then
7455 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7457 echo "$ac_t""$ac_sectionLDflags" 1>&6
7460 # Set linker optimization flags.
7461 if test x"$with_gnu_ld" = x"yes"; then
7462 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7469 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7470 echo "configure:7471: checking for main in -lm" >&5
7471 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7474 else
7475 ac_save_LIBS="$LIBS"
7476 LIBS="-lm $LIBS"
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7481 int main() {
7482 main()
7483 ; return 0; }
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 rm -rf conftest*
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7488 else
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 rm -rf conftest*
7492 eval "ac_cv_lib_$ac_lib_var=no"
7494 rm -f conftest*
7495 LIBS="$ac_save_LIBS"
7498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7502 cat >> confdefs.h <<EOF
7503 #define $ac_tr_lib 1
7506 LIBS="-lm $LIBS"
7508 else
7509 echo "$ac_t""no" 1>&6
7512 for ac_func in nan copysignf
7514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_func" >&5
7516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7518 else
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char $ac_func(); below. */
7524 #include <assert.h>
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7528 char $ac_func();
7530 int main() {
7532 /* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7536 choke me
7537 #else
7538 $ac_func();
7539 #endif
7541 ; return 0; }
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7544 rm -rf conftest*
7545 eval "ac_cv_func_$ac_func=yes"
7546 else
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 rm -rf conftest*
7550 eval "ac_cv_func_$ac_func=no"
7552 rm -f conftest*
7555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7558 cat >> confdefs.h <<EOF
7559 #define $ac_tr_func 1
7562 else
7563 echo "$ac_t""no" 1>&6
7564 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7566 done
7569 for ac_func in __signbit
7571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7572 echo "configure:7573: checking for $ac_func" >&5
7573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7575 else
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char $ac_func(); below. */
7581 #include <assert.h>
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7585 char $ac_func();
7587 int main() {
7589 /* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7593 choke me
7594 #else
7595 $ac_func();
7596 #endif
7598 ; return 0; }
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7601 rm -rf conftest*
7602 eval "ac_cv_func_$ac_func=yes"
7603 else
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 rm -rf conftest*
7607 eval "ac_cv_func_$ac_func=no"
7609 rm -f conftest*
7612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7615 cat >> confdefs.h <<EOF
7616 #define $ac_tr_func 1
7619 else
7620 echo "$ac_t""no" 1>&6
7621 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7623 done
7625 for ac_func in __signbitf
7627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7628 echo "configure:7629: checking for $ac_func" >&5
7629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7631 else
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* System header to define __stub macros and hopefully few prototypes,
7636 which can conflict with char $ac_func(); below. */
7637 #include <assert.h>
7638 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7641 char $ac_func();
7643 int main() {
7645 /* The GNU C library defines this for functions which it implements
7646 to always fail with ENOSYS. Some functions are actually named
7647 something starting with __ and the normal name is an alias. */
7648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7649 choke me
7650 #else
7651 $ac_func();
7652 #endif
7654 ; return 0; }
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7657 rm -rf conftest*
7658 eval "ac_cv_func_$ac_func=yes"
7659 else
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7662 rm -rf conftest*
7663 eval "ac_cv_func_$ac_func=no"
7665 rm -f conftest*
7668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7671 cat >> confdefs.h <<EOF
7672 #define $ac_tr_func 1
7675 else
7676 echo "$ac_t""no" 1>&6
7677 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7679 done
7682 if test x$ac_cv_func_copysignl = x"yes"; then
7683 for ac_func in __signbitl
7685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_func" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char $ac_func(); below. */
7695 #include <assert.h>
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char $ac_func();
7701 int main() {
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7707 choke me
7708 #else
7709 $ac_func();
7710 #endif
7712 ; return 0; }
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 rm -rf conftest*
7716 eval "ac_cv_func_$ac_func=yes"
7717 else
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -rf conftest*
7721 eval "ac_cv_func_$ac_func=no"
7723 rm -f conftest*
7726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_func 1
7733 else
7734 echo "$ac_t""no" 1>&6
7735 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7737 done
7741 if test -n "$LIBMATHOBJS"; then
7742 need_libmath=yes
7747 if test "$need_libmath" = yes; then
7748 GLIBCPP_BUILD_LIBMATH_TRUE=
7749 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7750 else
7751 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7752 GLIBCPP_BUILD_LIBMATH_FALSE=
7756 enable_wchar_t=no
7758 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7759 echo "configure:7760: checking for mbstate_t" >&5
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 #include <wchar.h>
7764 int main() {
7765 mbstate_t teststate;
7766 ; return 0; }
7768 if { (eval echo configure:7769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7769 rm -rf conftest*
7770 have_mbstate_t=yes
7771 else
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 rm -rf conftest*
7775 have_mbstate_t=no
7777 rm -f conftest*
7778 echo "$ac_t""$have_mbstate_t" 1>&6
7779 if test x"$have_mbstate_t" = xyes; then
7780 cat >> confdefs.h <<\EOF
7781 #define HAVE_MBSTATE_T 1
7786 for ac_hdr in wchar.h
7788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7790 echo "configure:7791: checking for $ac_hdr" >&5
7791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7793 else
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 #include <$ac_hdr>
7799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7800 { (eval echo configure:7801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7802 if test -z "$ac_err"; then
7803 rm -rf conftest*
7804 eval "ac_cv_header_$ac_safe=yes"
7805 else
7806 echo "$ac_err" >&5
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7809 rm -rf conftest*
7810 eval "ac_cv_header_$ac_safe=no"
7812 rm -f conftest*
7814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7817 cat >> confdefs.h <<EOF
7818 #define $ac_tr_hdr 1
7820 ac_has_wchar_h=yes
7821 else
7822 echo "$ac_t""no" 1>&6
7823 ac_has_wchar_h=no
7825 done
7827 for ac_hdr in wctype.h
7829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7831 echo "configure:7832: checking for $ac_hdr" >&5
7832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7834 else
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 #include <$ac_hdr>
7840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7841 { (eval echo configure:7842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7843 if test -z "$ac_err"; then
7844 rm -rf conftest*
7845 eval "ac_cv_header_$ac_safe=yes"
7846 else
7847 echo "$ac_err" >&5
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 rm -rf conftest*
7851 eval "ac_cv_header_$ac_safe=no"
7853 rm -f conftest*
7855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7858 cat >> confdefs.h <<EOF
7859 #define $ac_tr_hdr 1
7861 ac_has_wctype_h=yes
7862 else
7863 echo "$ac_t""no" 1>&6
7864 ac_has_wctype_h=no
7866 done
7869 if test x"$ac_has_wchar_h" = xyes &&
7870 test x"$ac_has_wctype_h" = xyes &&
7871 test x"$enable_c_mbchar" != xno; then
7873 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7874 echo "configure:7875: checking for WCHAR_MIN and WCHAR_MAX" >&5
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <wchar.h>
7879 int main() {
7880 int i = WCHAR_MIN; int j = WCHAR_MAX;
7881 ; return 0; }
7883 if { (eval echo configure:7884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7884 rm -rf conftest*
7885 has_wchar_minmax=yes
7886 else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 has_wchar_minmax=no
7892 rm -f conftest*
7893 echo "$ac_t""$has_wchar_minmax" 1>&6
7895 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7896 echo "configure:7897: checking for WEOF" >&5
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7901 #include <wchar.h>
7902 #include <stddef.h>
7903 int main() {
7904 wint_t i = WEOF;
7905 ; return 0; }
7907 if { (eval echo configure:7908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7908 rm -rf conftest*
7909 has_weof=yes
7910 else
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7913 rm -rf conftest*
7914 has_weof=no
7916 rm -f conftest*
7917 echo "$ac_t""$has_weof" 1>&6
7919 ac_wfuncs=yes
7920 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_func" >&5
7924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7930 /* System header to define __stub macros and hopefully few prototypes,
7931 which can conflict with char $ac_func(); below. */
7932 #include <assert.h>
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936 char $ac_func();
7938 int main() {
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7944 choke me
7945 #else
7946 $ac_func();
7947 #endif
7949 ; return 0; }
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7952 rm -rf conftest*
7953 eval "ac_cv_func_$ac_func=yes"
7954 else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 rm -rf conftest*
7958 eval "ac_cv_func_$ac_func=no"
7960 rm -f conftest*
7963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7966 cat >> confdefs.h <<EOF
7967 #define $ac_tr_func 1
7970 else
7971 echo "$ac_t""no" 1>&6
7973 ac_wfuncs=no
7975 done
7978 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7979 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7980 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7981 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7982 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7983 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7986 echo "configure:7987: checking for $ac_func" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func(); below. */
7995 #include <assert.h>
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char $ac_func();
8001 int main() {
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8007 choke me
8008 #else
8009 $ac_func();
8010 #endif
8012 ; return 0; }
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8015 rm -rf conftest*
8016 eval "ac_cv_func_$ac_func=yes"
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_func_$ac_func=no"
8023 rm -f conftest*
8026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8029 cat >> confdefs.h <<EOF
8030 #define $ac_tr_func 1
8033 else
8034 echo "$ac_t""no" 1>&6
8036 ac_wfuncs=no
8038 done
8041 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8042 echo "configure:8043: checking for ISO C99 wchar_t support" >&5
8043 if test x"$has_weof" = xyes &&
8044 test x"$has_wchar_minmax" = xyes &&
8045 test x"$ac_wfuncs" = xyes; then
8046 ac_isoC99_wchar_t=yes
8047 else
8048 ac_isoC99_wchar_t=no
8050 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8052 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8053 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8054 echo "configure:8055: checking for iconv.h" >&5
8055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 #include <iconv.h>
8063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8064 { (eval echo configure:8065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8066 if test -z "$ac_err"; then
8067 rm -rf conftest*
8068 eval "ac_cv_header_$ac_safe=yes"
8069 else
8070 echo "$ac_err" >&5
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 rm -rf conftest*
8074 eval "ac_cv_header_$ac_safe=no"
8076 rm -f conftest*
8078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8079 echo "$ac_t""yes" 1>&6
8080 ac_has_iconv_h=yes
8081 else
8082 echo "$ac_t""no" 1>&6
8083 ac_has_iconv_h=no
8086 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8087 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8088 echo "configure:8089: checking for langinfo.h" >&5
8089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8091 else
8092 cat > conftest.$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 #include <langinfo.h>
8097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8098 { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8100 if test -z "$ac_err"; then
8101 rm -rf conftest*
8102 eval "ac_cv_header_$ac_safe=yes"
8103 else
8104 echo "$ac_err" >&5
8105 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8107 rm -rf conftest*
8108 eval "ac_cv_header_$ac_safe=no"
8110 rm -f conftest*
8112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8114 ac_has_langinfo_h=yes
8115 else
8116 echo "$ac_t""no" 1>&6
8117 ac_has_langinfo_h=no
8121 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8122 echo "configure:8123: checking for iconv in -liconv" >&5
8123 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127 ac_save_LIBS="$LIBS"
8128 LIBS="-liconv $LIBS"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char iconv();
8137 int main() {
8138 iconv()
8139 ; return 0; }
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8142 rm -rf conftest*
8143 eval "ac_cv_lib_$ac_lib_var=yes"
8144 else
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 rm -rf conftest*
8148 eval "ac_cv_lib_$ac_lib_var=no"
8150 rm -f conftest*
8151 LIBS="$ac_save_LIBS"
8154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 libiconv="-liconv"
8157 else
8158 echo "$ac_t""no" 1>&6
8161 ac_save_LIBS="$LIBS"
8162 LIBS="$LIBS $libiconv"
8164 for ac_func in iconv_open iconv_close iconv nl_langinfo
8166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8167 echo "configure:8168: checking for $ac_func" >&5
8168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8170 else
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char $ac_func(); below. */
8176 #include <assert.h>
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char $ac_func();
8182 int main() {
8184 /* The GNU C library defines this for functions which it implements
8185 to always fail with ENOSYS. Some functions are actually named
8186 something starting with __ and the normal name is an alias. */
8187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8188 choke me
8189 #else
8190 $ac_func();
8191 #endif
8193 ; return 0; }
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8196 rm -rf conftest*
8197 eval "ac_cv_func_$ac_func=yes"
8198 else
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 rm -rf conftest*
8202 eval "ac_cv_func_$ac_func=no"
8204 rm -f conftest*
8207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8208 echo "$ac_t""yes" 1>&6
8209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8210 cat >> confdefs.h <<EOF
8211 #define $ac_tr_func 1
8214 ac_XPG2funcs=yes
8215 else
8216 echo "$ac_t""no" 1>&6
8217 ac_XPG2funcs=no
8219 done
8222 LIBS="$ac_save_LIBS"
8224 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8225 echo "configure:8226: checking for XPG2 wchar_t support" >&5
8226 if test x"$ac_has_iconv_h" = xyes &&
8227 test x"$ac_has_langinfo_h" = xyes &&
8228 test x"$ac_XPG2funcs" = xyes; then
8229 ac_XPG2_wchar_t=yes
8230 else
8231 ac_XPG2_wchar_t=no
8233 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8235 if test x"$ac_isoC99_wchar_t" = xyes &&
8236 test x"$ac_XPG2_wchar_t" = xyes; then
8237 cat >> confdefs.h <<\EOF
8238 #define _GLIBCPP_USE_WCHAR_T 1
8241 enable_wchar_t=yes
8244 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8245 echo "configure:8246: checking for enabled wchar_t specializations" >&5
8246 echo "$ac_t""$enable_wchar_t" 1>&6
8249 if test "$enable_wchar_t" = yes; then
8250 GLIBCPP_TEST_WCHAR_T_TRUE=
8251 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8252 else
8253 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8254 GLIBCPP_TEST_WCHAR_T_FALSE=
8257 os_include_dir="os/bsd/freebsd"
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_LC_MESSAGES 1
8262 cat >> confdefs.h <<\EOF
8263 #define HAVE_DRAND48 1
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_GETPAGESIZE 1
8270 cat >> confdefs.h <<\EOF
8271 #define HAVE_SETENV 1
8274 cat >> confdefs.h <<\EOF
8275 #define HAVE_SIGSETJMP 1
8278 cat >> confdefs.h <<\EOF
8279 #define HAVE_COPYSIGN 1
8282 cat >> confdefs.h <<\EOF
8283 #define HAVE_COPYSIGNF 1
8286 cat >> confdefs.h <<\EOF
8287 #define HAVE_FINITEF 1
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_FINITE 1
8294 cat >> confdefs.h <<\EOF
8295 #define HAVE_FREXPF 1
8298 cat >> confdefs.h <<\EOF
8299 #define HAVE_HYPOT 1
8302 cat >> confdefs.h <<\EOF
8303 #define HAVE_HYPOTF 1
8306 cat >> confdefs.h <<\EOF
8307 #define HAVE_ISINF 1
8310 cat >> confdefs.h <<\EOF
8311 #define HAVE_ISNAN 1
8314 cat >> confdefs.h <<\EOF
8315 #define HAVE_ISNANF 1
8318 if test x"long_double_math_on_this_cpu" = x"yes"; then
8319 cat >> confdefs.h <<\EOF
8320 #define HAVE_FINITEL 1
8323 cat >> confdefs.h <<\EOF
8324 #define HAVE_ISINFL 1
8327 cat >> confdefs.h <<\EOF
8328 #define HAVE_ISNANL 1
8333 *-mingw32*)
8334 for ac_hdr in sys/types.h locale.h float.h
8336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_hdr" >&5
8339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 #include <$ac_hdr>
8347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8348 { (eval echo configure:8349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8350 if test -z "$ac_err"; then
8351 rm -rf conftest*
8352 eval "ac_cv_header_$ac_safe=yes"
8353 else
8354 echo "$ac_err" >&5
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8357 rm -rf conftest*
8358 eval "ac_cv_header_$ac_safe=no"
8360 rm -f conftest*
8362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8365 cat >> confdefs.h <<EOF
8366 #define $ac_tr_hdr 1
8369 else
8370 echo "$ac_t""no" 1>&6
8372 done
8375 # If we're not using GNU ld, then there's no point in even trying these
8376 # tests. Check for that first. We should have already tested for gld
8377 # by now (in libtool), but require it now just to be safe...
8378 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8379 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8382 # The name set by libtool depends on the version of libtool. Shame on us
8383 # for depending on an impl detail, but c'est la vie. Older versions used
8384 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8385 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8386 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8387 # set (hence we're using an older libtool), then set it.
8388 if test x${with_gnu_ld+set} != xset; then
8389 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8390 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8391 with_gnu_ld=no
8392 else
8393 with_gnu_ld=$ac_cv_prog_gnu_ld
8397 # Start by getting the version number. I think the libtool test already
8398 # does some of this, but throws away the result.
8400 ldver=`$LD --version 2>/dev/null | head -1 | \
8401 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8403 glibcpp_gnu_ld_version=`echo $ldver | \
8404 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8406 # Set --gc-sections.
8407 if test "$with_gnu_ld" = "notbroken"; then
8408 # GNU ld it is! Joy and bunny rabbits!
8410 # All these tests are for C++; save the language and the compiler flags.
8411 # Need to do this so that g++ won't try to link in libstdc++
8412 ac_test_CFLAGS="${CFLAGS+set}"
8413 ac_save_CFLAGS="$CFLAGS"
8414 CFLAGS='-x c++ -Wl,--gc-sections'
8416 # Check for -Wl,--gc-sections
8417 # XXX This test is broken at the moment, as symbols required for
8418 # linking are now in libsupc++ (not built yet.....). In addition,
8419 # this test has cored on solaris in the past. In addition,
8420 # --gc-sections doesn't really work at the moment (keeps on discarding
8421 # used sections, first .eh_frame and now some of the glibc sections for
8422 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8423 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8424 echo "configure:8425: checking for ld that supports -Wl,--gc-sections" >&5
8425 if test "$cross_compiling" = yes; then
8426 ac_sectionLDflags=yes
8427 else
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8432 int main(void)
8434 try { throw 1; }
8435 catch (...) { };
8436 return 0;
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8441 then
8442 ac_sectionLDflags=yes
8443 else
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 rm -fr conftest*
8447 ac_sectionLDflags=no
8449 rm -fr conftest*
8452 if test "$ac_test_CFLAGS" = set; then
8453 CFLAGS="$ac_save_CFLAGS"
8454 else
8455 # this is the suspicious part
8456 CFLAGS=''
8458 if test "$ac_sectionLDflags" = "yes"; then
8459 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8461 echo "$ac_t""$ac_sectionLDflags" 1>&6
8464 # Set linker optimization flags.
8465 if test x"$with_gnu_ld" = x"yes"; then
8466 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8473 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8474 echo "configure:8475: checking for main in -lm" >&5
8475 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8478 else
8479 ac_save_LIBS="$LIBS"
8480 LIBS="-lm $LIBS"
8481 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure"
8483 #include "confdefs.h"
8485 int main() {
8486 main()
8487 ; return 0; }
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490 rm -rf conftest*
8491 eval "ac_cv_lib_$ac_lib_var=yes"
8492 else
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 eval "ac_cv_lib_$ac_lib_var=no"
8498 rm -f conftest*
8499 LIBS="$ac_save_LIBS"
8502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8506 cat >> confdefs.h <<EOF
8507 #define $ac_tr_lib 1
8510 LIBS="-lm $LIBS"
8512 else
8513 echo "$ac_t""no" 1>&6
8516 for ac_func in nan copysignf
8518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8519 echo "configure:8520: checking for $ac_func" >&5
8520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8522 else
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8526 /* System header to define __stub macros and hopefully few prototypes,
8527 which can conflict with char $ac_func(); below. */
8528 #include <assert.h>
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char $ac_func();
8534 int main() {
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8540 choke me
8541 #else
8542 $ac_func();
8543 #endif
8545 ; return 0; }
8547 if { (eval echo configure:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8548 rm -rf conftest*
8549 eval "ac_cv_func_$ac_func=yes"
8550 else
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 rm -rf conftest*
8554 eval "ac_cv_func_$ac_func=no"
8556 rm -f conftest*
8559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8560 echo "$ac_t""yes" 1>&6
8561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8562 cat >> confdefs.h <<EOF
8563 #define $ac_tr_func 1
8566 else
8567 echo "$ac_t""no" 1>&6
8568 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8570 done
8573 for ac_func in __signbit
8575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8576 echo "configure:8577: checking for $ac_func" >&5
8577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579 else
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 /* System header to define __stub macros and hopefully few prototypes,
8584 which can conflict with char $ac_func(); below. */
8585 #include <assert.h>
8586 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char $ac_func();
8591 int main() {
8593 /* The GNU C library defines this for functions which it implements
8594 to always fail with ENOSYS. Some functions are actually named
8595 something starting with __ and the normal name is an alias. */
8596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8597 choke me
8598 #else
8599 $ac_func();
8600 #endif
8602 ; return 0; }
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 rm -rf conftest*
8606 eval "ac_cv_func_$ac_func=yes"
8607 else
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8610 rm -rf conftest*
8611 eval "ac_cv_func_$ac_func=no"
8613 rm -f conftest*
8616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8619 cat >> confdefs.h <<EOF
8620 #define $ac_tr_func 1
8623 else
8624 echo "$ac_t""no" 1>&6
8625 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8627 done
8629 for ac_func in __signbitf
8631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8632 echo "configure:8633: checking for $ac_func" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8635 else
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func(); below. */
8641 #include <assert.h>
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8645 char $ac_func();
8647 int main() {
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 choke me
8654 #else
8655 $ac_func();
8656 #endif
8658 ; return 0; }
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_func_$ac_func=no"
8669 rm -f conftest*
8672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8675 cat >> confdefs.h <<EOF
8676 #define $ac_tr_func 1
8679 else
8680 echo "$ac_t""no" 1>&6
8681 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8683 done
8686 if test x$ac_cv_func_copysignl = x"yes"; then
8687 for ac_func in __signbitl
8689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8690 echo "configure:8691: checking for $ac_func" >&5
8691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8693 else
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8696 "configure"
8696 #include "confdefs.h"
8697 /* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char $ac_func(); below. */
8699 #include <assert.h>
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char $ac_func();
8705 int main() {
8707 /* The GNU C library defines this for functions which it implements
8708 to always fail with ENOSYS. Some functions are actually named
8709 something starting with __ and the normal name is an alias. */
8710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8711 choke me
8712 #else
8713 $ac_func();
8714 #endif
8716 ; return 0; }
8718 if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8719 rm -rf conftest*
8720 eval "ac_cv_func_$ac_func=yes"
8721 else
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8724 rm -rf conftest*
8725 eval "ac_cv_func_$ac_func=no"
8727 rm -f conftest*
8730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8731 echo "$ac_t""yes" 1>&6
8732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8733 cat >> confdefs.h <<EOF
8734 #define $ac_tr_func 1
8737 else
8738 echo "$ac_t""no" 1>&6
8739 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8741 done
8745 if test -n "$LIBMATHOBJS"; then
8746 need_libmath=yes
8751 if test "$need_libmath" = yes; then
8752 GLIBCPP_BUILD_LIBMATH_TRUE=
8753 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8754 else
8755 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8756 GLIBCPP_BUILD_LIBMATH_FALSE=
8760 enable_wchar_t=no
8762 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8763 echo "configure:8764: checking for mbstate_t" >&5
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 #include <wchar.h>
8768 int main() {
8769 mbstate_t teststate;
8770 ; return 0; }
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8773 rm -rf conftest*
8774 have_mbstate_t=yes
8775 else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -rf conftest*
8779 have_mbstate_t=no
8781 rm -f conftest*
8782 echo "$ac_t""$have_mbstate_t" 1>&6
8783 if test x"$have_mbstate_t" = xyes; then
8784 cat >> confdefs.h <<\EOF
8785 #define HAVE_MBSTATE_T 1
8790 for ac_hdr in wchar.h
8792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8794 echo "configure:8795: checking for $ac_hdr" >&5
8795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8797 else
8798 cat > conftest.$ac_ext <<EOF
8799 #line 8800 "configure"
8800 #include "confdefs.h"
8801 #include <$ac_hdr>
8803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8804 { (eval echo configure:8805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8806 if test -z "$ac_err"; then
8807 rm -rf conftest*
8808 eval "ac_cv_header_$ac_safe=yes"
8809 else
8810 echo "$ac_err" >&5
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 eval "ac_cv_header_$ac_safe=no"
8816 rm -f conftest*
8818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8819 echo "$ac_t""yes" 1>&6
8820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8821 cat >> confdefs.h <<EOF
8822 #define $ac_tr_hdr 1
8824 ac_has_wchar_h=yes
8825 else
8826 echo "$ac_t""no" 1>&6
8827 ac_has_wchar_h=no
8829 done
8831 for ac_hdr in wctype.h
8833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8835 echo "configure:8836: checking for $ac_hdr" >&5
8836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8838 else
8839 cat > conftest.$ac_ext <<EOF
8840 #line 8841 "configure"
8841 #include "confdefs.h"
8842 #include <$ac_hdr>
8844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8845 { (eval echo configure:8846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8847 if test -z "$ac_err"; then
8848 rm -rf conftest*
8849 eval "ac_cv_header_$ac_safe=yes"
8850 else
8851 echo "$ac_err" >&5
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 rm -rf conftest*
8855 eval "ac_cv_header_$ac_safe=no"
8857 rm -f conftest*
8859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8860 echo "$ac_t""yes" 1>&6
8861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8862 cat >> confdefs.h <<EOF
8863 #define $ac_tr_hdr 1
8865 ac_has_wctype_h=yes
8866 else
8867 echo "$ac_t""no" 1>&6
8868 ac_has_wctype_h=no
8870 done
8873 if test x"$ac_has_wchar_h" = xyes &&
8874 test x"$ac_has_wctype_h" = xyes &&
8875 test x"$enable_c_mbchar" != xno; then
8877 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8878 echo "configure:8879: checking for WCHAR_MIN and WCHAR_MAX" >&5
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8882 #include <wchar.h>
8883 int main() {
8884 int i = WCHAR_MIN; int j = WCHAR_MAX;
8885 ; return 0; }
8887 if { (eval echo configure:8888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8888 rm -rf conftest*
8889 has_wchar_minmax=yes
8890 else
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 rm -rf conftest*
8894 has_wchar_minmax=no
8896 rm -f conftest*
8897 echo "$ac_t""$has_wchar_minmax" 1>&6
8899 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8900 echo "configure:8901: checking for WEOF" >&5
8901 cat > conftest.$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8905 #include <wchar.h>
8906 #include <stddef.h>
8907 int main() {
8908 wint_t i = WEOF;
8909 ; return 0; }
8911 if { (eval echo configure:8912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8912 rm -rf conftest*
8913 has_weof=yes
8914 else
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 rm -rf conftest*
8918 has_weof=no
8920 rm -f conftest*
8921 echo "$ac_t""$has_weof" 1>&6
8923 ac_wfuncs=yes
8924 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8927 echo "configure:8928: checking for $ac_func" >&5
8928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8929 echo $ac_n "(cached) $ac_c" 1>&6
8930 else
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8934 /* System header to define __stub macros and hopefully few prototypes,
8935 which can conflict with char $ac_func(); below. */
8936 #include <assert.h>
8937 /* Override any gcc2 internal prototype to avoid an error. */
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8940 char $ac_func();
8942 int main() {
8944 /* The GNU C library defines this for functions which it implements
8945 to always fail with ENOSYS. Some functions are actually named
8946 something starting with __ and the normal name is an alias. */
8947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8948 choke me
8949 #else
8950 $ac_func();
8951 #endif
8953 ; return 0; }
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8956 rm -rf conftest*
8957 eval "ac_cv_func_$ac_func=yes"
8958 else
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 eval "ac_cv_func_$ac_func=no"
8964 rm -f conftest*
8967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8968 echo "$ac_t""yes" 1>&6
8969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8970 cat >> confdefs.h <<EOF
8971 #define $ac_tr_func 1
8974 else
8975 echo "$ac_t""no" 1>&6
8977 ac_wfuncs=no
8979 done
8982 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8983 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8984 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8985 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8986 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8987 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_func" >&5
8991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char $ac_func(); below. */
8999 #include <assert.h>
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char $ac_func();
9005 int main() {
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 choke me
9012 #else
9013 $ac_func();
9014 #endif
9016 ; return 0; }
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 rm -rf conftest*
9020 eval "ac_cv_func_$ac_func=yes"
9021 else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 rm -rf conftest*
9025 eval "ac_cv_func_$ac_func=no"
9027 rm -f conftest*
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_func 1
9037 else
9038 echo "$ac_t""no" 1>&6
9040 ac_wfuncs=no
9042 done
9045 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9046 echo "configure:9047: checking for ISO C99 wchar_t support" >&5
9047 if test x"$has_weof" = xyes &&
9048 test x"$has_wchar_minmax" = xyes &&
9049 test x"$ac_wfuncs" = xyes; then
9050 ac_isoC99_wchar_t=yes
9051 else
9052 ac_isoC99_wchar_t=no
9054 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9056 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9057 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9058 echo "configure:9059: checking for iconv.h" >&5
9059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9061 else
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <iconv.h>
9067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9068 { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9070 if test -z "$ac_err"; then
9071 rm -rf conftest*
9072 eval "ac_cv_header_$ac_safe=yes"
9073 else
9074 echo "$ac_err" >&5
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9077 rm -rf conftest*
9078 eval "ac_cv_header_$ac_safe=no"
9080 rm -f conftest*
9082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9083 echo "$ac_t""yes" 1>&6
9084 ac_has_iconv_h=yes
9085 else
9086 echo "$ac_t""no" 1>&6
9087 ac_has_iconv_h=no
9090 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9091 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9092 echo "configure:9093: checking for langinfo.h" >&5
9093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
9095 else
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <langinfo.h>
9101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9102 { (eval echo configure:9103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9104 if test -z "$ac_err"; then
9105 rm -rf conftest*
9106 eval "ac_cv_header_$ac_safe=yes"
9107 else
9108 echo "$ac_err" >&5
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -rf conftest*
9112 eval "ac_cv_header_$ac_safe=no"
9114 rm -f conftest*
9116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 ac_has_langinfo_h=yes
9119 else
9120 echo "$ac_t""no" 1>&6
9121 ac_has_langinfo_h=no
9125 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9126 echo "configure:9127: checking for iconv in -liconv" >&5
9127 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9130 else
9131 ac_save_LIBS="$LIBS"
9132 LIBS="-liconv $LIBS"
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char iconv();
9141 int main() {
9142 iconv()
9143 ; return 0; }
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9146 rm -rf conftest*
9147 eval "ac_cv_lib_$ac_lib_var=yes"
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 eval "ac_cv_lib_$ac_lib_var=no"
9154 rm -f conftest*
9155 LIBS="$ac_save_LIBS"
9158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9159 echo "$ac_t""yes" 1>&6
9160 libiconv="-liconv"
9161 else
9162 echo "$ac_t""no" 1>&6
9165 ac_save_LIBS="$LIBS"
9166 LIBS="$LIBS $libiconv"
9168 for ac_func in iconv_open iconv_close iconv nl_langinfo
9170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9171 echo "configure:9172: checking for $ac_func" >&5
9172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9174 else
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9178 /* System header to define __stub macros and hopefully few prototypes,
9179 which can conflict with char $ac_func(); below. */
9180 #include <assert.h>
9181 /* Override any gcc2 internal prototype to avoid an error. */
9182 /* We use char because int might match the return type of a gcc2
9183 builtin and then its argument prototype would still apply. */
9184 char $ac_func();
9186 int main() {
9188 /* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9192 choke me
9193 #else
9194 $ac_func();
9195 #endif
9197 ; return 0; }
9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9200 rm -rf conftest*
9201 eval "ac_cv_func_$ac_func=yes"
9202 else
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -rf conftest*
9206 eval "ac_cv_func_$ac_func=no"
9208 rm -f conftest*
9211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9212 echo "$ac_t""yes" 1>&6
9213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9214 cat >> confdefs.h <<EOF
9215 #define $ac_tr_func 1
9218 ac_XPG2funcs=yes
9219 else
9220 echo "$ac_t""no" 1>&6
9221 ac_XPG2funcs=no
9223 done
9226 LIBS="$ac_save_LIBS"
9228 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9229 echo "configure:9230: checking for XPG2 wchar_t support" >&5
9230 if test x"$ac_has_iconv_h" = xyes &&
9231 test x"$ac_has_langinfo_h" = xyes &&
9232 test x"$ac_XPG2funcs" = xyes; then
9233 ac_XPG2_wchar_t=yes
9234 else
9235 ac_XPG2_wchar_t=no
9237 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9239 if test x"$ac_isoC99_wchar_t" = xyes &&
9240 test x"$ac_XPG2_wchar_t" = xyes; then
9241 cat >> confdefs.h <<\EOF
9242 #define _GLIBCPP_USE_WCHAR_T 1
9245 enable_wchar_t=yes
9248 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9249 echo "configure:9250: checking for enabled wchar_t specializations" >&5
9250 echo "$ac_t""$enable_wchar_t" 1>&6
9253 if test "$enable_wchar_t" = yes; then
9254 GLIBCPP_TEST_WCHAR_T_TRUE=
9255 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9256 else
9257 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9258 GLIBCPP_TEST_WCHAR_T_FALSE=
9261 os_include_dir="os/mingw32"
9263 *-windiss*)
9264 os_include_dir="os/windiss"
9266 *-qnx6.[12]*)
9267 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9270 # If we're not using GNU ld, then there's no point in even trying these
9271 # tests. Check for that first. We should have already tested for gld
9272 # by now (in libtool), but require it now just to be safe...
9273 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9274 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9277 # The name set by libtool depends on the version of libtool. Shame on us
9278 # for depending on an impl detail, but c'est la vie. Older versions used
9279 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9280 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9281 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9282 # set (hence we're using an older libtool), then set it.
9283 if test x${with_gnu_ld+set} != xset; then
9284 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9285 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9286 with_gnu_ld=no
9287 else
9288 with_gnu_ld=$ac_cv_prog_gnu_ld
9292 # Start by getting the version number. I think the libtool test already
9293 # does some of this, but throws away the result.
9295 ldver=`$LD --version 2>/dev/null | head -1 | \
9296 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9298 glibcpp_gnu_ld_version=`echo $ldver | \
9299 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9301 # Set --gc-sections.
9302 if test "$with_gnu_ld" = "notbroken"; then
9303 # GNU ld it is! Joy and bunny rabbits!
9305 # All these tests are for C++; save the language and the compiler flags.
9306 # Need to do this so that g++ won't try to link in libstdc++
9307 ac_test_CFLAGS="${CFLAGS+set}"
9308 ac_save_CFLAGS="$CFLAGS"
9309 CFLAGS='-x c++ -Wl,--gc-sections'
9311 # Check for -Wl,--gc-sections
9312 # XXX This test is broken at the moment, as symbols required for
9313 # linking are now in libsupc++ (not built yet.....). In addition,
9314 # this test has cored on solaris in the past. In addition,
9315 # --gc-sections doesn't really work at the moment (keeps on discarding
9316 # used sections, first .eh_frame and now some of the glibc sections for
9317 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9318 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9319 echo "configure:9320: checking for ld that supports -Wl,--gc-sections" >&5
9320 if test "$cross_compiling" = yes; then
9321 ac_sectionLDflags=yes
9322 else
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9327 int main(void)
9329 try { throw 1; }
9330 catch (...) { };
9331 return 0;
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9336 then
9337 ac_sectionLDflags=yes
9338 else
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9341 rm -fr conftest*
9342 ac_sectionLDflags=no
9344 rm -fr conftest*
9347 if test "$ac_test_CFLAGS" = set; then
9348 CFLAGS="$ac_save_CFLAGS"
9349 else
9350 # this is the suspicious part
9351 CFLAGS=''
9353 if test "$ac_sectionLDflags" = "yes"; then
9354 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9356 echo "$ac_t""$ac_sectionLDflags" 1>&6
9359 # Set linker optimization flags.
9360 if test x"$with_gnu_ld" = x"yes"; then
9361 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9368 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9369 echo "configure:9370: checking for main in -lm" >&5
9370 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373 else
9374 ac_save_LIBS="$LIBS"
9375 LIBS="-lm $LIBS"
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 int main() {
9381 main()
9382 ; return 0; }
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9385 rm -rf conftest*
9386 eval "ac_cv_lib_$ac_lib_var=yes"
9387 else
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 rm -rf conftest*
9391 eval "ac_cv_lib_$ac_lib_var=no"
9393 rm -f conftest*
9394 LIBS="$ac_save_LIBS"
9397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9401 cat >> confdefs.h <<EOF
9402 #define $ac_tr_lib 1
9405 LIBS="-lm $LIBS"
9407 else
9408 echo "$ac_t""no" 1>&6
9411 for ac_func in nan copysignf
9413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9414 echo "configure:9415: checking for $ac_func" >&5
9415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417 else
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char $ac_func(); below. */
9423 #include <assert.h>
9424 /* Override any gcc2 internal prototype to avoid an error. */
9425 /* We use char because int might match the return type of a gcc2
9426 builtin and then its argument prototype would still apply. */
9427 char $ac_func();
9429 int main() {
9431 /* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9435 choke me
9436 #else
9437 $ac_func();
9438 #endif
9440 ; return 0; }
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443 rm -rf conftest*
9444 eval "ac_cv_func_$ac_func=yes"
9445 else
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 rm -rf conftest*
9449 eval "ac_cv_func_$ac_func=no"
9451 rm -f conftest*
9454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9455 echo "$ac_t""yes" 1>&6
9456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9457 cat >> confdefs.h <<EOF
9458 #define $ac_tr_func 1
9461 else
9462 echo "$ac_t""no" 1>&6
9463 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9465 done
9468 for ac_func in __signbit
9470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9471 echo "configure:9472: checking for $ac_func" >&5
9472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func(); below. */
9480 #include <assert.h>
9481 /* Override any gcc2 internal prototype to avoid an error. */
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484 char $ac_func();
9486 int main() {
9488 /* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 choke me
9493 #else
9494 $ac_func();
9495 #endif
9497 ; return 0; }
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9500 rm -rf conftest*
9501 eval "ac_cv_func_$ac_func=yes"
9502 else
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 rm -rf conftest*
9506 eval "ac_cv_func_$ac_func=no"
9508 rm -f conftest*
9511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9512 echo "$ac_t""yes" 1>&6
9513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9514 cat >> confdefs.h <<EOF
9515 #define $ac_tr_func 1
9518 else
9519 echo "$ac_t""no" 1>&6
9520 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9522 done
9524 for ac_func in __signbitf
9526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9527 echo "configure:9528: checking for $ac_func" >&5
9528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char $ac_func(); below. */
9536 #include <assert.h>
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 /* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9540 char $ac_func();
9542 int main() {
9544 /* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9548 choke me
9549 #else
9550 $ac_func();
9551 #endif
9553 ; return 0; }
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556 rm -rf conftest*
9557 eval "ac_cv_func_$ac_func=yes"
9558 else
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 rm -rf conftest*
9562 eval "ac_cv_func_$ac_func=no"
9564 rm -f conftest*
9567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9568 echo "$ac_t""yes" 1>&6
9569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9570 cat >> confdefs.h <<EOF
9571 #define $ac_tr_func 1
9574 else
9575 echo "$ac_t""no" 1>&6
9576 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9578 done
9581 if test x$ac_cv_func_copysignl = x"yes"; then
9582 for ac_func in __signbitl
9584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9585 echo "configure:9586: checking for $ac_func" >&5
9586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9587 echo $ac_n "(cached) $ac_c" 1>&6
9588 else
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 /* System header to define __stub macros and hopefully few prototypes,
9593 which can conflict with char $ac_func(); below. */
9594 #include <assert.h>
9595 /* Override any gcc2 internal prototype to avoid an error. */
9596 /* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9598 char $ac_func();
9600 int main() {
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9606 choke me
9607 #else
9608 $ac_func();
9609 #endif
9611 ; return 0; }
9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9614 rm -rf conftest*
9615 eval "ac_cv_func_$ac_func=yes"
9616 else
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 rm -rf conftest*
9620 eval "ac_cv_func_$ac_func=no"
9622 rm -f conftest*
9625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9628 cat >> confdefs.h <<EOF
9629 #define $ac_tr_func 1
9632 else
9633 echo "$ac_t""no" 1>&6
9634 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9636 done
9640 if test -n "$LIBMATHOBJS"; then
9641 need_libmath=yes
9646 if test "$need_libmath" = yes; then
9647 GLIBCPP_BUILD_LIBMATH_TRUE=
9648 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9649 else
9650 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9651 GLIBCPP_BUILD_LIBMATH_FALSE=
9655 enable_wchar_t=no
9657 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9658 echo "configure:9659: checking for mbstate_t" >&5
9659 cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9662 #include <wchar.h>
9663 int main() {
9664 mbstate_t teststate;
9665 ; return 0; }
9667 if { (eval echo configure:9668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668 rm -rf conftest*
9669 have_mbstate_t=yes
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 have_mbstate_t=no
9676 rm -f conftest*
9677 echo "$ac_t""$have_mbstate_t" 1>&6
9678 if test x"$have_mbstate_t" = xyes; then
9679 cat >> confdefs.h <<\EOF
9680 #define HAVE_MBSTATE_T 1
9685 for ac_hdr in wchar.h
9687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9689 echo "configure:9690: checking for $ac_hdr" >&5
9690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9693 cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9696 #include <$ac_hdr>
9698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9699 { (eval echo configure:9700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9701 if test -z "$ac_err"; then
9702 rm -rf conftest*
9703 eval "ac_cv_header_$ac_safe=yes"
9704 else
9705 echo "$ac_err" >&5
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -rf conftest*
9709 eval "ac_cv_header_$ac_safe=no"
9711 rm -f conftest*
9713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
9715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9716 cat >> confdefs.h <<EOF
9717 #define $ac_tr_hdr 1
9719 ac_has_wchar_h=yes
9720 else
9721 echo "$ac_t""no" 1>&6
9722 ac_has_wchar_h=no
9724 done
9726 for ac_hdr in wctype.h
9728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9730 echo "configure:9731: checking for $ac_hdr" >&5
9731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733 else
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <$ac_hdr>
9739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9740 { (eval echo configure:9741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9742 if test -z "$ac_err"; then
9743 rm -rf conftest*
9744 eval "ac_cv_header_$ac_safe=yes"
9745 else
9746 echo "$ac_err" >&5
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_header_$ac_safe=no"
9752 rm -f conftest*
9754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9755 echo "$ac_t""yes" 1>&6
9756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9757 cat >> confdefs.h <<EOF
9758 #define $ac_tr_hdr 1
9760 ac_has_wctype_h=yes
9761 else
9762 echo "$ac_t""no" 1>&6
9763 ac_has_wctype_h=no
9765 done
9768 if test x"$ac_has_wchar_h" = xyes &&
9769 test x"$ac_has_wctype_h" = xyes &&
9770 test x"$enable_c_mbchar" != xno; then
9772 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9773 echo "configure:9774: checking for WCHAR_MIN and WCHAR_MAX" >&5
9774 cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 #include <wchar.h>
9778 int main() {
9779 int i = WCHAR_MIN; int j = WCHAR_MAX;
9780 ; return 0; }
9782 if { (eval echo configure:9783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9783 rm -rf conftest*
9784 has_wchar_minmax=yes
9785 else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 has_wchar_minmax=no
9791 rm -f conftest*
9792 echo "$ac_t""$has_wchar_minmax" 1>&6
9794 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9795 echo "configure:9796: checking for WEOF" >&5
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9800 #include <wchar.h>
9801 #include <stddef.h>
9802 int main() {
9803 wint_t i = WEOF;
9804 ; return 0; }
9806 if { (eval echo configure:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9807 rm -rf conftest*
9808 has_weof=yes
9809 else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -rf conftest*
9813 has_weof=no
9815 rm -f conftest*
9816 echo "$ac_t""$has_weof" 1>&6
9818 ac_wfuncs=yes
9819 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9822 echo "configure:9823: checking for $ac_func" >&5
9823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9825 else
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 /* System header to define __stub macros and hopefully few prototypes,
9830 which can conflict with char $ac_func(); below. */
9831 #include <assert.h>
9832 /* Override any gcc2 internal prototype to avoid an error. */
9833 /* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9835 char $ac_func();
9837 int main() {
9839 /* The GNU C library defines this for functions which it implements
9840 to always fail with ENOSYS. Some functions are actually named
9841 something starting with __ and the normal name is an alias. */
9842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9843 choke me
9844 #else
9845 $ac_func();
9846 #endif
9848 ; return 0; }
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9851 rm -rf conftest*
9852 eval "ac_cv_func_$ac_func=yes"
9853 else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -rf conftest*
9857 eval "ac_cv_func_$ac_func=no"
9859 rm -f conftest*
9862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9865 cat >> confdefs.h <<EOF
9866 #define $ac_tr_func 1
9869 else
9870 echo "$ac_t""no" 1>&6
9872 ac_wfuncs=no
9874 done
9877 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9878 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9879 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9880 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9881 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9882 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9885 echo "configure:9886: checking for $ac_func" >&5
9886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9888 else
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char $ac_func(); below. */
9894 #include <assert.h>
9895 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898 char $ac_func();
9900 int main() {
9902 /* The GNU C library defines this for functions which it implements
9903 to always fail with ENOSYS. Some functions are actually named
9904 something starting with __ and the normal name is an alias. */
9905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 choke me
9907 #else
9908 $ac_func();
9909 #endif
9911 ; return 0; }
9913 if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9914 rm -rf conftest*
9915 eval "ac_cv_func_$ac_func=yes"
9916 else
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 rm -rf conftest*
9920 eval "ac_cv_func_$ac_func=no"
9922 rm -f conftest*
9925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9926 echo "$ac_t""yes" 1>&6
9927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9928 cat >> confdefs.h <<EOF
9929 #define $ac_tr_func 1
9932 else
9933 echo "$ac_t""no" 1>&6
9935 ac_wfuncs=no
9937 done
9940 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9941 echo "configure:9942: checking for ISO C99 wchar_t support" >&5
9942 if test x"$has_weof" = xyes &&
9943 test x"$has_wchar_minmax" = xyes &&
9944 test x"$ac_wfuncs" = xyes; then
9945 ac_isoC99_wchar_t=yes
9946 else
9947 ac_isoC99_wchar_t=no
9949 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9951 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9952 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9953 echo "configure:9954: checking for iconv.h" >&5
9954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9956 else
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 #include <iconv.h>
9962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9963 { (eval echo configure:9964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9965 if test -z "$ac_err"; then
9966 rm -rf conftest*
9967 eval "ac_cv_header_$ac_safe=yes"
9968 else
9969 echo "$ac_err" >&5
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 rm -rf conftest*
9973 eval "ac_cv_header_$ac_safe=no"
9975 rm -f conftest*
9977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9978 echo "$ac_t""yes" 1>&6
9979 ac_has_iconv_h=yes
9980 else
9981 echo "$ac_t""no" 1>&6
9982 ac_has_iconv_h=no
9985 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9986 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9987 echo "configure:9988: checking for langinfo.h" >&5
9988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9990 else
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <langinfo.h>
9996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9997 { (eval echo configure:9998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9999 if test -z "$ac_err"; then
10000 rm -rf conftest*
10001 eval "ac_cv_header_$ac_safe=yes"
10002 else
10003 echo "$ac_err" >&5
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 rm -rf conftest*
10007 eval "ac_cv_header_$ac_safe=no"
10009 rm -f conftest*
10011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 ac_has_langinfo_h=yes
10014 else
10015 echo "$ac_t""no" 1>&6
10016 ac_has_langinfo_h=no
10020 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10021 echo "configure:10022: checking for iconv in -liconv" >&5
10022 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10025 else
10026 ac_save_LIBS="$LIBS"
10027 LIBS="-liconv $LIBS"
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 /* Override any gcc2 internal prototype to avoid an error. */
10032 /* We use char because int might match the return type of a gcc2
10033 builtin and then its argument prototype would still apply. */
10034 char iconv();
10036 int main() {
10037 iconv()
10038 ; return 0; }
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 rm -rf conftest*
10042 eval "ac_cv_lib_$ac_lib_var=yes"
10043 else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 eval "ac_cv_lib_$ac_lib_var=no"
10049 rm -f conftest*
10050 LIBS="$ac_save_LIBS"
10053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 libiconv="-liconv"
10056 else
10057 echo "$ac_t""no" 1>&6
10060 ac_save_LIBS="$LIBS"
10061 LIBS="$LIBS $libiconv"
10063 for ac_func in iconv_open iconv_close iconv nl_langinfo
10065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10066 echo "configure:10067: checking for $ac_func" >&5
10067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 /* System header to define __stub macros and hopefully few prototypes,
10074 which can conflict with char $ac_func(); below. */
10075 #include <assert.h>
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char $ac_func();
10081 int main() {
10083 /* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10087 choke me
10088 #else
10089 $ac_func();
10090 #endif
10092 ; return 0; }
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10095 rm -rf conftest*
10096 eval "ac_cv_func_$ac_func=yes"
10097 else
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 rm -rf conftest*
10101 eval "ac_cv_func_$ac_func=no"
10103 rm -f conftest*
10106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10109 cat >> confdefs.h <<EOF
10110 #define $ac_tr_func 1
10113 ac_XPG2funcs=yes
10114 else
10115 echo "$ac_t""no" 1>&6
10116 ac_XPG2funcs=no
10118 done
10121 LIBS="$ac_save_LIBS"
10123 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10124 echo "configure:10125: checking for XPG2 wchar_t support" >&5
10125 if test x"$ac_has_iconv_h" = xyes &&
10126 test x"$ac_has_langinfo_h" = xyes &&
10127 test x"$ac_XPG2funcs" = xyes; then
10128 ac_XPG2_wchar_t=yes
10129 else
10130 ac_XPG2_wchar_t=no
10132 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10134 if test x"$ac_isoC99_wchar_t" = xyes &&
10135 test x"$ac_XPG2_wchar_t" = xyes; then
10136 cat >> confdefs.h <<\EOF
10137 #define _GLIBCPP_USE_WCHAR_T 1
10140 enable_wchar_t=yes
10143 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10144 echo "configure:10145: checking for enabled wchar_t specializations" >&5
10145 echo "$ac_t""$enable_wchar_t" 1>&6
10148 if test "$enable_wchar_t" = yes; then
10149 GLIBCPP_TEST_WCHAR_T_TRUE=
10150 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10151 else
10152 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10153 GLIBCPP_TEST_WCHAR_T_FALSE=
10156 os_include_dir="os/qnx/qnx6.1"
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_COSF 1
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COSL 1
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHF 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_COSHL 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_LOGF 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_LOGL 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_LOG10F 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_LOG10L 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_SINF 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_SINL 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_SINHF 1
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_SINHL 1
10207 os_include_dir="os/newlib"
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_HYPOT 1
10213 esac
10215 case "$target" in
10216 *-mingw32*)
10218 *-windiss*)
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_ACOSF 1
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_ASINF 1
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_ATAN2F 1
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_ATANF 1
10235 cat >> confdefs.h <<\EOF
10236 #define HAVE_CEILF 1
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_COPYSIGN 1
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_COPYSIGNF 1
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_COSF 1
10251 cat >> confdefs.h <<\EOF
10252 #define HAVE_COSHF 1
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_EXPF 1
10259 cat >> confdefs.h <<\EOF
10260 #define HAVE_FABSF 1
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_FLOORF 1
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_FMODF 1
10271 cat >> confdefs.h <<\EOF
10272 #define HAVE_FREXPF 1
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_LDEXPF 1
10279 cat >> confdefs.h <<\EOF
10280 #define HAVE_LOG10F 1
10283 cat >> confdefs.h <<\EOF
10284 #define HAVE_LOGF 1
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_MODFF 1
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_POWF 1
10295 cat >> confdefs.h <<\EOF
10296 #define HAVE_SINF 1
10299 cat >> confdefs.h <<\EOF
10300 #define HAVE_SINHF 1
10303 cat >> confdefs.h <<\EOF
10304 #define HAVE_SQRTF 1
10307 cat >> confdefs.h <<\EOF
10308 #define HAVE_TANF 1
10311 cat >> confdefs.h <<\EOF
10312 #define HAVE_TANHF 1
10316 *-freebsd*)
10317 # Must replicate generic section since we don't have strtof or strtold.
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_MMAP 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_ACOSF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_ASINF 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_ATAN2F 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_ATANF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_CEILF 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_COPYSIGN 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_COPYSIGNF 1
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_COSF 1
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_COSHF 1
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_EXPF 1
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_FABSF 1
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_FLOORF 1
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_FMODF 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_FREXPF 1
10378 cat >> confdefs.h <<\EOF
10379 #define HAVE_LDEXPF 1
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_LOG10F 1
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_LOGF 1
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_MODFF 1
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_POWF 1
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_SINF 1
10402 cat >> confdefs.h <<\EOF
10403 #define HAVE_SINHF 1
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_SQRTF 1
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_TANF 1
10414 cat >> confdefs.h <<\EOF
10415 #define HAVE_TANHF 1
10420 # GLIBCPP_CHECK_STDLIB_SUPPORT
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_STRTOF 1
10425 cat >> confdefs.h <<\EOF
10426 #define HAVE_STRTOLD 1
10429 # AC_FUNC_MMAP
10430 cat >> confdefs.h <<\EOF
10431 #define HAVE_MMAP 1
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_ACOSF 1
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_ASINF 1
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_ATAN2F 1
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_ATANF 1
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_CEILF 1
10455 cat >> confdefs.h <<\EOF
10456 #define HAVE_COPYSIGN 1
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_COPYSIGNF 1
10463 cat >> confdefs.h <<\EOF
10464 #define HAVE_COSF 1
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_COSHF 1
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_EXPF 1
10475 cat >> confdefs.h <<\EOF
10476 #define HAVE_FABSF 1
10479 cat >> confdefs.h <<\EOF
10480 #define HAVE_FLOORF 1
10483 cat >> confdefs.h <<\EOF
10484 #define HAVE_FMODF 1
10487 cat >> confdefs.h <<\EOF
10488 #define HAVE_FREXPF 1
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_LDEXPF 1
10495 cat >> confdefs.h <<\EOF
10496 #define HAVE_LOG10F 1
10499 cat >> confdefs.h <<\EOF
10500 #define HAVE_LOGF 1
10503 cat >> confdefs.h <<\EOF
10504 #define HAVE_MODFF 1
10507 cat >> confdefs.h <<\EOF
10508 #define HAVE_POWF 1
10511 cat >> confdefs.h <<\EOF
10512 #define HAVE_SINF 1
10515 cat >> confdefs.h <<\EOF
10516 #define HAVE_SINHF 1
10519 cat >> confdefs.h <<\EOF
10520 #define HAVE_SQRTF 1
10523 cat >> confdefs.h <<\EOF
10524 #define HAVE_TANF 1
10527 cat >> confdefs.h <<\EOF
10528 #define HAVE_TANHF 1
10532 esac
10534 # At some point, we should differentiate between architectures
10535 # like x86, which have long double versions, and alpha/powerpc/etc.,
10536 # which don't. For the time being, punt.
10537 if test x"long_double_math_on_this_cpu" = x"yes"; then
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_ACOSL 1
10542 cat >> confdefs.h <<\EOF
10543 #define HAVE_ASINL 1
10546 cat >> confdefs.h <<\EOF
10547 #define HAVE_ATAN2L 1
10550 cat >> confdefs.h <<\EOF
10551 #define HAVE_ATANL 1
10554 cat >> confdefs.h <<\EOF
10555 #define HAVE_CEILL 1
10558 cat >> confdefs.h <<\EOF
10559 #define HAVE_COPYSIGNL 1
10562 cat >> confdefs.h <<\EOF
10563 #define HAVE_COSL 1
10566 cat >> confdefs.h <<\EOF
10567 #define HAVE_COSHL 1
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_EXPL 1
10574 cat >> confdefs.h <<\EOF
10575 #define HAVE_FABSL 1
10578 cat >> confdefs.h <<\EOF
10579 #define HAVE_FLOORL 1
10582 cat >> confdefs.h <<\EOF
10583 #define HAVE_FMODL 1
10586 cat >> confdefs.h <<\EOF
10587 #define HAVE_FREXPL 1
10590 cat >> confdefs.h <<\EOF
10591 #define HAVE_LDEXPL 1
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_LOG10L 1
10598 cat >> confdefs.h <<\EOF
10599 #define HAVE_LOGL 1
10602 cat >> confdefs.h <<\EOF
10603 #define HAVE_MODFL 1
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_POWL 1
10610 cat >> confdefs.h <<\EOF
10611 #define HAVE_SINCOSL 1
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE_SINL 1
10618 cat >> confdefs.h <<\EOF
10619 #define HAVE_SINHL 1
10622 cat >> confdefs.h <<\EOF
10623 #define HAVE_SQRTL 1
10626 cat >> confdefs.h <<\EOF
10627 #define HAVE_TANL 1
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE_TANHL 1
10636 else
10638 # We are being configured natively. We can do more elaborate tests
10639 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10640 # working.
10641 GLIBCPP_IS_CROSS_COMPILING=false
10642 CANADIAN=no
10644 # Check for available headers.
10645 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10646 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10650 echo "configure:10651: checking for $ac_hdr" >&5
10651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 #include <$ac_hdr>
10659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10660 { (eval echo configure:10661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10662 if test -z "$ac_err"; then
10663 rm -rf conftest*
10664 eval "ac_cv_header_$ac_safe=yes"
10665 else
10666 echo "$ac_err" >&5
10667 echo "configure: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 rm -rf conftest*
10670 eval "ac_cv_header_$ac_safe=no"
10672 rm -f conftest*
10674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10677 cat >> confdefs.h <<EOF
10678 #define $ac_tr_hdr 1
10681 else
10682 echo "$ac_t""no" 1>&6
10684 done
10688 # All these tests are for C++; save the language and the compiler flags.
10689 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10690 # found in GLIBCPP_CONFIGURE.
10692 ac_ext=C
10693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10694 ac_cpp='$CXXCPP $CPPFLAGS'
10695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10697 cross_compiling=$ac_cv_prog_cxx_cross
10699 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10700 ac_save_CXXFLAGS="$CXXFLAGS"
10702 # Check for maintainer-mode bits.
10703 if test x"$USE_MAINTAINER_MODE" = xno; then
10704 WERROR=''
10705 else
10706 WERROR='-Werror'
10709 # Check for -ffunction-sections -fdata-sections
10710 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10711 echo "configure:10712: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10712 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10717 int main() {
10718 int foo;
10720 ; return 0; }
10722 if { (eval echo configure:10723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10723 rm -rf conftest*
10724 ac_fdsections=yes
10725 else
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10728 rm -rf conftest*
10729 ac_fdsections=no
10731 rm -f conftest*
10732 if test "$ac_test_CXXFLAGS" = set; then
10733 CXXFLAGS="$ac_save_CXXFLAGS"
10734 else
10735 # this is the suspicious part
10736 CXXFLAGS=''
10738 if test x"$ac_fdsections" = x"yes"; then
10739 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10741 echo "$ac_t""$ac_fdsections" 1>&6
10743 ac_ext=c
10744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10745 ac_cpp='$CPP $CPPFLAGS'
10746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10748 cross_compiling=$ac_cv_prog_cc_cross
10754 # If we're not using GNU ld, then there's no point in even trying these
10755 # tests. Check for that first. We should have already tested for gld
10756 # by now (in libtool), but require it now just to be safe...
10757 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10758 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10761 # The name set by libtool depends on the version of libtool. Shame on us
10762 # for depending on an impl detail, but c'est la vie. Older versions used
10763 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10764 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10765 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10766 # set (hence we're using an older libtool), then set it.
10767 if test x${with_gnu_ld+set} != xset; then
10768 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10769 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10770 with_gnu_ld=no
10771 else
10772 with_gnu_ld=$ac_cv_prog_gnu_ld
10776 # Start by getting the version number. I think the libtool test already
10777 # does some of this, but throws away the result.
10779 ldver=`$LD --version 2>/dev/null | head -1 | \
10780 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10782 glibcpp_gnu_ld_version=`echo $ldver | \
10783 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10785 # Set --gc-sections.
10786 if test "$with_gnu_ld" = "notbroken"; then
10787 # GNU ld it is! Joy and bunny rabbits!
10789 # All these tests are for C++; save the language and the compiler flags.
10790 # Need to do this so that g++ won't try to link in libstdc++
10791 ac_test_CFLAGS="${CFLAGS+set}"
10792 ac_save_CFLAGS="$CFLAGS"
10793 CFLAGS='-x c++ -Wl,--gc-sections'
10795 # Check for -Wl,--gc-sections
10796 # XXX This test is broken at the moment, as symbols required for
10797 # linking are now in libsupc++ (not built yet.....). In addition,
10798 # this test has cored on solaris in the past. In addition,
10799 # --gc-sections doesn't really work at the moment (keeps on discarding
10800 # used sections, first .eh_frame and now some of the glibc sections for
10801 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10802 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10803 echo "configure:10804: checking for ld that supports -Wl,--gc-sections" >&5
10804 if test "$cross_compiling" = yes; then
10805 ac_sectionLDflags=yes
10806 else
10807 cat > conftest.$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10811 int main(void)
10813 try { throw 1; }
10814 catch (...) { };
10815 return 0;
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10820 then
10821 ac_sectionLDflags=yes
10822 else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -fr conftest*
10826 ac_sectionLDflags=no
10828 rm -fr conftest*
10831 if test "$ac_test_CFLAGS" = set; then
10832 CFLAGS="$ac_save_CFLAGS"
10833 else
10834 # this is the suspicious part
10835 CFLAGS=''
10837 if test "$ac_sectionLDflags" = "yes"; then
10838 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10840 echo "$ac_t""$ac_sectionLDflags" 1>&6
10843 # Set linker optimization flags.
10844 if test x"$with_gnu_ld" = x"yes"; then
10845 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10853 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10854 echo "configure:10855: checking for __builtin_abs declaration" >&5
10855 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10856 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10861 ac_ext=C
10862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10863 ac_cpp='$CXXCPP $CPPFLAGS'
10864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10866 cross_compiling=$ac_cv_prog_cxx_cross
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10871 #include <math.h>
10872 int main() {
10873 __builtin_abs(0);
10874 ; return 0; }
10876 if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877 rm -rf conftest*
10878 glibcpp_cv_func___builtin_abs_use=yes
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 glibcpp_cv_func___builtin_abs_use=no
10885 rm -f conftest*
10886 ac_ext=c
10887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10888 ac_cpp='$CPP $CPPFLAGS'
10889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10891 cross_compiling=$ac_cv_prog_cc_cross
10897 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10898 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10899 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10900 echo "configure:10901: checking for __builtin_abs linkage" >&5
10901 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10902 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10904 else
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 #include <math.h>
10910 int main() {
10911 __builtin_abs(0);
10912 ; return 0; }
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 rm -rf conftest*
10916 glibcpp_cv_func___builtin_abs_link=yes
10917 else
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 rm -rf conftest*
10921 glibcpp_cv_func___builtin_abs_link=no
10923 rm -f conftest*
10928 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10929 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10930 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10931 cat >> confdefs.h <<EOF
10932 #define ${ac_tr_func} 1
10939 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for __builtin_fabsf declaration" >&5
10941 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10942 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10947 ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958 int main() {
10959 __builtin_fabsf(0);
10960 ; return 0; }
10962 if { (eval echo configure:10963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10963 rm -rf conftest*
10964 glibcpp_cv_func___builtin_fabsf_use=yes
10965 else
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10968 rm -rf conftest*
10969 glibcpp_cv_func___builtin_fabsf_use=no
10971 rm -f conftest*
10972 ac_ext=c
10973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10977 cross_compiling=$ac_cv_prog_cc_cross
10983 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10984 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10985 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10986 echo "configure:10987: checking for __builtin_fabsf linkage" >&5
10987 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10988 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 #include <math.h>
10996 int main() {
10997 __builtin_fabsf(0);
10998 ; return 0; }
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001 rm -rf conftest*
11002 glibcpp_cv_func___builtin_fabsf_link=yes
11003 else
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 rm -rf conftest*
11007 glibcpp_cv_func___builtin_fabsf_link=no
11009 rm -f conftest*
11014 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
11015 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
11016 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11017 cat >> confdefs.h <<EOF
11018 #define ${ac_tr_func} 1
11025 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
11026 echo "configure:11027: checking for __builtin_fabs declaration" >&5
11027 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
11028 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11030 else
11033 ac_ext=C
11034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11035 ac_cpp='$CXXCPP $CPPFLAGS'
11036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11038 cross_compiling=$ac_cv_prog_cxx_cross
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11043 #include <math.h>
11044 int main() {
11045 __builtin_fabs(0);
11046 ; return 0; }
11048 if { (eval echo configure:11049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11049 rm -rf conftest*
11050 glibcpp_cv_func___builtin_fabs_use=yes
11051 else
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11054 rm -rf conftest*
11055 glibcpp_cv_func___builtin_fabs_use=no
11057 rm -f conftest*
11058 ac_ext=c
11059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cc_cross
11069 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
11070 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
11071 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
11072 echo "configure:11073: checking for __builtin_fabs linkage" >&5
11073 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
11074 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11076 else
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11081 #include <math.h>
11082 int main() {
11083 __builtin_fabs(0);
11084 ; return 0; }
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087 rm -rf conftest*
11088 glibcpp_cv_func___builtin_fabs_link=yes
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 glibcpp_cv_func___builtin_fabs_link=no
11095 rm -f conftest*
11100 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
11101 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
11102 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11103 cat >> confdefs.h <<EOF
11104 #define ${ac_tr_func} 1
11111 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
11112 echo "configure:11113: checking for __builtin_fabsl declaration" >&5
11113 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
11114 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11116 else
11119 ac_ext=C
11120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CXXCPP $CPPFLAGS'
11122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cxx_cross
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include <math.h>
11130 int main() {
11131 __builtin_fabsl(0);
11132 ; return 0; }
11134 if { (eval echo configure:11135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11135 rm -rf conftest*
11136 glibcpp_cv_func___builtin_fabsl_use=yes
11137 else
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 rm -rf conftest*
11141 glibcpp_cv_func___builtin_fabsl_use=no
11143 rm -f conftest*
11144 ac_ext=c
11145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11146 ac_cpp='$CPP $CPPFLAGS'
11147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149 cross_compiling=$ac_cv_prog_cc_cross
11155 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11156 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11157 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11158 echo "configure:11159: checking for __builtin_fabsl linkage" >&5
11159 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11160 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11162 else
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <math.h>
11168 int main() {
11169 __builtin_fabsl(0);
11170 ; return 0; }
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 rm -rf conftest*
11174 glibcpp_cv_func___builtin_fabsl_link=yes
11175 else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 glibcpp_cv_func___builtin_fabsl_link=no
11181 rm -f conftest*
11186 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11187 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11188 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11189 cat >> confdefs.h <<EOF
11190 #define ${ac_tr_func} 1
11197 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11198 echo "configure:11199: checking for __builtin_labs declaration" >&5
11199 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11200 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11205 ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include <math.h>
11216 int main() {
11217 __builtin_labs(0);
11218 ; return 0; }
11220 if { (eval echo configure:11221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11221 rm -rf conftest*
11222 glibcpp_cv_func___builtin_labs_use=yes
11223 else
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11226 rm -rf conftest*
11227 glibcpp_cv_func___builtin_labs_use=no
11229 rm -f conftest*
11230 ac_ext=c
11231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11232 ac_cpp='$CPP $CPPFLAGS'
11233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11235 cross_compiling=$ac_cv_prog_cc_cross
11241 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11242 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11243 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11244 echo "configure:11245: checking for __builtin_labs linkage" >&5
11245 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11246 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11248 else
11250 cat > conftest.$ac_ext <<EOF
11251 #line 11252 "configure"
11252 #include "confdefs.h"
11253 #include <math.h>
11254 int main() {
11255 __builtin_labs(0);
11256 ; return 0; }
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259 rm -rf conftest*
11260 glibcpp_cv_func___builtin_labs_link=yes
11261 else
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 rm -rf conftest*
11265 glibcpp_cv_func___builtin_labs_link=no
11267 rm -f conftest*
11272 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11273 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11274 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11275 cat >> confdefs.h <<EOF
11276 #define ${ac_tr_func} 1
11284 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11285 echo "configure:11286: checking for __builtin_sqrtf declaration" >&5
11286 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11287 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289 else
11292 ac_ext=C
11293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11294 ac_cpp='$CXXCPP $CPPFLAGS'
11295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11297 cross_compiling=$ac_cv_prog_cxx_cross
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include <math.h>
11303 int main() {
11304 __builtin_sqrtf(0);
11305 ; return 0; }
11307 if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11308 rm -rf conftest*
11309 glibcpp_cv_func___builtin_sqrtf_use=yes
11310 else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 glibcpp_cv_func___builtin_sqrtf_use=no
11316 rm -f conftest*
11317 ac_ext=c
11318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11319 ac_cpp='$CPP $CPPFLAGS'
11320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11322 cross_compiling=$ac_cv_prog_cc_cross
11328 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11329 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11330 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11331 echo "configure:11332: checking for __builtin_sqrtf linkage" >&5
11332 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11333 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335 else
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <math.h>
11341 int main() {
11342 __builtin_sqrtf(0);
11343 ; return 0; }
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11346 rm -rf conftest*
11347 glibcpp_cv_func___builtin_sqrtf_link=yes
11348 else
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11351 rm -rf conftest*
11352 glibcpp_cv_func___builtin_sqrtf_link=no
11354 rm -f conftest*
11359 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11360 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11361 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11362 cat >> confdefs.h <<EOF
11363 #define ${ac_tr_func} 1
11370 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11371 echo "configure:11372: checking for __builtin_sqrt declaration" >&5
11372 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11373 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11375 else
11378 ac_ext=C
11379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11380 ac_cpp='$CXXCPP $CPPFLAGS'
11381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11383 cross_compiling=$ac_cv_prog_cxx_cross
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <math.h>
11389 int main() {
11390 __builtin_sqrt(0);
11391 ; return 0; }
11393 if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11394 rm -rf conftest*
11395 glibcpp_cv_func___builtin_sqrt_use=yes
11396 else
11397 echo "configure: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 rm -rf conftest*
11400 glibcpp_cv_func___builtin_sqrt_use=no
11402 rm -f conftest*
11403 ac_ext=c
11404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CPP $CPPFLAGS'
11406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cc_cross
11414 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11415 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11416 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11417 echo "configure:11418: checking for __builtin_sqrt linkage" >&5
11418 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11419 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11426 #include <math.h>
11427 int main() {
11428 __builtin_sqrt(0);
11429 ; return 0; }
11431 if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 rm -rf conftest*
11433 glibcpp_cv_func___builtin_sqrt_link=yes
11434 else
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 rm -rf conftest*
11438 glibcpp_cv_func___builtin_sqrt_link=no
11440 rm -f conftest*
11445 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11446 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11447 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11448 cat >> confdefs.h <<EOF
11449 #define ${ac_tr_func} 1
11456 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11457 echo "configure:11458: checking for __builtin_sqrtl declaration" >&5
11458 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11459 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11460 echo $ac_n "(cached) $ac_c" 1>&6
11461 else
11464 ac_ext=C
11465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11466 ac_cpp='$CXXCPP $CPPFLAGS'
11467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11469 cross_compiling=$ac_cv_prog_cxx_cross
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 #include <math.h>
11475 int main() {
11476 __builtin_sqrtl(0);
11477 ; return 0; }
11479 if { (eval echo configure:11480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11480 rm -rf conftest*
11481 glibcpp_cv_func___builtin_sqrtl_use=yes
11482 else
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 rm -rf conftest*
11486 glibcpp_cv_func___builtin_sqrtl_use=no
11488 rm -f conftest*
11489 ac_ext=c
11490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11491 ac_cpp='$CPP $CPPFLAGS'
11492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11494 cross_compiling=$ac_cv_prog_cc_cross
11500 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11501 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11502 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11503 echo "configure:11504: checking for __builtin_sqrtl linkage" >&5
11504 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11505 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11506 echo $ac_n "(cached) $ac_c" 1>&6
11507 else
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 #include <math.h>
11513 int main() {
11514 __builtin_sqrtl(0);
11515 ; return 0; }
11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11518 rm -rf conftest*
11519 glibcpp_cv_func___builtin_sqrtl_link=yes
11520 else
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11523 rm -rf conftest*
11524 glibcpp_cv_func___builtin_sqrtl_link=no
11526 rm -f conftest*
11531 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11532 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11533 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11534 cat >> confdefs.h <<EOF
11535 #define ${ac_tr_func} 1
11543 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11544 echo "configure:11545: checking for __builtin_sinf declaration" >&5
11545 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11546 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11547 echo $ac_n "(cached) $ac_c" 1>&6
11548 else
11551 ac_ext=C
11552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11553 ac_cpp='$CXXCPP $CPPFLAGS'
11554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11556 cross_compiling=$ac_cv_prog_cxx_cross
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 #include <math.h>
11562 int main() {
11563 __builtin_sinf(0);
11564 ; return 0; }
11566 if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11567 rm -rf conftest*
11568 glibcpp_cv_func___builtin_sinf_use=yes
11569 else
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 rm -rf conftest*
11573 glibcpp_cv_func___builtin_sinf_use=no
11575 rm -f conftest*
11576 ac_ext=c
11577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11581 cross_compiling=$ac_cv_prog_cc_cross
11587 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11588 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11589 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11590 echo "configure:11591: checking for __builtin_sinf linkage" >&5
11591 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11592 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 #include <math.h>
11600 int main() {
11601 __builtin_sinf(0);
11602 ; return 0; }
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605 rm -rf conftest*
11606 glibcpp_cv_func___builtin_sinf_link=yes
11607 else
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11610 rm -rf conftest*
11611 glibcpp_cv_func___builtin_sinf_link=no
11613 rm -f conftest*
11618 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11619 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11620 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11621 cat >> confdefs.h <<EOF
11622 #define ${ac_tr_func} 1
11629 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11630 echo "configure:11631: checking for __builtin_sin declaration" >&5
11631 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11632 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11634 else
11637 ac_ext=C
11638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CXXCPP $CPPFLAGS'
11640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cxx_cross
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include <math.h>
11648 int main() {
11649 __builtin_sin(0);
11650 ; return 0; }
11652 if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11653 rm -rf conftest*
11654 glibcpp_cv_func___builtin_sin_use=yes
11655 else
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 rm -rf conftest*
11659 glibcpp_cv_func___builtin_sin_use=no
11661 rm -f conftest*
11662 ac_ext=c
11663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11667 cross_compiling=$ac_cv_prog_cc_cross
11673 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11674 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11675 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11676 echo "configure:11677: checking for __builtin_sin linkage" >&5
11677 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11678 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11680 else
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 #include <math.h>
11686 int main() {
11687 __builtin_sin(0);
11688 ; return 0; }
11690 if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691 rm -rf conftest*
11692 glibcpp_cv_func___builtin_sin_link=yes
11693 else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -rf conftest*
11697 glibcpp_cv_func___builtin_sin_link=no
11699 rm -f conftest*
11704 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11705 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11706 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11707 cat >> confdefs.h <<EOF
11708 #define ${ac_tr_func} 1
11715 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11716 echo "configure:11717: checking for __builtin_sinl declaration" >&5
11717 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11718 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11719 echo $ac_n "(cached) $ac_c" 1>&6
11720 else
11723 ac_ext=C
11724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11725 ac_cpp='$CXXCPP $CPPFLAGS'
11726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11728 cross_compiling=$ac_cv_prog_cxx_cross
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11733 #include <math.h>
11734 int main() {
11735 __builtin_sinl(0);
11736 ; return 0; }
11738 if { (eval echo configure:11739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11739 rm -rf conftest*
11740 glibcpp_cv_func___builtin_sinl_use=yes
11741 else
11742 echo "configure: failed program was:" >&5
11743 cat conftest.$ac_ext >&5
11744 rm -rf conftest*
11745 glibcpp_cv_func___builtin_sinl_use=no
11747 rm -f conftest*
11748 ac_ext=c
11749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11750 ac_cpp='$CPP $CPPFLAGS'
11751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11753 cross_compiling=$ac_cv_prog_cc_cross
11759 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11760 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11761 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11762 echo "configure:11763: checking for __builtin_sinl linkage" >&5
11763 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11764 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11766 else
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 #include <math.h>
11772 int main() {
11773 __builtin_sinl(0);
11774 ; return 0; }
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11777 rm -rf conftest*
11778 glibcpp_cv_func___builtin_sinl_link=yes
11779 else
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 rm -rf conftest*
11783 glibcpp_cv_func___builtin_sinl_link=no
11785 rm -f conftest*
11790 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11791 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11792 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11793 cat >> confdefs.h <<EOF
11794 #define ${ac_tr_func} 1
11802 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11803 echo "configure:11804: checking for __builtin_cosf declaration" >&5
11804 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11805 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11807 else
11810 ac_ext=C
11811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11812 ac_cpp='$CXXCPP $CPPFLAGS'
11813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11815 cross_compiling=$ac_cv_prog_cxx_cross
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 #include <math.h>
11821 int main() {
11822 __builtin_cosf(0);
11823 ; return 0; }
11825 if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11826 rm -rf conftest*
11827 glibcpp_cv_func___builtin_cosf_use=yes
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 glibcpp_cv_func___builtin_cosf_use=no
11834 rm -f conftest*
11835 ac_ext=c
11836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11837 ac_cpp='$CPP $CPPFLAGS'
11838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11840 cross_compiling=$ac_cv_prog_cc_cross
11846 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11847 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11848 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11849 echo "configure:11850: checking for __builtin_cosf linkage" >&5
11850 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11851 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
11853 else
11855 cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858 #include <math.h>
11859 int main() {
11860 __builtin_cosf(0);
11861 ; return 0; }
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11864 rm -rf conftest*
11865 glibcpp_cv_func___builtin_cosf_link=yes
11866 else
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869 rm -rf conftest*
11870 glibcpp_cv_func___builtin_cosf_link=no
11872 rm -f conftest*
11877 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11878 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11879 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11880 cat >> confdefs.h <<EOF
11881 #define ${ac_tr_func} 1
11888 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11889 echo "configure:11890: checking for __builtin_cos declaration" >&5
11890 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11891 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11893 else
11896 ac_ext=C
11897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11898 ac_cpp='$CXXCPP $CPPFLAGS'
11899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11901 cross_compiling=$ac_cv_prog_cxx_cross
11903 cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 #include <math.h>
11907 int main() {
11908 __builtin_cos(0);
11909 ; return 0; }
11911 if { (eval echo configure:11912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11912 rm -rf conftest*
11913 glibcpp_cv_func___builtin_cos_use=yes
11914 else
11915 echo "configure: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11917 rm -rf conftest*
11918 glibcpp_cv_func___builtin_cos_use=no
11920 rm -f conftest*
11921 ac_ext=c
11922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11923 ac_cpp='$CPP $CPPFLAGS'
11924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11926 cross_compiling=$ac_cv_prog_cc_cross
11932 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11933 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11934 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11935 echo "configure:11936: checking for __builtin_cos linkage" >&5
11936 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11937 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939 else
11941 cat > conftest.$ac_ext <<EOF
11942 #line 11943 "configure"
11943 #include "confdefs.h"
11944 #include <math.h>
11945 int main() {
11946 __builtin_cos(0);
11947 ; return 0; }
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11950 rm -rf conftest*
11951 glibcpp_cv_func___builtin_cos_link=yes
11952 else
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11955 rm -rf conftest*
11956 glibcpp_cv_func___builtin_cos_link=no
11958 rm -f conftest*
11963 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11964 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11965 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11966 cat >> confdefs.h <<EOF
11967 #define ${ac_tr_func} 1
11974 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11975 echo "configure:11976: checking for __builtin_cosl declaration" >&5
11976 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11977 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11979 else
11982 ac_ext=C
11983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11984 ac_cpp='$CXXCPP $CPPFLAGS'
11985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11987 cross_compiling=$ac_cv_prog_cxx_cross
11989 cat > conftest.$ac_ext <<EOF
11990 #line 11991 "configure"
11991 #include "confdefs.h"
11992 #include <math.h>
11993 int main() {
11994 __builtin_cosl(0);
11995 ; return 0; }
11997 if { (eval echo configure:11998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11998 rm -rf conftest*
11999 glibcpp_cv_func___builtin_cosl_use=yes
12000 else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 glibcpp_cv_func___builtin_cosl_use=no
12006 rm -f conftest*
12007 ac_ext=c
12008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12009 ac_cpp='$CPP $CPPFLAGS'
12010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12012 cross_compiling=$ac_cv_prog_cc_cross
12018 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
12019 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
12020 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
12021 echo "configure:12022: checking for __builtin_cosl linkage" >&5
12022 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
12023 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
12024 echo $ac_n "(cached) $ac_c" 1>&6
12025 else
12027 cat > conftest.$ac_ext <<EOF
12028 #line 12029 "configure"
12029 #include "confdefs.h"
12030 #include <math.h>
12031 int main() {
12032 __builtin_cosl(0);
12033 ; return 0; }
12035 if { (eval echo configure:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12036 rm -rf conftest*
12037 glibcpp_cv_func___builtin_cosl_link=yes
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 glibcpp_cv_func___builtin_cosl_link=no
12044 rm -f conftest*
12049 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
12050 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
12051 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12052 cat >> confdefs.h <<EOF
12053 #define ${ac_tr_func} 1
12060 dummyvar=no
12061 if test x$dummyvar = x"yes"; then
12062 cat >> confdefs.h <<\EOF
12063 #define HAVE___BUILTIN_ABS 1
12066 cat >> confdefs.h <<\EOF
12067 #define HAVE___BUILTIN_LABS 1
12070 cat >> confdefs.h <<\EOF
12071 #define HAVE___BUILTIN_COS 1
12074 cat >> confdefs.h <<\EOF
12075 #define HAVE___BUILTIN_COSF 1
12078 cat >> confdefs.h <<\EOF
12079 #define HAVE___BUILTIN_COSL 1
12082 cat >> confdefs.h <<\EOF
12083 #define HAVE___BUILTIN_FABS 1
12086 cat >> confdefs.h <<\EOF
12087 #define HAVE___BUILTIN_FABSF 1
12090 cat >> confdefs.h <<\EOF
12091 #define HAVE___BUILTIN_FABSL 1
12094 cat >> confdefs.h <<\EOF
12095 #define HAVE___BUILTIN_SIN 1
12098 cat >> confdefs.h <<\EOF
12099 #define HAVE___BUILTIN_SINF 1
12102 cat >> confdefs.h <<\EOF
12103 #define HAVE___BUILTIN_SINL 1
12106 cat >> confdefs.h <<\EOF
12107 #define HAVE___BUILTIN_SQRT 1
12110 cat >> confdefs.h <<\EOF
12111 #define HAVE___BUILTIN_SQRTF 1
12114 cat >> confdefs.h <<\EOF
12115 #define HAVE___BUILTIN_SQRTL 1
12121 ac_test_CXXFLAGS="${CXXFLAGS+set}"
12122 ac_save_CXXFLAGS="$CXXFLAGS"
12123 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
12125 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
12126 echo "configure:12127: checking for sin in -lm" >&5
12127 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
12128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130 else
12131 ac_save_LIBS="$LIBS"
12132 LIBS="-lm $LIBS"
12133 cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char sin();
12141 int main() {
12142 sin()
12143 ; return 0; }
12145 if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12146 rm -rf conftest*
12147 eval "ac_cv_lib_$ac_lib_var=yes"
12148 else
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -rf conftest*
12152 eval "ac_cv_lib_$ac_lib_var=no"
12154 rm -f conftest*
12155 LIBS="$ac_save_LIBS"
12158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12159 echo "$ac_t""yes" 1>&6
12160 libm="-lm"
12161 else
12162 echo "$ac_t""no" 1>&6
12165 ac_save_LIBS="$LIBS"
12166 LIBS="$LIBS $libm"
12170 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12171 echo "configure:12172: checking for isinf declaration" >&5
12172 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12173 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12178 ac_ext=C
12179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CXXCPP $CPPFLAGS'
12181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cxx_cross
12185 cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12188 #include <math.h>
12189 #ifdef HAVE_IEEEFP_H
12190 #include <ieeefp.h>
12191 #endif
12193 int main() {
12194 isinf(0);
12195 ; return 0; }
12197 if { (eval echo configure:12198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12198 rm -rf conftest*
12199 glibcpp_cv_func_isinf_use=yes
12200 else
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12203 rm -rf conftest*
12204 glibcpp_cv_func_isinf_use=no
12206 rm -f conftest*
12207 ac_ext=c
12208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12212 cross_compiling=$ac_cv_prog_cc_cross
12218 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12220 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12221 for ac_func in isinf
12223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12224 echo "configure:12225: checking for $ac_func" >&5
12225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12226 echo $ac_n "(cached) $ac_c" 1>&6
12227 else
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char $ac_func(); below. */
12233 #include <assert.h>
12234 /* Override any gcc2 internal prototype to avoid an error. */
12235 /* We use char because int might match the return type of a gcc2
12236 builtin and then its argument prototype would still apply. */
12237 char $ac_func();
12239 int main() {
12241 /* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12245 choke me
12246 #else
12247 $ac_func();
12248 #endif
12250 ; return 0; }
12252 if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12253 rm -rf conftest*
12254 eval "ac_cv_func_$ac_func=yes"
12255 else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -rf conftest*
12259 eval "ac_cv_func_$ac_func=no"
12261 rm -f conftest*
12264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12265 echo "$ac_t""yes" 1>&6
12266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12267 cat >> confdefs.h <<EOF
12268 #define $ac_tr_func 1
12271 else
12272 echo "$ac_t""no" 1>&6
12274 done
12276 else
12278 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12279 echo "configure:12280: checking for _isinf declaration" >&5
12280 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12281 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12286 ac_ext=C
12287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12288 ac_cpp='$CXXCPP $CPPFLAGS'
12289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12291 cross_compiling=$ac_cv_prog_cxx_cross
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296 #include <math.h>
12297 #ifdef HAVE_IEEEFP_H
12298 #include <ieeefp.h>
12299 #endif
12301 int main() {
12302 _isinf(0);
12303 ; return 0; }
12305 if { (eval echo configure:12306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12306 rm -rf conftest*
12307 glibcpp_cv_func__isinf_use=yes
12308 else
12309 echo "configure: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 rm -rf conftest*
12312 glibcpp_cv_func__isinf_use=no
12314 rm -f conftest*
12315 ac_ext=c
12316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12317 ac_cpp='$CPP $CPPFLAGS'
12318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12320 cross_compiling=$ac_cv_prog_cc_cross
12326 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12328 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12329 for ac_func in _isinf
12331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12332 echo "configure:12333: checking for $ac_func" >&5
12333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12334 echo $ac_n "(cached) $ac_c" 1>&6
12335 else
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12339 /* System header to define __stub macros and hopefully few prototypes,
12340 which can conflict with char $ac_func(); below. */
12341 #include <assert.h>
12342 /* Override any gcc2 internal prototype to avoid an error. */
12343 /* We use char because int might match the return type of a gcc2
12344 builtin and then its argument prototype would still apply. */
12345 char $ac_func();
12347 int main() {
12349 /* The GNU C library defines this for functions which it implements
12350 to always fail with ENOSYS. Some functions are actually named
12351 something starting with __ and the normal name is an alias. */
12352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12353 choke me
12354 #else
12355 $ac_func();
12356 #endif
12358 ; return 0; }
12360 if { (eval echo configure:12361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12361 rm -rf conftest*
12362 eval "ac_cv_func_$ac_func=yes"
12363 else
12364 echo "configure: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12366 rm -rf conftest*
12367 eval "ac_cv_func_$ac_func=no"
12369 rm -f conftest*
12372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12373 echo "$ac_t""yes" 1>&6
12374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12375 cat >> confdefs.h <<EOF
12376 #define $ac_tr_func 1
12379 else
12380 echo "$ac_t""no" 1>&6
12382 done
12389 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12390 echo "configure:12391: checking for isnan declaration" >&5
12391 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12392 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12394 else
12397 ac_ext=C
12398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12399 ac_cpp='$CXXCPP $CPPFLAGS'
12400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12402 cross_compiling=$ac_cv_prog_cxx_cross
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12407 #include <math.h>
12408 #ifdef HAVE_IEEEFP_H
12409 #include <ieeefp.h>
12410 #endif
12412 int main() {
12413 isnan(0);
12414 ; return 0; }
12416 if { (eval echo configure:12417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12417 rm -rf conftest*
12418 glibcpp_cv_func_isnan_use=yes
12419 else
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12422 rm -rf conftest*
12423 glibcpp_cv_func_isnan_use=no
12425 rm -f conftest*
12426 ac_ext=c
12427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12431 cross_compiling=$ac_cv_prog_cc_cross
12437 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12439 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12440 for ac_func in isnan
12442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12443 echo "configure:12444: checking for $ac_func" >&5
12444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12445 echo $ac_n "(cached) $ac_c" 1>&6
12446 else
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 /* System header to define __stub macros and hopefully few prototypes,
12451 which can conflict with char $ac_func(); below. */
12452 #include <assert.h>
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char $ac_func();
12458 int main() {
12460 /* The GNU C library defines this for functions which it implements
12461 to always fail with ENOSYS. Some functions are actually named
12462 something starting with __ and the normal name is an alias. */
12463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12464 choke me
12465 #else
12466 $ac_func();
12467 #endif
12469 ; return 0; }
12471 if { (eval echo configure:12472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12472 rm -rf conftest*
12473 eval "ac_cv_func_$ac_func=yes"
12474 else
12475 echo "configure: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12477 rm -rf conftest*
12478 eval "ac_cv_func_$ac_func=no"
12480 rm -f conftest*
12483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12484 echo "$ac_t""yes" 1>&6
12485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12486 cat >> confdefs.h <<EOF
12487 #define $ac_tr_func 1
12490 else
12491 echo "$ac_t""no" 1>&6
12493 done
12495 else
12497 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12498 echo "configure:12499: checking for _isnan declaration" >&5
12499 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12500 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12501 echo $ac_n "(cached) $ac_c" 1>&6
12502 else
12505 ac_ext=C
12506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12507 ac_cpp='$CXXCPP $CPPFLAGS'
12508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12510 cross_compiling=$ac_cv_prog_cxx_cross
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 #include <math.h>
12516 #ifdef HAVE_IEEEFP_H
12517 #include <ieeefp.h>
12518 #endif
12520 int main() {
12521 _isnan(0);
12522 ; return 0; }
12524 if { (eval echo configure:12525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12525 rm -rf conftest*
12526 glibcpp_cv_func__isnan_use=yes
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -rf conftest*
12531 glibcpp_cv_func__isnan_use=no
12533 rm -f conftest*
12534 ac_ext=c
12535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12536 ac_cpp='$CPP $CPPFLAGS'
12537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539 cross_compiling=$ac_cv_prog_cc_cross
12545 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12547 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12548 for ac_func in _isnan
12550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12551 echo "configure:12552: checking for $ac_func" >&5
12552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12553 echo $ac_n "(cached) $ac_c" 1>&6
12554 else
12555 cat > conftest.$ac_ext <<EOF
12556 #line 12557 "configure"
12557 #include "confdefs.h"
12558 /* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char $ac_func(); below. */
12560 #include <assert.h>
12561 /* Override any gcc2 internal prototype to avoid an error. */
12562 /* We use char because int might match the return type of a gcc2
12563 builtin and then its argument prototype would still apply. */
12564 char $ac_func();
12566 int main() {
12568 /* The GNU C library defines this for functions which it implements
12569 to always fail with ENOSYS. Some functions are actually named
12570 something starting with __ and the normal name is an alias. */
12571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12572 choke me
12573 #else
12574 $ac_func();
12575 #endif
12577 ; return 0; }
12579 if { (eval echo configure:12580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12580 rm -rf conftest*
12581 eval "ac_cv_func_$ac_func=yes"
12582 else
12583 echo "configure: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12585 rm -rf conftest*
12586 eval "ac_cv_func_$ac_func=no"
12588 rm -f conftest*
12591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12592 echo "$ac_t""yes" 1>&6
12593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12594 cat >> confdefs.h <<EOF
12595 #define $ac_tr_func 1
12598 else
12599 echo "$ac_t""no" 1>&6
12601 done
12608 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12609 echo "configure:12610: checking for finite declaration" >&5
12610 if test x${glibcpp_cv_func_finite_use+set} != xset; then
12611 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12616 ac_ext=C
12617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12618 ac_cpp='$CXXCPP $CPPFLAGS'
12619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12621 cross_compiling=$ac_cv_prog_cxx_cross
12623 cat > conftest.$ac_ext <<EOF
12624 #line 12625 "configure"
12625 #include "confdefs.h"
12626 #include <math.h>
12627 #ifdef HAVE_IEEEFP_H
12628 #include <ieeefp.h>
12629 #endif
12631 int main() {
12632 finite(0);
12633 ; return 0; }
12635 if { (eval echo configure:12636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12636 rm -rf conftest*
12637 glibcpp_cv_func_finite_use=yes
12638 else
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 rm -rf conftest*
12642 glibcpp_cv_func_finite_use=no
12644 rm -f conftest*
12645 ac_ext=c
12646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12647 ac_cpp='$CPP $CPPFLAGS'
12648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12650 cross_compiling=$ac_cv_prog_cc_cross
12656 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12658 if test x$glibcpp_cv_func_finite_use = x"yes"; then
12659 for ac_func in finite
12661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12662 echo "configure:12663: checking for $ac_func" >&5
12663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12664 echo $ac_n "(cached) $ac_c" 1>&6
12665 else
12666 cat > conftest.$ac_ext <<EOF
12667 #line 12668 "configure"
12668 #include "confdefs.h"
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char $ac_func(); below. */
12671 #include <assert.h>
12672 /* Override any gcc2 internal prototype to avoid an error. */
12673 /* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12675 char $ac_func();
12677 int main() {
12679 /* The GNU C library defines this for functions which it implements
12680 to always fail with ENOSYS. Some functions are actually named
12681 something starting with __ and the normal name is an alias. */
12682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12683 choke me
12684 #else
12685 $ac_func();
12686 #endif
12688 ; return 0; }
12690 if { (eval echo configure:12691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12691 rm -rf conftest*
12692 eval "ac_cv_func_$ac_func=yes"
12693 else
12694 echo "configure: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 rm -rf conftest*
12697 eval "ac_cv_func_$ac_func=no"
12699 rm -f conftest*
12702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12703 echo "$ac_t""yes" 1>&6
12704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12705 cat >> confdefs.h <<EOF
12706 #define $ac_tr_func 1
12709 else
12710 echo "$ac_t""no" 1>&6
12712 done
12714 else
12716 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12717 echo "configure:12718: checking for _finite declaration" >&5
12718 if test x${glibcpp_cv_func__finite_use+set} != xset; then
12719 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12721 else
12724 ac_ext=C
12725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12726 ac_cpp='$CXXCPP $CPPFLAGS'
12727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12729 cross_compiling=$ac_cv_prog_cxx_cross
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 #include <math.h>
12735 #ifdef HAVE_IEEEFP_H
12736 #include <ieeefp.h>
12737 #endif
12739 int main() {
12740 _finite(0);
12741 ; return 0; }
12743 if { (eval echo configure:12744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12744 rm -rf conftest*
12745 glibcpp_cv_func__finite_use=yes
12746 else
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 rm -rf conftest*
12750 glibcpp_cv_func__finite_use=no
12752 rm -f conftest*
12753 ac_ext=c
12754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12755 ac_cpp='$CPP $CPPFLAGS'
12756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12758 cross_compiling=$ac_cv_prog_cc_cross
12764 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12766 if test x$glibcpp_cv_func__finite_use = x"yes"; then
12767 for ac_func in _finite
12769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12770 echo "configure:12771: checking for $ac_func" >&5
12771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12772 echo $ac_n "(cached) $ac_c" 1>&6
12773 else
12774 cat > conftest.$ac_ext <<EOF
12775 #line 12776 "configure"
12776 #include "confdefs.h"
12777 /* System header to define __stub macros and hopefully few prototypes,
12778 which can conflict with char $ac_func(); below. */
12779 #include <assert.h>
12780 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12783 char $ac_func();
12785 int main() {
12787 /* The GNU C library defines this for functions which it implements
12788 to always fail with ENOSYS. Some functions are actually named
12789 something starting with __ and the normal name is an alias. */
12790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12791 choke me
12792 #else
12793 $ac_func();
12794 #endif
12796 ; return 0; }
12798 if { (eval echo configure:12799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12799 rm -rf conftest*
12800 eval "ac_cv_func_$ac_func=yes"
12801 else
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 rm -rf conftest*
12805 eval "ac_cv_func_$ac_func=no"
12807 rm -f conftest*
12810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12811 echo "$ac_t""yes" 1>&6
12812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12813 cat >> confdefs.h <<EOF
12814 #define $ac_tr_func 1
12817 else
12818 echo "$ac_t""no" 1>&6
12820 done
12827 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12828 echo "configure:12829: checking for copysign declaration" >&5
12829 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12830 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12831 echo $ac_n "(cached) $ac_c" 1>&6
12832 else
12835 ac_ext=C
12836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12837 ac_cpp='$CXXCPP $CPPFLAGS'
12838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12840 cross_compiling=$ac_cv_prog_cxx_cross
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 #include <math.h>
12846 int main() {
12847 copysign(0, 0);
12848 ; return 0; }
12850 if { (eval echo configure:12851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12851 rm -rf conftest*
12852 glibcpp_cv_func_copysign_use=yes
12853 else
12854 echo "configure: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12856 rm -rf conftest*
12857 glibcpp_cv_func_copysign_use=no
12859 rm -f conftest*
12860 ac_ext=c
12861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12862 ac_cpp='$CPP $CPPFLAGS'
12863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12865 cross_compiling=$ac_cv_prog_cc_cross
12871 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12873 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12874 for ac_func in copysign
12876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12877 echo "configure:12878: checking for $ac_func" >&5
12878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12880 else
12881 cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 /* System header to define __stub macros and hopefully few prototypes,
12885 which can conflict with char $ac_func(); below. */
12886 #include <assert.h>
12887 /* Override any gcc2 internal prototype to avoid an error. */
12888 /* We use char because int might match the return type of a gcc2
12889 builtin and then its argument prototype would still apply. */
12890 char $ac_func();
12892 int main() {
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12898 choke me
12899 #else
12900 $ac_func();
12901 #endif
12903 ; return 0; }
12905 if { (eval echo configure:12906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12906 rm -rf conftest*
12907 eval "ac_cv_func_$ac_func=yes"
12908 else
12909 echo "configure: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12911 rm -rf conftest*
12912 eval "ac_cv_func_$ac_func=no"
12914 rm -f conftest*
12917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12918 echo "$ac_t""yes" 1>&6
12919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12920 cat >> confdefs.h <<EOF
12921 #define $ac_tr_func 1
12924 else
12925 echo "$ac_t""no" 1>&6
12927 done
12929 else
12931 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12932 echo "configure:12933: checking for _copysign declaration" >&5
12933 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12934 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12936 else
12939 ac_ext=C
12940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12941 ac_cpp='$CXXCPP $CPPFLAGS'
12942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12944 cross_compiling=$ac_cv_prog_cxx_cross
12946 cat > conftest.$ac_ext <<EOF
12947 #line 12948 "configure"
12948 #include "confdefs.h"
12949 #include <math.h>
12950 int main() {
12951 _copysign(0, 0);
12952 ; return 0; }
12954 if { (eval echo configure:12955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12955 rm -rf conftest*
12956 glibcpp_cv_func__copysign_use=yes
12957 else
12958 echo "configure: failed program was:" >&5
12959 cat conftest.$ac_ext >&5
12960 rm -rf conftest*
12961 glibcpp_cv_func__copysign_use=no
12963 rm -f conftest*
12964 ac_ext=c
12965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12966 ac_cpp='$CPP $CPPFLAGS'
12967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12969 cross_compiling=$ac_cv_prog_cc_cross
12975 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12977 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12978 for ac_func in _copysign
12980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12981 echo "configure:12982: checking for $ac_func" >&5
12982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12983 echo $ac_n "(cached) $ac_c" 1>&6
12984 else
12985 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12988 /* System header to define __stub macros and hopefully few prototypes,
12989 which can conflict with char $ac_func(); below. */
12990 #include <assert.h>
12991 /* Override any gcc2 internal prototype to avoid an error. */
12992 /* We use char because int might match the return type of a gcc2
12993 builtin and then its argument prototype would still apply. */
12994 char $ac_func();
12996 int main() {
12998 /* The GNU C library defines this for functions which it implements
12999 to always fail with ENOSYS. Some functions are actually named
13000 something starting with __ and the normal name is an alias. */
13001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 choke me
13003 #else
13004 $ac_func();
13005 #endif
13007 ; return 0; }
13009 if { (eval echo configure:13010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 rm -rf conftest*
13011 eval "ac_cv_func_$ac_func=yes"
13012 else
13013 echo "configure: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13015 rm -rf conftest*
13016 eval "ac_cv_func_$ac_func=no"
13018 rm -f conftest*
13021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13022 echo "$ac_t""yes" 1>&6
13023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13024 cat >> confdefs.h <<EOF
13025 #define $ac_tr_func 1
13028 else
13029 echo "$ac_t""no" 1>&6
13031 done
13038 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
13039 echo "configure:13040: checking for sincos declaration" >&5
13040 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
13041 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13043 else
13046 ac_ext=C
13047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13048 ac_cpp='$CXXCPP $CPPFLAGS'
13049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13051 cross_compiling=$ac_cv_prog_cxx_cross
13053 cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure"
13055 #include "confdefs.h"
13056 #include <math.h>
13057 int main() {
13058 sincos(0, 0, 0);
13059 ; return 0; }
13061 if { (eval echo configure:13062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13062 rm -rf conftest*
13063 glibcpp_cv_func_sincos_use=yes
13064 else
13065 echo "configure: failed program was:" >&5
13066 cat conftest.$ac_ext >&5
13067 rm -rf conftest*
13068 glibcpp_cv_func_sincos_use=no
13070 rm -f conftest*
13071 ac_ext=c
13072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13073 ac_cpp='$CPP $CPPFLAGS'
13074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13076 cross_compiling=$ac_cv_prog_cc_cross
13082 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
13084 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
13085 for ac_func in sincos
13087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13088 echo "configure:13089: checking for $ac_func" >&5
13089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13091 else
13092 cat > conftest.$ac_ext <<EOF
13093 #line 13094 "configure"
13094 #include "confdefs.h"
13095 /* System header to define __stub macros and hopefully few prototypes,
13096 which can conflict with char $ac_func(); below. */
13097 #include <assert.h>
13098 /* Override any gcc2 internal prototype to avoid an error. */
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13101 char $ac_func();
13103 int main() {
13105 /* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
13108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13109 choke me
13110 #else
13111 $ac_func();
13112 #endif
13114 ; return 0; }
13116 if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13117 rm -rf conftest*
13118 eval "ac_cv_func_$ac_func=yes"
13119 else
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 rm -rf conftest*
13123 eval "ac_cv_func_$ac_func=no"
13125 rm -f conftest*
13128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13129 echo "$ac_t""yes" 1>&6
13130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13131 cat >> confdefs.h <<EOF
13132 #define $ac_tr_func 1
13135 else
13136 echo "$ac_t""no" 1>&6
13138 done
13140 else
13142 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
13143 echo "configure:13144: checking for _sincos declaration" >&5
13144 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
13145 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
13146 echo $ac_n "(cached) $ac_c" 1>&6
13147 else
13150 ac_ext=C
13151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13152 ac_cpp='$CXXCPP $CPPFLAGS'
13153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13155 cross_compiling=$ac_cv_prog_cxx_cross
13157 cat > conftest.$ac_ext <<EOF
13158 #line 13159 "configure"
13159 #include "confdefs.h"
13160 #include <math.h>
13161 int main() {
13162 _sincos(0, 0, 0);
13163 ; return 0; }
13165 if { (eval echo configure:13166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13166 rm -rf conftest*
13167 glibcpp_cv_func__sincos_use=yes
13168 else
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13171 rm -rf conftest*
13172 glibcpp_cv_func__sincos_use=no
13174 rm -f conftest*
13175 ac_ext=c
13176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13177 ac_cpp='$CPP $CPPFLAGS'
13178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13180 cross_compiling=$ac_cv_prog_cc_cross
13186 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13188 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13189 for ac_func in _sincos
13191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13192 echo "configure:13193: checking for $ac_func" >&5
13193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195 else
13196 cat > conftest.$ac_ext <<EOF
13197 #line 13198 "configure"
13198 #include "confdefs.h"
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char $ac_func(); below. */
13201 #include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error. */
13203 /* We use char because int might match the return type of a gcc2
13204 builtin and then its argument prototype would still apply. */
13205 char $ac_func();
13207 int main() {
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213 choke me
13214 #else
13215 $ac_func();
13216 #endif
13218 ; return 0; }
13220 if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13221 rm -rf conftest*
13222 eval "ac_cv_func_$ac_func=yes"
13223 else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 eval "ac_cv_func_$ac_func=no"
13229 rm -f conftest*
13232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13235 cat >> confdefs.h <<EOF
13236 #define $ac_tr_func 1
13239 else
13240 echo "$ac_t""no" 1>&6
13242 done
13249 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13250 echo "configure:13251: checking for fpclass declaration" >&5
13251 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13252 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13253 echo $ac_n "(cached) $ac_c" 1>&6
13254 else
13257 ac_ext=C
13258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13259 ac_cpp='$CXXCPP $CPPFLAGS'
13260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13262 cross_compiling=$ac_cv_prog_cxx_cross
13264 cat > conftest.$ac_ext <<EOF
13265 #line 13266 "configure"
13266 #include "confdefs.h"
13267 #include <math.h>
13268 #ifdef HAVE_IEEEFP_H
13269 #include <ieeefp.h>
13270 #endif
13272 int main() {
13273 fpclass(0);
13274 ; return 0; }
13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13277 rm -rf conftest*
13278 glibcpp_cv_func_fpclass_use=yes
13279 else
13280 echo "configure: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13282 rm -rf conftest*
13283 glibcpp_cv_func_fpclass_use=no
13285 rm -f conftest*
13286 ac_ext=c
13287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13288 ac_cpp='$CPP $CPPFLAGS'
13289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13291 cross_compiling=$ac_cv_prog_cc_cross
13297 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13299 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13300 for ac_func in fpclass
13302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13303 echo "configure:13304: checking for $ac_func" >&5
13304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13305 echo $ac_n "(cached) $ac_c" 1>&6
13306 else
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13310 /* System header to define __stub macros and hopefully few prototypes,
13311 which can conflict with char $ac_func(); below. */
13312 #include <assert.h>
13313 /* Override any gcc2 internal prototype to avoid an error. */
13314 /* We use char because int might match the return type of a gcc2
13315 builtin and then its argument prototype would still apply. */
13316 char $ac_func();
13318 int main() {
13320 /* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13324 choke me
13325 #else
13326 $ac_func();
13327 #endif
13329 ; return 0; }
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13332 rm -rf conftest*
13333 eval "ac_cv_func_$ac_func=yes"
13334 else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -rf conftest*
13338 eval "ac_cv_func_$ac_func=no"
13340 rm -f conftest*
13343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13344 echo "$ac_t""yes" 1>&6
13345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13346 cat >> confdefs.h <<EOF
13347 #define $ac_tr_func 1
13350 else
13351 echo "$ac_t""no" 1>&6
13353 done
13355 else
13357 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13358 echo "configure:13359: checking for _fpclass declaration" >&5
13359 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13360 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362 else
13365 ac_ext=C
13366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13367 ac_cpp='$CXXCPP $CPPFLAGS'
13368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13370 cross_compiling=$ac_cv_prog_cxx_cross
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 #include <math.h>
13376 #ifdef HAVE_IEEEFP_H
13377 #include <ieeefp.h>
13378 #endif
13380 int main() {
13381 _fpclass(0);
13382 ; return 0; }
13384 if { (eval echo configure:13385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13385 rm -rf conftest*
13386 glibcpp_cv_func__fpclass_use=yes
13387 else
13388 echo "configure: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13390 rm -rf conftest*
13391 glibcpp_cv_func__fpclass_use=no
13393 rm -f conftest*
13394 ac_ext=c
13395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13399 cross_compiling=$ac_cv_prog_cc_cross
13405 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13407 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13408 for ac_func in _fpclass
13410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13411 echo "configure:13412: checking for $ac_func" >&5
13412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13413 echo $ac_n "(cached) $ac_c" 1>&6
13414 else
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13418 /* System header to define __stub macros and hopefully few prototypes,
13419 which can conflict with char $ac_func(); below. */
13420 #include <assert.h>
13421 /* Override any gcc2 internal prototype to avoid an error. */
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13424 char $ac_func();
13426 int main() {
13428 /* The GNU C library defines this for functions which it implements
13429 to always fail with ENOSYS. Some functions are actually named
13430 something starting with __ and the normal name is an alias. */
13431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13432 choke me
13433 #else
13434 $ac_func();
13435 #endif
13437 ; return 0; }
13439 if { (eval echo configure:13440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13440 rm -rf conftest*
13441 eval "ac_cv_func_$ac_func=yes"
13442 else
13443 echo "configure: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 rm -rf conftest*
13446 eval "ac_cv_func_$ac_func=no"
13448 rm -f conftest*
13451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13452 echo "$ac_t""yes" 1>&6
13453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13454 cat >> confdefs.h <<EOF
13455 #define $ac_tr_func 1
13458 else
13459 echo "$ac_t""no" 1>&6
13461 done
13468 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13469 echo "configure:13470: checking for qfpclass declaration" >&5
13470 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13471 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13472 echo $ac_n "(cached) $ac_c" 1>&6
13473 else
13476 ac_ext=C
13477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13478 ac_cpp='$CXXCPP $CPPFLAGS'
13479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13481 cross_compiling=$ac_cv_prog_cxx_cross
13483 cat > conftest.$ac_ext <<EOF
13484 #line 13485 "configure"
13485 #include "confdefs.h"
13486 #include <math.h>
13487 #ifdef HAVE_IEEEFP_H
13488 #include <ieeefp.h>
13489 #endif
13491 int main() {
13492 qfpclass(0);
13493 ; return 0; }
13495 if { (eval echo configure:13496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13496 rm -rf conftest*
13497 glibcpp_cv_func_qfpclass_use=yes
13498 else
13499 echo "configure: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 rm -rf conftest*
13502 glibcpp_cv_func_qfpclass_use=no
13504 rm -f conftest*
13505 ac_ext=c
13506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13507 ac_cpp='$CPP $CPPFLAGS'
13508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13510 cross_compiling=$ac_cv_prog_cc_cross
13516 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13518 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13519 for ac_func in qfpclass
13521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13522 echo "configure:13523: checking for $ac_func" >&5
13523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13524 echo $ac_n "(cached) $ac_c" 1>&6
13525 else
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 /* System header to define __stub macros and hopefully few prototypes,
13530 which can conflict with char $ac_func(); below. */
13531 #include <assert.h>
13532 /* Override any gcc2 internal prototype to avoid an error. */
13533 /* We use char because int might match the return type of a gcc2
13534 builtin and then its argument prototype would still apply. */
13535 char $ac_func();
13537 int main() {
13539 /* The GNU C library defines this for functions which it implements
13540 to always fail with ENOSYS. Some functions are actually named
13541 something starting with __ and the normal name is an alias. */
13542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13543 choke me
13544 #else
13545 $ac_func();
13546 #endif
13548 ; return 0; }
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 rm -rf conftest*
13552 eval "ac_cv_func_$ac_func=yes"
13553 else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 eval "ac_cv_func_$ac_func=no"
13559 rm -f conftest*
13562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13563 echo "$ac_t""yes" 1>&6
13564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13565 cat >> confdefs.h <<EOF
13566 #define $ac_tr_func 1
13569 else
13570 echo "$ac_t""no" 1>&6
13572 done
13574 else
13576 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13577 echo "configure:13578: checking for _qfpclass declaration" >&5
13578 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13579 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13580 echo $ac_n "(cached) $ac_c" 1>&6
13581 else
13584 ac_ext=C
13585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586 ac_cpp='$CXXCPP $CPPFLAGS'
13587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589 cross_compiling=$ac_cv_prog_cxx_cross
13591 cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594 #include <math.h>
13595 #ifdef HAVE_IEEEFP_H
13596 #include <ieeefp.h>
13597 #endif
13599 int main() {
13600 _qfpclass(0);
13601 ; return 0; }
13603 if { (eval echo configure:13604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13604 rm -rf conftest*
13605 glibcpp_cv_func__qfpclass_use=yes
13606 else
13607 echo "configure: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 rm -rf conftest*
13610 glibcpp_cv_func__qfpclass_use=no
13612 rm -f conftest*
13613 ac_ext=c
13614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13615 ac_cpp='$CPP $CPPFLAGS'
13616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13618 cross_compiling=$ac_cv_prog_cc_cross
13624 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13626 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13627 for ac_func in _qfpclass
13629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13630 echo "configure:13631: checking for $ac_func" >&5
13631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
13633 else
13634 cat > conftest.$ac_ext <<EOF
13635 #line 13636 "configure"
13636 #include "confdefs.h"
13637 /* System header to define __stub macros and hopefully few prototypes,
13638 which can conflict with char $ac_func(); below. */
13639 #include <assert.h>
13640 /* Override any gcc2 internal prototype to avoid an error. */
13641 /* We use char because int might match the return type of a gcc2
13642 builtin and then its argument prototype would still apply. */
13643 char $ac_func();
13645 int main() {
13647 /* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13651 choke me
13652 #else
13653 $ac_func();
13654 #endif
13656 ; return 0; }
13658 if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13659 rm -rf conftest*
13660 eval "ac_cv_func_$ac_func=yes"
13661 else
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13664 rm -rf conftest*
13665 eval "ac_cv_func_$ac_func=no"
13667 rm -f conftest*
13670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13671 echo "$ac_t""yes" 1>&6
13672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13673 cat >> confdefs.h <<EOF
13674 #define $ac_tr_func 1
13677 else
13678 echo "$ac_t""no" 1>&6
13680 done
13687 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13688 echo "configure:13689: checking for hypot declaration" >&5
13689 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13690 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692 else
13695 ac_ext=C
13696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13697 ac_cpp='$CXXCPP $CPPFLAGS'
13698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13700 cross_compiling=$ac_cv_prog_cxx_cross
13702 cat > conftest.$ac_ext <<EOF
13703 #line 13704 "configure"
13704 #include "confdefs.h"
13705 #include <math.h>
13706 int main() {
13707 hypot(0, 0);
13708 ; return 0; }
13710 if { (eval echo configure:13711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13711 rm -rf conftest*
13712 glibcpp_cv_func_hypot_use=yes
13713 else
13714 echo "configure: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13716 rm -rf conftest*
13717 glibcpp_cv_func_hypot_use=no
13719 rm -f conftest*
13720 ac_ext=c
13721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13725 cross_compiling=$ac_cv_prog_cc_cross
13731 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13733 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13734 for ac_func in hypot
13736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13737 echo "configure:13738: checking for $ac_func" >&5
13738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13739 echo $ac_n "(cached) $ac_c" 1>&6
13740 else
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13744 /* System header to define __stub macros and hopefully few prototypes,
13745 which can conflict with char $ac_func(); below. */
13746 #include <assert.h>
13747 /* Override any gcc2 internal prototype to avoid an error. */
13748 /* We use char because int might match the return type of a gcc2
13749 builtin and then its argument prototype would still apply. */
13750 char $ac_func();
13752 int main() {
13754 /* The GNU C library defines this for functions which it implements
13755 to always fail with ENOSYS. Some functions are actually named
13756 something starting with __ and the normal name is an alias. */
13757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13758 choke me
13759 #else
13760 $ac_func();
13761 #endif
13763 ; return 0; }
13765 if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13766 rm -rf conftest*
13767 eval "ac_cv_func_$ac_func=yes"
13768 else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 eval "ac_cv_func_$ac_func=no"
13774 rm -f conftest*
13777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13778 echo "$ac_t""yes" 1>&6
13779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13780 cat >> confdefs.h <<EOF
13781 #define $ac_tr_func 1
13784 else
13785 echo "$ac_t""no" 1>&6
13787 done
13789 else
13791 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13792 echo "configure:13793: checking for _hypot declaration" >&5
13793 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13794 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13795 echo $ac_n "(cached) $ac_c" 1>&6
13796 else
13799 ac_ext=C
13800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13801 ac_cpp='$CXXCPP $CPPFLAGS'
13802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13804 cross_compiling=$ac_cv_prog_cxx_cross
13806 cat > conftest.$ac_ext <<EOF
13807 #line 13808 "configure"
13808 #include "confdefs.h"
13809 #include <math.h>
13810 int main() {
13811 _hypot(0, 0);
13812 ; return 0; }
13814 if { (eval echo configure:13815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13815 rm -rf conftest*
13816 glibcpp_cv_func__hypot_use=yes
13817 else
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 rm -rf conftest*
13821 glibcpp_cv_func__hypot_use=no
13823 rm -f conftest*
13824 ac_ext=c
13825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13826 ac_cpp='$CPP $CPPFLAGS'
13827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13829 cross_compiling=$ac_cv_prog_cc_cross
13835 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13837 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13838 for ac_func in _hypot
13840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13841 echo "configure:13842: checking for $ac_func" >&5
13842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13843 echo $ac_n "(cached) $ac_c" 1>&6
13844 else
13845 cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13848 /* System header to define __stub macros and hopefully few prototypes,
13849 which can conflict with char $ac_func(); below. */
13850 #include <assert.h>
13851 /* Override any gcc2 internal prototype to avoid an error. */
13852 /* We use char because int might match the return type of a gcc2
13853 builtin and then its argument prototype would still apply. */
13854 char $ac_func();
13856 int main() {
13858 /* The GNU C library defines this for functions which it implements
13859 to always fail with ENOSYS. Some functions are actually named
13860 something starting with __ and the normal name is an alias. */
13861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13862 choke me
13863 #else
13864 $ac_func();
13865 #endif
13867 ; return 0; }
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13870 rm -rf conftest*
13871 eval "ac_cv_func_$ac_func=yes"
13872 else
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13875 rm -rf conftest*
13876 eval "ac_cv_func_$ac_func=no"
13878 rm -f conftest*
13881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
13883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13884 cat >> confdefs.h <<EOF
13885 #define $ac_tr_func 1
13888 else
13889 echo "$ac_t""no" 1>&6
13891 done
13898 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13899 echo "configure:13900: checking for float trig functions" >&5
13900 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902 else
13905 ac_ext=C
13906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13907 ac_cpp='$CXXCPP $CPPFLAGS'
13908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13910 cross_compiling=$ac_cv_prog_cxx_cross
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 #include <math.h>
13916 int main() {
13917 `for x in acosf asinf atanf \
13918 cosf sinf tanf \
13919 coshf sinhf tanhf; do echo "$x (0);"; done`
13920 ; return 0; }
13922 if { (eval echo configure:13923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13923 rm -rf conftest*
13924 glibcpp_cv_func_float_trig_use=yes
13925 else
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13928 rm -rf conftest*
13929 glibcpp_cv_func_float_trig_use=no
13931 rm -f conftest*
13932 ac_ext=c
13933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13934 ac_cpp='$CPP $CPPFLAGS'
13935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13937 cross_compiling=$ac_cv_prog_cc_cross
13941 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13942 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13943 for ac_func in acosf asinf atanf \
13944 cosf sinf tanf \
13945 coshf sinhf tanhf
13947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13948 echo "configure:13949: checking for $ac_func" >&5
13949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
13951 else
13952 cat > conftest.$ac_ext <<EOF
13953 #line 13954 "configure"
13954 #include "confdefs.h"
13955 /* System header to define __stub macros and hopefully few prototypes,
13956 which can conflict with char $ac_func(); below. */
13957 #include <assert.h>
13958 /* Override any gcc2 internal prototype to avoid an error. */
13959 /* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13961 char $ac_func();
13963 int main() {
13965 /* The GNU C library defines this for functions which it implements
13966 to always fail with ENOSYS. Some functions are actually named
13967 something starting with __ and the normal name is an alias. */
13968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13969 choke me
13970 #else
13971 $ac_func();
13972 #endif
13974 ; return 0; }
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13977 rm -rf conftest*
13978 eval "ac_cv_func_$ac_func=yes"
13979 else
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
13983 eval "ac_cv_func_$ac_func=no"
13985 rm -f conftest*
13988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13989 echo "$ac_t""yes" 1>&6
13990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13991 cat >> confdefs.h <<EOF
13992 #define $ac_tr_func 1
13995 else
13996 echo "$ac_t""no" 1>&6
13998 done
14003 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
14004 echo "configure:14005: checking for float round functions" >&5
14005 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
14006 echo $ac_n "(cached) $ac_c" 1>&6
14007 else
14010 ac_ext=C
14011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14012 ac_cpp='$CXXCPP $CPPFLAGS'
14013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14015 cross_compiling=$ac_cv_prog_cxx_cross
14017 cat > conftest.$ac_ext <<EOF
14018 #line 14019 "configure"
14019 #include "confdefs.h"
14020 #include <math.h>
14021 int main() {
14022 `for x in ceilf floorf; do echo "$x (0);"; done`
14023 ; return 0; }
14025 if { (eval echo configure:14026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14026 rm -rf conftest*
14027 glibcpp_cv_func_float_round_use=yes
14028 else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 glibcpp_cv_func_float_round_use=no
14034 rm -f conftest*
14035 ac_ext=c
14036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14037 ac_cpp='$CPP $CPPFLAGS'
14038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14040 cross_compiling=$ac_cv_prog_cc_cross
14044 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
14045 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
14046 for ac_func in ceilf floorf
14048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14049 echo "configure:14050: checking for $ac_func" >&5
14050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14052 else
14053 cat > conftest.$ac_ext <<EOF
14054 #line 14055 "configure"
14055 #include "confdefs.h"
14056 /* System header to define __stub macros and hopefully few prototypes,
14057 which can conflict with char $ac_func(); below. */
14058 #include <assert.h>
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 /* We use char because int might match the return type of a gcc2
14061 builtin and then its argument prototype would still apply. */
14062 char $ac_func();
14064 int main() {
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14070 choke me
14071 #else
14072 $ac_func();
14073 #endif
14075 ; return 0; }
14077 if { (eval echo configure:14078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14078 rm -rf conftest*
14079 eval "ac_cv_func_$ac_func=yes"
14080 else
14081 echo "configure: failed program was:" >&5
14082 cat conftest.$ac_ext >&5
14083 rm -rf conftest*
14084 eval "ac_cv_func_$ac_func=no"
14086 rm -f conftest*
14089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14090 echo "$ac_t""yes" 1>&6
14091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14092 cat >> confdefs.h <<EOF
14093 #define $ac_tr_func 1
14096 else
14097 echo "$ac_t""no" 1>&6
14099 done
14105 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
14106 echo "configure:14107: checking for expf declaration" >&5
14107 if test x${glibcpp_cv_func_expf_use+set} != xset; then
14108 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
14110 else
14113 ac_ext=C
14114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14115 ac_cpp='$CXXCPP $CPPFLAGS'
14116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14118 cross_compiling=$ac_cv_prog_cxx_cross
14120 cat > conftest.$ac_ext <<EOF
14121 #line 14122 "configure"
14122 #include "confdefs.h"
14123 #include <math.h>
14124 #ifdef HAVE_IEEEFP_H
14125 #include <ieeefp.h>
14126 #endif
14128 int main() {
14129 expf(0);
14130 ; return 0; }
14132 if { (eval echo configure:14133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14133 rm -rf conftest*
14134 glibcpp_cv_func_expf_use=yes
14135 else
14136 echo "configure: failed program was:" >&5
14137 cat conftest.$ac_ext >&5
14138 rm -rf conftest*
14139 glibcpp_cv_func_expf_use=no
14141 rm -f conftest*
14142 ac_ext=c
14143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14144 ac_cpp='$CPP $CPPFLAGS'
14145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14147 cross_compiling=$ac_cv_prog_cc_cross
14153 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14155 if test x$glibcpp_cv_func_expf_use = x"yes"; then
14156 for ac_func in expf
14158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14159 echo "configure:14160: checking for $ac_func" >&5
14160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163 cat > conftest.$ac_ext <<EOF
14164 #line 14165 "configure"
14165 #include "confdefs.h"
14166 /* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char $ac_func(); below. */
14168 #include <assert.h>
14169 /* Override any gcc2 internal prototype to avoid an error. */
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172 char $ac_func();
14174 int main() {
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180 choke me
14181 #else
14182 $ac_func();
14183 #endif
14185 ; return 0; }
14187 if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14188 rm -rf conftest*
14189 eval "ac_cv_func_$ac_func=yes"
14190 else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_func_$ac_func=no"
14196 rm -f conftest*
14199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14202 cat >> confdefs.h <<EOF
14203 #define $ac_tr_func 1
14206 else
14207 echo "$ac_t""no" 1>&6
14209 done
14211 else
14213 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14214 echo "configure:14215: checking for _expf declaration" >&5
14215 if test x${glibcpp_cv_func__expf_use+set} != xset; then
14216 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14218 else
14221 ac_ext=C
14222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14223 ac_cpp='$CXXCPP $CPPFLAGS'
14224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14226 cross_compiling=$ac_cv_prog_cxx_cross
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 #include <math.h>
14232 #ifdef HAVE_IEEEFP_H
14233 #include <ieeefp.h>
14234 #endif
14236 int main() {
14237 _expf(0);
14238 ; return 0; }
14240 if { (eval echo configure:14241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14241 rm -rf conftest*
14242 glibcpp_cv_func__expf_use=yes
14243 else
14244 echo "configure: failed program was:" >&5
14245 cat conftest.$ac_ext >&5
14246 rm -rf conftest*
14247 glibcpp_cv_func__expf_use=no
14249 rm -f conftest*
14250 ac_ext=c
14251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14252 ac_cpp='$CPP $CPPFLAGS'
14253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14255 cross_compiling=$ac_cv_prog_cc_cross
14261 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14263 if test x$glibcpp_cv_func__expf_use = x"yes"; then
14264 for ac_func in _expf
14266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14267 echo "configure:14268: checking for $ac_func" >&5
14268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14269 echo $ac_n "(cached) $ac_c" 1>&6
14270 else
14271 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure"
14273 #include "confdefs.h"
14274 /* System header to define __stub macros and hopefully few prototypes,
14275 which can conflict with char $ac_func(); below. */
14276 #include <assert.h>
14277 /* Override any gcc2 internal prototype to avoid an error. */
14278 /* We use char because int might match the return type of a gcc2
14279 builtin and then its argument prototype would still apply. */
14280 char $ac_func();
14282 int main() {
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288 choke me
14289 #else
14290 $ac_func();
14291 #endif
14293 ; return 0; }
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14296 rm -rf conftest*
14297 eval "ac_cv_func_$ac_func=yes"
14298 else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 eval "ac_cv_func_$ac_func=no"
14304 rm -f conftest*
14307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14310 cat >> confdefs.h <<EOF
14311 #define $ac_tr_func 1
14314 else
14315 echo "$ac_t""no" 1>&6
14317 done
14324 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14325 echo "configure:14326: checking for isnanf declaration" >&5
14326 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14327 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14329 else
14332 ac_ext=C
14333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14334 ac_cpp='$CXXCPP $CPPFLAGS'
14335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14337 cross_compiling=$ac_cv_prog_cxx_cross
14339 cat > conftest.$ac_ext <<EOF
14340 #line 14341 "configure"
14341 #include "confdefs.h"
14342 #include <math.h>
14343 #ifdef HAVE_IEEEFP_H
14344 #include <ieeefp.h>
14345 #endif
14347 int main() {
14348 isnanf(0);
14349 ; return 0; }
14351 if { (eval echo configure:14352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14352 rm -rf conftest*
14353 glibcpp_cv_func_isnanf_use=yes
14354 else
14355 echo "configure: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 rm -rf conftest*
14358 glibcpp_cv_func_isnanf_use=no
14360 rm -f conftest*
14361 ac_ext=c
14362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14363 ac_cpp='$CPP $CPPFLAGS'
14364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14366 cross_compiling=$ac_cv_prog_cc_cross
14372 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14374 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14375 for ac_func in isnanf
14377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14378 echo "configure:14379: checking for $ac_func" >&5
14379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14381 else
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func(); below. */
14387 #include <assert.h>
14388 /* Override any gcc2 internal prototype to avoid an error. */
14389 /* We use char because int might match the return type of a gcc2
14390 builtin and then its argument prototype would still apply. */
14391 char $ac_func();
14393 int main() {
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14399 choke me
14400 #else
14401 $ac_func();
14402 #endif
14404 ; return 0; }
14406 if { (eval echo configure:14407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14407 rm -rf conftest*
14408 eval "ac_cv_func_$ac_func=yes"
14409 else
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14412 rm -rf conftest*
14413 eval "ac_cv_func_$ac_func=no"
14415 rm -f conftest*
14418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14419 echo "$ac_t""yes" 1>&6
14420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14421 cat >> confdefs.h <<EOF
14422 #define $ac_tr_func 1
14425 else
14426 echo "$ac_t""no" 1>&6
14428 done
14430 else
14432 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14433 echo "configure:14434: checking for _isnanf declaration" >&5
14434 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14435 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14436 echo $ac_n "(cached) $ac_c" 1>&6
14437 else
14440 ac_ext=C
14441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14442 ac_cpp='$CXXCPP $CPPFLAGS'
14443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14444 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14445 cross_compiling=$ac_cv_prog_cxx_cross
14447 cat > conftest.$ac_ext <<EOF
14448 #line 14449 "configure"
14449 #include "confdefs.h"
14450 #include <math.h>
14451 #ifdef HAVE_IEEEFP_H
14452 #include <ieeefp.h>
14453 #endif
14455 int main() {
14456 _isnanf(0);
14457 ; return 0; }
14459 if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14460 rm -rf conftest*
14461 glibcpp_cv_func__isnanf_use=yes
14462 else
14463 echo "configure: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14465 rm -rf conftest*
14466 glibcpp_cv_func__isnanf_use=no
14468 rm -f conftest*
14469 ac_ext=c
14470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14471 ac_cpp='$CPP $CPPFLAGS'
14472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14474 cross_compiling=$ac_cv_prog_cc_cross
14480 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14482 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14483 for ac_func in _isnanf
14485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14486 echo "configure:14487: checking for $ac_func" >&5
14487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14488 echo $ac_n "(cached) $ac_c" 1>&6
14489 else
14490 cat > conftest.$ac_ext <<EOF
14491 #line 14492 "configure"
14492 #include "confdefs.h"
14493 /* System header to define __stub macros and hopefully few prototypes,
14494 which can conflict with char $ac_func(); below. */
14495 #include <assert.h>
14496 /* Override any gcc2 internal prototype to avoid an error. */
14497 /* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14499 char $ac_func();
14501 int main() {
14503 /* The GNU C library defines this for functions which it implements
14504 to always fail with ENOSYS. Some functions are actually named
14505 something starting with __ and the normal name is an alias. */
14506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14507 choke me
14508 #else
14509 $ac_func();
14510 #endif
14512 ; return 0; }
14514 if { (eval echo configure:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14515 rm -rf conftest*
14516 eval "ac_cv_func_$ac_func=yes"
14517 else
14518 echo "configure: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14520 rm -rf conftest*
14521 eval "ac_cv_func_$ac_func=no"
14523 rm -f conftest*
14526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14527 echo "$ac_t""yes" 1>&6
14528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14529 cat >> confdefs.h <<EOF
14530 #define $ac_tr_func 1
14533 else
14534 echo "$ac_t""no" 1>&6
14536 done
14543 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14544 echo "configure:14545: checking for isinff declaration" >&5
14545 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14546 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14548 else
14551 ac_ext=C
14552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14553 ac_cpp='$CXXCPP $CPPFLAGS'
14554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14556 cross_compiling=$ac_cv_prog_cxx_cross
14558 cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 #include <math.h>
14562 #ifdef HAVE_IEEEFP_H
14563 #include <ieeefp.h>
14564 #endif
14566 int main() {
14567 isinff(0);
14568 ; return 0; }
14570 if { (eval echo configure:14571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14571 rm -rf conftest*
14572 glibcpp_cv_func_isinff_use=yes
14573 else
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14576 rm -rf conftest*
14577 glibcpp_cv_func_isinff_use=no
14579 rm -f conftest*
14580 ac_ext=c
14581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14582 ac_cpp='$CPP $CPPFLAGS'
14583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14585 cross_compiling=$ac_cv_prog_cc_cross
14591 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14593 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14594 for ac_func in isinff
14596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14597 echo "configure:14598: checking for $ac_func" >&5
14598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14599 echo $ac_n "(cached) $ac_c" 1>&6
14600 else
14601 cat > conftest.$ac_ext <<EOF
14602 #line 14603 "configure"
14603 #include "confdefs.h"
14604 /* System header to define __stub macros and hopefully few prototypes,
14605 which can conflict with char $ac_func(); below. */
14606 #include <assert.h>
14607 /* Override any gcc2 internal prototype to avoid an error. */
14608 /* We use char because int might match the return type of a gcc2
14609 builtin and then its argument prototype would still apply. */
14610 char $ac_func();
14612 int main() {
14614 /* The GNU C library defines this for functions which it implements
14615 to always fail with ENOSYS. Some functions are actually named
14616 something starting with __ and the normal name is an alias. */
14617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14618 choke me
14619 #else
14620 $ac_func();
14621 #endif
14623 ; return 0; }
14625 if { (eval echo configure:14626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14626 rm -rf conftest*
14627 eval "ac_cv_func_$ac_func=yes"
14628 else
14629 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14631 rm -rf conftest*
14632 eval "ac_cv_func_$ac_func=no"
14634 rm -f conftest*
14637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14638 echo "$ac_t""yes" 1>&6
14639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14640 cat >> confdefs.h <<EOF
14641 #define $ac_tr_func 1
14644 else
14645 echo "$ac_t""no" 1>&6
14647 done
14649 else
14651 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14652 echo "configure:14653: checking for _isinff declaration" >&5
14653 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14654 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14655 echo $ac_n "(cached) $ac_c" 1>&6
14656 else
14659 ac_ext=C
14660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14661 ac_cpp='$CXXCPP $CPPFLAGS'
14662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14664 cross_compiling=$ac_cv_prog_cxx_cross
14666 cat > conftest.$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14669 #include <math.h>
14670 #ifdef HAVE_IEEEFP_H
14671 #include <ieeefp.h>
14672 #endif
14674 int main() {
14675 _isinff(0);
14676 ; return 0; }
14678 if { (eval echo configure:14679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14679 rm -rf conftest*
14680 glibcpp_cv_func__isinff_use=yes
14681 else
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 rm -rf conftest*
14685 glibcpp_cv_func__isinff_use=no
14687 rm -f conftest*
14688 ac_ext=c
14689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14690 ac_cpp='$CPP $CPPFLAGS'
14691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14693 cross_compiling=$ac_cv_prog_cc_cross
14699 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14701 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14702 for ac_func in _isinff
14704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14705 echo "configure:14706: checking for $ac_func" >&5
14706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14707 echo $ac_n "(cached) $ac_c" 1>&6
14708 else
14709 cat > conftest.$ac_ext <<EOF
14710 #line 14711 "configure"
14711 #include "confdefs.h"
14712 /* System header to define __stub macros and hopefully few prototypes,
14713 which can conflict with char $ac_func(); below. */
14714 #include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14716 /* We use char because int might match the return type of a gcc2
14717 builtin and then its argument prototype would still apply. */
14718 char $ac_func();
14720 int main() {
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 choke me
14727 #else
14728 $ac_func();
14729 #endif
14731 ; return 0; }
14733 if { (eval echo configure:14734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14734 rm -rf conftest*
14735 eval "ac_cv_func_$ac_func=yes"
14736 else
14737 echo "configure: failed program was:" >&5
14738 cat conftest.$ac_ext >&5
14739 rm -rf conftest*
14740 eval "ac_cv_func_$ac_func=no"
14742 rm -f conftest*
14745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14748 cat >> confdefs.h <<EOF
14749 #define $ac_tr_func 1
14752 else
14753 echo "$ac_t""no" 1>&6
14755 done
14762 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14763 echo "configure:14764: checking for atan2f declaration" >&5
14764 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14765 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14766 echo $ac_n "(cached) $ac_c" 1>&6
14767 else
14770 ac_ext=C
14771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14772 ac_cpp='$CXXCPP $CPPFLAGS'
14773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14775 cross_compiling=$ac_cv_prog_cxx_cross
14777 cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 #include <math.h>
14781 int main() {
14782 atan2f(0, 0);
14783 ; return 0; }
14785 if { (eval echo configure:14786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14786 rm -rf conftest*
14787 glibcpp_cv_func_atan2f_use=yes
14788 else
14789 echo "configure: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 rm -rf conftest*
14792 glibcpp_cv_func_atan2f_use=no
14794 rm -f conftest*
14795 ac_ext=c
14796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14800 cross_compiling=$ac_cv_prog_cc_cross
14806 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14808 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14809 for ac_func in atan2f
14811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14812 echo "configure:14813: checking for $ac_func" >&5
14813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14814 echo $ac_n "(cached) $ac_c" 1>&6
14815 else
14816 cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure"
14818 #include "confdefs.h"
14819 /* System header to define __stub macros and hopefully few prototypes,
14820 which can conflict with char $ac_func(); below. */
14821 #include <assert.h>
14822 /* Override any gcc2 internal prototype to avoid an error. */
14823 /* We use char because int might match the return type of a gcc2
14824 builtin and then its argument prototype would still apply. */
14825 char $ac_func();
14827 int main() {
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14833 choke me
14834 #else
14835 $ac_func();
14836 #endif
14838 ; return 0; }
14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14841 rm -rf conftest*
14842 eval "ac_cv_func_$ac_func=yes"
14843 else
14844 echo "configure: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14846 rm -rf conftest*
14847 eval "ac_cv_func_$ac_func=no"
14849 rm -f conftest*
14852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14853 echo "$ac_t""yes" 1>&6
14854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14855 cat >> confdefs.h <<EOF
14856 #define $ac_tr_func 1
14859 else
14860 echo "$ac_t""no" 1>&6
14862 done
14864 else
14866 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14867 echo "configure:14868: checking for _atan2f declaration" >&5
14868 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14869 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14871 else
14874 ac_ext=C
14875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14876 ac_cpp='$CXXCPP $CPPFLAGS'
14877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14879 cross_compiling=$ac_cv_prog_cxx_cross
14881 cat > conftest.$ac_ext <<EOF
14882 #line 14883 "configure"
14883 #include "confdefs.h"
14884 #include <math.h>
14885 int main() {
14886 _atan2f(0, 0);
14887 ; return 0; }
14889 if { (eval echo configure:14890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14890 rm -rf conftest*
14891 glibcpp_cv_func__atan2f_use=yes
14892 else
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 rm -rf conftest*
14896 glibcpp_cv_func__atan2f_use=no
14898 rm -f conftest*
14899 ac_ext=c
14900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14901 ac_cpp='$CPP $CPPFLAGS'
14902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14904 cross_compiling=$ac_cv_prog_cc_cross
14910 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14912 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14913 for ac_func in _atan2f
14915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14916 echo "configure:14917: checking for $ac_func" >&5
14917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14918 echo $ac_n "(cached) $ac_c" 1>&6
14919 else
14920 cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure"
14922 #include "confdefs.h"
14923 /* System header to define __stub macros and hopefully few prototypes,
14924 which can conflict with char $ac_func(); below. */
14925 #include <assert.h>
14926 /* Override any gcc2 internal prototype to avoid an error. */
14927 /* We use char because int might match the return type of a gcc2
14928 builtin and then its argument prototype would still apply. */
14929 char $ac_func();
14931 int main() {
14933 /* The GNU C library defines this for functions which it implements
14934 to always fail with ENOSYS. Some functions are actually named
14935 something starting with __ and the normal name is an alias. */
14936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14937 choke me
14938 #else
14939 $ac_func();
14940 #endif
14942 ; return 0; }
14944 if { (eval echo configure:14945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14945 rm -rf conftest*
14946 eval "ac_cv_func_$ac_func=yes"
14947 else
14948 echo "configure: failed program was:" >&5
14949 cat conftest.$ac_ext >&5
14950 rm -rf conftest*
14951 eval "ac_cv_func_$ac_func=no"
14953 rm -f conftest*
14956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14957 echo "$ac_t""yes" 1>&6
14958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14959 cat >> confdefs.h <<EOF
14960 #define $ac_tr_func 1
14963 else
14964 echo "$ac_t""no" 1>&6
14966 done
14973 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14974 echo "configure:14975: checking for fabsf declaration" >&5
14975 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14976 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14977 echo $ac_n "(cached) $ac_c" 1>&6
14978 else
14981 ac_ext=C
14982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14983 ac_cpp='$CXXCPP $CPPFLAGS'
14984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14986 cross_compiling=$ac_cv_prog_cxx_cross
14988 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14991 #include <math.h>
14992 #ifdef HAVE_IEEEFP_H
14993 #include <ieeefp.h>
14994 #endif
14996 int main() {
14997 fabsf(0);
14998 ; return 0; }
15000 if { (eval echo configure:15001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15001 rm -rf conftest*
15002 glibcpp_cv_func_fabsf_use=yes
15003 else
15004 echo "configure: failed program was:" >&5
15005 cat conftest.$ac_ext >&5
15006 rm -rf conftest*
15007 glibcpp_cv_func_fabsf_use=no
15009 rm -f conftest*
15010 ac_ext=c
15011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15015 cross_compiling=$ac_cv_prog_cc_cross
15021 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
15023 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
15024 for ac_func in fabsf
15026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15027 echo "configure:15028: checking for $ac_func" >&5
15028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15029 echo $ac_n "(cached) $ac_c" 1>&6
15030 else
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 /* System header to define __stub macros and hopefully few prototypes,
15035 which can conflict with char $ac_func(); below. */
15036 #include <assert.h>
15037 /* Override any gcc2 internal prototype to avoid an error. */
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15040 char $ac_func();
15042 int main() {
15044 /* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15048 choke me
15049 #else
15050 $ac_func();
15051 #endif
15053 ; return 0; }
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15056 rm -rf conftest*
15057 eval "ac_cv_func_$ac_func=yes"
15058 else
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 rm -rf conftest*
15062 eval "ac_cv_func_$ac_func=no"
15064 rm -f conftest*
15067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15070 cat >> confdefs.h <<EOF
15071 #define $ac_tr_func 1
15074 else
15075 echo "$ac_t""no" 1>&6
15077 done
15079 else
15081 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
15082 echo "configure:15083: checking for _fabsf declaration" >&5
15083 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
15084 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
15085 echo $ac_n "(cached) $ac_c" 1>&6
15086 else
15089 ac_ext=C
15090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15091 ac_cpp='$CXXCPP $CPPFLAGS'
15092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15094 cross_compiling=$ac_cv_prog_cxx_cross
15096 cat > conftest.$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15099 #include <math.h>
15100 #ifdef HAVE_IEEEFP_H
15101 #include <ieeefp.h>
15102 #endif
15104 int main() {
15105 _fabsf(0);
15106 ; return 0; }
15108 if { (eval echo configure:15109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15109 rm -rf conftest*
15110 glibcpp_cv_func__fabsf_use=yes
15111 else
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15114 rm -rf conftest*
15115 glibcpp_cv_func__fabsf_use=no
15117 rm -f conftest*
15118 ac_ext=c
15119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15120 ac_cpp='$CPP $CPPFLAGS'
15121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15123 cross_compiling=$ac_cv_prog_cc_cross
15129 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
15131 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
15132 for ac_func in _fabsf
15134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15135 echo "configure:15136: checking for $ac_func" >&5
15136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15137 echo $ac_n "(cached) $ac_c" 1>&6
15138 else
15139 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15142 /* System header to define __stub macros and hopefully few prototypes,
15143 which can conflict with char $ac_func(); below. */
15144 #include <assert.h>
15145 /* Override any gcc2 internal prototype to avoid an error. */
15146 /* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15148 char $ac_func();
15150 int main() {
15152 /* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15156 choke me
15157 #else
15158 $ac_func();
15159 #endif
15161 ; return 0; }
15163 if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15164 rm -rf conftest*
15165 eval "ac_cv_func_$ac_func=yes"
15166 else
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 rm -rf conftest*
15170 eval "ac_cv_func_$ac_func=no"
15172 rm -f conftest*
15175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15176 echo "$ac_t""yes" 1>&6
15177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15178 cat >> confdefs.h <<EOF
15179 #define $ac_tr_func 1
15182 else
15183 echo "$ac_t""no" 1>&6
15185 done
15192 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15193 echo "configure:15194: checking for fmodf declaration" >&5
15194 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15195 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15196 echo $ac_n "(cached) $ac_c" 1>&6
15197 else
15200 ac_ext=C
15201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15202 ac_cpp='$CXXCPP $CPPFLAGS'
15203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15205 cross_compiling=$ac_cv_prog_cxx_cross
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 #include <math.h>
15211 int main() {
15212 fmodf(0, 0);
15213 ; return 0; }
15215 if { (eval echo configure:15216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15216 rm -rf conftest*
15217 glibcpp_cv_func_fmodf_use=yes
15218 else
15219 echo "configure: failed program was:" >&5
15220 cat conftest.$ac_ext >&5
15221 rm -rf conftest*
15222 glibcpp_cv_func_fmodf_use=no
15224 rm -f conftest*
15225 ac_ext=c
15226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15230 cross_compiling=$ac_cv_prog_cc_cross
15236 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15238 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15239 for ac_func in fmodf
15241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15242 echo "configure:15243: checking for $ac_func" >&5
15243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15244 echo $ac_n "(cached) $ac_c" 1>&6
15245 else
15246 cat > conftest.$ac_ext <<EOF
15247 #line 15248 "configure"
15248 #include "confdefs.h"
15249 /* System header to define __stub macros and hopefully few prototypes,
15250 which can conflict with char $ac_func(); below. */
15251 #include <assert.h>
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15255 char $ac_func();
15257 int main() {
15259 /* The GNU C library defines this for functions which it implements
15260 to always fail with ENOSYS. Some functions are actually named
15261 something starting with __ and the normal name is an alias. */
15262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15263 choke me
15264 #else
15265 $ac_func();
15266 #endif
15268 ; return 0; }
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15271 rm -rf conftest*
15272 eval "ac_cv_func_$ac_func=yes"
15273 else
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15276 rm -rf conftest*
15277 eval "ac_cv_func_$ac_func=no"
15279 rm -f conftest*
15282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15283 echo "$ac_t""yes" 1>&6
15284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15285 cat >> confdefs.h <<EOF
15286 #define $ac_tr_func 1
15289 else
15290 echo "$ac_t""no" 1>&6
15292 done
15294 else
15296 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15297 echo "configure:15298: checking for _fmodf declaration" >&5
15298 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15299 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15301 else
15304 ac_ext=C
15305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15306 ac_cpp='$CXXCPP $CPPFLAGS'
15307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15309 cross_compiling=$ac_cv_prog_cxx_cross
15311 cat > conftest.$ac_ext <<EOF
15312 #line 15313 "configure"
15313 #include "confdefs.h"
15314 #include <math.h>
15315 int main() {
15316 _fmodf(0, 0);
15317 ; return 0; }
15319 if { (eval echo configure:15320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15320 rm -rf conftest*
15321 glibcpp_cv_func__fmodf_use=yes
15322 else
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15325 rm -rf conftest*
15326 glibcpp_cv_func__fmodf_use=no
15328 rm -f conftest*
15329 ac_ext=c
15330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15331 ac_cpp='$CPP $CPPFLAGS'
15332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15334 cross_compiling=$ac_cv_prog_cc_cross
15340 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15342 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15343 for ac_func in _fmodf
15345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15346 echo "configure:15347: checking for $ac_func" >&5
15347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15349 else
15350 cat > conftest.$ac_ext <<EOF
15351 #line 15352 "configure"
15352 #include "confdefs.h"
15353 /* System header to define __stub macros and hopefully few prototypes,
15354 which can conflict with char $ac_func(); below. */
15355 #include <assert.h>
15356 /* Override any gcc2 internal prototype to avoid an error. */
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15359 char $ac_func();
15361 int main() {
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15367 choke me
15368 #else
15369 $ac_func();
15370 #endif
15372 ; return 0; }
15374 if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15375 rm -rf conftest*
15376 eval "ac_cv_func_$ac_func=yes"
15377 else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381 eval "ac_cv_func_$ac_func=no"
15383 rm -f conftest*
15386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15387 echo "$ac_t""yes" 1>&6
15388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15389 cat >> confdefs.h <<EOF
15390 #define $ac_tr_func 1
15393 else
15394 echo "$ac_t""no" 1>&6
15396 done
15403 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15404 echo "configure:15405: checking for frexpf declaration" >&5
15405 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15406 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15408 else
15411 ac_ext=C
15412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15413 ac_cpp='$CXXCPP $CPPFLAGS'
15414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15416 cross_compiling=$ac_cv_prog_cxx_cross
15418 cat > conftest.$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 #include <math.h>
15422 int main() {
15423 frexpf(0, 0);
15424 ; return 0; }
15426 if { (eval echo configure:15427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15427 rm -rf conftest*
15428 glibcpp_cv_func_frexpf_use=yes
15429 else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433 glibcpp_cv_func_frexpf_use=no
15435 rm -f conftest*
15436 ac_ext=c
15437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15438 ac_cpp='$CPP $CPPFLAGS'
15439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15441 cross_compiling=$ac_cv_prog_cc_cross
15447 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15449 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15450 for ac_func in frexpf
15452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15453 echo "configure:15454: checking for $ac_func" >&5
15454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15456 else
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func(); below. */
15462 #include <assert.h>
15463 /* Override any gcc2 internal prototype to avoid an error. */
15464 /* We use char because int might match the return type of a gcc2
15465 builtin and then its argument prototype would still apply. */
15466 char $ac_func();
15468 int main() {
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474 choke me
15475 #else
15476 $ac_func();
15477 #endif
15479 ; return 0; }
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15482 rm -rf conftest*
15483 eval "ac_cv_func_$ac_func=yes"
15484 else
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15487 rm -rf conftest*
15488 eval "ac_cv_func_$ac_func=no"
15490 rm -f conftest*
15493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15496 cat >> confdefs.h <<EOF
15497 #define $ac_tr_func 1
15500 else
15501 echo "$ac_t""no" 1>&6
15503 done
15505 else
15507 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15508 echo "configure:15509: checking for _frexpf declaration" >&5
15509 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15510 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15512 else
15515 ac_ext=C
15516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15517 ac_cpp='$CXXCPP $CPPFLAGS'
15518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15520 cross_compiling=$ac_cv_prog_cxx_cross
15522 cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15525 #include <math.h>
15526 int main() {
15527 _frexpf(0, 0);
15528 ; return 0; }
15530 if { (eval echo configure:15531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15531 rm -rf conftest*
15532 glibcpp_cv_func__frexpf_use=yes
15533 else
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15536 rm -rf conftest*
15537 glibcpp_cv_func__frexpf_use=no
15539 rm -f conftest*
15540 ac_ext=c
15541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15542 ac_cpp='$CPP $CPPFLAGS'
15543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15545 cross_compiling=$ac_cv_prog_cc_cross
15551 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15553 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15554 for ac_func in _frexpf
15556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15557 echo "configure:15558: checking for $ac_func" >&5
15558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15559 echo $ac_n "(cached) $ac_c" 1>&6
15560 else
15561 cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 /* System header to define __stub macros and hopefully few prototypes,
15565 which can conflict with char $ac_func(); below. */
15566 #include <assert.h>
15567 /* Override any gcc2 internal prototype to avoid an error. */
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15570 char $ac_func();
15572 int main() {
15574 /* The GNU C library defines this for functions which it implements
15575 to always fail with ENOSYS. Some functions are actually named
15576 something starting with __ and the normal name is an alias. */
15577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 choke me
15579 #else
15580 $ac_func();
15581 #endif
15583 ; return 0; }
15585 if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15586 rm -rf conftest*
15587 eval "ac_cv_func_$ac_func=yes"
15588 else
15589 echo "configure: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15591 rm -rf conftest*
15592 eval "ac_cv_func_$ac_func=no"
15594 rm -f conftest*
15597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15598 echo "$ac_t""yes" 1>&6
15599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15600 cat >> confdefs.h <<EOF
15601 #define $ac_tr_func 1
15604 else
15605 echo "$ac_t""no" 1>&6
15607 done
15614 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15615 echo "configure:15616: checking for hypotf declaration" >&5
15616 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15617 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15619 else
15622 ac_ext=C
15623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15624 ac_cpp='$CXXCPP $CPPFLAGS'
15625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15627 cross_compiling=$ac_cv_prog_cxx_cross
15629 cat > conftest.$ac_ext <<EOF
15630 #line 15631 "configure"
15631 #include "confdefs.h"
15632 #include <math.h>
15633 int main() {
15634 hypotf(0, 0);
15635 ; return 0; }
15637 if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15638 rm -rf conftest*
15639 glibcpp_cv_func_hypotf_use=yes
15640 else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644 glibcpp_cv_func_hypotf_use=no
15646 rm -f conftest*
15647 ac_ext=c
15648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15652 cross_compiling=$ac_cv_prog_cc_cross
15658 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15660 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15661 for ac_func in hypotf
15663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15664 echo "configure:15665: checking for $ac_func" >&5
15665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15667 else
15668 cat > conftest.$ac_ext <<EOF
15669 #line 15670 "configure"
15670 #include "confdefs.h"
15671 /* System header to define __stub macros and hopefully few prototypes,
15672 which can conflict with char $ac_func(); below. */
15673 #include <assert.h>
15674 /* Override any gcc2 internal prototype to avoid an error. */
15675 /* We use char because int might match the return type of a gcc2
15676 builtin and then its argument prototype would still apply. */
15677 char $ac_func();
15679 int main() {
15681 /* The GNU C library defines this for functions which it implements
15682 to always fail with ENOSYS. Some functions are actually named
15683 something starting with __ and the normal name is an alias. */
15684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15685 choke me
15686 #else
15687 $ac_func();
15688 #endif
15690 ; return 0; }
15692 if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15693 rm -rf conftest*
15694 eval "ac_cv_func_$ac_func=yes"
15695 else
15696 echo "configure: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15698 rm -rf conftest*
15699 eval "ac_cv_func_$ac_func=no"
15701 rm -f conftest*
15704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15705 echo "$ac_t""yes" 1>&6
15706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15707 cat >> confdefs.h <<EOF
15708 #define $ac_tr_func 1
15711 else
15712 echo "$ac_t""no" 1>&6
15714 done
15716 else
15718 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15719 echo "configure:15720: checking for _hypotf declaration" >&5
15720 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15721 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15723 else
15726 ac_ext=C
15727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15728 ac_cpp='$CXXCPP $CPPFLAGS'
15729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15731 cross_compiling=$ac_cv_prog_cxx_cross
15733 cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15736 #include <math.h>
15737 int main() {
15738 _hypotf(0, 0);
15739 ; return 0; }
15741 if { (eval echo configure:15742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15742 rm -rf conftest*
15743 glibcpp_cv_func__hypotf_use=yes
15744 else
15745 echo "configure: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 rm -rf conftest*
15748 glibcpp_cv_func__hypotf_use=no
15750 rm -f conftest*
15751 ac_ext=c
15752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15753 ac_cpp='$CPP $CPPFLAGS'
15754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15756 cross_compiling=$ac_cv_prog_cc_cross
15762 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15764 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15765 for ac_func in _hypotf
15767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15768 echo "configure:15769: checking for $ac_func" >&5
15769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15770 echo $ac_n "(cached) $ac_c" 1>&6
15771 else
15772 cat > conftest.$ac_ext <<EOF
15773 #line 15774 "configure"
15774 #include "confdefs.h"
15775 /* System header to define __stub macros and hopefully few prototypes,
15776 which can conflict with char $ac_func(); below. */
15777 #include <assert.h>
15778 /* Override any gcc2 internal prototype to avoid an error. */
15779 /* We use char because int might match the return type of a gcc2
15780 builtin and then its argument prototype would still apply. */
15781 char $ac_func();
15783 int main() {
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 $ac_func();
15792 #endif
15794 ; return 0; }
15796 if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797 rm -rf conftest*
15798 eval "ac_cv_func_$ac_func=yes"
15799 else
15800 echo "configure: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 rm -rf conftest*
15803 eval "ac_cv_func_$ac_func=no"
15805 rm -f conftest*
15808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15809 echo "$ac_t""yes" 1>&6
15810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15811 cat >> confdefs.h <<EOF
15812 #define $ac_tr_func 1
15815 else
15816 echo "$ac_t""no" 1>&6
15818 done
15825 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15826 echo "configure:15827: checking for ldexpf declaration" >&5
15827 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15828 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15833 ac_ext=C
15834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15835 ac_cpp='$CXXCPP $CPPFLAGS'
15836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15838 cross_compiling=$ac_cv_prog_cxx_cross
15840 cat > conftest.$ac_ext <<EOF
15841 #line 15842 "configure"
15842 #include "confdefs.h"
15843 #include <math.h>
15844 int main() {
15845 ldexpf(0, 0);
15846 ; return 0; }
15848 if { (eval echo configure:15849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15849 rm -rf conftest*
15850 glibcpp_cv_func_ldexpf_use=yes
15851 else
15852 echo "configure: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15854 rm -rf conftest*
15855 glibcpp_cv_func_ldexpf_use=no
15857 rm -f conftest*
15858 ac_ext=c
15859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15863 cross_compiling=$ac_cv_prog_cc_cross
15869 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15871 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15872 for ac_func in ldexpf
15874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15875 echo "configure:15876: checking for $ac_func" >&5
15876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15877 echo $ac_n "(cached) $ac_c" 1>&6
15878 else
15879 cat > conftest.$ac_ext <<EOF
15880 #line 15881 "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883 which can conflict with char $ac_func(); below. */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error. */
15886 /* We use char because int might match the return type of a gcc2
15887 builtin and then its argument prototype would still apply. */
15888 char $ac_func();
15890 int main() {
15892 /* The GNU C library defines this for functions which it implements
15893 to always fail with ENOSYS. Some functions are actually named
15894 something starting with __ and the normal name is an alias. */
15895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15896 choke me
15897 #else
15898 $ac_func();
15899 #endif
15901 ; return 0; }
15903 if { (eval echo configure:15904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15904 rm -rf conftest*
15905 eval "ac_cv_func_$ac_func=yes"
15906 else
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15909 rm -rf conftest*
15910 eval "ac_cv_func_$ac_func=no"
15912 rm -f conftest*
15915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15916 echo "$ac_t""yes" 1>&6
15917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15918 cat >> confdefs.h <<EOF
15919 #define $ac_tr_func 1
15922 else
15923 echo "$ac_t""no" 1>&6
15925 done
15927 else
15929 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15930 echo "configure:15931: checking for _ldexpf declaration" >&5
15931 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15932 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15933 echo $ac_n "(cached) $ac_c" 1>&6
15934 else
15937 ac_ext=C
15938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15939 ac_cpp='$CXXCPP $CPPFLAGS'
15940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15942 cross_compiling=$ac_cv_prog_cxx_cross
15944 cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure"
15946 #include "confdefs.h"
15947 #include <math.h>
15948 int main() {
15949 _ldexpf(0, 0);
15950 ; return 0; }
15952 if { (eval echo configure:15953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15953 rm -rf conftest*
15954 glibcpp_cv_func__ldexpf_use=yes
15955 else
15956 echo "configure: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15958 rm -rf conftest*
15959 glibcpp_cv_func__ldexpf_use=no
15961 rm -f conftest*
15962 ac_ext=c
15963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15964 ac_cpp='$CPP $CPPFLAGS'
15965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15967 cross_compiling=$ac_cv_prog_cc_cross
15973 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15975 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15976 for ac_func in _ldexpf
15978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15979 echo "configure:15980: checking for $ac_func" >&5
15980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15982 else
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char $ac_func(); below. */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15990 /* We use char because int might match the return type of a gcc2
15991 builtin and then its argument prototype would still apply. */
15992 char $ac_func();
15994 int main() {
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 choke me
16001 #else
16002 $ac_func();
16003 #endif
16005 ; return 0; }
16007 if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16008 rm -rf conftest*
16009 eval "ac_cv_func_$ac_func=yes"
16010 else
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 rm -rf conftest*
16014 eval "ac_cv_func_$ac_func=no"
16016 rm -f conftest*
16019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16020 echo "$ac_t""yes" 1>&6
16021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16022 cat >> confdefs.h <<EOF
16023 #define $ac_tr_func 1
16026 else
16027 echo "$ac_t""no" 1>&6
16029 done
16036 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
16037 echo "configure:16038: checking for logf declaration" >&5
16038 if test x${glibcpp_cv_func_logf_use+set} != xset; then
16039 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
16040 echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16044 ac_ext=C
16045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16046 ac_cpp='$CXXCPP $CPPFLAGS'
16047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16049 cross_compiling=$ac_cv_prog_cxx_cross
16051 cat > conftest.$ac_ext <<EOF
16052 #line 16053 "configure"
16053 #include "confdefs.h"
16054 #include <math.h>
16055 #ifdef HAVE_IEEEFP_H
16056 #include <ieeefp.h>
16057 #endif
16059 int main() {
16060 logf(0);
16061 ; return 0; }
16063 if { (eval echo configure:16064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16064 rm -rf conftest*
16065 glibcpp_cv_func_logf_use=yes
16066 else
16067 echo "configure: failed program was:" >&5
16068 cat conftest.$ac_ext >&5
16069 rm -rf conftest*
16070 glibcpp_cv_func_logf_use=no
16072 rm -f conftest*
16073 ac_ext=c
16074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16075 ac_cpp='$CPP $CPPFLAGS'
16076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16078 cross_compiling=$ac_cv_prog_cc_cross
16084 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
16086 if test x$glibcpp_cv_func_logf_use = x"yes"; then
16087 for ac_func in logf
16089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16090 echo "configure:16091: checking for $ac_func" >&5
16091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16092 echo $ac_n "(cached) $ac_c" 1>&6
16093 else
16094 cat > conftest.$ac_ext <<EOF
16095 #line 16096 "configure"
16096 #include "confdefs.h"
16097 /* System header to define __stub macros and hopefully few prototypes,
16098 which can conflict with char $ac_func(); below. */
16099 #include <assert.h>
16100 /* Override any gcc2 internal prototype to avoid an error. */
16101 /* We use char because int might match the return type of a gcc2
16102 builtin and then its argument prototype would still apply. */
16103 char $ac_func();
16105 int main() {
16107 /* The GNU C library defines this for functions which it implements
16108 to always fail with ENOSYS. Some functions are actually named
16109 something starting with __ and the normal name is an alias. */
16110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16111 choke me
16112 #else
16113 $ac_func();
16114 #endif
16116 ; return 0; }
16118 if { (eval echo configure:16119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16119 rm -rf conftest*
16120 eval "ac_cv_func_$ac_func=yes"
16121 else
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125 eval "ac_cv_func_$ac_func=no"
16127 rm -f conftest*
16130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16131 echo "$ac_t""yes" 1>&6
16132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16133 cat >> confdefs.h <<EOF
16134 #define $ac_tr_func 1
16137 else
16138 echo "$ac_t""no" 1>&6
16140 done
16142 else
16144 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
16145 echo "configure:16146: checking for _logf declaration" >&5
16146 if test x${glibcpp_cv_func__logf_use+set} != xset; then
16147 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16152 ac_ext=C
16153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16157 cross_compiling=$ac_cv_prog_cxx_cross
16159 cat > conftest.$ac_ext <<EOF
16160 #line 16161 "configure"
16161 #include "confdefs.h"
16162 #include <math.h>
16163 #ifdef HAVE_IEEEFP_H
16164 #include <ieeefp.h>
16165 #endif
16167 int main() {
16168 _logf(0);
16169 ; return 0; }
16171 if { (eval echo configure:16172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16172 rm -rf conftest*
16173 glibcpp_cv_func__logf_use=yes
16174 else
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 rm -rf conftest*
16178 glibcpp_cv_func__logf_use=no
16180 rm -f conftest*
16181 ac_ext=c
16182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16183 ac_cpp='$CPP $CPPFLAGS'
16184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16186 cross_compiling=$ac_cv_prog_cc_cross
16192 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16194 if test x$glibcpp_cv_func__logf_use = x"yes"; then
16195 for ac_func in _logf
16197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16198 echo "configure:16199: checking for $ac_func" >&5
16199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16200 echo $ac_n "(cached) $ac_c" 1>&6
16201 else
16202 cat > conftest.$ac_ext <<EOF
16203 #line 16204 "configure"
16204 #include "confdefs.h"
16205 /* System header to define __stub macros and hopefully few prototypes,
16206 which can conflict with char $ac_func(); below. */
16207 #include <assert.h>
16208 /* Override any gcc2 internal prototype to avoid an error. */
16209 /* We use char because int might match the return type of a gcc2
16210 builtin and then its argument prototype would still apply. */
16211 char $ac_func();
16213 int main() {
16215 /* The GNU C library defines this for functions which it implements
16216 to always fail with ENOSYS. Some functions are actually named
16217 something starting with __ and the normal name is an alias. */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16219 choke me
16220 #else
16221 $ac_func();
16222 #endif
16224 ; return 0; }
16226 if { (eval echo configure:16227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16227 rm -rf conftest*
16228 eval "ac_cv_func_$ac_func=yes"
16229 else
16230 echo "configure: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 rm -rf conftest*
16233 eval "ac_cv_func_$ac_func=no"
16235 rm -f conftest*
16238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16239 echo "$ac_t""yes" 1>&6
16240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16241 cat >> confdefs.h <<EOF
16242 #define $ac_tr_func 1
16245 else
16246 echo "$ac_t""no" 1>&6
16248 done
16255 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16256 echo "configure:16257: checking for log10f declaration" >&5
16257 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16258 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16260 else
16263 ac_ext=C
16264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16265 ac_cpp='$CXXCPP $CPPFLAGS'
16266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16268 cross_compiling=$ac_cv_prog_cxx_cross
16270 cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16273 #include <math.h>
16274 #ifdef HAVE_IEEEFP_H
16275 #include <ieeefp.h>
16276 #endif
16278 int main() {
16279 log10f(0);
16280 ; return 0; }
16282 if { (eval echo configure:16283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16283 rm -rf conftest*
16284 glibcpp_cv_func_log10f_use=yes
16285 else
16286 echo "configure: failed program was:" >&5
16287 cat conftest.$ac_ext >&5
16288 rm -rf conftest*
16289 glibcpp_cv_func_log10f_use=no
16291 rm -f conftest*
16292 ac_ext=c
16293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16294 ac_cpp='$CPP $CPPFLAGS'
16295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16297 cross_compiling=$ac_cv_prog_cc_cross
16303 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16305 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16306 for ac_func in log10f
16308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16309 echo "configure:16310: checking for $ac_func" >&5
16310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16311 echo $ac_n "(cached) $ac_c" 1>&6
16312 else
16313 cat > conftest.$ac_ext <<EOF
16314 #line 16315 "configure"
16315 #include "confdefs.h"
16316 /* System header to define __stub macros and hopefully few prototypes,
16317 which can conflict with char $ac_func(); below. */
16318 #include <assert.h>
16319 /* Override any gcc2 internal prototype to avoid an error. */
16320 /* We use char because int might match the return type of a gcc2
16321 builtin and then its argument prototype would still apply. */
16322 char $ac_func();
16324 int main() {
16326 /* The GNU C library defines this for functions which it implements
16327 to always fail with ENOSYS. Some functions are actually named
16328 something starting with __ and the normal name is an alias. */
16329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16330 choke me
16331 #else
16332 $ac_func();
16333 #endif
16335 ; return 0; }
16337 if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16338 rm -rf conftest*
16339 eval "ac_cv_func_$ac_func=yes"
16340 else
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16343 rm -rf conftest*
16344 eval "ac_cv_func_$ac_func=no"
16346 rm -f conftest*
16349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16350 echo "$ac_t""yes" 1>&6
16351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16352 cat >> confdefs.h <<EOF
16353 #define $ac_tr_func 1
16356 else
16357 echo "$ac_t""no" 1>&6
16359 done
16361 else
16363 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16364 echo "configure:16365: checking for _log10f declaration" >&5
16365 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16366 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16367 echo $ac_n "(cached) $ac_c" 1>&6
16368 else
16371 ac_ext=C
16372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16373 ac_cpp='$CXXCPP $CPPFLAGS'
16374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16376 cross_compiling=$ac_cv_prog_cxx_cross
16378 cat > conftest.$ac_ext <<EOF
16379 #line 16380 "configure"
16380 #include "confdefs.h"
16381 #include <math.h>
16382 #ifdef HAVE_IEEEFP_H
16383 #include <ieeefp.h>
16384 #endif
16386 int main() {
16387 _log10f(0);
16388 ; return 0; }
16390 if { (eval echo configure:16391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16391 rm -rf conftest*
16392 glibcpp_cv_func__log10f_use=yes
16393 else
16394 echo "configure: failed program was:" >&5
16395 cat conftest.$ac_ext >&5
16396 rm -rf conftest*
16397 glibcpp_cv_func__log10f_use=no
16399 rm -f conftest*
16400 ac_ext=c
16401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16405 cross_compiling=$ac_cv_prog_cc_cross
16411 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16413 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16414 for ac_func in _log10f
16416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16417 echo "configure:16418: checking for $ac_func" >&5
16418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16419 echo $ac_n "(cached) $ac_c" 1>&6
16420 else
16421 cat > conftest.$ac_ext <<EOF
16422 #line 16423 "configure"
16423 #include "confdefs.h"
16424 /* System header to define __stub macros and hopefully few prototypes,
16425 which can conflict with char $ac_func(); below. */
16426 #include <assert.h>
16427 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char $ac_func();
16432 int main() {
16434 /* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438 choke me
16439 #else
16440 $ac_func();
16441 #endif
16443 ; return 0; }
16445 if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16446 rm -rf conftest*
16447 eval "ac_cv_func_$ac_func=yes"
16448 else
16449 echo "configure: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16451 rm -rf conftest*
16452 eval "ac_cv_func_$ac_func=no"
16454 rm -f conftest*
16457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16458 echo "$ac_t""yes" 1>&6
16459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16460 cat >> confdefs.h <<EOF
16461 #define $ac_tr_func 1
16464 else
16465 echo "$ac_t""no" 1>&6
16467 done
16474 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16475 echo "configure:16476: checking for modff declaration" >&5
16476 if test x${glibcpp_cv_func_modff_use+set} != xset; then
16477 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16478 echo $ac_n "(cached) $ac_c" 1>&6
16479 else
16482 ac_ext=C
16483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16484 ac_cpp='$CXXCPP $CPPFLAGS'
16485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16487 cross_compiling=$ac_cv_prog_cxx_cross
16489 cat > conftest.$ac_ext <<EOF
16490 #line 16491 "configure"
16491 #include "confdefs.h"
16492 #include <math.h>
16493 int main() {
16494 modff(0, 0);
16495 ; return 0; }
16497 if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16498 rm -rf conftest*
16499 glibcpp_cv_func_modff_use=yes
16500 else
16501 echo "configure: failed program was:" >&5
16502 cat conftest.$ac_ext >&5
16503 rm -rf conftest*
16504 glibcpp_cv_func_modff_use=no
16506 rm -f conftest*
16507 ac_ext=c
16508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16512 cross_compiling=$ac_cv_prog_cc_cross
16518 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16520 if test x$glibcpp_cv_func_modff_use = x"yes"; then
16521 for ac_func in modff
16523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16524 echo "configure:16525: checking for $ac_func" >&5
16525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16526 echo $ac_n "(cached) $ac_c" 1>&6
16527 else
16528 cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 /* System header to define __stub macros and hopefully few prototypes,
16532 which can conflict with char $ac_func(); below. */
16533 #include <assert.h>
16534 /* Override any gcc2 internal prototype to avoid an error. */
16535 /* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16537 char $ac_func();
16539 int main() {
16541 /* The GNU C library defines this for functions which it implements
16542 to always fail with ENOSYS. Some functions are actually named
16543 something starting with __ and the normal name is an alias. */
16544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545 choke me
16546 #else
16547 $ac_func();
16548 #endif
16550 ; return 0; }
16552 if { (eval echo configure:16553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16553 rm -rf conftest*
16554 eval "ac_cv_func_$ac_func=yes"
16555 else
16556 echo "configure: failed program was:" >&5
16557 cat conftest.$ac_ext >&5
16558 rm -rf conftest*
16559 eval "ac_cv_func_$ac_func=no"
16561 rm -f conftest*
16564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16565 echo "$ac_t""yes" 1>&6
16566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16567 cat >> confdefs.h <<EOF
16568 #define $ac_tr_func 1
16571 else
16572 echo "$ac_t""no" 1>&6
16574 done
16576 else
16578 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16579 echo "configure:16580: checking for _modff declaration" >&5
16580 if test x${glibcpp_cv_func__modff_use+set} != xset; then
16581 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16582 echo $ac_n "(cached) $ac_c" 1>&6
16583 else
16586 ac_ext=C
16587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16588 ac_cpp='$CXXCPP $CPPFLAGS'
16589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16591 cross_compiling=$ac_cv_prog_cxx_cross
16593 cat > conftest.$ac_ext <<EOF
16594 #line 16595 "configure"
16595 #include "confdefs.h"
16596 #include <math.h>
16597 int main() {
16598 _modff(0, 0);
16599 ; return 0; }
16601 if { (eval echo configure:16602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16602 rm -rf conftest*
16603 glibcpp_cv_func__modff_use=yes
16604 else
16605 echo "configure: failed program was:" >&5
16606 cat conftest.$ac_ext >&5
16607 rm -rf conftest*
16608 glibcpp_cv_func__modff_use=no
16610 rm -f conftest*
16611 ac_ext=c
16612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16616 cross_compiling=$ac_cv_prog_cc_cross
16622 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16624 if test x$glibcpp_cv_func__modff_use = x"yes"; then
16625 for ac_func in _modff
16627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16628 echo "configure:16629: checking for $ac_func" >&5
16629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16632 cat > conftest.$ac_ext <<EOF
16633 #line 16634 "configure"
16634 #include "confdefs.h"
16635 /* System header to define __stub macros and hopefully few prototypes,
16636 which can conflict with char $ac_func(); below. */
16637 #include <assert.h>
16638 /* Override any gcc2 internal prototype to avoid an error. */
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16641 char $ac_func();
16643 int main() {
16645 /* The GNU C library defines this for functions which it implements
16646 to always fail with ENOSYS. Some functions are actually named
16647 something starting with __ and the normal name is an alias. */
16648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16649 choke me
16650 #else
16651 $ac_func();
16652 #endif
16654 ; return 0; }
16656 if { (eval echo configure:16657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16657 rm -rf conftest*
16658 eval "ac_cv_func_$ac_func=yes"
16659 else
16660 echo "configure: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 rm -rf conftest*
16663 eval "ac_cv_func_$ac_func=no"
16665 rm -f conftest*
16668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16669 echo "$ac_t""yes" 1>&6
16670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16671 cat >> confdefs.h <<EOF
16672 #define $ac_tr_func 1
16675 else
16676 echo "$ac_t""no" 1>&6
16678 done
16685 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16686 echo "configure:16687: checking for powf declaration" >&5
16687 if test x${glibcpp_cv_func_powf_use+set} != xset; then
16688 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16689 echo $ac_n "(cached) $ac_c" 1>&6
16690 else
16693 ac_ext=C
16694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16695 ac_cpp='$CXXCPP $CPPFLAGS'
16696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16698 cross_compiling=$ac_cv_prog_cxx_cross
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703 #include <math.h>
16704 int main() {
16705 powf(0, 0);
16706 ; return 0; }
16708 if { (eval echo configure:16709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16709 rm -rf conftest*
16710 glibcpp_cv_func_powf_use=yes
16711 else
16712 echo "configure: failed program was:" >&5
16713 cat conftest.$ac_ext >&5
16714 rm -rf conftest*
16715 glibcpp_cv_func_powf_use=no
16717 rm -f conftest*
16718 ac_ext=c
16719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16720 ac_cpp='$CPP $CPPFLAGS'
16721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16723 cross_compiling=$ac_cv_prog_cc_cross
16729 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16731 if test x$glibcpp_cv_func_powf_use = x"yes"; then
16732 for ac_func in powf
16734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16735 echo "configure:16736: checking for $ac_func" >&5
16736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16737 echo $ac_n "(cached) $ac_c" 1>&6
16738 else
16739 cat > conftest.$ac_ext <<EOF
16740 #line 16741 "configure"
16741 #include "confdefs.h"
16742 /* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char $ac_func(); below. */
16744 #include <assert.h>
16745 /* Override any gcc2 internal prototype to avoid an error. */
16746 /* We use char because int might match the return type of a gcc2
16747 builtin and then its argument prototype would still apply. */
16748 char $ac_func();
16750 int main() {
16752 /* The GNU C library defines this for functions which it implements
16753 to always fail with ENOSYS. Some functions are actually named
16754 something starting with __ and the normal name is an alias. */
16755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16756 choke me
16757 #else
16758 $ac_func();
16759 #endif
16761 ; return 0; }
16763 if { (eval echo configure:16764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16764 rm -rf conftest*
16765 eval "ac_cv_func_$ac_func=yes"
16766 else
16767 echo "configure: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16769 rm -rf conftest*
16770 eval "ac_cv_func_$ac_func=no"
16772 rm -f conftest*
16775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16776 echo "$ac_t""yes" 1>&6
16777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16778 cat >> confdefs.h <<EOF
16779 #define $ac_tr_func 1
16782 else
16783 echo "$ac_t""no" 1>&6
16785 done
16787 else
16789 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16790 echo "configure:16791: checking for _powf declaration" >&5
16791 if test x${glibcpp_cv_func__powf_use+set} != xset; then
16792 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16793 echo $ac_n "(cached) $ac_c" 1>&6
16794 else
16797 ac_ext=C
16798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16799 ac_cpp='$CXXCPP $CPPFLAGS'
16800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16802 cross_compiling=$ac_cv_prog_cxx_cross
16804 cat > conftest.$ac_ext <<EOF
16805 #line 16806 "configure"
16806 #include "confdefs.h"
16807 #include <math.h>
16808 int main() {
16809 _powf(0, 0);
16810 ; return 0; }
16812 if { (eval echo configure:16813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16813 rm -rf conftest*
16814 glibcpp_cv_func__powf_use=yes
16815 else
16816 echo "configure: failed program was:" >&5
16817 cat conftest.$ac_ext >&5
16818 rm -rf conftest*
16819 glibcpp_cv_func__powf_use=no
16821 rm -f conftest*
16822 ac_ext=c
16823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16824 ac_cpp='$CPP $CPPFLAGS'
16825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16827 cross_compiling=$ac_cv_prog_cc_cross
16833 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16835 if test x$glibcpp_cv_func__powf_use = x"yes"; then
16836 for ac_func in _powf
16838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16839 echo "configure:16840: checking for $ac_func" >&5
16840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16841 echo $ac_n "(cached) $ac_c" 1>&6
16842 else
16843 cat > conftest.$ac_ext <<EOF
16844 #line 16845 "configure"
16845 #include "confdefs.h"
16846 /* System header to define __stub macros and hopefully few prototypes,
16847 which can conflict with char $ac_func(); below. */
16848 #include <assert.h>
16849 /* Override any gcc2 internal prototype to avoid an error. */
16850 /* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16852 char $ac_func();
16854 int main() {
16856 /* The GNU C library defines this for functions which it implements
16857 to always fail with ENOSYS. Some functions are actually named
16858 something starting with __ and the normal name is an alias. */
16859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860 choke me
16861 #else
16862 $ac_func();
16863 #endif
16865 ; return 0; }
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16868 rm -rf conftest*
16869 eval "ac_cv_func_$ac_func=yes"
16870 else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -rf conftest*
16874 eval "ac_cv_func_$ac_func=no"
16876 rm -f conftest*
16879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16880 echo "$ac_t""yes" 1>&6
16881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882 cat >> confdefs.h <<EOF
16883 #define $ac_tr_func 1
16886 else
16887 echo "$ac_t""no" 1>&6
16889 done
16896 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16897 echo "configure:16898: checking for sqrtf declaration" >&5
16898 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16899 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16900 echo $ac_n "(cached) $ac_c" 1>&6
16901 else
16904 ac_ext=C
16905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16909 cross_compiling=$ac_cv_prog_cxx_cross
16911 cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16914 #include <math.h>
16915 #ifdef HAVE_IEEEFP_H
16916 #include <ieeefp.h>
16917 #endif
16919 int main() {
16920 sqrtf(0);
16921 ; return 0; }
16923 if { (eval echo configure:16924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16924 rm -rf conftest*
16925 glibcpp_cv_func_sqrtf_use=yes
16926 else
16927 echo "configure: failed program was:" >&5
16928 cat conftest.$ac_ext >&5
16929 rm -rf conftest*
16930 glibcpp_cv_func_sqrtf_use=no
16932 rm -f conftest*
16933 ac_ext=c
16934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16935 ac_cpp='$CPP $CPPFLAGS'
16936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16938 cross_compiling=$ac_cv_prog_cc_cross
16944 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16946 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16947 for ac_func in sqrtf
16949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16950 echo "configure:16951: checking for $ac_func" >&5
16951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16952 echo $ac_n "(cached) $ac_c" 1>&6
16953 else
16954 cat > conftest.$ac_ext <<EOF
16955 #line 16956 "configure"
16956 #include "confdefs.h"
16957 /* System header to define __stub macros and hopefully few prototypes,
16958 which can conflict with char $ac_func(); below. */
16959 #include <assert.h>
16960 /* Override any gcc2 internal prototype to avoid an error. */
16961 /* We use char because int might match the return type of a gcc2
16962 builtin and then its argument prototype would still apply. */
16963 char $ac_func();
16965 int main() {
16967 /* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
16970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16971 choke me
16972 #else
16973 $ac_func();
16974 #endif
16976 ; return 0; }
16978 if { (eval echo configure:16979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16979 rm -rf conftest*
16980 eval "ac_cv_func_$ac_func=yes"
16981 else
16982 echo "configure: failed program was:" >&5
16983 cat conftest.$ac_ext >&5
16984 rm -rf conftest*
16985 eval "ac_cv_func_$ac_func=no"
16987 rm -f conftest*
16990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16991 echo "$ac_t""yes" 1>&6
16992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16993 cat >> confdefs.h <<EOF
16994 #define $ac_tr_func 1
16997 else
16998 echo "$ac_t""no" 1>&6
17000 done
17002 else
17004 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
17005 echo "configure:17006: checking for _sqrtf declaration" >&5
17006 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
17007 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
17008 echo $ac_n "(cached) $ac_c" 1>&6
17009 else
17012 ac_ext=C
17013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17014 ac_cpp='$CXXCPP $CPPFLAGS'
17015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17017 cross_compiling=$ac_cv_prog_cxx_cross
17019 cat > conftest.$ac_ext <<EOF
17020 #line 17021 "configure"
17021 #include "confdefs.h"
17022 #include <math.h>
17023 #ifdef HAVE_IEEEFP_H
17024 #include <ieeefp.h>
17025 #endif
17027 int main() {
17028 _sqrtf(0);
17029 ; return 0; }
17031 if { (eval echo configure:17032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17032 rm -rf conftest*
17033 glibcpp_cv_func__sqrtf_use=yes
17034 else
17035 echo "configure: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17037 rm -rf conftest*
17038 glibcpp_cv_func__sqrtf_use=no
17040 rm -f conftest*
17041 ac_ext=c
17042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17043 ac_cpp='$CPP $CPPFLAGS'
17044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17046 cross_compiling=$ac_cv_prog_cc_cross
17052 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
17054 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
17055 for ac_func in _sqrtf
17057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17058 echo "configure:17059: checking for $ac_func" >&5
17059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17060 echo $ac_n "(cached) $ac_c" 1>&6
17061 else
17062 cat > conftest.$ac_ext <<EOF
17063 #line 17064 "configure"
17064 #include "confdefs.h"
17065 /* System header to define __stub macros and hopefully few prototypes,
17066 which can conflict with char $ac_func(); below. */
17067 #include <assert.h>
17068 /* Override any gcc2 internal prototype to avoid an error. */
17069 /* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071 char $ac_func();
17073 int main() {
17075 /* The GNU C library defines this for functions which it implements
17076 to always fail with ENOSYS. Some functions are actually named
17077 something starting with __ and the normal name is an alias. */
17078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17079 choke me
17080 #else
17081 $ac_func();
17082 #endif
17084 ; return 0; }
17086 if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17087 rm -rf conftest*
17088 eval "ac_cv_func_$ac_func=yes"
17089 else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093 eval "ac_cv_func_$ac_func=no"
17095 rm -f conftest*
17098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17099 echo "$ac_t""yes" 1>&6
17100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17101 cat >> confdefs.h <<EOF
17102 #define $ac_tr_func 1
17105 else
17106 echo "$ac_t""no" 1>&6
17108 done
17115 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
17116 echo "configure:17117: checking for sincosf declaration" >&5
17117 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
17118 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
17119 echo $ac_n "(cached) $ac_c" 1>&6
17120 else
17123 ac_ext=C
17124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17125 ac_cpp='$CXXCPP $CPPFLAGS'
17126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17128 cross_compiling=$ac_cv_prog_cxx_cross
17130 cat > conftest.$ac_ext <<EOF
17131 #line 17132 "configure"
17132 #include "confdefs.h"
17133 #include <math.h>
17134 int main() {
17135 sincosf(0, 0, 0);
17136 ; return 0; }
17138 if { (eval echo configure:17139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17139 rm -rf conftest*
17140 glibcpp_cv_func_sincosf_use=yes
17141 else
17142 echo "configure: failed program was:" >&5
17143 cat conftest.$ac_ext >&5
17144 rm -rf conftest*
17145 glibcpp_cv_func_sincosf_use=no
17147 rm -f conftest*
17148 ac_ext=c
17149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17150 ac_cpp='$CPP $CPPFLAGS'
17151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17153 cross_compiling=$ac_cv_prog_cc_cross
17159 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17161 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17162 for ac_func in sincosf
17164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17165 echo "configure:17166: checking for $ac_func" >&5
17166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17167 echo $ac_n "(cached) $ac_c" 1>&6
17168 else
17169 cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17172 /* System header to define __stub macros and hopefully few prototypes,
17173 which can conflict with char $ac_func(); below. */
17174 #include <assert.h>
17175 /* Override any gcc2 internal prototype to avoid an error. */
17176 /* We use char because int might match the return type of a gcc2
17177 builtin and then its argument prototype would still apply. */
17178 char $ac_func();
17180 int main() {
17182 /* The GNU C library defines this for functions which it implements
17183 to always fail with ENOSYS. Some functions are actually named
17184 something starting with __ and the normal name is an alias. */
17185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17186 choke me
17187 #else
17188 $ac_func();
17189 #endif
17191 ; return 0; }
17193 if { (eval echo configure:17194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17194 rm -rf conftest*
17195 eval "ac_cv_func_$ac_func=yes"
17196 else
17197 echo "configure: failed program was:" >&5
17198 cat conftest.$ac_ext >&5
17199 rm -rf conftest*
17200 eval "ac_cv_func_$ac_func=no"
17202 rm -f conftest*
17205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17206 echo "$ac_t""yes" 1>&6
17207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17208 cat >> confdefs.h <<EOF
17209 #define $ac_tr_func 1
17212 else
17213 echo "$ac_t""no" 1>&6
17215 done
17217 else
17219 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17220 echo "configure:17221: checking for _sincosf declaration" >&5
17221 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17222 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17224 else
17227 ac_ext=C
17228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17229 ac_cpp='$CXXCPP $CPPFLAGS'
17230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17232 cross_compiling=$ac_cv_prog_cxx_cross
17234 cat > conftest.$ac_ext <<EOF
17235 #line 17236 "configure"
17236 #include "confdefs.h"
17237 #include <math.h>
17238 int main() {
17239 _sincosf(0, 0, 0);
17240 ; return 0; }
17242 if { (eval echo configure:17243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17243 rm -rf conftest*
17244 glibcpp_cv_func__sincosf_use=yes
17245 else
17246 echo "configure: failed program was:" >&5
17247 cat conftest.$ac_ext >&5
17248 rm -rf conftest*
17249 glibcpp_cv_func__sincosf_use=no
17251 rm -f conftest*
17252 ac_ext=c
17253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17254 ac_cpp='$CPP $CPPFLAGS'
17255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17257 cross_compiling=$ac_cv_prog_cc_cross
17263 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17265 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17266 for ac_func in _sincosf
17268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17269 echo "configure:17270: checking for $ac_func" >&5
17270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17271 echo $ac_n "(cached) $ac_c" 1>&6
17272 else
17273 cat > conftest.$ac_ext <<EOF
17274 #line 17275 "configure"
17275 #include "confdefs.h"
17276 /* System header to define __stub macros and hopefully few prototypes,
17277 which can conflict with char $ac_func(); below. */
17278 #include <assert.h>
17279 /* Override any gcc2 internal prototype to avoid an error. */
17280 /* We use char because int might match the return type of a gcc2
17281 builtin and then its argument prototype would still apply. */
17282 char $ac_func();
17284 int main() {
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17290 choke me
17291 #else
17292 $ac_func();
17293 #endif
17295 ; return 0; }
17297 if { (eval echo configure:17298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17298 rm -rf conftest*
17299 eval "ac_cv_func_$ac_func=yes"
17300 else
17301 echo "configure: failed program was:" >&5
17302 cat conftest.$ac_ext >&5
17303 rm -rf conftest*
17304 eval "ac_cv_func_$ac_func=no"
17306 rm -f conftest*
17309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17310 echo "$ac_t""yes" 1>&6
17311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17312 cat >> confdefs.h <<EOF
17313 #define $ac_tr_func 1
17316 else
17317 echo "$ac_t""no" 1>&6
17319 done
17326 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17327 echo "configure:17328: checking for finitef declaration" >&5
17328 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17329 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17330 echo $ac_n "(cached) $ac_c" 1>&6
17331 else
17334 ac_ext=C
17335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17336 ac_cpp='$CXXCPP $CPPFLAGS'
17337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17339 cross_compiling=$ac_cv_prog_cxx_cross
17341 cat > conftest.$ac_ext <<EOF
17342 #line 17343 "configure"
17343 #include "confdefs.h"
17344 #include <math.h>
17345 #ifdef HAVE_IEEEFP_H
17346 #include <ieeefp.h>
17347 #endif
17349 int main() {
17350 finitef(0);
17351 ; return 0; }
17353 if { (eval echo configure:17354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17354 rm -rf conftest*
17355 glibcpp_cv_func_finitef_use=yes
17356 else
17357 echo "configure: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17359 rm -rf conftest*
17360 glibcpp_cv_func_finitef_use=no
17362 rm -f conftest*
17363 ac_ext=c
17364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17365 ac_cpp='$CPP $CPPFLAGS'
17366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17368 cross_compiling=$ac_cv_prog_cc_cross
17374 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17376 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17377 for ac_func in finitef
17379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17380 echo "configure:17381: checking for $ac_func" >&5
17381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17382 echo $ac_n "(cached) $ac_c" 1>&6
17383 else
17384 cat > conftest.$ac_ext <<EOF
17385 #line 17386 "configure"
17386 #include "confdefs.h"
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func(); below. */
17389 #include <assert.h>
17390 /* Override any gcc2 internal prototype to avoid an error. */
17391 /* We use char because int might match the return type of a gcc2
17392 builtin and then its argument prototype would still apply. */
17393 char $ac_func();
17395 int main() {
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17401 choke me
17402 #else
17403 $ac_func();
17404 #endif
17406 ; return 0; }
17408 if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17409 rm -rf conftest*
17410 eval "ac_cv_func_$ac_func=yes"
17411 else
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414 rm -rf conftest*
17415 eval "ac_cv_func_$ac_func=no"
17417 rm -f conftest*
17420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17421 echo "$ac_t""yes" 1>&6
17422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17423 cat >> confdefs.h <<EOF
17424 #define $ac_tr_func 1
17427 else
17428 echo "$ac_t""no" 1>&6
17430 done
17432 else
17434 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17435 echo "configure:17436: checking for _finitef declaration" >&5
17436 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17437 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17438 echo $ac_n "(cached) $ac_c" 1>&6
17439 else
17442 ac_ext=C
17443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17444 ac_cpp='$CXXCPP $CPPFLAGS'
17445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17447 cross_compiling=$ac_cv_prog_cxx_cross
17449 cat > conftest.$ac_ext <<EOF
17450 #line 17451 "configure"
17451 #include "confdefs.h"
17452 #include <math.h>
17453 #ifdef HAVE_IEEEFP_H
17454 #include <ieeefp.h>
17455 #endif
17457 int main() {
17458 _finitef(0);
17459 ; return 0; }
17461 if { (eval echo configure:17462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17462 rm -rf conftest*
17463 glibcpp_cv_func__finitef_use=yes
17464 else
17465 echo "configure: failed program was:" >&5
17466 cat conftest.$ac_ext >&5
17467 rm -rf conftest*
17468 glibcpp_cv_func__finitef_use=no
17470 rm -f conftest*
17471 ac_ext=c
17472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17473 ac_cpp='$CPP $CPPFLAGS'
17474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17476 cross_compiling=$ac_cv_prog_cc_cross
17482 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17484 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17485 for ac_func in _finitef
17487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17488 echo "configure:17489: checking for $ac_func" >&5
17489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17490 echo $ac_n "(cached) $ac_c" 1>&6
17491 else
17492 cat > conftest.$ac_ext <<EOF
17493 #line 17494 "configure"
17494 #include "confdefs.h"
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char $ac_func(); below. */
17497 #include <assert.h>
17498 /* Override any gcc2 internal prototype to avoid an error. */
17499 /* We use char because int might match the return type of a gcc2
17500 builtin and then its argument prototype would still apply. */
17501 char $ac_func();
17503 int main() {
17505 /* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
17508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17509 choke me
17510 #else
17511 $ac_func();
17512 #endif
17514 ; return 0; }
17516 if { (eval echo configure:17517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17517 rm -rf conftest*
17518 eval "ac_cv_func_$ac_func=yes"
17519 else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
17523 eval "ac_cv_func_$ac_func=no"
17525 rm -f conftest*
17528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17529 echo "$ac_t""yes" 1>&6
17530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17531 cat >> confdefs.h <<EOF
17532 #define $ac_tr_func 1
17535 else
17536 echo "$ac_t""no" 1>&6
17538 done
17545 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17546 echo "configure:17547: checking for long double trig functions" >&5
17547 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17548 echo $ac_n "(cached) $ac_c" 1>&6
17549 else
17552 ac_ext=C
17553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17554 ac_cpp='$CXXCPP $CPPFLAGS'
17555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17557 cross_compiling=$ac_cv_prog_cxx_cross
17559 cat > conftest.$ac_ext <<EOF
17560 #line 17561 "configure"
17561 #include "confdefs.h"
17562 #include <math.h>
17563 int main() {
17564 `for x in acosl asinl atanl \
17565 cosl sinl tanl \
17566 coshl sinhl tanhl; do echo "$x (0);"; done`
17567 ; return 0; }
17569 if { (eval echo configure:17570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17570 rm -rf conftest*
17571 glibcpp_cv_func_long_double_trig_use=yes
17572 else
17573 echo "configure: failed program was:" >&5
17574 cat conftest.$ac_ext >&5
17575 rm -rf conftest*
17576 glibcpp_cv_func_long_double_trig_use=no
17578 rm -f conftest*
17579 ac_ext=c
17580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17581 ac_cpp='$CPP $CPPFLAGS'
17582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17584 cross_compiling=$ac_cv_prog_cc_cross
17588 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17589 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17590 for ac_func in acosl asinl atanl \
17591 cosl sinl tanl \
17592 coshl sinhl tanhl
17594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17595 echo "configure:17596: checking for $ac_func" >&5
17596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17597 echo $ac_n "(cached) $ac_c" 1>&6
17598 else
17599 cat > conftest.$ac_ext <<EOF
17600 #line 17601 "configure"
17601 #include "confdefs.h"
17602 /* System header to define __stub macros and hopefully few prototypes,
17603 which can conflict with char $ac_func(); below. */
17604 #include <assert.h>
17605 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17608 char $ac_func();
17610 int main() {
17612 /* The GNU C library defines this for functions which it implements
17613 to always fail with ENOSYS. Some functions are actually named
17614 something starting with __ and the normal name is an alias. */
17615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17616 choke me
17617 #else
17618 $ac_func();
17619 #endif
17621 ; return 0; }
17623 if { (eval echo configure:17624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17624 rm -rf conftest*
17625 eval "ac_cv_func_$ac_func=yes"
17626 else
17627 echo "configure: failed program was:" >&5
17628 cat conftest.$ac_ext >&5
17629 rm -rf conftest*
17630 eval "ac_cv_func_$ac_func=no"
17632 rm -f conftest*
17635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17636 echo "$ac_t""yes" 1>&6
17637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17638 cat >> confdefs.h <<EOF
17639 #define $ac_tr_func 1
17642 else
17643 echo "$ac_t""no" 1>&6
17645 done
17650 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17651 echo "configure:17652: checking for long double round functions" >&5
17652 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17653 echo $ac_n "(cached) $ac_c" 1>&6
17654 else
17657 ac_ext=C
17658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17659 ac_cpp='$CXXCPP $CPPFLAGS'
17660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17662 cross_compiling=$ac_cv_prog_cxx_cross
17664 cat > conftest.$ac_ext <<EOF
17665 #line 17666 "configure"
17666 #include "confdefs.h"
17667 #include <math.h>
17668 int main() {
17669 `for x in ceill floorl; do echo "$x (0);"; done`
17670 ; return 0; }
17672 if { (eval echo configure:17673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17673 rm -rf conftest*
17674 glibcpp_cv_func_long_double_round_use=yes
17675 else
17676 echo "configure: failed program was:" >&5
17677 cat conftest.$ac_ext >&5
17678 rm -rf conftest*
17679 glibcpp_cv_func_long_double_round_use=no
17681 rm -f conftest*
17682 ac_ext=c
17683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17684 ac_cpp='$CPP $CPPFLAGS'
17685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17687 cross_compiling=$ac_cv_prog_cc_cross
17691 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17692 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17693 for ac_func in ceill floorl
17695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17696 echo "configure:17697: checking for $ac_func" >&5
17697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17698 echo $ac_n "(cached) $ac_c" 1>&6
17699 else
17700 cat > conftest.$ac_ext <<EOF
17701 #line 17702 "configure"
17702 #include "confdefs.h"
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char $ac_func(); below. */
17705 #include <assert.h>
17706 /* Override any gcc2 internal prototype to avoid an error. */
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17709 char $ac_func();
17711 int main() {
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17717 choke me
17718 #else
17719 $ac_func();
17720 #endif
17722 ; return 0; }
17724 if { (eval echo configure:17725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17725 rm -rf conftest*
17726 eval "ac_cv_func_$ac_func=yes"
17727 else
17728 echo "configure: failed program was:" >&5
17729 cat conftest.$ac_ext >&5
17730 rm -rf conftest*
17731 eval "ac_cv_func_$ac_func=no"
17733 rm -f conftest*
17736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17737 echo "$ac_t""yes" 1>&6
17738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17739 cat >> confdefs.h <<EOF
17740 #define $ac_tr_func 1
17743 else
17744 echo "$ac_t""no" 1>&6
17746 done
17752 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17753 echo "configure:17754: checking for isnanl declaration" >&5
17754 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17755 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17756 echo $ac_n "(cached) $ac_c" 1>&6
17757 else
17760 ac_ext=C
17761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17762 ac_cpp='$CXXCPP $CPPFLAGS'
17763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17765 cross_compiling=$ac_cv_prog_cxx_cross
17767 cat > conftest.$ac_ext <<EOF
17768 #line 17769 "configure"
17769 #include "confdefs.h"
17770 #include <math.h>
17771 #ifdef HAVE_IEEEFP_H
17772 #include <ieeefp.h>
17773 #endif
17775 int main() {
17776 isnanl(0);
17777 ; return 0; }
17779 if { (eval echo configure:17780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17780 rm -rf conftest*
17781 glibcpp_cv_func_isnanl_use=yes
17782 else
17783 echo "configure: failed program was:" >&5
17784 cat conftest.$ac_ext >&5
17785 rm -rf conftest*
17786 glibcpp_cv_func_isnanl_use=no
17788 rm -f conftest*
17789 ac_ext=c
17790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17791 ac_cpp='$CPP $CPPFLAGS'
17792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17794 cross_compiling=$ac_cv_prog_cc_cross
17800 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17802 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17803 for ac_func in isnanl
17805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17806 echo "configure:17807: checking for $ac_func" >&5
17807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17808 echo $ac_n "(cached) $ac_c" 1>&6
17809 else
17810 cat > conftest.$ac_ext <<EOF
17811 #line 17812 "configure"
17812 #include "confdefs.h"
17813 /* System header to define __stub macros and hopefully few prototypes,
17814 which can conflict with char $ac_func(); below. */
17815 #include <assert.h>
17816 /* Override any gcc2 internal prototype to avoid an error. */
17817 /* We use char because int might match the return type of a gcc2
17818 builtin and then its argument prototype would still apply. */
17819 char $ac_func();
17821 int main() {
17823 /* The GNU C library defines this for functions which it implements
17824 to always fail with ENOSYS. Some functions are actually named
17825 something starting with __ and the normal name is an alias. */
17826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17827 choke me
17828 #else
17829 $ac_func();
17830 #endif
17832 ; return 0; }
17834 if { (eval echo configure:17835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17835 rm -rf conftest*
17836 eval "ac_cv_func_$ac_func=yes"
17837 else
17838 echo "configure: failed program was:" >&5
17839 cat conftest.$ac_ext >&5
17840 rm -rf conftest*
17841 eval "ac_cv_func_$ac_func=no"
17843 rm -f conftest*
17846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17847 echo "$ac_t""yes" 1>&6
17848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17849 cat >> confdefs.h <<EOF
17850 #define $ac_tr_func 1
17853 else
17854 echo "$ac_t""no" 1>&6
17856 done
17858 else
17860 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17861 echo "configure:17862: checking for _isnanl declaration" >&5
17862 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17863 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17864 echo $ac_n "(cached) $ac_c" 1>&6
17865 else
17868 ac_ext=C
17869 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17870 ac_cpp='$CXXCPP $CPPFLAGS'
17871 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17872 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17873 cross_compiling=$ac_cv_prog_cxx_cross
17875 cat > conftest.$ac_ext <<EOF
17876 #line 17877 "configure"
17877 #include "confdefs.h"
17878 #include <math.h>
17879 #ifdef HAVE_IEEEFP_H
17880 #include <ieeefp.h>
17881 #endif
17883 int main() {
17884 _isnanl(0);
17885 ; return 0; }
17887 if { (eval echo configure:17888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17888 rm -rf conftest*
17889 glibcpp_cv_func__isnanl_use=yes
17890 else
17891 echo "configure: failed program was:" >&5
17892 cat conftest.$ac_ext >&5
17893 rm -rf conftest*
17894 glibcpp_cv_func__isnanl_use=no
17896 rm -f conftest*
17897 ac_ext=c
17898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17899 ac_cpp='$CPP $CPPFLAGS'
17900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17902 cross_compiling=$ac_cv_prog_cc_cross
17908 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17910 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17911 for ac_func in _isnanl
17913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17914 echo "configure:17915: checking for $ac_func" >&5
17915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17916 echo $ac_n "(cached) $ac_c" 1>&6
17917 else
17918 cat > conftest.$ac_ext <<EOF
17919 #line 17920 "configure"
17920 #include "confdefs.h"
17921 /* System header to define __stub macros and hopefully few prototypes,
17922 which can conflict with char $ac_func(); below. */
17923 #include <assert.h>
17924 /* Override any gcc2 internal prototype to avoid an error. */
17925 /* We use char because int might match the return type of a gcc2
17926 builtin and then its argument prototype would still apply. */
17927 char $ac_func();
17929 int main() {
17931 /* The GNU C library defines this for functions which it implements
17932 to always fail with ENOSYS. Some functions are actually named
17933 something starting with __ and the normal name is an alias. */
17934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17935 choke me
17936 #else
17937 $ac_func();
17938 #endif
17940 ; return 0; }
17942 if { (eval echo configure:17943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17943 rm -rf conftest*
17944 eval "ac_cv_func_$ac_func=yes"
17945 else
17946 echo "configure: failed program was:" >&5
17947 cat conftest.$ac_ext >&5
17948 rm -rf conftest*
17949 eval "ac_cv_func_$ac_func=no"
17951 rm -f conftest*
17954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17955 echo "$ac_t""yes" 1>&6
17956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17957 cat >> confdefs.h <<EOF
17958 #define $ac_tr_func 1
17961 else
17962 echo "$ac_t""no" 1>&6
17964 done
17971 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17972 echo "configure:17973: checking for isinfl declaration" >&5
17973 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17974 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17975 echo $ac_n "(cached) $ac_c" 1>&6
17976 else
17979 ac_ext=C
17980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17984 cross_compiling=$ac_cv_prog_cxx_cross
17986 cat > conftest.$ac_ext <<EOF
17987 #line 17988 "configure"
17988 #include "confdefs.h"
17989 #include <math.h>
17990 #ifdef HAVE_IEEEFP_H
17991 #include <ieeefp.h>
17992 #endif
17994 int main() {
17995 isinfl(0);
17996 ; return 0; }
17998 if { (eval echo configure:17999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17999 rm -rf conftest*
18000 glibcpp_cv_func_isinfl_use=yes
18001 else
18002 echo "configure: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18004 rm -rf conftest*
18005 glibcpp_cv_func_isinfl_use=no
18007 rm -f conftest*
18008 ac_ext=c
18009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18010 ac_cpp='$CPP $CPPFLAGS'
18011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18013 cross_compiling=$ac_cv_prog_cc_cross
18019 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
18021 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
18022 for ac_func in isinfl
18024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18025 echo "configure:18026: checking for $ac_func" >&5
18026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18027 echo $ac_n "(cached) $ac_c" 1>&6
18028 else
18029 cat > conftest.$ac_ext <<EOF
18030 #line 18031 "configure"
18031 #include "confdefs.h"
18032 /* System header to define __stub macros and hopefully few prototypes,
18033 which can conflict with char $ac_func(); below. */
18034 #include <assert.h>
18035 /* Override any gcc2 internal prototype to avoid an error. */
18036 /* We use char because int might match the return type of a gcc2
18037 builtin and then its argument prototype would still apply. */
18038 char $ac_func();
18040 int main() {
18042 /* The GNU C library defines this for functions which it implements
18043 to always fail with ENOSYS. Some functions are actually named
18044 something starting with __ and the normal name is an alias. */
18045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18046 choke me
18047 #else
18048 $ac_func();
18049 #endif
18051 ; return 0; }
18053 if { (eval echo configure:18054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18054 rm -rf conftest*
18055 eval "ac_cv_func_$ac_func=yes"
18056 else
18057 echo "configure: failed program was:" >&5
18058 cat conftest.$ac_ext >&5
18059 rm -rf conftest*
18060 eval "ac_cv_func_$ac_func=no"
18062 rm -f conftest*
18065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18066 echo "$ac_t""yes" 1>&6
18067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18068 cat >> confdefs.h <<EOF
18069 #define $ac_tr_func 1
18072 else
18073 echo "$ac_t""no" 1>&6
18075 done
18077 else
18079 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
18080 echo "configure:18081: checking for _isinfl declaration" >&5
18081 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
18082 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
18083 echo $ac_n "(cached) $ac_c" 1>&6
18084 else
18087 ac_ext=C
18088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18089 ac_cpp='$CXXCPP $CPPFLAGS'
18090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18092 cross_compiling=$ac_cv_prog_cxx_cross
18094 cat > conftest.$ac_ext <<EOF
18095 #line 18096 "configure"
18096 #include "confdefs.h"
18097 #include <math.h>
18098 #ifdef HAVE_IEEEFP_H
18099 #include <ieeefp.h>
18100 #endif
18102 int main() {
18103 _isinfl(0);
18104 ; return 0; }
18106 if { (eval echo configure:18107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18107 rm -rf conftest*
18108 glibcpp_cv_func__isinfl_use=yes
18109 else
18110 echo "configure: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18112 rm -rf conftest*
18113 glibcpp_cv_func__isinfl_use=no
18115 rm -f conftest*
18116 ac_ext=c
18117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18118 ac_cpp='$CPP $CPPFLAGS'
18119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18121 cross_compiling=$ac_cv_prog_cc_cross
18127 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
18129 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
18130 for ac_func in _isinfl
18132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18133 echo "configure:18134: checking for $ac_func" >&5
18134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18135 echo $ac_n "(cached) $ac_c" 1>&6
18136 else
18137 cat > conftest.$ac_ext <<EOF
18138 #line 18139 "configure"
18139 #include "confdefs.h"
18140 /* System header to define __stub macros and hopefully few prototypes,
18141 which can conflict with char $ac_func(); below. */
18142 #include <assert.h>
18143 /* Override any gcc2 internal prototype to avoid an error. */
18144 /* We use char because int might match the return type of a gcc2
18145 builtin and then its argument prototype would still apply. */
18146 char $ac_func();
18148 int main() {
18150 /* The GNU C library defines this for functions which it implements
18151 to always fail with ENOSYS. Some functions are actually named
18152 something starting with __ and the normal name is an alias. */
18153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18154 choke me
18155 #else
18156 $ac_func();
18157 #endif
18159 ; return 0; }
18161 if { (eval echo configure:18162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18162 rm -rf conftest*
18163 eval "ac_cv_func_$ac_func=yes"
18164 else
18165 echo "configure: failed program was:" >&5
18166 cat conftest.$ac_ext >&5
18167 rm -rf conftest*
18168 eval "ac_cv_func_$ac_func=no"
18170 rm -f conftest*
18173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18174 echo "$ac_t""yes" 1>&6
18175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18176 cat >> confdefs.h <<EOF
18177 #define $ac_tr_func 1
18180 else
18181 echo "$ac_t""no" 1>&6
18183 done
18190 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18191 echo "configure:18192: checking for copysignl declaration" >&5
18192 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18193 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18194 echo $ac_n "(cached) $ac_c" 1>&6
18195 else
18198 ac_ext=C
18199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18200 ac_cpp='$CXXCPP $CPPFLAGS'
18201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18203 cross_compiling=$ac_cv_prog_cxx_cross
18205 cat > conftest.$ac_ext <<EOF
18206 #line 18207 "configure"
18207 #include "confdefs.h"
18208 #include <math.h>
18209 int main() {
18210 copysignl(0, 0);
18211 ; return 0; }
18213 if { (eval echo configure:18214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18214 rm -rf conftest*
18215 glibcpp_cv_func_copysignl_use=yes
18216 else
18217 echo "configure: failed program was:" >&5
18218 cat conftest.$ac_ext >&5
18219 rm -rf conftest*
18220 glibcpp_cv_func_copysignl_use=no
18222 rm -f conftest*
18223 ac_ext=c
18224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18225 ac_cpp='$CPP $CPPFLAGS'
18226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18228 cross_compiling=$ac_cv_prog_cc_cross
18234 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18236 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18237 for ac_func in copysignl
18239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18240 echo "configure:18241: checking for $ac_func" >&5
18241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18242 echo $ac_n "(cached) $ac_c" 1>&6
18243 else
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18247 /* System header to define __stub macros and hopefully few prototypes,
18248 which can conflict with char $ac_func(); below. */
18249 #include <assert.h>
18250 /* Override any gcc2 internal prototype to avoid an error. */
18251 /* We use char because int might match the return type of a gcc2
18252 builtin and then its argument prototype would still apply. */
18253 char $ac_func();
18255 int main() {
18257 /* The GNU C library defines this for functions which it implements
18258 to always fail with ENOSYS. Some functions are actually named
18259 something starting with __ and the normal name is an alias. */
18260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18261 choke me
18262 #else
18263 $ac_func();
18264 #endif
18266 ; return 0; }
18268 if { (eval echo configure:18269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18269 rm -rf conftest*
18270 eval "ac_cv_func_$ac_func=yes"
18271 else
18272 echo "configure: failed program was:" >&5
18273 cat conftest.$ac_ext >&5
18274 rm -rf conftest*
18275 eval "ac_cv_func_$ac_func=no"
18277 rm -f conftest*
18280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18281 echo "$ac_t""yes" 1>&6
18282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18283 cat >> confdefs.h <<EOF
18284 #define $ac_tr_func 1
18287 else
18288 echo "$ac_t""no" 1>&6
18290 done
18292 else
18294 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18295 echo "configure:18296: checking for _copysignl declaration" >&5
18296 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18297 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18298 echo $ac_n "(cached) $ac_c" 1>&6
18299 else
18302 ac_ext=C
18303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18304 ac_cpp='$CXXCPP $CPPFLAGS'
18305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18307 cross_compiling=$ac_cv_prog_cxx_cross
18309 cat > conftest.$ac_ext <<EOF
18310 #line 18311 "configure"
18311 #include "confdefs.h"
18312 #include <math.h>
18313 int main() {
18314 _copysignl(0, 0);
18315 ; return 0; }
18317 if { (eval echo configure:18318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18318 rm -rf conftest*
18319 glibcpp_cv_func__copysignl_use=yes
18320 else
18321 echo "configure: failed program was:" >&5
18322 cat conftest.$ac_ext >&5
18323 rm -rf conftest*
18324 glibcpp_cv_func__copysignl_use=no
18326 rm -f conftest*
18327 ac_ext=c
18328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18332 cross_compiling=$ac_cv_prog_cc_cross
18338 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18340 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18341 for ac_func in _copysignl
18343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18344 echo "configure:18345: checking for $ac_func" >&5
18345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346 echo $ac_n "(cached) $ac_c" 1>&6
18347 else
18348 cat > conftest.$ac_ext <<EOF
18349 #line 18350 "configure"
18350 #include "confdefs.h"
18351 /* System header to define __stub macros and hopefully few prototypes,
18352 which can conflict with char $ac_func(); below. */
18353 #include <assert.h>
18354 /* Override any gcc2 internal prototype to avoid an error. */
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357 char $ac_func();
18359 int main() {
18361 /* The GNU C library defines this for functions which it implements
18362 to always fail with ENOSYS. Some functions are actually named
18363 something starting with __ and the normal name is an alias. */
18364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365 choke me
18366 #else
18367 $ac_func();
18368 #endif
18370 ; return 0; }
18372 if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=yes"
18375 else
18376 echo "configure: failed program was:" >&5
18377 cat conftest.$ac_ext >&5
18378 rm -rf conftest*
18379 eval "ac_cv_func_$ac_func=no"
18381 rm -f conftest*
18384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387 cat >> confdefs.h <<EOF
18388 #define $ac_tr_func 1
18391 else
18392 echo "$ac_t""no" 1>&6
18394 done
18401 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18402 echo "configure:18403: checking for atan2l declaration" >&5
18403 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18404 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18405 echo $ac_n "(cached) $ac_c" 1>&6
18406 else
18409 ac_ext=C
18410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18411 ac_cpp='$CXXCPP $CPPFLAGS'
18412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18414 cross_compiling=$ac_cv_prog_cxx_cross
18416 cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18419 #include <math.h>
18420 int main() {
18421 atan2l(0, 0);
18422 ; return 0; }
18424 if { (eval echo configure:18425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18425 rm -rf conftest*
18426 glibcpp_cv_func_atan2l_use=yes
18427 else
18428 echo "configure: failed program was:" >&5
18429 cat conftest.$ac_ext >&5
18430 rm -rf conftest*
18431 glibcpp_cv_func_atan2l_use=no
18433 rm -f conftest*
18434 ac_ext=c
18435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18436 ac_cpp='$CPP $CPPFLAGS'
18437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18439 cross_compiling=$ac_cv_prog_cc_cross
18445 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18447 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18448 for ac_func in atan2l
18450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18451 echo "configure:18452: checking for $ac_func" >&5
18452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18454 else
18455 cat > conftest.$ac_ext <<EOF
18456 #line 18457 "configure"
18457 #include "confdefs.h"
18458 /* System header to define __stub macros and hopefully few prototypes,
18459 which can conflict with char $ac_func(); below. */
18460 #include <assert.h>
18461 /* Override any gcc2 internal prototype to avoid an error. */
18462 /* We use char because int might match the return type of a gcc2
18463 builtin and then its argument prototype would still apply. */
18464 char $ac_func();
18466 int main() {
18468 /* The GNU C library defines this for functions which it implements
18469 to always fail with ENOSYS. Some functions are actually named
18470 something starting with __ and the normal name is an alias. */
18471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18472 choke me
18473 #else
18474 $ac_func();
18475 #endif
18477 ; return 0; }
18479 if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18480 rm -rf conftest*
18481 eval "ac_cv_func_$ac_func=yes"
18482 else
18483 echo "configure: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18485 rm -rf conftest*
18486 eval "ac_cv_func_$ac_func=no"
18488 rm -f conftest*
18491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18492 echo "$ac_t""yes" 1>&6
18493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18494 cat >> confdefs.h <<EOF
18495 #define $ac_tr_func 1
18498 else
18499 echo "$ac_t""no" 1>&6
18501 done
18503 else
18505 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18506 echo "configure:18507: checking for _atan2l declaration" >&5
18507 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18508 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18509 echo $ac_n "(cached) $ac_c" 1>&6
18510 else
18513 ac_ext=C
18514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18515 ac_cpp='$CXXCPP $CPPFLAGS'
18516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18518 cross_compiling=$ac_cv_prog_cxx_cross
18520 cat > conftest.$ac_ext <<EOF
18521 #line 18522 "configure"
18522 #include "confdefs.h"
18523 #include <math.h>
18524 int main() {
18525 _atan2l(0, 0);
18526 ; return 0; }
18528 if { (eval echo configure:18529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18529 rm -rf conftest*
18530 glibcpp_cv_func__atan2l_use=yes
18531 else
18532 echo "configure: failed program was:" >&5
18533 cat conftest.$ac_ext >&5
18534 rm -rf conftest*
18535 glibcpp_cv_func__atan2l_use=no
18537 rm -f conftest*
18538 ac_ext=c
18539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18540 ac_cpp='$CPP $CPPFLAGS'
18541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18543 cross_compiling=$ac_cv_prog_cc_cross
18549 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18551 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18552 for ac_func in _atan2l
18554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18555 echo "configure:18556: checking for $ac_func" >&5
18556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18557 echo $ac_n "(cached) $ac_c" 1>&6
18558 else
18559 cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char $ac_func(); below. */
18564 #include <assert.h>
18565 /* Override any gcc2 internal prototype to avoid an error. */
18566 /* We use char because int might match the return type of a gcc2
18567 builtin and then its argument prototype would still apply. */
18568 char $ac_func();
18570 int main() {
18572 /* The GNU C library defines this for functions which it implements
18573 to always fail with ENOSYS. Some functions are actually named
18574 something starting with __ and the normal name is an alias. */
18575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18576 choke me
18577 #else
18578 $ac_func();
18579 #endif
18581 ; return 0; }
18583 if { (eval echo configure:18584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18584 rm -rf conftest*
18585 eval "ac_cv_func_$ac_func=yes"
18586 else
18587 echo "configure: failed program was:" >&5
18588 cat conftest.$ac_ext >&5
18589 rm -rf conftest*
18590 eval "ac_cv_func_$ac_func=no"
18592 rm -f conftest*
18595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18596 echo "$ac_t""yes" 1>&6
18597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18598 cat >> confdefs.h <<EOF
18599 #define $ac_tr_func 1
18602 else
18603 echo "$ac_t""no" 1>&6
18605 done
18612 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18613 echo "configure:18614: checking for expl declaration" >&5
18614 if test x${glibcpp_cv_func_expl_use+set} != xset; then
18615 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18616 echo $ac_n "(cached) $ac_c" 1>&6
18617 else
18620 ac_ext=C
18621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18625 cross_compiling=$ac_cv_prog_cxx_cross
18627 cat > conftest.$ac_ext <<EOF
18628 #line 18629 "configure"
18629 #include "confdefs.h"
18630 #include <math.h>
18631 #ifdef HAVE_IEEEFP_H
18632 #include <ieeefp.h>
18633 #endif
18635 int main() {
18636 expl(0);
18637 ; return 0; }
18639 if { (eval echo configure:18640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18640 rm -rf conftest*
18641 glibcpp_cv_func_expl_use=yes
18642 else
18643 echo "configure: failed program was:" >&5
18644 cat conftest.$ac_ext >&5
18645 rm -rf conftest*
18646 glibcpp_cv_func_expl_use=no
18648 rm -f conftest*
18649 ac_ext=c
18650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18651 ac_cpp='$CPP $CPPFLAGS'
18652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18654 cross_compiling=$ac_cv_prog_cc_cross
18660 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18662 if test x$glibcpp_cv_func_expl_use = x"yes"; then
18663 for ac_func in expl
18665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18666 echo "configure:18667: checking for $ac_func" >&5
18667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18668 echo $ac_n "(cached) $ac_c" 1>&6
18669 else
18670 cat > conftest.$ac_ext <<EOF
18671 #line 18672 "configure"
18672 #include "confdefs.h"
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func(); below. */
18675 #include <assert.h>
18676 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18679 char $ac_func();
18681 int main() {
18683 /* The GNU C library defines this for functions which it implements
18684 to always fail with ENOSYS. Some functions are actually named
18685 something starting with __ and the normal name is an alias. */
18686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18687 choke me
18688 #else
18689 $ac_func();
18690 #endif
18692 ; return 0; }
18694 if { (eval echo configure:18695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18695 rm -rf conftest*
18696 eval "ac_cv_func_$ac_func=yes"
18697 else
18698 echo "configure: failed program was:" >&5
18699 cat conftest.$ac_ext >&5
18700 rm -rf conftest*
18701 eval "ac_cv_func_$ac_func=no"
18703 rm -f conftest*
18706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18707 echo "$ac_t""yes" 1>&6
18708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18709 cat >> confdefs.h <<EOF
18710 #define $ac_tr_func 1
18713 else
18714 echo "$ac_t""no" 1>&6
18716 done
18718 else
18720 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18721 echo "configure:18722: checking for _expl declaration" >&5
18722 if test x${glibcpp_cv_func__expl_use+set} != xset; then
18723 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18724 echo $ac_n "(cached) $ac_c" 1>&6
18725 else
18728 ac_ext=C
18729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18733 cross_compiling=$ac_cv_prog_cxx_cross
18735 cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18738 #include <math.h>
18739 #ifdef HAVE_IEEEFP_H
18740 #include <ieeefp.h>
18741 #endif
18743 int main() {
18744 _expl(0);
18745 ; return 0; }
18747 if { (eval echo configure:18748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18748 rm -rf conftest*
18749 glibcpp_cv_func__expl_use=yes
18750 else
18751 echo "configure: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18753 rm -rf conftest*
18754 glibcpp_cv_func__expl_use=no
18756 rm -f conftest*
18757 ac_ext=c
18758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18759 ac_cpp='$CPP $CPPFLAGS'
18760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18762 cross_compiling=$ac_cv_prog_cc_cross
18768 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18770 if test x$glibcpp_cv_func__expl_use = x"yes"; then
18771 for ac_func in _expl
18773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18774 echo "configure:18775: checking for $ac_func" >&5
18775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18776 echo $ac_n "(cached) $ac_c" 1>&6
18777 else
18778 cat > conftest.$ac_ext <<EOF
18779 #line 18780 "configure"
18780 #include "confdefs.h"
18781 /* System header to define __stub macros and hopefully few prototypes,
18782 which can conflict with char $ac_func(); below. */
18783 #include <assert.h>
18784 /* Override any gcc2 internal prototype to avoid an error. */
18785 /* We use char because int might match the return type of a gcc2
18786 builtin and then its argument prototype would still apply. */
18787 char $ac_func();
18789 int main() {
18791 /* The GNU C library defines this for functions which it implements
18792 to always fail with ENOSYS. Some functions are actually named
18793 something starting with __ and the normal name is an alias. */
18794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18795 choke me
18796 #else
18797 $ac_func();
18798 #endif
18800 ; return 0; }
18802 if { (eval echo configure:18803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18803 rm -rf conftest*
18804 eval "ac_cv_func_$ac_func=yes"
18805 else
18806 echo "configure: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18808 rm -rf conftest*
18809 eval "ac_cv_func_$ac_func=no"
18811 rm -f conftest*
18814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18815 echo "$ac_t""yes" 1>&6
18816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18817 cat >> confdefs.h <<EOF
18818 #define $ac_tr_func 1
18821 else
18822 echo "$ac_t""no" 1>&6
18824 done
18831 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18832 echo "configure:18833: checking for fabsl declaration" >&5
18833 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18834 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18835 echo $ac_n "(cached) $ac_c" 1>&6
18836 else
18839 ac_ext=C
18840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18841 ac_cpp='$CXXCPP $CPPFLAGS'
18842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18844 cross_compiling=$ac_cv_prog_cxx_cross
18846 cat > conftest.$ac_ext <<EOF
18847 #line 18848 "configure"
18848 #include "confdefs.h"
18849 #include <math.h>
18850 #ifdef HAVE_IEEEFP_H
18851 #include <ieeefp.h>
18852 #endif
18854 int main() {
18855 fabsl(0);
18856 ; return 0; }
18858 if { (eval echo configure:18859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18859 rm -rf conftest*
18860 glibcpp_cv_func_fabsl_use=yes
18861 else
18862 echo "configure: failed program was:" >&5
18863 cat conftest.$ac_ext >&5
18864 rm -rf conftest*
18865 glibcpp_cv_func_fabsl_use=no
18867 rm -f conftest*
18868 ac_ext=c
18869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18870 ac_cpp='$CPP $CPPFLAGS'
18871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18873 cross_compiling=$ac_cv_prog_cc_cross
18879 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18881 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18882 for ac_func in fabsl
18884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18885 echo "configure:18886: checking for $ac_func" >&5
18886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18887 echo $ac_n "(cached) $ac_c" 1>&6
18888 else
18889 cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18892 /* System header to define __stub macros and hopefully few prototypes,
18893 which can conflict with char $ac_func(); below. */
18894 #include <assert.h>
18895 /* Override any gcc2 internal prototype to avoid an error. */
18896 /* We use char because int might match the return type of a gcc2
18897 builtin and then its argument prototype would still apply. */
18898 char $ac_func();
18900 int main() {
18902 /* The GNU C library defines this for functions which it implements
18903 to always fail with ENOSYS. Some functions are actually named
18904 something starting with __ and the normal name is an alias. */
18905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18906 choke me
18907 #else
18908 $ac_func();
18909 #endif
18911 ; return 0; }
18913 if { (eval echo configure:18914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18914 rm -rf conftest*
18915 eval "ac_cv_func_$ac_func=yes"
18916 else
18917 echo "configure: failed program was:" >&5
18918 cat conftest.$ac_ext >&5
18919 rm -rf conftest*
18920 eval "ac_cv_func_$ac_func=no"
18922 rm -f conftest*
18925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18926 echo "$ac_t""yes" 1>&6
18927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18928 cat >> confdefs.h <<EOF
18929 #define $ac_tr_func 1
18932 else
18933 echo "$ac_t""no" 1>&6
18935 done
18937 else
18939 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18940 echo "configure:18941: checking for _fabsl declaration" >&5
18941 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18942 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18943 echo $ac_n "(cached) $ac_c" 1>&6
18944 else
18947 ac_ext=C
18948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18949 ac_cpp='$CXXCPP $CPPFLAGS'
18950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18952 cross_compiling=$ac_cv_prog_cxx_cross
18954 cat > conftest.$ac_ext <<EOF
18955 #line 18956 "configure"
18956 #include "confdefs.h"
18957 #include <math.h>
18958 #ifdef HAVE_IEEEFP_H
18959 #include <ieeefp.h>
18960 #endif
18962 int main() {
18963 _fabsl(0);
18964 ; return 0; }
18966 if { (eval echo configure:18967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18967 rm -rf conftest*
18968 glibcpp_cv_func__fabsl_use=yes
18969 else
18970 echo "configure: failed program was:" >&5
18971 cat conftest.$ac_ext >&5
18972 rm -rf conftest*
18973 glibcpp_cv_func__fabsl_use=no
18975 rm -f conftest*
18976 ac_ext=c
18977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18981 cross_compiling=$ac_cv_prog_cc_cross
18987 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18989 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18990 for ac_func in _fabsl
18992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18993 echo "configure:18994: checking for $ac_func" >&5
18994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18995 echo $ac_n "(cached) $ac_c" 1>&6
18996 else
18997 cat > conftest.$ac_ext <<EOF
18998 #line 18999 "configure"
18999 #include "confdefs.h"
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func(); below. */
19002 #include <assert.h>
19003 /* Override any gcc2 internal prototype to avoid an error. */
19004 /* We use char because int might match the return type of a gcc2
19005 builtin and then its argument prototype would still apply. */
19006 char $ac_func();
19008 int main() {
19010 /* The GNU C library defines this for functions which it implements
19011 to always fail with ENOSYS. Some functions are actually named
19012 something starting with __ and the normal name is an alias. */
19013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19014 choke me
19015 #else
19016 $ac_func();
19017 #endif
19019 ; return 0; }
19021 if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19022 rm -rf conftest*
19023 eval "ac_cv_func_$ac_func=yes"
19024 else
19025 echo "configure: failed program was:" >&5
19026 cat conftest.$ac_ext >&5
19027 rm -rf conftest*
19028 eval "ac_cv_func_$ac_func=no"
19030 rm -f conftest*
19033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19034 echo "$ac_t""yes" 1>&6
19035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19036 cat >> confdefs.h <<EOF
19037 #define $ac_tr_func 1
19040 else
19041 echo "$ac_t""no" 1>&6
19043 done
19050 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
19051 echo "configure:19052: checking for fmodl declaration" >&5
19052 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
19053 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
19054 echo $ac_n "(cached) $ac_c" 1>&6
19055 else
19058 ac_ext=C
19059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19060 ac_cpp='$CXXCPP $CPPFLAGS'
19061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19063 cross_compiling=$ac_cv_prog_cxx_cross
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068 #include <math.h>
19069 int main() {
19070 fmodl(0, 0);
19071 ; return 0; }
19073 if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19074 rm -rf conftest*
19075 glibcpp_cv_func_fmodl_use=yes
19076 else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 glibcpp_cv_func_fmodl_use=no
19082 rm -f conftest*
19083 ac_ext=c
19084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19085 ac_cpp='$CPP $CPPFLAGS'
19086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19088 cross_compiling=$ac_cv_prog_cc_cross
19094 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
19096 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
19097 for ac_func in fmodl
19099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19100 echo "configure:19101: checking for $ac_func" >&5
19101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19102 echo $ac_n "(cached) $ac_c" 1>&6
19103 else
19104 cat > conftest.$ac_ext <<EOF
19105 #line 19106 "configure"
19106 #include "confdefs.h"
19107 /* System header to define __stub macros and hopefully few prototypes,
19108 which can conflict with char $ac_func(); below. */
19109 #include <assert.h>
19110 /* Override any gcc2 internal prototype to avoid an error. */
19111 /* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19113 char $ac_func();
19115 int main() {
19117 /* The GNU C library defines this for functions which it implements
19118 to always fail with ENOSYS. Some functions are actually named
19119 something starting with __ and the normal name is an alias. */
19120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19121 choke me
19122 #else
19123 $ac_func();
19124 #endif
19126 ; return 0; }
19128 if { (eval echo configure:19129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19129 rm -rf conftest*
19130 eval "ac_cv_func_$ac_func=yes"
19131 else
19132 echo "configure: failed program was:" >&5
19133 cat conftest.$ac_ext >&5
19134 rm -rf conftest*
19135 eval "ac_cv_func_$ac_func=no"
19137 rm -f conftest*
19140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19141 echo "$ac_t""yes" 1>&6
19142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19143 cat >> confdefs.h <<EOF
19144 #define $ac_tr_func 1
19147 else
19148 echo "$ac_t""no" 1>&6
19150 done
19152 else
19154 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19155 echo "configure:19156: checking for _fmodl declaration" >&5
19156 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19157 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19158 echo $ac_n "(cached) $ac_c" 1>&6
19159 else
19162 ac_ext=C
19163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19164 ac_cpp='$CXXCPP $CPPFLAGS'
19165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19167 cross_compiling=$ac_cv_prog_cxx_cross
19169 cat > conftest.$ac_ext <<EOF
19170 #line 19171 "configure"
19171 #include "confdefs.h"
19172 #include <math.h>
19173 int main() {
19174 _fmodl(0, 0);
19175 ; return 0; }
19177 if { (eval echo configure:19178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19178 rm -rf conftest*
19179 glibcpp_cv_func__fmodl_use=yes
19180 else
19181 echo "configure: failed program was:" >&5
19182 cat conftest.$ac_ext >&5
19183 rm -rf conftest*
19184 glibcpp_cv_func__fmodl_use=no
19186 rm -f conftest*
19187 ac_ext=c
19188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19192 cross_compiling=$ac_cv_prog_cc_cross
19198 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19200 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19201 for ac_func in _fmodl
19203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19204 echo "configure:19205: checking for $ac_func" >&5
19205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19206 echo $ac_n "(cached) $ac_c" 1>&6
19207 else
19208 cat > conftest.$ac_ext <<EOF
19209 #line 19210 "configure"
19210 #include "confdefs.h"
19211 /* System header to define __stub macros and hopefully few prototypes,
19212 which can conflict with char $ac_func(); below. */
19213 #include <assert.h>
19214 /* Override any gcc2 internal prototype to avoid an error. */
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19217 char $ac_func();
19219 int main() {
19221 /* The GNU C library defines this for functions which it implements
19222 to always fail with ENOSYS. Some functions are actually named
19223 something starting with __ and the normal name is an alias. */
19224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19225 choke me
19226 #else
19227 $ac_func();
19228 #endif
19230 ; return 0; }
19232 if { (eval echo configure:19233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19233 rm -rf conftest*
19234 eval "ac_cv_func_$ac_func=yes"
19235 else
19236 echo "configure: failed program was:" >&5
19237 cat conftest.$ac_ext >&5
19238 rm -rf conftest*
19239 eval "ac_cv_func_$ac_func=no"
19241 rm -f conftest*
19244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19245 echo "$ac_t""yes" 1>&6
19246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19247 cat >> confdefs.h <<EOF
19248 #define $ac_tr_func 1
19251 else
19252 echo "$ac_t""no" 1>&6
19254 done
19261 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19262 echo "configure:19263: checking for frexpl declaration" >&5
19263 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19264 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
19266 else
19269 ac_ext=C
19270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19271 ac_cpp='$CXXCPP $CPPFLAGS'
19272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19274 cross_compiling=$ac_cv_prog_cxx_cross
19276 cat > conftest.$ac_ext <<EOF
19277 #line 19278 "configure"
19278 #include "confdefs.h"
19279 #include <math.h>
19280 int main() {
19281 frexpl(0, 0);
19282 ; return 0; }
19284 if { (eval echo configure:19285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19285 rm -rf conftest*
19286 glibcpp_cv_func_frexpl_use=yes
19287 else
19288 echo "configure: failed program was:" >&5
19289 cat conftest.$ac_ext >&5
19290 rm -rf conftest*
19291 glibcpp_cv_func_frexpl_use=no
19293 rm -f conftest*
19294 ac_ext=c
19295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19296 ac_cpp='$CPP $CPPFLAGS'
19297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19299 cross_compiling=$ac_cv_prog_cc_cross
19305 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19307 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19308 for ac_func in frexpl
19310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19311 echo "configure:19312: checking for $ac_func" >&5
19312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19313 echo $ac_n "(cached) $ac_c" 1>&6
19314 else
19315 cat > conftest.$ac_ext <<EOF
19316 #line 19317 "configure"
19317 #include "confdefs.h"
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char $ac_func(); below. */
19320 #include <assert.h>
19321 /* Override any gcc2 internal prototype to avoid an error. */
19322 /* We use char because int might match the return type of a gcc2
19323 builtin and then its argument prototype would still apply. */
19324 char $ac_func();
19326 int main() {
19328 /* The GNU C library defines this for functions which it implements
19329 to always fail with ENOSYS. Some functions are actually named
19330 something starting with __ and the normal name is an alias. */
19331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19332 choke me
19333 #else
19334 $ac_func();
19335 #endif
19337 ; return 0; }
19339 if { (eval echo configure:19340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19340 rm -rf conftest*
19341 eval "ac_cv_func_$ac_func=yes"
19342 else
19343 echo "configure: failed program was:" >&5
19344 cat conftest.$ac_ext >&5
19345 rm -rf conftest*
19346 eval "ac_cv_func_$ac_func=no"
19348 rm -f conftest*
19351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19352 echo "$ac_t""yes" 1>&6
19353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19354 cat >> confdefs.h <<EOF
19355 #define $ac_tr_func 1
19358 else
19359 echo "$ac_t""no" 1>&6
19361 done
19363 else
19365 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19366 echo "configure:19367: checking for _frexpl declaration" >&5
19367 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19368 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19369 echo $ac_n "(cached) $ac_c" 1>&6
19370 else
19373 ac_ext=C
19374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19378 cross_compiling=$ac_cv_prog_cxx_cross
19380 cat > conftest.$ac_ext <<EOF
19381 #line 19382 "configure"
19382 #include "confdefs.h"
19383 #include <math.h>
19384 int main() {
19385 _frexpl(0, 0);
19386 ; return 0; }
19388 if { (eval echo configure:19389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19389 rm -rf conftest*
19390 glibcpp_cv_func__frexpl_use=yes
19391 else
19392 echo "configure: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19394 rm -rf conftest*
19395 glibcpp_cv_func__frexpl_use=no
19397 rm -f conftest*
19398 ac_ext=c
19399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19400 ac_cpp='$CPP $CPPFLAGS'
19401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19403 cross_compiling=$ac_cv_prog_cc_cross
19409 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19411 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19412 for ac_func in _frexpl
19414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19415 echo "configure:19416: checking for $ac_func" >&5
19416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19417 echo $ac_n "(cached) $ac_c" 1>&6
19418 else
19419 cat > conftest.$ac_ext <<EOF
19420 #line 19421 "configure"
19421 #include "confdefs.h"
19422 /* System header to define __stub macros and hopefully few prototypes,
19423 which can conflict with char $ac_func(); below. */
19424 #include <assert.h>
19425 /* Override any gcc2 internal prototype to avoid an error. */
19426 /* We use char because int might match the return type of a gcc2
19427 builtin and then its argument prototype would still apply. */
19428 char $ac_func();
19430 int main() {
19432 /* The GNU C library defines this for functions which it implements
19433 to always fail with ENOSYS. Some functions are actually named
19434 something starting with __ and the normal name is an alias. */
19435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19436 choke me
19437 #else
19438 $ac_func();
19439 #endif
19441 ; return 0; }
19443 if { (eval echo configure:19444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19444 rm -rf conftest*
19445 eval "ac_cv_func_$ac_func=yes"
19446 else
19447 echo "configure: failed program was:" >&5
19448 cat conftest.$ac_ext >&5
19449 rm -rf conftest*
19450 eval "ac_cv_func_$ac_func=no"
19452 rm -f conftest*
19455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19456 echo "$ac_t""yes" 1>&6
19457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19458 cat >> confdefs.h <<EOF
19459 #define $ac_tr_func 1
19462 else
19463 echo "$ac_t""no" 1>&6
19465 done
19472 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19473 echo "configure:19474: checking for hypotl declaration" >&5
19474 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19475 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19476 echo $ac_n "(cached) $ac_c" 1>&6
19477 else
19480 ac_ext=C
19481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19482 ac_cpp='$CXXCPP $CPPFLAGS'
19483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19485 cross_compiling=$ac_cv_prog_cxx_cross
19487 cat > conftest.$ac_ext <<EOF
19488 #line 19489 "configure"
19489 #include "confdefs.h"
19490 #include <math.h>
19491 int main() {
19492 hypotl(0, 0);
19493 ; return 0; }
19495 if { (eval echo configure:19496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19496 rm -rf conftest*
19497 glibcpp_cv_func_hypotl_use=yes
19498 else
19499 echo "configure: failed program was:" >&5
19500 cat conftest.$ac_ext >&5
19501 rm -rf conftest*
19502 glibcpp_cv_func_hypotl_use=no
19504 rm -f conftest*
19505 ac_ext=c
19506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19510 cross_compiling=$ac_cv_prog_cc_cross
19516 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19518 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19519 for ac_func in hypotl
19521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19522 echo "configure:19523: checking for $ac_func" >&5
19523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19524 echo $ac_n "(cached) $ac_c" 1>&6
19525 else
19526 cat > conftest.$ac_ext <<EOF
19527 #line 19528 "configure"
19528 #include "confdefs.h"
19529 /* System header to define __stub macros and hopefully few prototypes,
19530 which can conflict with char $ac_func(); below. */
19531 #include <assert.h>
19532 /* Override any gcc2 internal prototype to avoid an error. */
19533 /* We use char because int might match the return type of a gcc2
19534 builtin and then its argument prototype would still apply. */
19535 char $ac_func();
19537 int main() {
19539 /* The GNU C library defines this for functions which it implements
19540 to always fail with ENOSYS. Some functions are actually named
19541 something starting with __ and the normal name is an alias. */
19542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19543 choke me
19544 #else
19545 $ac_func();
19546 #endif
19548 ; return 0; }
19550 if { (eval echo configure:19551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19551 rm -rf conftest*
19552 eval "ac_cv_func_$ac_func=yes"
19553 else
19554 echo "configure: failed program was:" >&5
19555 cat conftest.$ac_ext >&5
19556 rm -rf conftest*
19557 eval "ac_cv_func_$ac_func=no"
19559 rm -f conftest*
19562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19563 echo "$ac_t""yes" 1>&6
19564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19565 cat >> confdefs.h <<EOF
19566 #define $ac_tr_func 1
19569 else
19570 echo "$ac_t""no" 1>&6
19572 done
19574 else
19576 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19577 echo "configure:19578: checking for _hypotl declaration" >&5
19578 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19579 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19580 echo $ac_n "(cached) $ac_c" 1>&6
19581 else
19584 ac_ext=C
19585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19586 ac_cpp='$CXXCPP $CPPFLAGS'
19587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19589 cross_compiling=$ac_cv_prog_cxx_cross
19591 cat > conftest.$ac_ext <<EOF
19592 #line 19593 "configure"
19593 #include "confdefs.h"
19594 #include <math.h>
19595 int main() {
19596 _hypotl(0, 0);
19597 ; return 0; }
19599 if { (eval echo configure:19600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19600 rm -rf conftest*
19601 glibcpp_cv_func__hypotl_use=yes
19602 else
19603 echo "configure: failed program was:" >&5
19604 cat conftest.$ac_ext >&5
19605 rm -rf conftest*
19606 glibcpp_cv_func__hypotl_use=no
19608 rm -f conftest*
19609 ac_ext=c
19610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19611 ac_cpp='$CPP $CPPFLAGS'
19612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19614 cross_compiling=$ac_cv_prog_cc_cross
19620 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19622 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19623 for ac_func in _hypotl
19625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19626 echo "configure:19627: checking for $ac_func" >&5
19627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19628 echo $ac_n "(cached) $ac_c" 1>&6
19629 else
19630 cat > conftest.$ac_ext <<EOF
19631 #line 19632 "configure"
19632 #include "confdefs.h"
19633 /* System header to define __stub macros and hopefully few prototypes,
19634 which can conflict with char $ac_func(); below. */
19635 #include <assert.h>
19636 /* Override any gcc2 internal prototype to avoid an error. */
19637 /* We use char because int might match the return type of a gcc2
19638 builtin and then its argument prototype would still apply. */
19639 char $ac_func();
19641 int main() {
19643 /* The GNU C library defines this for functions which it implements
19644 to always fail with ENOSYS. Some functions are actually named
19645 something starting with __ and the normal name is an alias. */
19646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19647 choke me
19648 #else
19649 $ac_func();
19650 #endif
19652 ; return 0; }
19654 if { (eval echo configure:19655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19655 rm -rf conftest*
19656 eval "ac_cv_func_$ac_func=yes"
19657 else
19658 echo "configure: failed program was:" >&5
19659 cat conftest.$ac_ext >&5
19660 rm -rf conftest*
19661 eval "ac_cv_func_$ac_func=no"
19663 rm -f conftest*
19666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19667 echo "$ac_t""yes" 1>&6
19668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19669 cat >> confdefs.h <<EOF
19670 #define $ac_tr_func 1
19673 else
19674 echo "$ac_t""no" 1>&6
19676 done
19683 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19684 echo "configure:19685: checking for ldexpl declaration" >&5
19685 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19686 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19687 echo $ac_n "(cached) $ac_c" 1>&6
19688 else
19691 ac_ext=C
19692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19693 ac_cpp='$CXXCPP $CPPFLAGS'
19694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19696 cross_compiling=$ac_cv_prog_cxx_cross
19698 cat > conftest.$ac_ext <<EOF
19699 #line 19700 "configure"
19700 #include "confdefs.h"
19701 #include <math.h>
19702 int main() {
19703 ldexpl(0, 0);
19704 ; return 0; }
19706 if { (eval echo configure:19707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19707 rm -rf conftest*
19708 glibcpp_cv_func_ldexpl_use=yes
19709 else
19710 echo "configure: failed program was:" >&5
19711 cat conftest.$ac_ext >&5
19712 rm -rf conftest*
19713 glibcpp_cv_func_ldexpl_use=no
19715 rm -f conftest*
19716 ac_ext=c
19717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19718 ac_cpp='$CPP $CPPFLAGS'
19719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19721 cross_compiling=$ac_cv_prog_cc_cross
19727 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19729 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19730 for ac_func in ldexpl
19732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19733 echo "configure:19734: checking for $ac_func" >&5
19734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19735 echo $ac_n "(cached) $ac_c" 1>&6
19736 else
19737 cat > conftest.$ac_ext <<EOF
19738 #line 19739 "configure"
19739 #include "confdefs.h"
19740 /* System header to define __stub macros and hopefully few prototypes,
19741 which can conflict with char $ac_func(); below. */
19742 #include <assert.h>
19743 /* Override any gcc2 internal prototype to avoid an error. */
19744 /* We use char because int might match the return type of a gcc2
19745 builtin and then its argument prototype would still apply. */
19746 char $ac_func();
19748 int main() {
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19754 choke me
19755 #else
19756 $ac_func();
19757 #endif
19759 ; return 0; }
19761 if { (eval echo configure:19762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19762 rm -rf conftest*
19763 eval "ac_cv_func_$ac_func=yes"
19764 else
19765 echo "configure: failed program was:" >&5
19766 cat conftest.$ac_ext >&5
19767 rm -rf conftest*
19768 eval "ac_cv_func_$ac_func=no"
19770 rm -f conftest*
19773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19774 echo "$ac_t""yes" 1>&6
19775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19776 cat >> confdefs.h <<EOF
19777 #define $ac_tr_func 1
19780 else
19781 echo "$ac_t""no" 1>&6
19783 done
19785 else
19787 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19788 echo "configure:19789: checking for _ldexpl declaration" >&5
19789 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19790 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19791 echo $ac_n "(cached) $ac_c" 1>&6
19792 else
19795 ac_ext=C
19796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19797 ac_cpp='$CXXCPP $CPPFLAGS'
19798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19800 cross_compiling=$ac_cv_prog_cxx_cross
19802 cat > conftest.$ac_ext <<EOF
19803 #line 19804 "configure"
19804 #include "confdefs.h"
19805 #include <math.h>
19806 int main() {
19807 _ldexpl(0, 0);
19808 ; return 0; }
19810 if { (eval echo configure:19811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19811 rm -rf conftest*
19812 glibcpp_cv_func__ldexpl_use=yes
19813 else
19814 echo "configure: failed program was:" >&5
19815 cat conftest.$ac_ext >&5
19816 rm -rf conftest*
19817 glibcpp_cv_func__ldexpl_use=no
19819 rm -f conftest*
19820 ac_ext=c
19821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19822 ac_cpp='$CPP $CPPFLAGS'
19823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19825 cross_compiling=$ac_cv_prog_cc_cross
19831 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19833 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19834 for ac_func in _ldexpl
19836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19837 echo "configure:19838: checking for $ac_func" >&5
19838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19839 echo $ac_n "(cached) $ac_c" 1>&6
19840 else
19841 cat > conftest.$ac_ext <<EOF
19842 #line 19843 "configure"
19843 #include "confdefs.h"
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char $ac_func(); below. */
19846 #include <assert.h>
19847 /* Override any gcc2 internal prototype to avoid an error. */
19848 /* We use char because int might match the return type of a gcc2
19849 builtin and then its argument prototype would still apply. */
19850 char $ac_func();
19852 int main() {
19854 /* The GNU C library defines this for functions which it implements
19855 to always fail with ENOSYS. Some functions are actually named
19856 something starting with __ and the normal name is an alias. */
19857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19858 choke me
19859 #else
19860 $ac_func();
19861 #endif
19863 ; return 0; }
19865 if { (eval echo configure:19866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19866 rm -rf conftest*
19867 eval "ac_cv_func_$ac_func=yes"
19868 else
19869 echo "configure: failed program was:" >&5
19870 cat conftest.$ac_ext >&5
19871 rm -rf conftest*
19872 eval "ac_cv_func_$ac_func=no"
19874 rm -f conftest*
19877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19878 echo "$ac_t""yes" 1>&6
19879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19880 cat >> confdefs.h <<EOF
19881 #define $ac_tr_func 1
19884 else
19885 echo "$ac_t""no" 1>&6
19887 done
19894 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19895 echo "configure:19896: checking for logl declaration" >&5
19896 if test x${glibcpp_cv_func_logl_use+set} != xset; then
19897 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19899 else
19902 ac_ext=C
19903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19904 ac_cpp='$CXXCPP $CPPFLAGS'
19905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19907 cross_compiling=$ac_cv_prog_cxx_cross
19909 cat > conftest.$ac_ext <<EOF
19910 #line 19911 "configure"
19911 #include "confdefs.h"
19912 #include <math.h>
19913 #ifdef HAVE_IEEEFP_H
19914 #include <ieeefp.h>
19915 #endif
19917 int main() {
19918 logl(0);
19919 ; return 0; }
19921 if { (eval echo configure:19922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19922 rm -rf conftest*
19923 glibcpp_cv_func_logl_use=yes
19924 else
19925 echo "configure: failed program was:" >&5
19926 cat conftest.$ac_ext >&5
19927 rm -rf conftest*
19928 glibcpp_cv_func_logl_use=no
19930 rm -f conftest*
19931 ac_ext=c
19932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19933 ac_cpp='$CPP $CPPFLAGS'
19934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19936 cross_compiling=$ac_cv_prog_cc_cross
19942 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19944 if test x$glibcpp_cv_func_logl_use = x"yes"; then
19945 for ac_func in logl
19947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19948 echo "configure:19949: checking for $ac_func" >&5
19949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19950 echo $ac_n "(cached) $ac_c" 1>&6
19951 else
19952 cat > conftest.$ac_ext <<EOF
19953 #line 19954 "configure"
19954 #include "confdefs.h"
19955 /* System header to define __stub macros and hopefully few prototypes,
19956 which can conflict with char $ac_func(); below. */
19957 #include <assert.h>
19958 /* Override any gcc2 internal prototype to avoid an error. */
19959 /* We use char because int might match the return type of a gcc2
19960 builtin and then its argument prototype would still apply. */
19961 char $ac_func();
19963 int main() {
19965 /* The GNU C library defines this for functions which it implements
19966 to always fail with ENOSYS. Some functions are actually named
19967 something starting with __ and the normal name is an alias. */
19968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19969 choke me
19970 #else
19971 $ac_func();
19972 #endif
19974 ; return 0; }
19976 if { (eval echo configure:19977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19977 rm -rf conftest*
19978 eval "ac_cv_func_$ac_func=yes"
19979 else
19980 echo "configure: failed program was:" >&5
19981 cat conftest.$ac_ext >&5
19982 rm -rf conftest*
19983 eval "ac_cv_func_$ac_func=no"
19985 rm -f conftest*
19988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19989 echo "$ac_t""yes" 1>&6
19990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19991 cat >> confdefs.h <<EOF
19992 #define $ac_tr_func 1
19995 else
19996 echo "$ac_t""no" 1>&6
19998 done
20000 else
20002 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
20003 echo "configure:20004: checking for _logl declaration" >&5
20004 if test x${glibcpp_cv_func__logl_use+set} != xset; then
20005 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
20006 echo $ac_n "(cached) $ac_c" 1>&6
20007 else
20010 ac_ext=C
20011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20012 ac_cpp='$CXXCPP $CPPFLAGS'
20013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20015 cross_compiling=$ac_cv_prog_cxx_cross
20017 cat > conftest.$ac_ext <<EOF
20018 #line 20019 "configure"
20019 #include "confdefs.h"
20020 #include <math.h>
20021 #ifdef HAVE_IEEEFP_H
20022 #include <ieeefp.h>
20023 #endif
20025 int main() {
20026 _logl(0);
20027 ; return 0; }
20029 if { (eval echo configure:20030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20030 rm -rf conftest*
20031 glibcpp_cv_func__logl_use=yes
20032 else
20033 echo "configure: failed program was:" >&5
20034 cat conftest.$ac_ext >&5
20035 rm -rf conftest*
20036 glibcpp_cv_func__logl_use=no
20038 rm -f conftest*
20039 ac_ext=c
20040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20041 ac_cpp='$CPP $CPPFLAGS'
20042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20044 cross_compiling=$ac_cv_prog_cc_cross
20050 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
20052 if test x$glibcpp_cv_func__logl_use = x"yes"; then
20053 for ac_func in _logl
20055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20056 echo "configure:20057: checking for $ac_func" >&5
20057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20058 echo $ac_n "(cached) $ac_c" 1>&6
20059 else
20060 cat > conftest.$ac_ext <<EOF
20061 #line 20062 "configure"
20062 #include "confdefs.h"
20063 /* System header to define __stub macros and hopefully few prototypes,
20064 which can conflict with char $ac_func(); below. */
20065 #include <assert.h>
20066 /* Override any gcc2 internal prototype to avoid an error. */
20067 /* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
20069 char $ac_func();
20071 int main() {
20073 /* The GNU C library defines this for functions which it implements
20074 to always fail with ENOSYS. Some functions are actually named
20075 something starting with __ and the normal name is an alias. */
20076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20077 choke me
20078 #else
20079 $ac_func();
20080 #endif
20082 ; return 0; }
20084 if { (eval echo configure:20085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20085 rm -rf conftest*
20086 eval "ac_cv_func_$ac_func=yes"
20087 else
20088 echo "configure: failed program was:" >&5
20089 cat conftest.$ac_ext >&5
20090 rm -rf conftest*
20091 eval "ac_cv_func_$ac_func=no"
20093 rm -f conftest*
20096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20097 echo "$ac_t""yes" 1>&6
20098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20099 cat >> confdefs.h <<EOF
20100 #define $ac_tr_func 1
20103 else
20104 echo "$ac_t""no" 1>&6
20106 done
20113 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
20114 echo "configure:20115: checking for log10l declaration" >&5
20115 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
20116 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20118 else
20121 ac_ext=C
20122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20123 ac_cpp='$CXXCPP $CPPFLAGS'
20124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20126 cross_compiling=$ac_cv_prog_cxx_cross
20128 cat > conftest.$ac_ext <<EOF
20129 #line 20130 "configure"
20130 #include "confdefs.h"
20131 #include <math.h>
20132 #ifdef HAVE_IEEEFP_H
20133 #include <ieeefp.h>
20134 #endif
20136 int main() {
20137 log10l(0);
20138 ; return 0; }
20140 if { (eval echo configure:20141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20141 rm -rf conftest*
20142 glibcpp_cv_func_log10l_use=yes
20143 else
20144 echo "configure: failed program was:" >&5
20145 cat conftest.$ac_ext >&5
20146 rm -rf conftest*
20147 glibcpp_cv_func_log10l_use=no
20149 rm -f conftest*
20150 ac_ext=c
20151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20152 ac_cpp='$CPP $CPPFLAGS'
20153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20155 cross_compiling=$ac_cv_prog_cc_cross
20161 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20163 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20164 for ac_func in log10l
20166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20167 echo "configure:20168: checking for $ac_func" >&5
20168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20169 echo $ac_n "(cached) $ac_c" 1>&6
20170 else
20171 cat > conftest.$ac_ext <<EOF
20172 #line 20173 "configure"
20173 #include "confdefs.h"
20174 /* System header to define __stub macros and hopefully few prototypes,
20175 which can conflict with char $ac_func(); below. */
20176 #include <assert.h>
20177 /* Override any gcc2 internal prototype to avoid an error. */
20178 /* We use char because int might match the return type of a gcc2
20179 builtin and then its argument prototype would still apply. */
20180 char $ac_func();
20182 int main() {
20184 /* The GNU C library defines this for functions which it implements
20185 to always fail with ENOSYS. Some functions are actually named
20186 something starting with __ and the normal name is an alias. */
20187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20188 choke me
20189 #else
20190 $ac_func();
20191 #endif
20193 ; return 0; }
20195 if { (eval echo configure:20196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20196 rm -rf conftest*
20197 eval "ac_cv_func_$ac_func=yes"
20198 else
20199 echo "configure: failed program was:" >&5
20200 cat conftest.$ac_ext >&5
20201 rm -rf conftest*
20202 eval "ac_cv_func_$ac_func=no"
20204 rm -f conftest*
20207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20208 echo "$ac_t""yes" 1>&6
20209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20210 cat >> confdefs.h <<EOF
20211 #define $ac_tr_func 1
20214 else
20215 echo "$ac_t""no" 1>&6
20217 done
20219 else
20221 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20222 echo "configure:20223: checking for _log10l declaration" >&5
20223 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20224 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20225 echo $ac_n "(cached) $ac_c" 1>&6
20226 else
20229 ac_ext=C
20230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20231 ac_cpp='$CXXCPP $CPPFLAGS'
20232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20234 cross_compiling=$ac_cv_prog_cxx_cross
20236 cat > conftest.$ac_ext <<EOF
20237 #line 20238 "configure"
20238 #include "confdefs.h"
20239 #include <math.h>
20240 #ifdef HAVE_IEEEFP_H
20241 #include <ieeefp.h>
20242 #endif
20244 int main() {
20245 _log10l(0);
20246 ; return 0; }
20248 if { (eval echo configure:20249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20249 rm -rf conftest*
20250 glibcpp_cv_func__log10l_use=yes
20251 else
20252 echo "configure: failed program was:" >&5
20253 cat conftest.$ac_ext >&5
20254 rm -rf conftest*
20255 glibcpp_cv_func__log10l_use=no
20257 rm -f conftest*
20258 ac_ext=c
20259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20260 ac_cpp='$CPP $CPPFLAGS'
20261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20263 cross_compiling=$ac_cv_prog_cc_cross
20269 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20271 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20272 for ac_func in _log10l
20274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20275 echo "configure:20276: checking for $ac_func" >&5
20276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20277 echo $ac_n "(cached) $ac_c" 1>&6
20278 else
20279 cat > conftest.$ac_ext <<EOF
20280 #line 20281 "configure"
20281 #include "confdefs.h"
20282 /* System header to define __stub macros and hopefully few prototypes,
20283 which can conflict with char $ac_func(); below. */
20284 #include <assert.h>
20285 /* Override any gcc2 internal prototype to avoid an error. */
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20288 char $ac_func();
20290 int main() {
20292 /* The GNU C library defines this for functions which it implements
20293 to always fail with ENOSYS. Some functions are actually named
20294 something starting with __ and the normal name is an alias. */
20295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20296 choke me
20297 #else
20298 $ac_func();
20299 #endif
20301 ; return 0; }
20303 if { (eval echo configure:20304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20304 rm -rf conftest*
20305 eval "ac_cv_func_$ac_func=yes"
20306 else
20307 echo "configure: failed program was:" >&5
20308 cat conftest.$ac_ext >&5
20309 rm -rf conftest*
20310 eval "ac_cv_func_$ac_func=no"
20312 rm -f conftest*
20315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20316 echo "$ac_t""yes" 1>&6
20317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20318 cat >> confdefs.h <<EOF
20319 #define $ac_tr_func 1
20322 else
20323 echo "$ac_t""no" 1>&6
20325 done
20332 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20333 echo "configure:20334: checking for modfl declaration" >&5
20334 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20335 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20336 echo $ac_n "(cached) $ac_c" 1>&6
20337 else
20340 ac_ext=C
20341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20342 ac_cpp='$CXXCPP $CPPFLAGS'
20343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20345 cross_compiling=$ac_cv_prog_cxx_cross
20347 cat > conftest.$ac_ext <<EOF
20348 #line 20349 "configure"
20349 #include "confdefs.h"
20350 #include <math.h>
20351 int main() {
20352 modfl(0, 0);
20353 ; return 0; }
20355 if { (eval echo configure:20356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20356 rm -rf conftest*
20357 glibcpp_cv_func_modfl_use=yes
20358 else
20359 echo "configure: failed program was:" >&5
20360 cat conftest.$ac_ext >&5
20361 rm -rf conftest*
20362 glibcpp_cv_func_modfl_use=no
20364 rm -f conftest*
20365 ac_ext=c
20366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20367 ac_cpp='$CPP $CPPFLAGS'
20368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20370 cross_compiling=$ac_cv_prog_cc_cross
20376 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20378 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20379 for ac_func in modfl
20381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20382 echo "configure:20383: checking for $ac_func" >&5
20383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20384 echo $ac_n "(cached) $ac_c" 1>&6
20385 else
20386 cat > conftest.$ac_ext <<EOF
20387 #line 20388 "configure"
20388 #include "confdefs.h"
20389 /* System header to define __stub macros and hopefully few prototypes,
20390 which can conflict with char $ac_func(); below. */
20391 #include <assert.h>
20392 /* Override any gcc2 internal prototype to avoid an error. */
20393 /* We use char because int might match the return type of a gcc2
20394 builtin and then its argument prototype would still apply. */
20395 char $ac_func();
20397 int main() {
20399 /* The GNU C library defines this for functions which it implements
20400 to always fail with ENOSYS. Some functions are actually named
20401 something starting with __ and the normal name is an alias. */
20402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20403 choke me
20404 #else
20405 $ac_func();
20406 #endif
20408 ; return 0; }
20410 if { (eval echo configure:20411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20411 rm -rf conftest*
20412 eval "ac_cv_func_$ac_func=yes"
20413 else
20414 echo "configure: failed program was:" >&5
20415 cat conftest.$ac_ext >&5
20416 rm -rf conftest*
20417 eval "ac_cv_func_$ac_func=no"
20419 rm -f conftest*
20422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20423 echo "$ac_t""yes" 1>&6
20424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20425 cat >> confdefs.h <<EOF
20426 #define $ac_tr_func 1
20429 else
20430 echo "$ac_t""no" 1>&6
20432 done
20434 else
20436 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20437 echo "configure:20438: checking for _modfl declaration" >&5
20438 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20439 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20440 echo $ac_n "(cached) $ac_c" 1>&6
20441 else
20444 ac_ext=C
20445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20446 ac_cpp='$CXXCPP $CPPFLAGS'
20447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20449 cross_compiling=$ac_cv_prog_cxx_cross
20451 cat > conftest.$ac_ext <<EOF
20452 #line 20453 "configure"
20453 #include "confdefs.h"
20454 #include <math.h>
20455 int main() {
20456 _modfl(0, 0);
20457 ; return 0; }
20459 if { (eval echo configure:20460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20460 rm -rf conftest*
20461 glibcpp_cv_func__modfl_use=yes
20462 else
20463 echo "configure: failed program was:" >&5
20464 cat conftest.$ac_ext >&5
20465 rm -rf conftest*
20466 glibcpp_cv_func__modfl_use=no
20468 rm -f conftest*
20469 ac_ext=c
20470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20471 ac_cpp='$CPP $CPPFLAGS'
20472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20474 cross_compiling=$ac_cv_prog_cc_cross
20480 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20482 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20483 for ac_func in _modfl
20485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20486 echo "configure:20487: checking for $ac_func" >&5
20487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20488 echo $ac_n "(cached) $ac_c" 1>&6
20489 else
20490 cat > conftest.$ac_ext <<EOF
20491 #line 20492 "configure"
20492 #include "confdefs.h"
20493 /* System header to define __stub macros and hopefully few prototypes,
20494 which can conflict with char $ac_func(); below. */
20495 #include <assert.h>
20496 /* Override any gcc2 internal prototype to avoid an error. */
20497 /* We use char because int might match the return type of a gcc2
20498 builtin and then its argument prototype would still apply. */
20499 char $ac_func();
20501 int main() {
20503 /* The GNU C library defines this for functions which it implements
20504 to always fail with ENOSYS. Some functions are actually named
20505 something starting with __ and the normal name is an alias. */
20506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20507 choke me
20508 #else
20509 $ac_func();
20510 #endif
20512 ; return 0; }
20514 if { (eval echo configure:20515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20515 rm -rf conftest*
20516 eval "ac_cv_func_$ac_func=yes"
20517 else
20518 echo "configure: failed program was:" >&5
20519 cat conftest.$ac_ext >&5
20520 rm -rf conftest*
20521 eval "ac_cv_func_$ac_func=no"
20523 rm -f conftest*
20526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20527 echo "$ac_t""yes" 1>&6
20528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20529 cat >> confdefs.h <<EOF
20530 #define $ac_tr_func 1
20533 else
20534 echo "$ac_t""no" 1>&6
20536 done
20543 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20544 echo "configure:20545: checking for powl declaration" >&5
20545 if test x${glibcpp_cv_func_powl_use+set} != xset; then
20546 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20547 echo $ac_n "(cached) $ac_c" 1>&6
20548 else
20551 ac_ext=C
20552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20553 ac_cpp='$CXXCPP $CPPFLAGS'
20554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20556 cross_compiling=$ac_cv_prog_cxx_cross
20558 cat > conftest.$ac_ext <<EOF
20559 #line 20560 "configure"
20560 #include "confdefs.h"
20561 #include <math.h>
20562 int main() {
20563 powl(0, 0);
20564 ; return 0; }
20566 if { (eval echo configure:20567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20567 rm -rf conftest*
20568 glibcpp_cv_func_powl_use=yes
20569 else
20570 echo "configure: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20572 rm -rf conftest*
20573 glibcpp_cv_func_powl_use=no
20575 rm -f conftest*
20576 ac_ext=c
20577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20578 ac_cpp='$CPP $CPPFLAGS'
20579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20581 cross_compiling=$ac_cv_prog_cc_cross
20587 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20589 if test x$glibcpp_cv_func_powl_use = x"yes"; then
20590 for ac_func in powl
20592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20593 echo "configure:20594: checking for $ac_func" >&5
20594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20595 echo $ac_n "(cached) $ac_c" 1>&6
20596 else
20597 cat > conftest.$ac_ext <<EOF
20598 #line 20599 "configure"
20599 #include "confdefs.h"
20600 /* System header to define __stub macros and hopefully few prototypes,
20601 which can conflict with char $ac_func(); below. */
20602 #include <assert.h>
20603 /* Override any gcc2 internal prototype to avoid an error. */
20604 /* We use char because int might match the return type of a gcc2
20605 builtin and then its argument prototype would still apply. */
20606 char $ac_func();
20608 int main() {
20610 /* The GNU C library defines this for functions which it implements
20611 to always fail with ENOSYS. Some functions are actually named
20612 something starting with __ and the normal name is an alias. */
20613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20614 choke me
20615 #else
20616 $ac_func();
20617 #endif
20619 ; return 0; }
20621 if { (eval echo configure:20622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20622 rm -rf conftest*
20623 eval "ac_cv_func_$ac_func=yes"
20624 else
20625 echo "configure: failed program was:" >&5
20626 cat conftest.$ac_ext >&5
20627 rm -rf conftest*
20628 eval "ac_cv_func_$ac_func=no"
20630 rm -f conftest*
20633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20634 echo "$ac_t""yes" 1>&6
20635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20636 cat >> confdefs.h <<EOF
20637 #define $ac_tr_func 1
20640 else
20641 echo "$ac_t""no" 1>&6
20643 done
20645 else
20647 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20648 echo "configure:20649: checking for _powl declaration" >&5
20649 if test x${glibcpp_cv_func__powl_use+set} != xset; then
20650 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20651 echo $ac_n "(cached) $ac_c" 1>&6
20652 else
20655 ac_ext=C
20656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20657 ac_cpp='$CXXCPP $CPPFLAGS'
20658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20660 cross_compiling=$ac_cv_prog_cxx_cross
20662 cat > conftest.$ac_ext <<EOF
20663 #line 20664 "configure"
20664 #include "confdefs.h"
20665 #include <math.h>
20666 int main() {
20667 _powl(0, 0);
20668 ; return 0; }
20670 if { (eval echo configure:20671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20671 rm -rf conftest*
20672 glibcpp_cv_func__powl_use=yes
20673 else
20674 echo "configure: failed program was:" >&5
20675 cat conftest.$ac_ext >&5
20676 rm -rf conftest*
20677 glibcpp_cv_func__powl_use=no
20679 rm -f conftest*
20680 ac_ext=c
20681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20682 ac_cpp='$CPP $CPPFLAGS'
20683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20685 cross_compiling=$ac_cv_prog_cc_cross
20691 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20693 if test x$glibcpp_cv_func__powl_use = x"yes"; then
20694 for ac_func in _powl
20696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20697 echo "configure:20698: checking for $ac_func" >&5
20698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20699 echo $ac_n "(cached) $ac_c" 1>&6
20700 else
20701 cat > conftest.$ac_ext <<EOF
20702 #line 20703 "configure"
20703 #include "confdefs.h"
20704 /* System header to define __stub macros and hopefully few prototypes,
20705 which can conflict with char $ac_func(); below. */
20706 #include <assert.h>
20707 /* Override any gcc2 internal prototype to avoid an error. */
20708 /* We use char because int might match the return type of a gcc2
20709 builtin and then its argument prototype would still apply. */
20710 char $ac_func();
20712 int main() {
20714 /* The GNU C library defines this for functions which it implements
20715 to always fail with ENOSYS. Some functions are actually named
20716 something starting with __ and the normal name is an alias. */
20717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20718 choke me
20719 #else
20720 $ac_func();
20721 #endif
20723 ; return 0; }
20725 if { (eval echo configure:20726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20726 rm -rf conftest*
20727 eval "ac_cv_func_$ac_func=yes"
20728 else
20729 echo "configure: failed program was:" >&5
20730 cat conftest.$ac_ext >&5
20731 rm -rf conftest*
20732 eval "ac_cv_func_$ac_func=no"
20734 rm -f conftest*
20737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20738 echo "$ac_t""yes" 1>&6
20739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20740 cat >> confdefs.h <<EOF
20741 #define $ac_tr_func 1
20744 else
20745 echo "$ac_t""no" 1>&6
20747 done
20754 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20755 echo "configure:20756: checking for sqrtl declaration" >&5
20756 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20757 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20758 echo $ac_n "(cached) $ac_c" 1>&6
20759 else
20762 ac_ext=C
20763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20764 ac_cpp='$CXXCPP $CPPFLAGS'
20765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20767 cross_compiling=$ac_cv_prog_cxx_cross
20769 cat > conftest.$ac_ext <<EOF
20770 #line 20771 "configure"
20771 #include "confdefs.h"
20772 #include <math.h>
20773 #ifdef HAVE_IEEEFP_H
20774 #include <ieeefp.h>
20775 #endif
20777 int main() {
20778 sqrtl(0);
20779 ; return 0; }
20781 if { (eval echo configure:20782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20782 rm -rf conftest*
20783 glibcpp_cv_func_sqrtl_use=yes
20784 else
20785 echo "configure: failed program was:" >&5
20786 cat conftest.$ac_ext >&5
20787 rm -rf conftest*
20788 glibcpp_cv_func_sqrtl_use=no
20790 rm -f conftest*
20791 ac_ext=c
20792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20796 cross_compiling=$ac_cv_prog_cc_cross
20802 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20804 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20805 for ac_func in sqrtl
20807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20808 echo "configure:20809: checking for $ac_func" >&5
20809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20810 echo $ac_n "(cached) $ac_c" 1>&6
20811 else
20812 cat > conftest.$ac_ext <<EOF
20813 #line 20814 "configure"
20814 #include "confdefs.h"
20815 /* System header to define __stub macros and hopefully few prototypes,
20816 which can conflict with char $ac_func(); below. */
20817 #include <assert.h>
20818 /* Override any gcc2 internal prototype to avoid an error. */
20819 /* We use char because int might match the return type of a gcc2
20820 builtin and then its argument prototype would still apply. */
20821 char $ac_func();
20823 int main() {
20825 /* The GNU C library defines this for functions which it implements
20826 to always fail with ENOSYS. Some functions are actually named
20827 something starting with __ and the normal name is an alias. */
20828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20829 choke me
20830 #else
20831 $ac_func();
20832 #endif
20834 ; return 0; }
20836 if { (eval echo configure:20837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20837 rm -rf conftest*
20838 eval "ac_cv_func_$ac_func=yes"
20839 else
20840 echo "configure: failed program was:" >&5
20841 cat conftest.$ac_ext >&5
20842 rm -rf conftest*
20843 eval "ac_cv_func_$ac_func=no"
20845 rm -f conftest*
20848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20849 echo "$ac_t""yes" 1>&6
20850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20851 cat >> confdefs.h <<EOF
20852 #define $ac_tr_func 1
20855 else
20856 echo "$ac_t""no" 1>&6
20858 done
20860 else
20862 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20863 echo "configure:20864: checking for _sqrtl declaration" >&5
20864 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20865 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20866 echo $ac_n "(cached) $ac_c" 1>&6
20867 else
20870 ac_ext=C
20871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20875 cross_compiling=$ac_cv_prog_cxx_cross
20877 cat > conftest.$ac_ext <<EOF
20878 #line 20879 "configure"
20879 #include "confdefs.h"
20880 #include <math.h>
20881 #ifdef HAVE_IEEEFP_H
20882 #include <ieeefp.h>
20883 #endif
20885 int main() {
20886 _sqrtl(0);
20887 ; return 0; }
20889 if { (eval echo configure:20890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20890 rm -rf conftest*
20891 glibcpp_cv_func__sqrtl_use=yes
20892 else
20893 echo "configure: failed program was:" >&5
20894 cat conftest.$ac_ext >&5
20895 rm -rf conftest*
20896 glibcpp_cv_func__sqrtl_use=no
20898 rm -f conftest*
20899 ac_ext=c
20900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20901 ac_cpp='$CPP $CPPFLAGS'
20902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20904 cross_compiling=$ac_cv_prog_cc_cross
20910 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20912 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20913 for ac_func in _sqrtl
20915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20916 echo "configure:20917: checking for $ac_func" >&5
20917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20918 echo $ac_n "(cached) $ac_c" 1>&6
20919 else
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 /* System header to define __stub macros and hopefully few prototypes,
20924 which can conflict with char $ac_func(); below. */
20925 #include <assert.h>
20926 /* Override any gcc2 internal prototype to avoid an error. */
20927 /* We use char because int might match the return type of a gcc2
20928 builtin and then its argument prototype would still apply. */
20929 char $ac_func();
20931 int main() {
20933 /* The GNU C library defines this for functions which it implements
20934 to always fail with ENOSYS. Some functions are actually named
20935 something starting with __ and the normal name is an alias. */
20936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20937 choke me
20938 #else
20939 $ac_func();
20940 #endif
20942 ; return 0; }
20944 if { (eval echo configure:20945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20945 rm -rf conftest*
20946 eval "ac_cv_func_$ac_func=yes"
20947 else
20948 echo "configure: failed program was:" >&5
20949 cat conftest.$ac_ext >&5
20950 rm -rf conftest*
20951 eval "ac_cv_func_$ac_func=no"
20953 rm -f conftest*
20956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20957 echo "$ac_t""yes" 1>&6
20958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20959 cat >> confdefs.h <<EOF
20960 #define $ac_tr_func 1
20963 else
20964 echo "$ac_t""no" 1>&6
20966 done
20973 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20974 echo "configure:20975: checking for sincosl declaration" >&5
20975 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20976 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20977 echo $ac_n "(cached) $ac_c" 1>&6
20978 else
20981 ac_ext=C
20982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20986 cross_compiling=$ac_cv_prog_cxx_cross
20988 cat > conftest.$ac_ext <<EOF
20989 #line 20990 "configure"
20990 #include "confdefs.h"
20991 #include <math.h>
20992 int main() {
20993 sincosl(0, 0, 0);
20994 ; return 0; }
20996 if { (eval echo configure:20997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20997 rm -rf conftest*
20998 glibcpp_cv_func_sincosl_use=yes
20999 else
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21002 rm -rf conftest*
21003 glibcpp_cv_func_sincosl_use=no
21005 rm -f conftest*
21006 ac_ext=c
21007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21008 ac_cpp='$CPP $CPPFLAGS'
21009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21011 cross_compiling=$ac_cv_prog_cc_cross
21017 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
21019 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
21020 for ac_func in sincosl
21022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21023 echo "configure:21024: checking for $ac_func" >&5
21024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21025 echo $ac_n "(cached) $ac_c" 1>&6
21026 else
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 /* System header to define __stub macros and hopefully few prototypes,
21031 which can conflict with char $ac_func(); below. */
21032 #include <assert.h>
21033 /* Override any gcc2 internal prototype to avoid an error. */
21034 /* We use char because int might match the return type of a gcc2
21035 builtin and then its argument prototype would still apply. */
21036 char $ac_func();
21038 int main() {
21040 /* The GNU C library defines this for functions which it implements
21041 to always fail with ENOSYS. Some functions are actually named
21042 something starting with __ and the normal name is an alias. */
21043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21044 choke me
21045 #else
21046 $ac_func();
21047 #endif
21049 ; return 0; }
21051 if { (eval echo configure:21052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21052 rm -rf conftest*
21053 eval "ac_cv_func_$ac_func=yes"
21054 else
21055 echo "configure: failed program was:" >&5
21056 cat conftest.$ac_ext >&5
21057 rm -rf conftest*
21058 eval "ac_cv_func_$ac_func=no"
21060 rm -f conftest*
21063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21064 echo "$ac_t""yes" 1>&6
21065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21066 cat >> confdefs.h <<EOF
21067 #define $ac_tr_func 1
21070 else
21071 echo "$ac_t""no" 1>&6
21073 done
21075 else
21077 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
21078 echo "configure:21079: checking for _sincosl declaration" >&5
21079 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
21080 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
21081 echo $ac_n "(cached) $ac_c" 1>&6
21082 else
21085 ac_ext=C
21086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21087 ac_cpp='$CXXCPP $CPPFLAGS'
21088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21090 cross_compiling=$ac_cv_prog_cxx_cross
21092 cat > conftest.$ac_ext <<EOF
21093 #line 21094 "configure"
21094 #include "confdefs.h"
21095 #include <math.h>
21096 int main() {
21097 _sincosl(0, 0, 0);
21098 ; return 0; }
21100 if { (eval echo configure:21101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21101 rm -rf conftest*
21102 glibcpp_cv_func__sincosl_use=yes
21103 else
21104 echo "configure: failed program was:" >&5
21105 cat conftest.$ac_ext >&5
21106 rm -rf conftest*
21107 glibcpp_cv_func__sincosl_use=no
21109 rm -f conftest*
21110 ac_ext=c
21111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21112 ac_cpp='$CPP $CPPFLAGS'
21113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21115 cross_compiling=$ac_cv_prog_cc_cross
21121 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
21123 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
21124 for ac_func in _sincosl
21126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21127 echo "configure:21128: checking for $ac_func" >&5
21128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21129 echo $ac_n "(cached) $ac_c" 1>&6
21130 else
21131 cat > conftest.$ac_ext <<EOF
21132 #line 21133 "configure"
21133 #include "confdefs.h"
21134 /* System header to define __stub macros and hopefully few prototypes,
21135 which can conflict with char $ac_func(); below. */
21136 #include <assert.h>
21137 /* Override any gcc2 internal prototype to avoid an error. */
21138 /* We use char because int might match the return type of a gcc2
21139 builtin and then its argument prototype would still apply. */
21140 char $ac_func();
21142 int main() {
21144 /* The GNU C library defines this for functions which it implements
21145 to always fail with ENOSYS. Some functions are actually named
21146 something starting with __ and the normal name is an alias. */
21147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21148 choke me
21149 #else
21150 $ac_func();
21151 #endif
21153 ; return 0; }
21155 if { (eval echo configure:21156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21156 rm -rf conftest*
21157 eval "ac_cv_func_$ac_func=yes"
21158 else
21159 echo "configure: failed program was:" >&5
21160 cat conftest.$ac_ext >&5
21161 rm -rf conftest*
21162 eval "ac_cv_func_$ac_func=no"
21164 rm -f conftest*
21167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21168 echo "$ac_t""yes" 1>&6
21169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21170 cat >> confdefs.h <<EOF
21171 #define $ac_tr_func 1
21174 else
21175 echo "$ac_t""no" 1>&6
21177 done
21184 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21185 echo "configure:21186: checking for finitel declaration" >&5
21186 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21187 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21188 echo $ac_n "(cached) $ac_c" 1>&6
21189 else
21192 ac_ext=C
21193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21194 ac_cpp='$CXXCPP $CPPFLAGS'
21195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21197 cross_compiling=$ac_cv_prog_cxx_cross
21199 cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 #include <math.h>
21203 #ifdef HAVE_IEEEFP_H
21204 #include <ieeefp.h>
21205 #endif
21207 int main() {
21208 finitel(0);
21209 ; return 0; }
21211 if { (eval echo configure:21212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21212 rm -rf conftest*
21213 glibcpp_cv_func_finitel_use=yes
21214 else
21215 echo "configure: failed program was:" >&5
21216 cat conftest.$ac_ext >&5
21217 rm -rf conftest*
21218 glibcpp_cv_func_finitel_use=no
21220 rm -f conftest*
21221 ac_ext=c
21222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21223 ac_cpp='$CPP $CPPFLAGS'
21224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21226 cross_compiling=$ac_cv_prog_cc_cross
21232 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21234 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21235 for ac_func in finitel
21237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21238 echo "configure:21239: checking for $ac_func" >&5
21239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21240 echo $ac_n "(cached) $ac_c" 1>&6
21241 else
21242 cat > conftest.$ac_ext <<EOF
21243 #line 21244 "configure"
21244 #include "confdefs.h"
21245 /* System header to define __stub macros and hopefully few prototypes,
21246 which can conflict with char $ac_func(); below. */
21247 #include <assert.h>
21248 /* Override any gcc2 internal prototype to avoid an error. */
21249 /* We use char because int might match the return type of a gcc2
21250 builtin and then its argument prototype would still apply. */
21251 char $ac_func();
21253 int main() {
21255 /* The GNU C library defines this for functions which it implements
21256 to always fail with ENOSYS. Some functions are actually named
21257 something starting with __ and the normal name is an alias. */
21258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21259 choke me
21260 #else
21261 $ac_func();
21262 #endif
21264 ; return 0; }
21266 if { (eval echo configure:21267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21267 rm -rf conftest*
21268 eval "ac_cv_func_$ac_func=yes"
21269 else
21270 echo "configure: failed program was:" >&5
21271 cat conftest.$ac_ext >&5
21272 rm -rf conftest*
21273 eval "ac_cv_func_$ac_func=no"
21275 rm -f conftest*
21278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21279 echo "$ac_t""yes" 1>&6
21280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21281 cat >> confdefs.h <<EOF
21282 #define $ac_tr_func 1
21285 else
21286 echo "$ac_t""no" 1>&6
21288 done
21290 else
21292 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21293 echo "configure:21294: checking for _finitel declaration" >&5
21294 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21295 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21296 echo $ac_n "(cached) $ac_c" 1>&6
21297 else
21300 ac_ext=C
21301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21302 ac_cpp='$CXXCPP $CPPFLAGS'
21303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21305 cross_compiling=$ac_cv_prog_cxx_cross
21307 cat > conftest.$ac_ext <<EOF
21308 #line 21309 "configure"
21309 #include "confdefs.h"
21310 #include <math.h>
21311 #ifdef HAVE_IEEEFP_H
21312 #include <ieeefp.h>
21313 #endif
21315 int main() {
21316 _finitel(0);
21317 ; return 0; }
21319 if { (eval echo configure:21320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21320 rm -rf conftest*
21321 glibcpp_cv_func__finitel_use=yes
21322 else
21323 echo "configure: failed program was:" >&5
21324 cat conftest.$ac_ext >&5
21325 rm -rf conftest*
21326 glibcpp_cv_func__finitel_use=no
21328 rm -f conftest*
21329 ac_ext=c
21330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21331 ac_cpp='$CPP $CPPFLAGS'
21332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21334 cross_compiling=$ac_cv_prog_cc_cross
21340 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21342 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21343 for ac_func in _finitel
21345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21346 echo "configure:21347: checking for $ac_func" >&5
21347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21348 echo $ac_n "(cached) $ac_c" 1>&6
21349 else
21350 cat > conftest.$ac_ext <<EOF
21351 #line 21352 "configure"
21352 #include "confdefs.h"
21353 /* System header to define __stub macros and hopefully few prototypes,
21354 which can conflict with char $ac_func(); below. */
21355 #include <assert.h>
21356 /* Override any gcc2 internal prototype to avoid an error. */
21357 /* We use char because int might match the return type of a gcc2
21358 builtin and then its argument prototype would still apply. */
21359 char $ac_func();
21361 int main() {
21363 /* The GNU C library defines this for functions which it implements
21364 to always fail with ENOSYS. Some functions are actually named
21365 something starting with __ and the normal name is an alias. */
21366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21367 choke me
21368 #else
21369 $ac_func();
21370 #endif
21372 ; return 0; }
21374 if { (eval echo configure:21375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21375 rm -rf conftest*
21376 eval "ac_cv_func_$ac_func=yes"
21377 else
21378 echo "configure: failed program was:" >&5
21379 cat conftest.$ac_ext >&5
21380 rm -rf conftest*
21381 eval "ac_cv_func_$ac_func=no"
21383 rm -f conftest*
21386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21387 echo "$ac_t""yes" 1>&6
21388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21389 cat >> confdefs.h <<EOF
21390 #define $ac_tr_func 1
21393 else
21394 echo "$ac_t""no" 1>&6
21396 done
21404 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21405 echo "configure:21406: checking for _float trig functions" >&5
21406 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21407 echo $ac_n "(cached) $ac_c" 1>&6
21408 else
21411 ac_ext=C
21412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21413 ac_cpp='$CXXCPP $CPPFLAGS'
21414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21416 cross_compiling=$ac_cv_prog_cxx_cross
21418 cat > conftest.$ac_ext <<EOF
21419 #line 21420 "configure"
21420 #include "confdefs.h"
21421 #include <math.h>
21422 int main() {
21423 `for x in _acosf _asinf _atanf \
21424 _cosf _sinf _tanf \
21425 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21426 ; return 0; }
21428 if { (eval echo configure:21429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21429 rm -rf conftest*
21430 glibcpp_cv_func__float_trig_use=yes
21431 else
21432 echo "configure: failed program was:" >&5
21433 cat conftest.$ac_ext >&5
21434 rm -rf conftest*
21435 glibcpp_cv_func__float_trig_use=no
21437 rm -f conftest*
21438 ac_ext=c
21439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21440 ac_cpp='$CPP $CPPFLAGS'
21441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21443 cross_compiling=$ac_cv_prog_cc_cross
21447 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21448 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21449 for ac_func in _acosf _asinf _atanf \
21450 _cosf _sinf _tanf \
21451 _coshf _sinhf _tanhf
21453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21454 echo "configure:21455: checking for $ac_func" >&5
21455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21456 echo $ac_n "(cached) $ac_c" 1>&6
21457 else
21458 cat > conftest.$ac_ext <<EOF
21459 #line 21460 "configure"
21460 #include "confdefs.h"
21461 /* System header to define __stub macros and hopefully few prototypes,
21462 which can conflict with char $ac_func(); below. */
21463 #include <assert.h>
21464 /* Override any gcc2 internal prototype to avoid an error. */
21465 /* We use char because int might match the return type of a gcc2
21466 builtin and then its argument prototype would still apply. */
21467 char $ac_func();
21469 int main() {
21471 /* The GNU C library defines this for functions which it implements
21472 to always fail with ENOSYS. Some functions are actually named
21473 something starting with __ and the normal name is an alias. */
21474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475 choke me
21476 #else
21477 $ac_func();
21478 #endif
21480 ; return 0; }
21482 if { (eval echo configure:21483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21483 rm -rf conftest*
21484 eval "ac_cv_func_$ac_func=yes"
21485 else
21486 echo "configure: failed program was:" >&5
21487 cat conftest.$ac_ext >&5
21488 rm -rf conftest*
21489 eval "ac_cv_func_$ac_func=no"
21491 rm -f conftest*
21494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21495 echo "$ac_t""yes" 1>&6
21496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21497 cat >> confdefs.h <<EOF
21498 #define $ac_tr_func 1
21501 else
21502 echo "$ac_t""no" 1>&6
21504 done
21509 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21510 echo "configure:21511: checking for _float round functions" >&5
21511 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21512 echo $ac_n "(cached) $ac_c" 1>&6
21513 else
21516 ac_ext=C
21517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21518 ac_cpp='$CXXCPP $CPPFLAGS'
21519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21521 cross_compiling=$ac_cv_prog_cxx_cross
21523 cat > conftest.$ac_ext <<EOF
21524 #line 21525 "configure"
21525 #include "confdefs.h"
21526 #include <math.h>
21527 int main() {
21528 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21529 ; return 0; }
21531 if { (eval echo configure:21532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21532 rm -rf conftest*
21533 glibcpp_cv_func__float_round_use=yes
21534 else
21535 echo "configure: failed program was:" >&5
21536 cat conftest.$ac_ext >&5
21537 rm -rf conftest*
21538 glibcpp_cv_func__float_round_use=no
21540 rm -f conftest*
21541 ac_ext=c
21542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21543 ac_cpp='$CPP $CPPFLAGS'
21544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21546 cross_compiling=$ac_cv_prog_cc_cross
21550 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21551 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21552 for ac_func in _ceilf _floorf
21554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21555 echo "configure:21556: checking for $ac_func" >&5
21556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21557 echo $ac_n "(cached) $ac_c" 1>&6
21558 else
21559 cat > conftest.$ac_ext <<EOF
21560 #line 21561 "configure"
21561 #include "confdefs.h"
21562 /* System header to define __stub macros and hopefully few prototypes,
21563 which can conflict with char $ac_func(); below. */
21564 #include <assert.h>
21565 /* Override any gcc2 internal prototype to avoid an error. */
21566 /* We use char because int might match the return type of a gcc2
21567 builtin and then its argument prototype would still apply. */
21568 char $ac_func();
21570 int main() {
21572 /* The GNU C library defines this for functions which it implements
21573 to always fail with ENOSYS. Some functions are actually named
21574 something starting with __ and the normal name is an alias. */
21575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21576 choke me
21577 #else
21578 $ac_func();
21579 #endif
21581 ; return 0; }
21583 if { (eval echo configure:21584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21584 rm -rf conftest*
21585 eval "ac_cv_func_$ac_func=yes"
21586 else
21587 echo "configure: failed program was:" >&5
21588 cat conftest.$ac_ext >&5
21589 rm -rf conftest*
21590 eval "ac_cv_func_$ac_func=no"
21592 rm -f conftest*
21595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21596 echo "$ac_t""yes" 1>&6
21597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21598 cat >> confdefs.h <<EOF
21599 #define $ac_tr_func 1
21602 else
21603 echo "$ac_t""no" 1>&6
21605 done
21611 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21612 echo "configure:21613: checking for _long double trig functions" >&5
21613 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21614 echo $ac_n "(cached) $ac_c" 1>&6
21615 else
21618 ac_ext=C
21619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21620 ac_cpp='$CXXCPP $CPPFLAGS'
21621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21623 cross_compiling=$ac_cv_prog_cxx_cross
21625 cat > conftest.$ac_ext <<EOF
21626 #line 21627 "configure"
21627 #include "confdefs.h"
21628 #include <math.h>
21629 int main() {
21630 `for x in _acosl _asinl _atanl \
21631 _cosl _sinl _tanl \
21632 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21633 ; return 0; }
21635 if { (eval echo configure:21636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21636 rm -rf conftest*
21637 glibcpp_cv_func__long_double_trig_use=yes
21638 else
21639 echo "configure: failed program was:" >&5
21640 cat conftest.$ac_ext >&5
21641 rm -rf conftest*
21642 glibcpp_cv_func__long_double_trig_use=no
21644 rm -f conftest*
21645 ac_ext=c
21646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21647 ac_cpp='$CPP $CPPFLAGS'
21648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21650 cross_compiling=$ac_cv_prog_cc_cross
21654 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21655 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21656 for ac_func in _acosl _asinl _atanl \
21657 _cosl _sinl _tanl \
21658 _coshl _sinhl _tanhl
21660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21661 echo "configure:21662: checking for $ac_func" >&5
21662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21663 echo $ac_n "(cached) $ac_c" 1>&6
21664 else
21665 cat > conftest.$ac_ext <<EOF
21666 #line 21667 "configure"
21667 #include "confdefs.h"
21668 /* System header to define __stub macros and hopefully few prototypes,
21669 which can conflict with char $ac_func(); below. */
21670 #include <assert.h>
21671 /* Override any gcc2 internal prototype to avoid an error. */
21672 /* We use char because int might match the return type of a gcc2
21673 builtin and then its argument prototype would still apply. */
21674 char $ac_func();
21676 int main() {
21678 /* The GNU C library defines this for functions which it implements
21679 to always fail with ENOSYS. Some functions are actually named
21680 something starting with __ and the normal name is an alias. */
21681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21682 choke me
21683 #else
21684 $ac_func();
21685 #endif
21687 ; return 0; }
21689 if { (eval echo configure:21690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21690 rm -rf conftest*
21691 eval "ac_cv_func_$ac_func=yes"
21692 else
21693 echo "configure: failed program was:" >&5
21694 cat conftest.$ac_ext >&5
21695 rm -rf conftest*
21696 eval "ac_cv_func_$ac_func=no"
21698 rm -f conftest*
21701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21702 echo "$ac_t""yes" 1>&6
21703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21704 cat >> confdefs.h <<EOF
21705 #define $ac_tr_func 1
21708 else
21709 echo "$ac_t""no" 1>&6
21711 done
21716 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21717 echo "configure:21718: checking for _long double round functions" >&5
21718 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21719 echo $ac_n "(cached) $ac_c" 1>&6
21720 else
21723 ac_ext=C
21724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21725 ac_cpp='$CXXCPP $CPPFLAGS'
21726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21728 cross_compiling=$ac_cv_prog_cxx_cross
21730 cat > conftest.$ac_ext <<EOF
21731 #line 21732 "configure"
21732 #include "confdefs.h"
21733 #include <math.h>
21734 int main() {
21735 `for x in _ceill _floorl; do echo "$x (0);"; done`
21736 ; return 0; }
21738 if { (eval echo configure:21739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21739 rm -rf conftest*
21740 glibcpp_cv_func__long_double_round_use=yes
21741 else
21742 echo "configure: failed program was:" >&5
21743 cat conftest.$ac_ext >&5
21744 rm -rf conftest*
21745 glibcpp_cv_func__long_double_round_use=no
21747 rm -f conftest*
21748 ac_ext=c
21749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21750 ac_cpp='$CPP $CPPFLAGS'
21751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21753 cross_compiling=$ac_cv_prog_cc_cross
21757 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21758 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21759 for ac_func in _ceill _floorl
21761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21762 echo "configure:21763: checking for $ac_func" >&5
21763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21764 echo $ac_n "(cached) $ac_c" 1>&6
21765 else
21766 cat > conftest.$ac_ext <<EOF
21767 #line 21768 "configure"
21768 #include "confdefs.h"
21769 /* System header to define __stub macros and hopefully few prototypes,
21770 which can conflict with char $ac_func(); below. */
21771 #include <assert.h>
21772 /* Override any gcc2 internal prototype to avoid an error. */
21773 /* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775 char $ac_func();
21777 int main() {
21779 /* The GNU C library defines this for functions which it implements
21780 to always fail with ENOSYS. Some functions are actually named
21781 something starting with __ and the normal name is an alias. */
21782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21783 choke me
21784 #else
21785 $ac_func();
21786 #endif
21788 ; return 0; }
21790 if { (eval echo configure:21791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21791 rm -rf conftest*
21792 eval "ac_cv_func_$ac_func=yes"
21793 else
21794 echo "configure: failed program was:" >&5
21795 cat conftest.$ac_ext >&5
21796 rm -rf conftest*
21797 eval "ac_cv_func_$ac_func=no"
21799 rm -f conftest*
21802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21803 echo "$ac_t""yes" 1>&6
21804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21805 cat >> confdefs.h <<EOF
21806 #define $ac_tr_func 1
21809 else
21810 echo "$ac_t""no" 1>&6
21812 done
21817 LIBS="$ac_save_LIBS"
21818 CXXFLAGS="$ac_save_CXXFLAGS"
21821 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21822 echo "configure:21823: checking for main in -lm" >&5
21823 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21825 echo $ac_n "(cached) $ac_c" 1>&6
21826 else
21827 ac_save_LIBS="$LIBS"
21828 LIBS="-lm $LIBS"
21829 cat > conftest.$ac_ext <<EOF
21830 #line 21831 "configure"
21831 #include "confdefs.h"
21833 int main() {
21834 main()
21835 ; return 0; }
21837 if { (eval echo configure:21838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21838 rm -rf conftest*
21839 eval "ac_cv_lib_$ac_lib_var=yes"
21840 else
21841 echo "configure: failed program was:" >&5
21842 cat conftest.$ac_ext >&5
21843 rm -rf conftest*
21844 eval "ac_cv_lib_$ac_lib_var=no"
21846 rm -f conftest*
21847 LIBS="$ac_save_LIBS"
21850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21851 echo "$ac_t""yes" 1>&6
21852 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21854 cat >> confdefs.h <<EOF
21855 #define $ac_tr_lib 1
21858 LIBS="-lm $LIBS"
21860 else
21861 echo "$ac_t""no" 1>&6
21864 for ac_func in nan copysignf
21866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21867 echo "configure:21868: checking for $ac_func" >&5
21868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21869 echo $ac_n "(cached) $ac_c" 1>&6
21870 else
21871 cat > conftest.$ac_ext <<EOF
21872 #line 21873 "configure"
21873 #include "confdefs.h"
21874 /* System header to define __stub macros and hopefully few prototypes,
21875 which can conflict with char $ac_func(); below. */
21876 #include <assert.h>
21877 /* Override any gcc2 internal prototype to avoid an error. */
21878 /* We use char because int might match the return type of a gcc2
21879 builtin and then its argument prototype would still apply. */
21880 char $ac_func();
21882 int main() {
21884 /* The GNU C library defines this for functions which it implements
21885 to always fail with ENOSYS. Some functions are actually named
21886 something starting with __ and the normal name is an alias. */
21887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21888 choke me
21889 #else
21890 $ac_func();
21891 #endif
21893 ; return 0; }
21895 if { (eval echo configure:21896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21896 rm -rf conftest*
21897 eval "ac_cv_func_$ac_func=yes"
21898 else
21899 echo "configure: failed program was:" >&5
21900 cat conftest.$ac_ext >&5
21901 rm -rf conftest*
21902 eval "ac_cv_func_$ac_func=no"
21904 rm -f conftest*
21907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21908 echo "$ac_t""yes" 1>&6
21909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21910 cat >> confdefs.h <<EOF
21911 #define $ac_tr_func 1
21914 else
21915 echo "$ac_t""no" 1>&6
21916 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21918 done
21921 for ac_func in __signbit
21923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21924 echo "configure:21925: checking for $ac_func" >&5
21925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21926 echo $ac_n "(cached) $ac_c" 1>&6
21927 else
21928 cat > conftest.$ac_ext <<EOF
21929 #line 21930 "configure"
21930 #include "confdefs.h"
21931 /* System header to define __stub macros and hopefully few prototypes,
21932 which can conflict with char $ac_func(); below. */
21933 #include <assert.h>
21934 /* Override any gcc2 internal prototype to avoid an error. */
21935 /* We use char because int might match the return type of a gcc2
21936 builtin and then its argument prototype would still apply. */
21937 char $ac_func();
21939 int main() {
21941 /* The GNU C library defines this for functions which it implements
21942 to always fail with ENOSYS. Some functions are actually named
21943 something starting with __ and the normal name is an alias. */
21944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21945 choke me
21946 #else
21947 $ac_func();
21948 #endif
21950 ; return 0; }
21952 if { (eval echo configure:21953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21953 rm -rf conftest*
21954 eval "ac_cv_func_$ac_func=yes"
21955 else
21956 echo "configure: failed program was:" >&5
21957 cat conftest.$ac_ext >&5
21958 rm -rf conftest*
21959 eval "ac_cv_func_$ac_func=no"
21961 rm -f conftest*
21964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21965 echo "$ac_t""yes" 1>&6
21966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21967 cat >> confdefs.h <<EOF
21968 #define $ac_tr_func 1
21971 else
21972 echo "$ac_t""no" 1>&6
21973 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21975 done
21977 for ac_func in __signbitf
21979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21980 echo "configure:21981: checking for $ac_func" >&5
21981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21982 echo $ac_n "(cached) $ac_c" 1>&6
21983 else
21984 cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 /* System header to define __stub macros and hopefully few prototypes,
21988 which can conflict with char $ac_func(); below. */
21989 #include <assert.h>
21990 /* Override any gcc2 internal prototype to avoid an error. */
21991 /* We use char because int might match the return type of a gcc2
21992 builtin and then its argument prototype would still apply. */
21993 char $ac_func();
21995 int main() {
21997 /* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 choke me
22002 #else
22003 $ac_func();
22004 #endif
22006 ; return 0; }
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22009 rm -rf conftest*
22010 eval "ac_cv_func_$ac_func=yes"
22011 else
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22014 rm -rf conftest*
22015 eval "ac_cv_func_$ac_func=no"
22017 rm -f conftest*
22020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22021 echo "$ac_t""yes" 1>&6
22022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023 cat >> confdefs.h <<EOF
22024 #define $ac_tr_func 1
22027 else
22028 echo "$ac_t""no" 1>&6
22029 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22031 done
22034 if test x$ac_cv_func_copysignl = x"yes"; then
22035 for ac_func in __signbitl
22037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22038 echo "configure:22039: checking for $ac_func" >&5
22039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22040 echo $ac_n "(cached) $ac_c" 1>&6
22041 else
22042 cat > conftest.$ac_ext <<EOF
22043 #line 22044 "configure"
22044 #include "confdefs.h"
22045 /* System header to define __stub macros and hopefully few prototypes,
22046 which can conflict with char $ac_func(); below. */
22047 #include <assert.h>
22048 /* Override any gcc2 internal prototype to avoid an error. */
22049 /* We use char because int might match the return type of a gcc2
22050 builtin and then its argument prototype would still apply. */
22051 char $ac_func();
22053 int main() {
22055 /* The GNU C library defines this for functions which it implements
22056 to always fail with ENOSYS. Some functions are actually named
22057 something starting with __ and the normal name is an alias. */
22058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22059 choke me
22060 #else
22061 $ac_func();
22062 #endif
22064 ; return 0; }
22066 if { (eval echo configure:22067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22067 rm -rf conftest*
22068 eval "ac_cv_func_$ac_func=yes"
22069 else
22070 echo "configure: failed program was:" >&5
22071 cat conftest.$ac_ext >&5
22072 rm -rf conftest*
22073 eval "ac_cv_func_$ac_func=no"
22075 rm -f conftest*
22078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22079 echo "$ac_t""yes" 1>&6
22080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22081 cat >> confdefs.h <<EOF
22082 #define $ac_tr_func 1
22085 else
22086 echo "$ac_t""no" 1>&6
22087 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22089 done
22093 if test -n "$LIBMATHOBJS"; then
22094 need_libmath=yes
22099 if test "$need_libmath" = yes; then
22100 GLIBCPP_BUILD_LIBMATH_TRUE=
22101 GLIBCPP_BUILD_LIBMATH_FALSE='#'
22102 else
22103 GLIBCPP_BUILD_LIBMATH_TRUE='#'
22104 GLIBCPP_BUILD_LIBMATH_FALSE=
22108 enable_wchar_t=no
22110 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22111 echo "configure:22112: checking for mbstate_t" >&5
22112 cat > conftest.$ac_ext <<EOF
22113 #line 22114 "configure"
22114 #include "confdefs.h"
22115 #include <wchar.h>
22116 int main() {
22117 mbstate_t teststate;
22118 ; return 0; }
22120 if { (eval echo configure:22121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22121 rm -rf conftest*
22122 have_mbstate_t=yes
22123 else
22124 echo "configure: failed program was:" >&5
22125 cat conftest.$ac_ext >&5
22126 rm -rf conftest*
22127 have_mbstate_t=no
22129 rm -f conftest*
22130 echo "$ac_t""$have_mbstate_t" 1>&6
22131 if test x"$have_mbstate_t" = xyes; then
22132 cat >> confdefs.h <<\EOF
22133 #define HAVE_MBSTATE_T 1
22138 for ac_hdr in wchar.h
22140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22142 echo "configure:22143: checking for $ac_hdr" >&5
22143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22144 echo $ac_n "(cached) $ac_c" 1>&6
22145 else
22146 cat > conftest.$ac_ext <<EOF
22147 #line 22148 "configure"
22148 #include "confdefs.h"
22149 #include <$ac_hdr>
22151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22152 { (eval echo configure:22153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22154 if test -z "$ac_err"; then
22155 rm -rf conftest*
22156 eval "ac_cv_header_$ac_safe=yes"
22157 else
22158 echo "$ac_err" >&5
22159 echo "configure: failed program was:" >&5
22160 cat conftest.$ac_ext >&5
22161 rm -rf conftest*
22162 eval "ac_cv_header_$ac_safe=no"
22164 rm -f conftest*
22166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22167 echo "$ac_t""yes" 1>&6
22168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22169 cat >> confdefs.h <<EOF
22170 #define $ac_tr_hdr 1
22172 ac_has_wchar_h=yes
22173 else
22174 echo "$ac_t""no" 1>&6
22175 ac_has_wchar_h=no
22177 done
22179 for ac_hdr in wctype.h
22181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22183 echo "configure:22184: checking for $ac_hdr" >&5
22184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22185 echo $ac_n "(cached) $ac_c" 1>&6
22186 else
22187 cat > conftest.$ac_ext <<EOF
22188 #line 22189 "configure"
22189 #include "confdefs.h"
22190 #include <$ac_hdr>
22192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22193 { (eval echo configure:22194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22195 if test -z "$ac_err"; then
22196 rm -rf conftest*
22197 eval "ac_cv_header_$ac_safe=yes"
22198 else
22199 echo "$ac_err" >&5
22200 echo "configure: failed program was:" >&5
22201 cat conftest.$ac_ext >&5
22202 rm -rf conftest*
22203 eval "ac_cv_header_$ac_safe=no"
22205 rm -f conftest*
22207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22208 echo "$ac_t""yes" 1>&6
22209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22210 cat >> confdefs.h <<EOF
22211 #define $ac_tr_hdr 1
22213 ac_has_wctype_h=yes
22214 else
22215 echo "$ac_t""no" 1>&6
22216 ac_has_wctype_h=no
22218 done
22221 if test x"$ac_has_wchar_h" = xyes &&
22222 test x"$ac_has_wctype_h" = xyes &&
22223 test x"$enable_c_mbchar" != xno; then
22225 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22226 echo "configure:22227: checking for WCHAR_MIN and WCHAR_MAX" >&5
22227 cat > conftest.$ac_ext <<EOF
22228 #line 22229 "configure"
22229 #include "confdefs.h"
22230 #include <wchar.h>
22231 int main() {
22232 int i = WCHAR_MIN; int j = WCHAR_MAX;
22233 ; return 0; }
22235 if { (eval echo configure:22236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22236 rm -rf conftest*
22237 has_wchar_minmax=yes
22238 else
22239 echo "configure: failed program was:" >&5
22240 cat conftest.$ac_ext >&5
22241 rm -rf conftest*
22242 has_wchar_minmax=no
22244 rm -f conftest*
22245 echo "$ac_t""$has_wchar_minmax" 1>&6
22247 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22248 echo "configure:22249: checking for WEOF" >&5
22249 cat > conftest.$ac_ext <<EOF
22250 #line 22251 "configure"
22251 #include "confdefs.h"
22253 #include <wchar.h>
22254 #include <stddef.h>
22255 int main() {
22256 wint_t i = WEOF;
22257 ; return 0; }
22259 if { (eval echo configure:22260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22260 rm -rf conftest*
22261 has_weof=yes
22262 else
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22265 rm -rf conftest*
22266 has_weof=no
22268 rm -f conftest*
22269 echo "$ac_t""$has_weof" 1>&6
22271 ac_wfuncs=yes
22272 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22275 echo "configure:22276: checking for $ac_func" >&5
22276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22277 echo $ac_n "(cached) $ac_c" 1>&6
22278 else
22279 cat > conftest.$ac_ext <<EOF
22280 #line 22281 "configure"
22281 #include "confdefs.h"
22282 /* System header to define __stub macros and hopefully few prototypes,
22283 which can conflict with char $ac_func(); below. */
22284 #include <assert.h>
22285 /* Override any gcc2 internal prototype to avoid an error. */
22286 /* We use char because int might match the return type of a gcc2
22287 builtin and then its argument prototype would still apply. */
22288 char $ac_func();
22290 int main() {
22292 /* The GNU C library defines this for functions which it implements
22293 to always fail with ENOSYS. Some functions are actually named
22294 something starting with __ and the normal name is an alias. */
22295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22296 choke me
22297 #else
22298 $ac_func();
22299 #endif
22301 ; return 0; }
22303 if { (eval echo configure:22304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22304 rm -rf conftest*
22305 eval "ac_cv_func_$ac_func=yes"
22306 else
22307 echo "configure: failed program was:" >&5
22308 cat conftest.$ac_ext >&5
22309 rm -rf conftest*
22310 eval "ac_cv_func_$ac_func=no"
22312 rm -f conftest*
22315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22316 echo "$ac_t""yes" 1>&6
22317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22318 cat >> confdefs.h <<EOF
22319 #define $ac_tr_func 1
22322 else
22323 echo "$ac_t""no" 1>&6
22325 ac_wfuncs=no
22327 done
22330 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22331 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22332 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22333 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22334 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22335 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22338 echo "configure:22339: checking for $ac_func" >&5
22339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22340 echo $ac_n "(cached) $ac_c" 1>&6
22341 else
22342 cat > conftest.$ac_ext <<EOF
22343 #line 22344 "configure"
22344 #include "confdefs.h"
22345 /* System header to define __stub macros and hopefully few prototypes,
22346 which can conflict with char $ac_func(); below. */
22347 #include <assert.h>
22348 /* Override any gcc2 internal prototype to avoid an error. */
22349 /* We use char because int might match the return type of a gcc2
22350 builtin and then its argument prototype would still apply. */
22351 char $ac_func();
22353 int main() {
22355 /* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359 choke me
22360 #else
22361 $ac_func();
22362 #endif
22364 ; return 0; }
22366 if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22367 rm -rf conftest*
22368 eval "ac_cv_func_$ac_func=yes"
22369 else
22370 echo "configure: failed program was:" >&5
22371 cat conftest.$ac_ext >&5
22372 rm -rf conftest*
22373 eval "ac_cv_func_$ac_func=no"
22375 rm -f conftest*
22378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22379 echo "$ac_t""yes" 1>&6
22380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22381 cat >> confdefs.h <<EOF
22382 #define $ac_tr_func 1
22385 else
22386 echo "$ac_t""no" 1>&6
22388 ac_wfuncs=no
22390 done
22393 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22394 echo "configure:22395: checking for ISO C99 wchar_t support" >&5
22395 if test x"$has_weof" = xyes &&
22396 test x"$has_wchar_minmax" = xyes &&
22397 test x"$ac_wfuncs" = xyes; then
22398 ac_isoC99_wchar_t=yes
22399 else
22400 ac_isoC99_wchar_t=no
22402 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22404 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22405 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22406 echo "configure:22407: checking for iconv.h" >&5
22407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22408 echo $ac_n "(cached) $ac_c" 1>&6
22409 else
22410 cat > conftest.$ac_ext <<EOF
22411 #line 22412 "configure"
22412 #include "confdefs.h"
22413 #include <iconv.h>
22415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22416 { (eval echo configure:22417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22418 if test -z "$ac_err"; then
22419 rm -rf conftest*
22420 eval "ac_cv_header_$ac_safe=yes"
22421 else
22422 echo "$ac_err" >&5
22423 echo "configure: failed program was:" >&5
22424 cat conftest.$ac_ext >&5
22425 rm -rf conftest*
22426 eval "ac_cv_header_$ac_safe=no"
22428 rm -f conftest*
22430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22431 echo "$ac_t""yes" 1>&6
22432 ac_has_iconv_h=yes
22433 else
22434 echo "$ac_t""no" 1>&6
22435 ac_has_iconv_h=no
22438 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22439 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22440 echo "configure:22441: checking for langinfo.h" >&5
22441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22442 echo $ac_n "(cached) $ac_c" 1>&6
22443 else
22444 cat > conftest.$ac_ext <<EOF
22445 #line 22446 "configure"
22446 #include "confdefs.h"
22447 #include <langinfo.h>
22449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22450 { (eval echo configure:22451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22452 if test -z "$ac_err"; then
22453 rm -rf conftest*
22454 eval "ac_cv_header_$ac_safe=yes"
22455 else
22456 echo "$ac_err" >&5
22457 echo "configure: failed program was:" >&5
22458 cat conftest.$ac_ext >&5
22459 rm -rf conftest*
22460 eval "ac_cv_header_$ac_safe=no"
22462 rm -f conftest*
22464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22465 echo "$ac_t""yes" 1>&6
22466 ac_has_langinfo_h=yes
22467 else
22468 echo "$ac_t""no" 1>&6
22469 ac_has_langinfo_h=no
22473 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22474 echo "configure:22475: checking for iconv in -liconv" >&5
22475 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22477 echo $ac_n "(cached) $ac_c" 1>&6
22478 else
22479 ac_save_LIBS="$LIBS"
22480 LIBS="-liconv $LIBS"
22481 cat > conftest.$ac_ext <<EOF
22482 #line 22483 "configure"
22483 #include "confdefs.h"
22484 /* Override any gcc2 internal prototype to avoid an error. */
22485 /* We use char because int might match the return type of a gcc2
22486 builtin and then its argument prototype would still apply. */
22487 char iconv();
22489 int main() {
22490 iconv()
22491 ; return 0; }
22493 if { (eval echo configure:22494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22494 rm -rf conftest*
22495 eval "ac_cv_lib_$ac_lib_var=yes"
22496 else
22497 echo "configure: failed program was:" >&5
22498 cat conftest.$ac_ext >&5
22499 rm -rf conftest*
22500 eval "ac_cv_lib_$ac_lib_var=no"
22502 rm -f conftest*
22503 LIBS="$ac_save_LIBS"
22506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22507 echo "$ac_t""yes" 1>&6
22508 libiconv="-liconv"
22509 else
22510 echo "$ac_t""no" 1>&6
22513 ac_save_LIBS="$LIBS"
22514 LIBS="$LIBS $libiconv"
22516 for ac_func in iconv_open iconv_close iconv nl_langinfo
22518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22519 echo "configure:22520: checking for $ac_func" >&5
22520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22521 echo $ac_n "(cached) $ac_c" 1>&6
22522 else
22523 cat > conftest.$ac_ext <<EOF
22524 #line 22525 "configure"
22525 #include "confdefs.h"
22526 /* System header to define __stub macros and hopefully few prototypes,
22527 which can conflict with char $ac_func(); below. */
22528 #include <assert.h>
22529 /* Override any gcc2 internal prototype to avoid an error. */
22530 /* We use char because int might match the return type of a gcc2
22531 builtin and then its argument prototype would still apply. */
22532 char $ac_func();
22534 int main() {
22536 /* The GNU C library defines this for functions which it implements
22537 to always fail with ENOSYS. Some functions are actually named
22538 something starting with __ and the normal name is an alias. */
22539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22540 choke me
22541 #else
22542 $ac_func();
22543 #endif
22545 ; return 0; }
22547 if { (eval echo configure:22548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22548 rm -rf conftest*
22549 eval "ac_cv_func_$ac_func=yes"
22550 else
22551 echo "configure: failed program was:" >&5
22552 cat conftest.$ac_ext >&5
22553 rm -rf conftest*
22554 eval "ac_cv_func_$ac_func=no"
22556 rm -f conftest*
22559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22560 echo "$ac_t""yes" 1>&6
22561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22562 cat >> confdefs.h <<EOF
22563 #define $ac_tr_func 1
22566 ac_XPG2funcs=yes
22567 else
22568 echo "$ac_t""no" 1>&6
22569 ac_XPG2funcs=no
22571 done
22574 LIBS="$ac_save_LIBS"
22576 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22577 echo "configure:22578: checking for XPG2 wchar_t support" >&5
22578 if test x"$ac_has_iconv_h" = xyes &&
22579 test x"$ac_has_langinfo_h" = xyes &&
22580 test x"$ac_XPG2funcs" = xyes; then
22581 ac_XPG2_wchar_t=yes
22582 else
22583 ac_XPG2_wchar_t=no
22585 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22587 if test x"$ac_isoC99_wchar_t" = xyes &&
22588 test x"$ac_XPG2_wchar_t" = xyes; then
22589 cat >> confdefs.h <<\EOF
22590 #define _GLIBCPP_USE_WCHAR_T 1
22593 enable_wchar_t=yes
22596 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22597 echo "configure:22598: checking for enabled wchar_t specializations" >&5
22598 echo "$ac_t""$enable_wchar_t" 1>&6
22601 if test "$enable_wchar_t" = yes; then
22602 GLIBCPP_TEST_WCHAR_T_TRUE=
22603 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22604 else
22605 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22606 GLIBCPP_TEST_WCHAR_T_FALSE=
22610 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22611 ac_save_CXXFLAGS="$CXXFLAGS"
22612 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22615 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22616 echo "configure:22617: checking for strtold declaration" >&5
22617 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22618 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22619 echo $ac_n "(cached) $ac_c" 1>&6
22620 else
22623 ac_ext=C
22624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22625 ac_cpp='$CXXCPP $CPPFLAGS'
22626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22628 cross_compiling=$ac_cv_prog_cxx_cross
22630 cat > conftest.$ac_ext <<EOF
22631 #line 22632 "configure"
22632 #include "confdefs.h"
22633 #include <stdlib.h>
22634 int main() {
22635 strtold(0, 0);
22636 ; return 0; }
22638 if { (eval echo configure:22639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22639 rm -rf conftest*
22640 glibcpp_cv_func_strtold_use=yes
22641 else
22642 echo "configure: failed program was:" >&5
22643 cat conftest.$ac_ext >&5
22644 rm -rf conftest*
22645 glibcpp_cv_func_strtold_use=no
22647 rm -f conftest*
22648 ac_ext=c
22649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22650 ac_cpp='$CPP $CPPFLAGS'
22651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22653 cross_compiling=$ac_cv_prog_cc_cross
22659 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22660 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22661 for ac_func in strtold
22663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22664 echo "configure:22665: checking for $ac_func" >&5
22665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22666 echo $ac_n "(cached) $ac_c" 1>&6
22667 else
22668 cat > conftest.$ac_ext <<EOF
22669 #line 22670 "configure"
22670 #include "confdefs.h"
22671 /* System header to define __stub macros and hopefully few prototypes,
22672 which can conflict with char $ac_func(); below. */
22673 #include <assert.h>
22674 /* Override any gcc2 internal prototype to avoid an error. */
22675 /* We use char because int might match the return type of a gcc2
22676 builtin and then its argument prototype would still apply. */
22677 char $ac_func();
22679 int main() {
22681 /* The GNU C library defines this for functions which it implements
22682 to always fail with ENOSYS. Some functions are actually named
22683 something starting with __ and the normal name is an alias. */
22684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22685 choke me
22686 #else
22687 $ac_func();
22688 #endif
22690 ; return 0; }
22692 if { (eval echo configure:22693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22693 rm -rf conftest*
22694 eval "ac_cv_func_$ac_func=yes"
22695 else
22696 echo "configure: failed program was:" >&5
22697 cat conftest.$ac_ext >&5
22698 rm -rf conftest*
22699 eval "ac_cv_func_$ac_func=no"
22701 rm -f conftest*
22704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22705 echo "$ac_t""yes" 1>&6
22706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22707 cat >> confdefs.h <<EOF
22708 #define $ac_tr_func 1
22711 else
22712 echo "$ac_t""no" 1>&6
22714 done
22719 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22720 echo "configure:22721: checking for strtof declaration" >&5
22721 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22722 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22723 echo $ac_n "(cached) $ac_c" 1>&6
22724 else
22727 ac_ext=C
22728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22729 ac_cpp='$CXXCPP $CPPFLAGS'
22730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22732 cross_compiling=$ac_cv_prog_cxx_cross
22734 cat > conftest.$ac_ext <<EOF
22735 #line 22736 "configure"
22736 #include "confdefs.h"
22737 #include <stdlib.h>
22738 int main() {
22739 strtof(0, 0);
22740 ; return 0; }
22742 if { (eval echo configure:22743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22743 rm -rf conftest*
22744 glibcpp_cv_func_strtof_use=yes
22745 else
22746 echo "configure: failed program was:" >&5
22747 cat conftest.$ac_ext >&5
22748 rm -rf conftest*
22749 glibcpp_cv_func_strtof_use=no
22751 rm -f conftest*
22752 ac_ext=c
22753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22754 ac_cpp='$CPP $CPPFLAGS'
22755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22757 cross_compiling=$ac_cv_prog_cc_cross
22763 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22764 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22765 for ac_func in strtof
22767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22768 echo "configure:22769: checking for $ac_func" >&5
22769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22770 echo $ac_n "(cached) $ac_c" 1>&6
22771 else
22772 cat > conftest.$ac_ext <<EOF
22773 #line 22774 "configure"
22774 #include "confdefs.h"
22775 /* System header to define __stub macros and hopefully few prototypes,
22776 which can conflict with char $ac_func(); below. */
22777 #include <assert.h>
22778 /* Override any gcc2 internal prototype to avoid an error. */
22779 /* We use char because int might match the return type of a gcc2
22780 builtin and then its argument prototype would still apply. */
22781 char $ac_func();
22783 int main() {
22785 /* The GNU C library defines this for functions which it implements
22786 to always fail with ENOSYS. Some functions are actually named
22787 something starting with __ and the normal name is an alias. */
22788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22789 choke me
22790 #else
22791 $ac_func();
22792 #endif
22794 ; return 0; }
22796 if { (eval echo configure:22797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22797 rm -rf conftest*
22798 eval "ac_cv_func_$ac_func=yes"
22799 else
22800 echo "configure: failed program was:" >&5
22801 cat conftest.$ac_ext >&5
22802 rm -rf conftest*
22803 eval "ac_cv_func_$ac_func=no"
22805 rm -f conftest*
22808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22809 echo "$ac_t""yes" 1>&6
22810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22811 cat >> confdefs.h <<EOF
22812 #define $ac_tr_func 1
22815 else
22816 echo "$ac_t""no" 1>&6
22818 done
22822 for ac_func in drand48
22824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22825 echo "configure:22826: checking for $ac_func" >&5
22826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22827 echo $ac_n "(cached) $ac_c" 1>&6
22828 else
22829 cat > conftest.$ac_ext <<EOF
22830 #line 22831 "configure"
22831 #include "confdefs.h"
22832 /* System header to define __stub macros and hopefully few prototypes,
22833 which can conflict with char $ac_func(); below. */
22834 #include <assert.h>
22835 /* Override any gcc2 internal prototype to avoid an error. */
22836 /* We use char because int might match the return type of a gcc2
22837 builtin and then its argument prototype would still apply. */
22838 char $ac_func();
22840 int main() {
22842 /* The GNU C library defines this for functions which it implements
22843 to always fail with ENOSYS. Some functions are actually named
22844 something starting with __ and the normal name is an alias. */
22845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22846 choke me
22847 #else
22848 $ac_func();
22849 #endif
22851 ; return 0; }
22853 if { (eval echo configure:22854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22854 rm -rf conftest*
22855 eval "ac_cv_func_$ac_func=yes"
22856 else
22857 echo "configure: failed program was:" >&5
22858 cat conftest.$ac_ext >&5
22859 rm -rf conftest*
22860 eval "ac_cv_func_$ac_func=no"
22862 rm -f conftest*
22865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22866 echo "$ac_t""yes" 1>&6
22867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22868 cat >> confdefs.h <<EOF
22869 #define $ac_tr_func 1
22872 else
22873 echo "$ac_t""no" 1>&6
22875 done
22878 CXXFLAGS="$ac_save_CXXFLAGS"
22881 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22882 ac_save_CXXFLAGS="$CXXFLAGS"
22883 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22886 echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22887 echo "configure:22888: checking for isatty declaration" >&5
22888 if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22889 if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22890 echo $ac_n "(cached) $ac_c" 1>&6
22891 else
22894 ac_ext=C
22895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22896 ac_cpp='$CXXCPP $CPPFLAGS'
22897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22899 cross_compiling=$ac_cv_prog_cxx_cross
22901 cat > conftest.$ac_ext <<EOF
22902 #line 22903 "configure"
22903 #include "confdefs.h"
22904 #include <unistd.h>
22905 int main() {
22906 isatty(0);
22907 ; return 0; }
22909 if { (eval echo configure:22910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22910 rm -rf conftest*
22911 glibcpp_cv_func_isatty_use=yes
22912 else
22913 echo "configure: failed program was:" >&5
22914 cat conftest.$ac_ext >&5
22915 rm -rf conftest*
22916 glibcpp_cv_func_isatty_use=no
22918 rm -f conftest*
22919 ac_ext=c
22920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22921 ac_cpp='$CPP $CPPFLAGS'
22922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22924 cross_compiling=$ac_cv_prog_cc_cross
22930 echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22931 if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22932 for ac_func in isatty
22934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22935 echo "configure:22936: checking for $ac_func" >&5
22936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22937 echo $ac_n "(cached) $ac_c" 1>&6
22938 else
22939 cat > conftest.$ac_ext <<EOF
22940 #line 22941 "configure"
22941 #include "confdefs.h"
22942 /* System header to define __stub macros and hopefully few prototypes,
22943 which can conflict with char $ac_func(); below. */
22944 #include <assert.h>
22945 /* Override any gcc2 internal prototype to avoid an error. */
22946 /* We use char because int might match the return type of a gcc2
22947 builtin and then its argument prototype would still apply. */
22948 char $ac_func();
22950 int main() {
22952 /* The GNU C library defines this for functions which it implements
22953 to always fail with ENOSYS. Some functions are actually named
22954 something starting with __ and the normal name is an alias. */
22955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22956 choke me
22957 #else
22958 $ac_func();
22959 #endif
22961 ; return 0; }
22963 if { (eval echo configure:22964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22964 rm -rf conftest*
22965 eval "ac_cv_func_$ac_func=yes"
22966 else
22967 echo "configure: failed program was:" >&5
22968 cat conftest.$ac_ext >&5
22969 rm -rf conftest*
22970 eval "ac_cv_func_$ac_func=no"
22972 rm -f conftest*
22975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22976 echo "$ac_t""yes" 1>&6
22977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22978 cat >> confdefs.h <<EOF
22979 #define $ac_tr_func 1
22982 else
22983 echo "$ac_t""no" 1>&6
22985 done
22990 CXXFLAGS="$ac_save_CXXFLAGS"
22993 # For showmanyc_helper().
22994 for ac_hdr in sys/ioctl.h sys/filio.h
22996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22998 echo "configure:22999: checking for $ac_hdr" >&5
22999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23000 echo $ac_n "(cached) $ac_c" 1>&6
23001 else
23002 cat > conftest.$ac_ext <<EOF
23003 #line 23004 "configure"
23004 #include "confdefs.h"
23005 #include <$ac_hdr>
23007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23008 { (eval echo configure:23009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23010 if test -z "$ac_err"; then
23011 rm -rf conftest*
23012 eval "ac_cv_header_$ac_safe=yes"
23013 else
23014 echo "$ac_err" >&5
23015 echo "configure: failed program was:" >&5
23016 cat conftest.$ac_ext >&5
23017 rm -rf conftest*
23018 eval "ac_cv_header_$ac_safe=no"
23020 rm -f conftest*
23022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23023 echo "$ac_t""yes" 1>&6
23024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23025 cat >> confdefs.h <<EOF
23026 #define $ac_tr_hdr 1
23029 else
23030 echo "$ac_t""no" 1>&6
23032 done
23035 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
23036 echo $ac_n "(cached) $ac_c" 1>&6
23037 else
23039 cat > conftest.$ac_ext <<EOF
23040 #line 23041 "configure"
23041 #include "confdefs.h"
23042 #include <poll.h>
23043 int main() {
23044 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
23045 ; return 0; }
23047 if { (eval echo configure:23048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23048 rm -rf conftest*
23049 glibcpp_cv_POLL=yes
23050 else
23051 echo "configure: failed program was:" >&5
23052 cat conftest.$ac_ext >&5
23053 rm -rf conftest*
23054 glibcpp_cv_POLL=no
23056 rm -f conftest*
23060 if test x$glibcpp_cv_POLL = xyes; then
23061 cat >> confdefs.h <<\EOF
23062 #define HAVE_POLL 1
23068 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
23069 echo $ac_n "(cached) $ac_c" 1>&6
23070 else
23072 cat > conftest.$ac_ext <<EOF
23073 #line 23074 "configure"
23074 #include "confdefs.h"
23075 #include <sys/stat.h>
23076 int main() {
23077 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
23078 ; return 0; }
23080 if { (eval echo configure:23081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23081 rm -rf conftest*
23082 glibcpp_cv_S_ISREG=yes
23083 else
23084 echo "configure: failed program was:" >&5
23085 cat conftest.$ac_ext >&5
23086 rm -rf conftest*
23087 glibcpp_cv_S_ISREG=no
23089 rm -f conftest*
23093 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
23094 echo $ac_n "(cached) $ac_c" 1>&6
23095 else
23097 cat > conftest.$ac_ext <<EOF
23098 #line 23099 "configure"
23099 #include "confdefs.h"
23100 #include <sys/stat.h>
23101 int main() {
23102 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
23103 ; return 0; }
23105 if { (eval echo configure:23106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23106 rm -rf conftest*
23107 glibcpp_cv_S_IFREG=yes
23108 else
23109 echo "configure: failed program was:" >&5
23110 cat conftest.$ac_ext >&5
23111 rm -rf conftest*
23112 glibcpp_cv_S_IFREG=no
23114 rm -f conftest*
23118 if test x$glibcpp_cv_S_ISREG = xyes; then
23119 cat >> confdefs.h <<\EOF
23120 #define HAVE_S_ISREG 1
23123 elif test x$glibcpp_cv_S_IFREG = xyes; then
23124 cat >> confdefs.h <<\EOF
23125 #define HAVE_S_IFREG 1
23132 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23133 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23134 echo "configure:23135: checking for locale.h" >&5
23135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23136 echo $ac_n "(cached) $ac_c" 1>&6
23137 else
23138 cat > conftest.$ac_ext <<EOF
23139 #line 23140 "configure"
23140 #include "confdefs.h"
23141 #include <locale.h>
23143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23144 { (eval echo configure:23145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23146 if test -z "$ac_err"; then
23147 rm -rf conftest*
23148 eval "ac_cv_header_$ac_safe=yes"
23149 else
23150 echo "$ac_err" >&5
23151 echo "configure: failed program was:" >&5
23152 cat conftest.$ac_ext >&5
23153 rm -rf conftest*
23154 eval "ac_cv_header_$ac_safe=no"
23156 rm -f conftest*
23158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23159 echo "$ac_t""yes" 1>&6
23161 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23162 echo "configure:23163: checking for LC_MESSAGES" >&5
23163 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23164 echo $ac_n "(cached) $ac_c" 1>&6
23165 else
23166 cat > conftest.$ac_ext <<EOF
23167 #line 23168 "configure"
23168 #include "confdefs.h"
23169 #include <locale.h>
23170 int main() {
23171 return LC_MESSAGES
23172 ; return 0; }
23174 if { (eval echo configure:23175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23175 rm -rf conftest*
23176 ac_cv_val_LC_MESSAGES=yes
23177 else
23178 echo "configure: failed program was:" >&5
23179 cat conftest.$ac_ext >&5
23180 rm -rf conftest*
23181 ac_cv_val_LC_MESSAGES=no
23183 rm -f conftest*
23186 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23187 if test $ac_cv_val_LC_MESSAGES = yes; then
23188 cat >> confdefs.h <<\EOF
23189 #define HAVE_LC_MESSAGES 1
23194 else
23195 echo "$ac_t""no" 1>&6
23200 cat > conftest.$ac_ext <<EOF
23201 #line 23202 "configure"
23202 #include "confdefs.h"
23204 #include <setjmp.h>
23206 int main() {
23207 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23208 ; return 0; }
23210 if { (eval echo configure:23211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23211 rm -rf conftest*
23212 cat >> confdefs.h <<\EOF
23213 #define HAVE_SIGSETJMP 1
23217 else
23218 echo "configure: failed program was:" >&5
23219 cat conftest.$ac_ext >&5
23221 rm -f conftest*
23223 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
23225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23227 echo "configure:23228: checking for $ac_hdr" >&5
23228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23229 echo $ac_n "(cached) $ac_c" 1>&6
23230 else
23231 cat > conftest.$ac_ext <<EOF
23232 #line 23233 "configure"
23233 #include "confdefs.h"
23234 #include <$ac_hdr>
23236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23237 { (eval echo configure:23238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23239 if test -z "$ac_err"; then
23240 rm -rf conftest*
23241 eval "ac_cv_header_$ac_safe=yes"
23242 else
23243 echo "$ac_err" >&5
23244 echo "configure: failed program was:" >&5
23245 cat conftest.$ac_ext >&5
23246 rm -rf conftest*
23247 eval "ac_cv_header_$ac_safe=no"
23249 rm -f conftest*
23251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23252 echo "$ac_t""yes" 1>&6
23253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23254 cat >> confdefs.h <<EOF
23255 #define $ac_tr_hdr 1
23258 else
23259 echo "$ac_t""no" 1>&6
23261 done
23263 for ac_func in getpagesize
23265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23266 echo "configure:23267: checking for $ac_func" >&5
23267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23268 echo $ac_n "(cached) $ac_c" 1>&6
23269 else
23270 cat > conftest.$ac_ext <<EOF
23271 #line 23272 "configure"
23272 #include "confdefs.h"
23273 /* System header to define __stub macros and hopefully few prototypes,
23274 which can conflict with char $ac_func(); below. */
23275 #include <assert.h>
23276 /* Override any gcc2 internal prototype to avoid an error. */
23277 /* We use char because int might match the return type of a gcc2
23278 builtin and then its argument prototype would still apply. */
23279 char $ac_func();
23281 int main() {
23283 /* The GNU C library defines this for functions which it implements
23284 to always fail with ENOSYS. Some functions are actually named
23285 something starting with __ and the normal name is an alias. */
23286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23287 choke me
23288 #else
23289 $ac_func();
23290 #endif
23292 ; return 0; }
23294 if { (eval echo configure:23295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23295 rm -rf conftest*
23296 eval "ac_cv_func_$ac_func=yes"
23297 else
23298 echo "configure: failed program was:" >&5
23299 cat conftest.$ac_ext >&5
23300 rm -rf conftest*
23301 eval "ac_cv_func_$ac_func=no"
23303 rm -f conftest*
23306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23307 echo "$ac_t""yes" 1>&6
23308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23309 cat >> confdefs.h <<EOF
23310 #define $ac_tr_func 1
23313 else
23314 echo "$ac_t""no" 1>&6
23316 done
23318 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23319 echo "configure:23320: checking for working mmap" >&5
23320 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23321 echo $ac_n "(cached) $ac_c" 1>&6
23322 else
23323 if test "$cross_compiling" = yes; then
23324 ac_cv_func_mmap_fixed_mapped=no
23325 else
23326 cat > conftest.$ac_ext <<EOF
23327 #line 23328 "configure"
23328 #include "confdefs.h"
23330 /* Thanks to Mike Haertel and Jim Avera for this test.
23331 Here is a matrix of mmap possibilities:
23332 mmap private not fixed
23333 mmap private fixed at somewhere currently unmapped
23334 mmap private fixed at somewhere already mapped
23335 mmap shared not fixed
23336 mmap shared fixed at somewhere currently unmapped
23337 mmap shared fixed at somewhere already mapped
23338 For private mappings, we should verify that changes cannot be read()
23339 back from the file, nor mmap's back from the file at a different
23340 address. (There have been systems where private was not correctly
23341 implemented like the infamous i386 svr4.0, and systems where the
23342 VM page cache was not coherent with the filesystem buffer cache
23343 like early versions of FreeBSD and possibly contemporary NetBSD.)
23344 For shared mappings, we should conversely verify that changes get
23345 propogated back to all the places they're supposed to be.
23347 Grep wants private fixed already mapped.
23348 The main things grep needs to know about mmap are:
23349 * does it exist and is it safe to write into the mmap'd area
23350 * how to use it (BSD variants) */
23351 #include <sys/types.h>
23352 #include <fcntl.h>
23353 #include <sys/mman.h>
23355 #if HAVE_SYS_TYPES_H
23356 # include <sys/types.h>
23357 #endif
23359 #if HAVE_STDLIB_H
23360 # include <stdlib.h>
23361 #endif
23363 #if HAVE_SYS_STAT_H
23364 # include <sys/stat.h>
23365 #endif
23367 #if HAVE_UNISTD_H
23368 # include <unistd.h>
23369 #endif
23371 /* This mess was copied from the GNU getpagesize.h. */
23372 #ifndef HAVE_GETPAGESIZE
23374 /* Assume that all systems that can run configure have sys/param.h. */
23375 # ifndef HAVE_SYS_PARAM_H
23376 # define HAVE_SYS_PARAM_H 1
23377 # endif
23379 # ifdef _SC_PAGESIZE
23380 # define getpagesize() sysconf(_SC_PAGESIZE)
23381 # else /* no _SC_PAGESIZE */
23382 # ifdef HAVE_SYS_PARAM_H
23383 # include <sys/param.h>
23384 # ifdef EXEC_PAGESIZE
23385 # define getpagesize() EXEC_PAGESIZE
23386 # else /* no EXEC_PAGESIZE */
23387 # ifdef NBPG
23388 # define getpagesize() NBPG * CLSIZE
23389 # ifndef CLSIZE
23390 # define CLSIZE 1
23391 # endif /* no CLSIZE */
23392 # else /* no NBPG */
23393 # ifdef NBPC
23394 # define getpagesize() NBPC
23395 # else /* no NBPC */
23396 # ifdef PAGESIZE
23397 # define getpagesize() PAGESIZE
23398 # endif /* PAGESIZE */
23399 # endif /* no NBPC */
23400 # endif /* no NBPG */
23401 # endif /* no EXEC_PAGESIZE */
23402 # else /* no HAVE_SYS_PARAM_H */
23403 # define getpagesize() 8192 /* punt totally */
23404 # endif /* no HAVE_SYS_PARAM_H */
23405 # endif /* no _SC_PAGESIZE */
23407 #endif /* no HAVE_GETPAGESIZE */
23409 #ifdef __cplusplus
23410 extern "C" { void *malloc(unsigned); }
23411 #else
23412 char *malloc();
23413 #endif
23416 main()
23418 char *data, *data2, *data3;
23419 int i, pagesize;
23420 int fd;
23422 pagesize = getpagesize();
23425 * First, make a file with some known garbage in it.
23427 data = malloc(pagesize);
23428 if (!data)
23429 exit(1);
23430 for (i = 0; i < pagesize; ++i)
23431 *(data + i) = rand();
23432 umask(0);
23433 fd = creat("conftestmmap", 0600);
23434 if (fd < 0)
23435 exit(1);
23436 if (write(fd, data, pagesize) != pagesize)
23437 exit(1);
23438 close(fd);
23441 * Next, try to mmap the file at a fixed address which
23442 * already has something else allocated at it. If we can,
23443 * also make sure that we see the same garbage.
23445 fd = open("conftestmmap", O_RDWR);
23446 if (fd < 0)
23447 exit(1);
23448 data2 = malloc(2 * pagesize);
23449 if (!data2)
23450 exit(1);
23451 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23452 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23453 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23454 exit(1);
23455 for (i = 0; i < pagesize; ++i)
23456 if (*(data + i) != *(data2 + i))
23457 exit(1);
23460 * Finally, make sure that changes to the mapped area
23461 * do not percolate back to the file as seen by read().
23462 * (This is a bug on some variants of i386 svr4.0.)
23464 for (i = 0; i < pagesize; ++i)
23465 *(data2 + i) = *(data2 + i) + 1;
23466 data3 = malloc(pagesize);
23467 if (!data3)
23468 exit(1);
23469 if (read(fd, data3, pagesize) != pagesize)
23470 exit(1);
23471 for (i = 0; i < pagesize; ++i)
23472 if (*(data + i) != *(data3 + i))
23473 exit(1);
23474 close(fd);
23475 unlink("conftestmmap");
23476 exit(0);
23480 if { (eval echo configure:23481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23481 then
23482 ac_cv_func_mmap_fixed_mapped=yes
23483 else
23484 echo "configure: failed program was:" >&5
23485 cat conftest.$ac_ext >&5
23486 rm -fr conftest*
23487 ac_cv_func_mmap_fixed_mapped=no
23489 rm -fr conftest*
23494 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23496 cat >> confdefs.h <<\EOF
23497 #define HAVE_MMAP 1
23505 # This depends on GLIBCPP_CHECK_LINKER_FEATURES, but without it assumes no.
23506 # Check whether --enable-symvers or --disable-symvers was given.
23507 if test "${enable_symvers+set}" = set; then
23508 enableval="$enable_symvers"
23509 case "$enableval" in
23510 yes) enable_symvers=yes ;;
23511 no) enable_symvers=no ;;
23512 # other names here, just as sanity checks
23513 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23514 gnu) enable_symvers=$enableval ;;
23515 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23516 esac
23517 else
23518 enable_symvers=yes
23521 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23522 # don't know enough about $LD to do tricks...
23523 if test x$enable_shared = xno ||
23524 test "x$LD" = x ||
23525 test x$glibcpp_gnu_ld_version = x; then
23526 enable_symvers=no
23529 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23530 if test $enable_symvers != no; then
23531 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23532 echo "configure:23533: checking for shared libgcc" >&5
23533 ac_save_CFLAGS="$CFLAGS"
23534 CFLAGS=' -lgcc_s'
23535 cat > conftest.$ac_ext <<EOF
23536 #line 23537 "configure"
23537 #include "confdefs.h"
23539 int main() {
23540 return 0
23541 ; return 0; }
23543 if { (eval echo configure:23544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23544 rm -rf conftest*
23545 glibcpp_shared_libgcc=yes
23546 else
23547 echo "configure: failed program was:" >&5
23548 cat conftest.$ac_ext >&5
23549 rm -rf conftest*
23550 glibcpp_shared_libgcc=no
23552 rm -f conftest*
23553 CFLAGS="$ac_save_CFLAGS"
23554 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23557 # For GNU ld, we need at least this version. It's 2.12 in the same format
23558 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23559 glibcpp_min_gnu_ld_version=21200
23561 # Check to see if unspecified "yes" value can win, given results
23562 # above.
23563 if test $enable_symvers = yes ; then
23564 if test $with_gnu_ld = yes &&
23565 test $glibcpp_shared_libgcc = yes ;
23566 then
23567 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23568 enable_symvers=gnu
23569 else
23570 ac_test_CFLAGS="${CFLAGS+set}"
23571 ac_save_CFLAGS="$CFLAGS"
23572 CFLAGS='-shared -Wl,--version-script,conftest.map'
23573 enable_symvers=no
23575 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23577 cat > conftest.$ac_ext <<EOF
23578 #line 23579 "configure"
23579 #include "confdefs.h"
23580 int foo;
23581 int main() {
23583 ; return 0; }
23585 if { (eval echo configure:23586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23586 rm -rf conftest*
23587 enable_symvers=gnu
23588 else
23589 echo "configure: failed program was:" >&5
23590 cat conftest.$ac_ext >&5
23592 rm -f conftest*
23593 if test "$ac_test_CFLAGS" = set; then
23594 CFLAGS="$ac_save_CFLAGS"
23595 else
23596 # this is the suspicious part
23597 CFLAGS=''
23599 rm -f conftest.map
23601 else
23602 # just fail for now
23603 enable_symvers=no
23607 case $enable_symvers in
23609 SYMVER_MAP=config/linker-map.dummy
23611 gnu)
23612 SYMVER_MAP=config/linker-map.gnu
23613 cat >> confdefs.h <<\EOF
23614 #define _GLIBCPP_SYMVER 1
23618 esac
23623 if test $enable_symvers != no; then
23624 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23625 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23626 else
23627 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23628 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23630 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23631 echo "configure:23632: checking versioning on shared library symbols" >&5
23632 echo "$ac_t""$enable_symvers" 1>&6
23635 # This depends on GLIBCPP_ENABLE_SYMVERS and GLIBCPP_IS_CROSS_COMPILING.
23637 if test x"$GLIBCPP_IS_CROSS_COMPILING" = xfalse; then
23638 # Do checks for memory limit functions.
23640 setrlimit_have_headers=yes
23641 for ac_hdr in unistd.h sys/time.h sys/resource.h
23643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23645 echo "configure:23646: checking for $ac_hdr" >&5
23646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23647 echo $ac_n "(cached) $ac_c" 1>&6
23648 else
23649 cat > conftest.$ac_ext <<EOF
23650 #line 23651 "configure"
23651 #include "confdefs.h"
23652 #include <$ac_hdr>
23654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23655 { (eval echo configure:23656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23657 if test -z "$ac_err"; then
23658 rm -rf conftest*
23659 eval "ac_cv_header_$ac_safe=yes"
23660 else
23661 echo "$ac_err" >&5
23662 echo "configure: failed program was:" >&5
23663 cat conftest.$ac_ext >&5
23664 rm -rf conftest*
23665 eval "ac_cv_header_$ac_safe=no"
23667 rm -f conftest*
23669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23670 echo "$ac_t""yes" 1>&6
23671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23672 cat >> confdefs.h <<EOF
23673 #define $ac_tr_hdr 1
23676 else
23677 echo "$ac_t""no" 1>&6
23678 setrlimit_have_headers=no
23680 done
23682 # If don't have the headers, then we can't run the tests now, and we
23683 # won't be seeing any of these during testsuite compilation.
23684 if test $setrlimit_have_headers = yes; then
23685 # Can't do these in a loop, else the resulting syntax is wrong.
23687 cat > conftest.$ac_ext <<EOF
23688 #line 23689 "configure"
23689 #include "confdefs.h"
23690 #include <unistd.h>
23691 #include <sys/time.h>
23692 #include <sys/resource.h>
23694 int main() {
23695 int f = RLIMIT_DATA ;
23696 ; return 0; }
23698 if { (eval echo configure:23699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23699 rm -rf conftest*
23700 glibcpp_mresult=1
23701 else
23702 echo "configure: failed program was:" >&5
23703 cat conftest.$ac_ext >&5
23704 rm -rf conftest*
23705 glibcpp_mresult=0
23707 rm -f conftest*
23708 cat >> confdefs.h <<EOF
23709 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23714 cat > conftest.$ac_ext <<EOF
23715 #line 23716 "configure"
23716 #include "confdefs.h"
23717 #include <unistd.h>
23718 #include <sys/time.h>
23719 #include <sys/resource.h>
23721 int main() {
23722 int f = RLIMIT_RSS ;
23723 ; return 0; }
23725 if { (eval echo configure:23726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23726 rm -rf conftest*
23727 glibcpp_mresult=1
23728 else
23729 echo "configure: failed program was:" >&5
23730 cat conftest.$ac_ext >&5
23731 rm -rf conftest*
23732 glibcpp_mresult=0
23734 rm -f conftest*
23735 cat >> confdefs.h <<EOF
23736 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23741 cat > conftest.$ac_ext <<EOF
23742 #line 23743 "configure"
23743 #include "confdefs.h"
23744 #include <unistd.h>
23745 #include <sys/time.h>
23746 #include <sys/resource.h>
23748 int main() {
23749 int f = RLIMIT_VMEM ;
23750 ; return 0; }
23752 if { (eval echo configure:23753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23753 rm -rf conftest*
23754 glibcpp_mresult=1
23755 else
23756 echo "configure: failed program was:" >&5
23757 cat conftest.$ac_ext >&5
23758 rm -rf conftest*
23759 glibcpp_mresult=0
23761 rm -f conftest*
23762 cat >> confdefs.h <<EOF
23763 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23768 cat > conftest.$ac_ext <<EOF
23769 #line 23770 "configure"
23770 #include "confdefs.h"
23771 #include <unistd.h>
23772 #include <sys/time.h>
23773 #include <sys/resource.h>
23775 int main() {
23776 int f = RLIMIT_AS ;
23777 ; return 0; }
23779 if { (eval echo configure:23780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23780 rm -rf conftest*
23781 glibcpp_mresult=1
23782 else
23783 echo "configure: failed program was:" >&5
23784 cat conftest.$ac_ext >&5
23785 rm -rf conftest*
23786 glibcpp_mresult=0
23788 rm -f conftest*
23789 cat >> confdefs.h <<EOF
23790 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23795 # Check for rlimit, setrlimit.
23796 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23797 echo $ac_n "(cached) $ac_c" 1>&6
23798 else
23800 cat > conftest.$ac_ext <<EOF
23801 #line 23802 "configure"
23802 #include "confdefs.h"
23803 #include <unistd.h>
23804 #include <sys/time.h>
23805 #include <sys/resource.h>
23807 int main() {
23808 struct rlimit r; setrlimit(0, &r);
23809 ; return 0; }
23811 if { (eval echo configure:23812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23812 rm -rf conftest*
23813 ac_setrlimit=yes
23814 else
23815 echo "configure: failed program was:" >&5
23816 cat conftest.$ac_ext >&5
23817 rm -rf conftest*
23818 ac_setrlimit=no
23820 rm -f conftest*
23826 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23827 echo "configure:23828: checking for testsuite memory limit support" >&5
23828 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23829 ac_mem_limits=yes
23830 cat >> confdefs.h <<\EOF
23831 #define _GLIBCPP_MEM_LIMITS 1
23834 else
23835 ac_mem_limits=no
23837 echo "$ac_t""$ac_mem_limits" 1>&6
23840 # Look for setenv, so that extended locale tests can be performed.
23842 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23843 echo "configure:23844: checking for setenv declaration" >&5
23844 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23845 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23846 echo $ac_n "(cached) $ac_c" 1>&6
23847 else
23850 ac_ext=C
23851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23852 ac_cpp='$CXXCPP $CPPFLAGS'
23853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23855 cross_compiling=$ac_cv_prog_cxx_cross
23857 cat > conftest.$ac_ext <<EOF
23858 #line 23859 "configure"
23859 #include "confdefs.h"
23860 #include <stdlib.h>
23861 int main() {
23862 setenv(0, 0, 0);
23863 ; return 0; }
23865 if { (eval echo configure:23866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23866 rm -rf conftest*
23867 glibcpp_cv_func_setenv_use=yes
23868 else
23869 echo "configure: failed program was:" >&5
23870 cat conftest.$ac_ext >&5
23871 rm -rf conftest*
23872 glibcpp_cv_func_setenv_use=no
23874 rm -f conftest*
23875 ac_ext=c
23876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23877 ac_cpp='$CPP $CPPFLAGS'
23878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23880 cross_compiling=$ac_cv_prog_cc_cross
23886 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23887 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23888 for ac_func in setenv
23890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23891 echo "configure:23892: checking for $ac_func" >&5
23892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23893 echo $ac_n "(cached) $ac_c" 1>&6
23894 else
23895 cat > conftest.$ac_ext <<EOF
23896 #line 23897 "configure"
23897 #include "confdefs.h"
23898 /* System header to define __stub macros and hopefully few prototypes,
23899 which can conflict with char $ac_func(); below. */
23900 #include <assert.h>
23901 /* Override any gcc2 internal prototype to avoid an error. */
23902 /* We use char because int might match the return type of a gcc2
23903 builtin and then its argument prototype would still apply. */
23904 char $ac_func();
23906 int main() {
23908 /* The GNU C library defines this for functions which it implements
23909 to always fail with ENOSYS. Some functions are actually named
23910 something starting with __ and the normal name is an alias. */
23911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23912 choke me
23913 #else
23914 $ac_func();
23915 #endif
23917 ; return 0; }
23919 if { (eval echo configure:23920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23920 rm -rf conftest*
23921 eval "ac_cv_func_$ac_func=yes"
23922 else
23923 echo "configure: failed program was:" >&5
23924 cat conftest.$ac_ext >&5
23925 rm -rf conftest*
23926 eval "ac_cv_func_$ac_func=no"
23928 rm -f conftest*
23931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23932 echo "$ac_t""yes" 1>&6
23933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23934 cat >> confdefs.h <<EOF
23935 #define $ac_tr_func 1
23938 else
23939 echo "$ac_t""no" 1>&6
23941 done
23947 # Export file names for ABI checking.
23948 baseline_dir="${glibcpp_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23951 # Determine if checking the ABI is desirable.
23952 # Only build this as native, since automake does not understand
23953 # CXX_FOR_BUILD.
23954 if test x"$GLIBCPP_IS_CROSS_COMPILING" = xtrue || test x$enable_symvers = xno; then
23955 enable_abi_check=no
23956 else
23957 case "$host" in
23958 *-*-cygwin*)
23959 enable_abi_check=no ;;
23961 enable_abi_check=yes ;;
23962 esac
23966 if test "$enable_abi_check" = yes; then
23967 GLIBCPP_TEST_ABI_TRUE=
23968 GLIBCPP_TEST_ABI_FALSE='#'
23969 else
23970 GLIBCPP_TEST_ABI_TRUE='#'
23971 GLIBCPP_TEST_ABI_FALSE=
23975 # Propagate the target-specific source directories through the build chain.
23976 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23977 # uses it, and it only gets used in this file.)
23978 OS_INC_SRCDIR=config/${os_include_dir}
23979 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23983 # Set up cross-compile flags
23986 if test "$CANADIAN" = yes; then
23987 CANADIAN_TRUE=
23988 CANADIAN_FALSE='#'
23989 else
23990 CANADIAN_TRUE='#'
23991 CANADIAN_FALSE=
23994 cat > confcache <<\EOF
23995 # This file is a shell script that caches the results of configure
23996 # tests run on this system so they can be shared between configure
23997 # scripts and configure runs. It is not useful on other systems.
23998 # If it contains results you don't want to keep, you may remove or edit it.
24000 # By default, configure uses ./config.cache as the cache file,
24001 # creating it if it does not exist already. You can give configure
24002 # the --cache-file=FILE option to use a different cache file; that is
24003 # what configure does when it calls configure scripts in
24004 # subdirectories, so they share the cache.
24005 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24006 # config.status only pays attention to the cache file if you give it the
24007 # --recheck option to rerun configure.
24010 # The following way of writing the cache mishandles newlines in values,
24011 # but we know of no workaround that is simple, portable, and efficient.
24012 # So, don't put newlines in cache variables' values.
24013 # Ultrix sh set writes to stderr and can't be redirected directly,
24014 # and sets the high bit in the cache file unless we assign to the vars.
24015 (set) 2>&1 |
24016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24017 *ac_space=\ *)
24018 # `set' does not quote correctly, so add quotes (double-quote substitution
24019 # turns \\\\ into \\, and sed turns \\ into \).
24020 sed -n \
24021 -e "s/'/'\\\\''/g" \
24022 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24025 # `set' quotes correctly as required by POSIX, so do not add quotes.
24026 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24028 esac >> confcache
24029 if cmp -s $cache_file confcache; then
24031 else
24032 if test -w $cache_file; then
24033 echo "updating cache $cache_file"
24034 cat confcache > $cache_file
24035 else
24036 echo "not updating unwritable cache $cache_file"
24039 rm -f confcache
24042 if test "${multilib}" = "yes"; then
24043 multilib_arg="--enable-multilib"
24044 else
24045 multilib_arg=
24048 # Export all the install information
24050 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
24051 # exported correctly in GLIBCPP_CONFIGURE.
24052 glibcpp_toolexecdir=no
24053 glibcpp_toolexeclibdir=no
24054 glibcpp_prefixdir=${prefix}
24056 # Process the option --with-gxx-include-dir=<path to include-files directory>
24057 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
24058 echo "configure:24059: checking for --with-gxx-include-dir" >&5
24059 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
24060 if test "${with_gxx_include_dir+set}" = set; then
24061 withval="$with_gxx_include_dir"
24062 case "${withval}" in
24063 yes)
24064 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
24065 gxx_include_dir=no
24068 gxx_include_dir=no
24071 gxx_include_dir=${withval}
24073 esac
24074 else
24075 gxx_include_dir=no
24078 echo "$ac_t""$gxx_include_dir" 1>&6
24080 # Process the option "--enable-version-specific-runtime-libs"
24081 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
24082 echo "configure:24083: checking for --enable-version-specific-runtime-libs" >&5
24083 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24084 if test "${enable_version_specific_runtime_libs+set}" = set; then
24085 enableval="$enable_version_specific_runtime_libs"
24086 case "$enableval" in
24087 yes) version_specific_libs=yes ;;
24088 no) version_specific_libs=no ;;
24089 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
24090 esac
24091 else
24092 version_specific_libs=no
24094 # Option set, now we can test it.
24095 echo "$ac_t""$version_specific_libs" 1>&6
24097 # Default case for install directory for include files.
24098 if test $version_specific_libs = no && test $gxx_include_dir = no; then
24099 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
24102 # Version-specific runtime libs processing.
24103 if test $version_specific_libs = yes; then
24104 # Need the gcc compiler version to know where to install libraries
24105 # and header files if --enable-version-specific-runtime-libs option
24106 # is selected.
24107 if test x"$gxx_include_dir" = x"no"; then
24108 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
24110 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24111 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
24114 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
24115 # Install a library built with a cross compiler in tooldir, not libdir.
24116 if test x"$glibcpp_toolexecdir" = x"no"; then
24117 if test -n "$with_cross_host" &&
24118 test x"$with_cross_host" != x"no"; then
24119 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
24120 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
24121 else
24122 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24123 glibcpp_toolexeclibdir='$(libdir)'
24125 glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
24128 echo $ac_n "checking for install location""... $ac_c" 1>&6
24129 echo "configure:24130: checking for install location" >&5
24130 echo "$ac_t""$gxx_include_dir" 1>&6
24138 # Export all the include and flag information to makefiles.
24140 # Root level of the build directory include sources.
24141 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24143 # Passed down for canadian crosses.
24144 if test x"$CANADIAN" = xyes; then
24145 TOPLEVEL_INCLUDES='-I$(includedir)'
24148 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24150 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24152 if test x"$need_libio" = xyes; then
24153 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24157 # Now, export this to all the little Makefiles....
24164 # Optimization flags that are probably a good idea for thrill-seekers. Just
24165 # uncomment the lines below and make, everything else is ready to go...
24166 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24167 OPTIMIZE_CXXFLAGS=
24170 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24174 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24175 grep "enable shared" > /dev/null; then
24176 LIBSUPCXX_PICFLAGS=-prefer-pic
24177 else
24178 LIBSUPCXX_PICFLAGS=
24182 # Generate the various Makefiles, include files, and scripts.
24183 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24184 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
24185 # will end up installed in the correct place. To work around this not being
24186 # passed down from config-ml.in -> top_srcdir/Makefile.am ->
24187 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24188 trap '' 1 2 15
24189 cat > confcache <<\EOF
24190 # This file is a shell script that caches the results of configure
24191 # tests run on this system so they can be shared between configure
24192 # scripts and configure runs. It is not useful on other systems.
24193 # If it contains results you don't want to keep, you may remove or edit it.
24195 # By default, configure uses ./config.cache as the cache file,
24196 # creating it if it does not exist already. You can give configure
24197 # the --cache-file=FILE option to use a different cache file; that is
24198 # what configure does when it calls configure scripts in
24199 # subdirectories, so they share the cache.
24200 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24201 # config.status only pays attention to the cache file if you give it the
24202 # --recheck option to rerun configure.
24205 # The following way of writing the cache mishandles newlines in values,
24206 # but we know of no workaround that is simple, portable, and efficient.
24207 # So, don't put newlines in cache variables' values.
24208 # Ultrix sh set writes to stderr and can't be redirected directly,
24209 # and sets the high bit in the cache file unless we assign to the vars.
24210 (set) 2>&1 |
24211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24212 *ac_space=\ *)
24213 # `set' does not quote correctly, so add quotes (double-quote substitution
24214 # turns \\\\ into \\, and sed turns \\ into \).
24215 sed -n \
24216 -e "s/'/'\\\\''/g" \
24217 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24220 # `set' quotes correctly as required by POSIX, so do not add quotes.
24221 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24223 esac >> confcache
24224 if cmp -s $cache_file confcache; then
24226 else
24227 if test -w $cache_file; then
24228 echo "updating cache $cache_file"
24229 cat confcache > $cache_file
24230 else
24231 echo "not updating unwritable cache $cache_file"
24234 rm -f confcache
24236 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24239 # Let make expand exec_prefix.
24240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24242 # Any assignment to VPATH causes Sun make to only execute
24243 # the first set of double-colon rules, so remove it if not needed.
24244 # If there is a colon in the path, we need to keep it.
24245 if test "x$srcdir" = x.; then
24246 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24249 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24251 DEFS=-DHAVE_CONFIG_H
24253 # Without the "./", some shells look in PATH for config.status.
24254 : ${CONFIG_STATUS=./config.status}
24256 echo creating $CONFIG_STATUS
24257 rm -f $CONFIG_STATUS
24258 cat > $CONFIG_STATUS <<EOF
24259 #! /bin/sh
24260 # Generated automatically by configure.
24261 # Run this file to recreate the current configuration.
24262 # This directory was configured as follows,
24263 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24265 # $0 $ac_configure_args
24267 # Compiler output produced by configure, useful for debugging
24268 # configure, is in ./config.log if it exists.
24270 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24271 for ac_option
24273 case "\$ac_option" in
24274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24275 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24276 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24277 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24278 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24279 exit 0 ;;
24280 -help | --help | --hel | --he | --h)
24281 echo "\$ac_cs_usage"; exit 0 ;;
24282 *) echo "\$ac_cs_usage"; exit 1 ;;
24283 esac
24284 done
24286 ac_given_srcdir=$srcdir
24287 ac_given_INSTALL="$INSTALL"
24289 trap 'rm -fr `echo "Makefile \
24290 include/Makefile src/Makefile \
24291 libmath/Makefile libio/Makefile libsupc++/Makefile \
24292 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24294 cat >> $CONFIG_STATUS <<EOF
24296 # Protect against being on the right side of a sed subst in config.status.
24297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24298 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24299 $ac_vpsub
24300 $extrasub
24301 s%@SHELL@%$SHELL%g
24302 s%@CFLAGS@%$CFLAGS%g
24303 s%@CPPFLAGS@%$CPPFLAGS%g
24304 s%@CXXFLAGS@%$CXXFLAGS%g
24305 s%@FFLAGS@%$FFLAGS%g
24306 s%@DEFS@%$DEFS%g
24307 s%@LDFLAGS@%$LDFLAGS%g
24308 s%@LIBS@%$LIBS%g
24309 s%@exec_prefix@%$exec_prefix%g
24310 s%@prefix@%$prefix%g
24311 s%@program_transform_name@%$program_transform_name%g
24312 s%@bindir@%$bindir%g
24313 s%@sbindir@%$sbindir%g
24314 s%@libexecdir@%$libexecdir%g
24315 s%@datadir@%$datadir%g
24316 s%@sysconfdir@%$sysconfdir%g
24317 s%@sharedstatedir@%$sharedstatedir%g
24318 s%@localstatedir@%$localstatedir%g
24319 s%@libdir@%$libdir%g
24320 s%@includedir@%$includedir%g
24321 s%@oldincludedir@%$oldincludedir%g
24322 s%@infodir@%$infodir%g
24323 s%@mandir@%$mandir%g
24324 s%@PACKAGE@%$PACKAGE%g
24325 s%@libtool_VERSION@%$libtool_VERSION%g
24326 s%@toplevel_srcdir@%$toplevel_srcdir%g
24327 s%@host@%$host%g
24328 s%@host_alias@%$host_alias%g
24329 s%@host_cpu@%$host_cpu%g
24330 s%@host_vendor@%$host_vendor%g
24331 s%@host_os@%$host_os%g
24332 s%@target@%$target%g
24333 s%@target_alias@%$target_alias%g
24334 s%@target_cpu@%$target_cpu%g
24335 s%@target_vendor@%$target_vendor%g
24336 s%@target_os@%$target_os%g
24337 s%@build@%$build%g
24338 s%@build_alias@%$build_alias%g
24339 s%@build_cpu@%$build_cpu%g
24340 s%@build_vendor@%$build_vendor%g
24341 s%@build_os@%$build_os%g
24342 s%@glibcpp_builddir@%$glibcpp_builddir%g
24343 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24344 s%@AWK@%$AWK%g
24345 s%@LN_S@%$LN_S%g
24346 s%@glibcpp_basedir@%$glibcpp_basedir%g
24347 s%@CC@%$CC%g
24348 s%@glibcpp_CXX@%$glibcpp_CXX%g
24349 s%@AS@%$AS%g
24350 s%@AR@%$AR%g
24351 s%@RANLIB@%$RANLIB%g
24352 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24353 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24354 s%@INSTALL_DATA@%$INSTALL_DATA%g
24355 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24356 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24357 s%@MAINT@%$MAINT%g
24358 s%@EXEEXT@%$EXEEXT%g
24359 s%@VERSION@%$VERSION%g
24360 s%@ACLOCAL@%$ACLOCAL%g
24361 s%@AUTOCONF@%$AUTOCONF%g
24362 s%@AUTOMAKE@%$AUTOMAKE%g
24363 s%@AUTOHEADER@%$AUTOHEADER%g
24364 s%@MAKEINFO@%$MAKEINFO%g
24365 s%@SET_MAKE@%$SET_MAKE%g
24366 s%@OBJEXT@%$OBJEXT%g
24367 s%@STRIP@%$STRIP%g
24368 s%@LIBTOOL@%$LIBTOOL%g
24369 s%@CXXCPP@%$CXXCPP%g
24370 s%@enable_shared@%$enable_shared%g
24371 s%@enable_static@%$enable_static%g
24372 s%@ifGNUmake@%$ifGNUmake%g
24373 s%@CPP@%$CPP%g
24374 s%@CSTDIO_H@%$CSTDIO_H%g
24375 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24376 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24377 s%@CCODECVT_C@%$CCODECVT_C%g
24378 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24379 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24380 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24381 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24382 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24383 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24384 s%@libio_la@%$libio_la%g
24385 s%@check_msgfmt@%$check_msgfmt%g
24386 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24387 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24388 s%@glibcpp_localedir@%$glibcpp_localedir%g
24389 s%@USE_NLS@%$USE_NLS%g
24390 s%@CLOCALE_H@%$CLOCALE_H%g
24391 s%@CCODECVT_H@%$CCODECVT_H%g
24392 s%@CMESSAGES_H@%$CMESSAGES_H%g
24393 s%@CCODECVT_CC@%$CCODECVT_CC%g
24394 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24395 s%@CCTYPE_CC@%$CCTYPE_CC%g
24396 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24397 s%@CMONEY_CC@%$CMONEY_CC%g
24398 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24399 s%@CTIME_H@%$CTIME_H%g
24400 s%@CTIME_CC@%$CTIME_CC%g
24401 s%@CLOCALE_CC@%$CLOCALE_CC%g
24402 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24403 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24404 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24405 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24406 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24407 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24408 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24409 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24410 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24411 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24412 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24413 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24414 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24415 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24416 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24417 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24418 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24419 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24420 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24421 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24422 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24423 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24424 s%@WERROR@%$WERROR%g
24425 s%@SYMVER_MAP@%$SYMVER_MAP%g
24426 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24427 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24428 s%@baseline_dir@%$baseline_dir%g
24429 s%@GLIBCPP_TEST_ABI_TRUE@%$GLIBCPP_TEST_ABI_TRUE%g
24430 s%@GLIBCPP_TEST_ABI_FALSE@%$GLIBCPP_TEST_ABI_FALSE%g
24431 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24432 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24433 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24434 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24435 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24436 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24437 s%@gxx_include_dir@%$gxx_include_dir%g
24438 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24439 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24440 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24441 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24442 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24443 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24444 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24445 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24446 s%@WARN_FLAGS@%$WARN_FLAGS%g
24447 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24449 CEOF
24452 cat >> $CONFIG_STATUS <<\EOF
24454 # Split the substitutions into bite-sized pieces for seds with
24455 # small command number limits, like on Digital OSF/1 and HP-UX.
24456 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24457 ac_file=1 # Number of current file.
24458 ac_beg=1 # First line for current file.
24459 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24460 ac_more_lines=:
24461 ac_sed_cmds=""
24462 while $ac_more_lines; do
24463 if test $ac_beg -gt 1; then
24464 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24465 else
24466 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24468 if test ! -s conftest.s$ac_file; then
24469 ac_more_lines=false
24470 rm -f conftest.s$ac_file
24471 else
24472 if test -z "$ac_sed_cmds"; then
24473 ac_sed_cmds="sed -f conftest.s$ac_file"
24474 else
24475 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24477 ac_file=`expr $ac_file + 1`
24478 ac_beg=$ac_end
24479 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24481 done
24482 if test -z "$ac_sed_cmds"; then
24483 ac_sed_cmds=cat
24487 cat >> $CONFIG_STATUS <<EOF
24489 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24490 include/Makefile src/Makefile \
24491 libmath/Makefile libio/Makefile libsupc++/Makefile \
24492 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24494 cat >> $CONFIG_STATUS <<\EOF
24495 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24497 case "$ac_file" in
24498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24500 *) ac_file_in="${ac_file}.in" ;;
24501 esac
24503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24505 # Remove last slash and all that follows it. Not all systems have dirname.
24506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24508 # The file is in a subdirectory.
24509 test ! -d "$ac_dir" && mkdir "$ac_dir"
24510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24511 # A "../" for each directory in $ac_dir_suffix.
24512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24513 else
24514 ac_dir_suffix= ac_dots=
24517 case "$ac_given_srcdir" in
24518 .) srcdir=.
24519 if test -z "$ac_dots"; then top_srcdir=.
24520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24522 *) # Relative path.
24523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24525 esac
24527 case "$ac_given_INSTALL" in
24528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24530 esac
24532 echo creating "$ac_file"
24533 rm -f "$ac_file"
24534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24535 case "$ac_file" in
24536 *Makefile*) ac_comsub="1i\\
24537 # $configure_input" ;;
24538 *) ac_comsub= ;;
24539 esac
24541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24542 sed -e "$ac_comsub
24543 s%@configure_input@%$configure_input%g
24544 s%@srcdir@%$srcdir%g
24545 s%@top_srcdir@%$top_srcdir%g
24546 s%@INSTALL@%$INSTALL%g
24547 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24548 fi; done
24549 rm -f conftest.s*
24551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24554 # ac_d sets the value in "#define NAME VALUE" lines.
24555 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24556 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24557 ac_dC='\3'
24558 ac_dD='%g'
24559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24560 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24561 ac_uB='\([ ]\)%\1#\2define\3'
24562 ac_uC=' '
24563 ac_uD='\4%g'
24564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24565 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24566 ac_eB='$%\1#\2define\3'
24567 ac_eC=' '
24568 ac_eD='%g'
24570 if test "${CONFIG_HEADERS+set}" != set; then
24572 cat >> $CONFIG_STATUS <<EOF
24573 CONFIG_HEADERS="config.h"
24575 cat >> $CONFIG_STATUS <<\EOF
24577 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24579 case "$ac_file" in
24580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24582 *) ac_file_in="${ac_file}.in" ;;
24583 esac
24585 echo creating $ac_file
24587 rm -f conftest.frag conftest.in conftest.out
24588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24589 cat $ac_file_inputs > conftest.in
24593 # Transform confdefs.h into a sed script conftest.vals that substitutes
24594 # the proper values into config.h.in to produce config.h. And first:
24595 # Protect against being on the right side of a sed subst in config.status.
24596 # Protect against being in an unquoted here document in config.status.
24597 rm -f conftest.vals
24598 cat > conftest.hdr <<\EOF
24599 s/[\\&%]/\\&/g
24600 s%[\\$`]%\\&%g
24601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24602 s%ac_d%ac_u%gp
24603 s%ac_u%ac_e%gp
24605 sed -n -f conftest.hdr confdefs.h > conftest.vals
24606 rm -f conftest.hdr
24608 # This sed command replaces #undef with comments. This is necessary, for
24609 # example, in the case of _POSIX_SOURCE, which is predefined and required
24610 # on some systems where configure will not decide to define it.
24611 cat >> conftest.vals <<\EOF
24612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24615 # Break up conftest.vals because some shells have a limit on
24616 # the size of here documents, and old seds have small limits too.
24618 rm -f conftest.tail
24619 while :
24621 ac_lines=`grep -c . conftest.vals`
24622 # grep -c gives empty output for an empty file on some AIX systems.
24623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24624 # Write a limited-size here document to conftest.frag.
24625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24627 echo 'CEOF
24628 sed -f conftest.frag conftest.in > conftest.out
24629 rm -f conftest.in
24630 mv conftest.out conftest.in
24631 ' >> $CONFIG_STATUS
24632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24633 rm -f conftest.vals
24634 mv conftest.tail conftest.vals
24635 done
24636 rm -f conftest.vals
24638 cat >> $CONFIG_STATUS <<\EOF
24639 rm -f conftest.frag conftest.h
24640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24641 cat conftest.in >> conftest.h
24642 rm -f conftest.in
24643 if cmp -s $ac_file conftest.h 2>/dev/null; then
24644 echo "$ac_file is unchanged"
24645 rm -f conftest.h
24646 else
24647 # Remove last slash and all that follows it. Not all systems have dirname.
24648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24650 # The file is in a subdirectory.
24651 test ! -d "$ac_dir" && mkdir "$ac_dir"
24653 rm -f $ac_file
24654 mv conftest.h $ac_file
24656 fi; done
24659 cat >> $CONFIG_STATUS <<EOF
24661 srcdir=${srcdir}
24662 host=${host}
24663 target=${target}
24664 with_multisubdir=${with_multisubdir}
24665 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24666 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24667 glibcpp_basedir=${glibcpp_basedir}
24668 CC="${CC}"
24669 CXX="${CXX}"
24670 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24673 cat >> $CONFIG_STATUS <<\EOF
24674 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24675 if test -n "$CONFIG_FILES"; then
24676 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24677 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24678 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24679 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24680 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24682 chmod +x mkcheck
24683 chmod +x testsuite_flags
24685 exit 0
24687 chmod +x $CONFIG_STATUS
24688 rm -fr confdefs* $ac_clean_files
24689 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24693 # Sanity checking & User-visible messages.
24694 # Checks down here, otherwise they get scrolled off before
24695 # the user will notice.
24697 # Trying to get more people to read documentation. Possibly remove
24698 # check and warn all the time. There is no "informational" AC_MSG_
24699 # macro, so these are going to be printed even when --quiet/--silent
24700 # is given.
24701 if test ! -f stamp-sanity-warned; then
24702 touch stamp-sanity-warned
24703 echo ""
24704 echo "Please make certain that you read the installation information here:"
24705 echo " faster => ${srcdir}/docs/html/install.html"
24706 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24707 echo ""
24708 echo "and the configuration information here:"
24709 echo " faster => ${srcdir}/docs/html/configopts.html"
24710 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24711 echo ""
24712 echo "before proceeding with ${_cv_gnu_make_command}."
24713 echo ""